1 2015-01-19 Kris Moore <kris@pcbsd.org>
3 * grub-core/disk/geli.c: Support GELI v6 and v7.
5 2014-12-09 Andrei Borzenkov <arvidjaar@gmail.com>
7 * grub-core/term/serial.c (grub_cmd_serial): Fix --rtscts
10 2014-12-07 David Kozub <zub.272@gmail.com>
12 * grub-core/kern/arm/misc.S: fix unaligned 64bit local variable
14 Fixes Savannah bug #43632.
16 2014-12-07 Peter Nelson <peterdn>
18 * grub-core/fs/ext2.c (grub_ext2_read_block): Support large sparse
21 2014-12-07 Andrei Borzenkov <arvidjaar@gmail.com>
23 * util/grub-mkconfig_lib.in (version_test_gt): Remove redundant
24 non-portable '-n' echo option.
25 * util/grub.d/10_kfreebsd.in: Change how list is built to avoid
26 non-portable 'echo -n.
27 * util/grub.d/10_linux.in: Likewise (closes 43668).
28 * util/grub.d/20_linux_xen.in: Likewise.
29 * util/grub.d/30_os-prober.in: Print spaces directly to avoid
30 non-portable 'echo -n'.
32 2014-12-07 Curtis Larsen <larsen@dixie.edu>
34 * grub-core/net/tcp.c (grub_net_recv_tcp_packet): Fix double
35 free when multiple empty segments were received (closes 42765).
37 2014-12-05 Andrei Borzenkov <arvidjaar@gmail.com>
39 * tests/util/grub-shell.in: Support --files also for netboot.
40 * tests/file_filter_test.in: New file with file filters tests.
41 * Makefile.util.def: Add file_filter_test.
42 * conf/Makefile.extra-dist: ... and here.
43 * tests/file_filter/file.gz: Test file for file_filter_test.
44 * tests/file_filter/file.gz.sig: Likewise.
45 * tests/file_filter/file.lzop: Likewise.
46 * tests/file_filter/file.lzop.sig: Likewise.
47 * tests/file_filter/file.xz: Likewise.
48 * tests/file_filter/file.xz.sig: Likewise.
49 * tests/file_filter/keys: Likewise.
50 * tests/file_filter/keys.pub: Likewise.
51 * tests/file_filter/test.cfg: Likewise.
52 * grub-core/commands/verify.c: Fix memory corruption doing
53 signature check for network files (closes 43601).
55 2014-12-01 Andrei Borzenkov <arvidjaar@gmail.com>
57 * grub-core/loader/i386/xen_fileXX.c (grub_xen_get_infoXX): Fix
58 memory leak (CID 73645, 73782).
59 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix memory leak
62 2014-11-30 Andrei Borzenkov <arvidjaar@gmail.com>
64 * grub-core/lib/syslinux_parse.c (free_menu): Do not free
65 inline array (CID 73610).
67 2014-11-28 Andrei Borzenkov <arvidjaar@gmail.com>
69 * grub-core/io/lzopio.c (test_header): Fix double free (CID 73665)
70 * grub-core/disk/geli.c (configure_ciphers): Fix memory leaks
71 (Coverity CID 73813, 73710)
72 * grub-core/disk/luks.c (configure_ciphers): Fix memory leaks
73 and use after free (Coverity CID 73813, 73710, 73730)
74 * grub-core/disk/luks.c (luks_recover_key): Fix memory leak (Coverity
76 * util/grub-install-common.c (grub_install_get_target): Check return
77 value of grub_util_fd_read (Coverity CID 73819).
78 * util/grub-mkstandalone.c (add_tar_file): Fix out of bound access
79 to hd.magic (Coverity CID 73587, 73888, bug 43690).
81 2014-11-20 Andrei Borzenkov <arvidjaar@gmail.com>
83 * tests/util/grub-fs-tester.in: Consistently print output
84 of grub ls if test fails.
86 2014-11-07 Leif Lindholm <leif.lindholm@linaro.org>
88 * grub-core/kern/efi/init.c: check value of *path before
91 2014-11-03 Michael Chang <mchang@suse.com>
93 * grub-core/net/icmp6.c (grub_net_recv_icmp6_packet): Fix size
94 of neighbor solicitation packet in grub_netbuff_pull.
96 2014-10-14 Andrei Borzenkov <arvidjaar@gmail.com>
98 * grub-core/loader/arm/linux.c: Use full initializer for initrd_ctx to
99 avoid fatal warnings with older gcc (probably before 4.7).
100 * grub-core/loader/arm64/linux.c: Likewise.
101 * grub-core/loader/i386/linux.c: Likewise.
102 * grub-core/loader/i386/pc/linux.c: Likewise.
103 * grub-core/loader/ia64/efi/linux.c: Likewise.
104 * grub-core/loader/mips/linux.c: Likewise.
105 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
106 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
108 2014-09-25 Colin Watson <cjwatson@ubuntu.com>
110 Fix in-tree --platform=none
112 * configure.ac: Only remove include/grub/cpu and
113 include/grub/machine in the --platform=none case, not all of
116 2014-09-23 Colin Watson <cjwatson@ubuntu.com>
118 Add a new "none" platform that only builds utilities
120 * configure.ac: Add "none" platform. Default to it for unsupported
121 CPUs rather than stopping with a fatal error. Don't downgrade
122 x86_64-none to i386. Define COND_real_platform Automake conditional
123 if the platform is anything other than "none". Don't do any include
124 directory linking for "none".
125 * Makefile.am: Skip building grub-core and all bootcheck targets if
127 * include/grub/time.h: Don't include <grub/cpu/time.h> if GRUB_UTIL
130 2014-09-22 Andrei Borzenkov <arvidjaar@gmail.com>
132 Use grub_cpu_to_XXX_compile_time for constants.
134 2014-09-21 Valentin Dornauer <valentin@unimplemented.org>
136 The AML parser implements only a small subset of possible AML
137 opcodes. On the Fujitsu Lifebook E744 this and another bug in
138 the parser (incorrect handling of TermArg data types) would lead
139 to the laptop not turning off (_S5 not found).
141 * grub-core/commands/acpihalt.c: Support OpAlias in the AML parser;
142 in skip_ext_op(), handle some Type2Opcodes more correctly (TermArgs
143 aren't always simply strings!); Add function to skip TermArgs
144 * include/grub/acpi.h: Add new opcodes
146 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
148 * grub-core/normal/main.c: Don't drop to rescue console in
149 case of password-protected prompt and no menu entries.
151 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
153 * grub-core/commands/keylayouts.c: Ignore unknown keys.
155 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
157 * grub-core/gmodule.pl.in: Accept newer binutils which output
158 empty column rather than 0x0.
160 2014-09-21 Michael Chang <mchang@suse.com>
162 * grub-core/osdep/unix/config.c: Remove extraneous comma.
164 2014-09-21 Peter Jones <pjones@redhat.com>
166 * grub-core/loader/arm/linux.c: Initialized initrd_ctx so
167 we don't free a random pointer from the stack.
168 * grub-core/loader/arm64/linux.c: Likewise.
169 * grub-core/loader/i386/linux.c: Likewise.
170 * grub-core/loader/i386/pc/linux.c: Likewise.
171 * grub-core/loader/ia64/efi/linux.c: Likewise.
172 * grub-core/loader/mips/linux.c: Likewise.
173 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
174 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
176 2014-09-15 Khem Raj <raj.khem@gmail.com>
178 * grub-core/kern/emu/hostfs.c: use _DEFAULT_SOURCE in addition to
179 _BSD_SOURCE to avoid warnings under glibc 2.20+.
181 2014-09-08 Michael Chang <mchang@suse.com>
183 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Fix extent size
184 check; comparing &data->extent against addresses in the region it
185 points to is unpredictable.
187 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
189 Support grub-emu on x32 (ILP32 but with x86-64 instruction set)
191 * configure.ac: Remove -m64 from checks for -mcmodel=large and
192 -mno-red-zone. These are always either unnecessary (x86_64-emu) or
193 already in TARGET_CFLAGS at this point, and they produce incorrect
194 results when building for x32.
195 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Cast
196 pointers to Elf64_Xword via grub_addr_t, in order to work on x32.
197 * include/grub/x86_64/types.h (GRUB_TARGET_SIZEOF_VOID_P,
198 GRUB_TARGET_SIZEOF_LONG): Define to 4 on x32.
200 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
202 * configure.ac: Remove several unnecessary semicolons.
204 2014-08-25 Colin Watson <cjwatson@ubuntu.com>
206 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
207 Initialise pend to pacify GCC.
209 2014-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
211 * util/grub-mkconfig.in: Fix typo (gettext_print instead of
214 2014-08-13 Vladimir Serbinenko <phcoder@gmail.com>
216 * grub-core/term/at_keyboard.c: Retry probing keyboard if
217 scancode setup failed.
219 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
221 * grub-core/kern/disk_common.c: Clump disk size to 1EiB.
223 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
225 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Add
226 safety to avoid triggerring VirtualBox bug.
228 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
230 * grub-core/fs/cbfs.c: Don't probe disks of unknow size.
232 Fixes hang on virtualbox.
234 2014-07-08 Colin Watson <cjwatson@ubuntu.com>
236 * util/grub.d/10_hurd.in: Make kernel list progression not fail on
237 kernels whose paths contain regex metacharacters.
238 * util/grub.d/10_kfreebsd.in: Likewise.
239 * util/grub.d/10_linux.in: Likewise.
240 * util/grub.d/20_linux_xen.in: Likewise.
242 Reported by: Heimo Stranner.
244 2014-06-26 Colin Watson <cjwatson@ubuntu.com>
246 * docs/grub-dev.texi (Finding your way around): The build system no
247 longer uses AutoGen directly.
249 2014-06-21 Роман Пехов <roman_pekhov>
251 * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check.
253 2014-06-21 Glenn Washburn <development@efficientek.com>
255 * util/grub-install.c: Fix handling of --disk-module.
257 2014-06-21 Stephane Rochoy <sheda>
259 * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
262 2014-06-21 Stephane Rochoy <sheda>
264 * grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
265 EFI system table physical address.
267 2014-06-21 Trevor Woerner <trevor.woerner@linaro.org>
269 * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
271 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
273 * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
275 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
277 * grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
280 2014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
282 * grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
284 Reported by: Yves Blusseau <blusseau@zetam.org>.
286 2014-04-20 Piotr Krysiuk <piotras@gmail.com>
288 * grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
289 GDT in conventional memory.
291 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
293 * util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
294 UUID. Other parts of grub-mkconfig tolerate these, they were
295 previously allowed here up to commit
296 55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
297 practice when the system has active LVM snapshots.
298 Fixes Ubuntu bug #1287436.
300 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
302 * grub-core/disk/lvm.c (grub_lvm_detect): Search for
303 "logical_volumes" block a little more accurately.
305 2014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
307 * grub-core/lib/syslinux_parse.c: Fix timeout quoting.
309 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
311 * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
314 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
316 Replace few instances of memcmp/memcpy in the code that should be
317 grub_memcmp/grub_memcpy.
319 2014-04-03 Vladimir Serbinenko <phcoder@gmail.com>
321 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
324 2014-03-31 Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
326 btrfs: fix get_root key comparison failures due to endianness
328 * grub-core/fs/btrfs.c (get_root): Convert
329 GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
331 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
333 Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
335 Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
336 no longer to be forgiving of trailing spaces on grub-probe output
337 lines, which among other things means that util/grub.d/10_linux.in
338 no longer detects LVM. To fix this, make grub-probe's output
339 delimiting more consistent. As a bonus, this improves the coverage
342 Fixes Debian bug #735935.
344 * grub-core/disk/cryptodisk.c
345 (grub_util_cryptodisk_get_abstraction): Add a user-data argument.
346 * grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
348 * include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
350 * include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
351 * util/grub-install.c (push_partmap_module, push_cryptodisk_module,
352 probe_mods): Adjust for extra user-data arguments.
353 * util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
354 probe_abstraction): Use configured delimiter. Update callers.
356 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
358 * util/grub-probe,c (options): Make -0 work again (broken by
360 (main): Simplify logic.
362 2014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
364 * grub-core/lib/relocator.c: Fix the case when end of leftover is used.
366 2014-03-26 Fu Wei <fu.wei@linaro.org>
368 * grub-core/loader/arm64/linux.c: Remove redundant "0x".
370 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
372 * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
373 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
375 Suggested by: Markus Müller.
377 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
379 * grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map
380 if E820 failed to return any regions.
382 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
384 * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
385 tables for low memory calculations.
387 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
389 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
392 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
394 * grub-core/kern/i386/coreboot/mmap.c: Filter out 0xa0000-0x100000
397 2014-02-20 Vladimir Serbinenko <phcoder@gmail.com>
399 * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
402 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
404 Add bootpath parser for open firmware.
406 It enables net boot even when there is no bootp/dhcp server.
408 * grub-core/net/drivers/ieee1275/ofnet.c: Add grub_ieee1275_parse_bootpath
409 and call it at grub_ieee1275_net_config_real.
410 * grub-core/kern/ieee1275/init.c: Add bootpath to
411 grub_ieee1275_net_config.
412 * include/grub/ieee1275/ieee1275.h: Likewise.
415 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
417 Add grub_env_set_net_property function.
419 * grub-core/net/bootp.c: Remove set_env_limn_ro.
420 * grub-core/net/net.c: Add grub_env_set_net_property.
421 * include/grub/net.h: Likewise.
423 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
425 * util/grub-mkrescue.c: Build fix for argp.h with older gcc.
427 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
429 * util/grub-mkfont.c: Build fix for argp.h with older gcc.
431 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
433 * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
434 7 seconds to recover if last poweroff was bad.
436 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
438 * grub-core/disk/ahci.c: Properly handle transactions with no
441 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
443 * grub-core/disk/ahci.c: Add safety cleanups.
445 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
447 * grub-core/disk/ahci.c: Allocate and clean space for all possible 32
448 slots to avoid pointing to uninited area.
450 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
452 * grub-core/disk/ahci.c: Do not enable I/O decoding and keep
453 enabling busmaster for the end.
455 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
457 * util/grub-mkfont.c: Downgrade warnings about unhandled features
460 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
462 * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
464 2014-01-29 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
466 * .gitignore: add missing files and .exe variants.
468 2014-01-26 Mike Gilbert <floppym@gentoo.org>
470 grub-install: support for partitioned partx loop devices.
472 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
473 /dev/loopX as being the parent of /dev/loopXpY.
475 2014-01-26 Vladimir Serbinenko <phcoder@gmail.com>
477 * grub-core/term/serial.c (grub_serial_register): Fix invalid free.
478 Ensure that pointers are inited to NULL and that pointers are not
481 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
483 * include/grub/crypto.h: Replace __attribute__ ((format (printf)) with
484 __attribute__ ((format (__printf__)) to fix compilation under MinGW-w64.
485 * include/grub/emu/misc.h: ... and here.
486 * include/grub/err.h: ... and here.
487 * util/import_gcry.py: ... and here (in files g10lib.h).
489 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
491 * util/grub-mkimage.c: Make prefix argument mandatory.
493 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
495 Fix several translatable strings.
497 Suggested by: D. Prévot.
499 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
501 * util/grub-install.c: List available targets.
503 2014-01-23 Colin Watson <cjwatson@ubuntu.com>
505 * util/grub-install.c (write_to_disk): Add an info message.
507 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
509 * Makefile.am: Allow adding extra files to generated Windows ZIP
510 archive by setting GRUB_WINDOWS_EXTRA_DIST.
512 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
514 * configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
515 Show detected font path in summary.
517 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
519 * grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
521 * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise.
522 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
523 * grub-core/net/tftp.c (tftp_open): Likewise.
524 * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
526 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
528 * grub-core/net/net.c (receive_packets): Change stop condition to avoid
531 In net/net.c there is a while (1) that only exits if there is a stop
532 condition and more then 10 packages or if there is no package received.
534 If GRUB is idle and enter in this loop, the only condition to leave is
535 if it doesn't have incoming packages. In a network with heavy traffic
538 2014-01-19 Colin Watson <cjwatson@ubuntu.com>
540 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
541 EPERM when modifying kern.geom.debugflags. It is only a problem for
542 such things as installing GRUB to the MBR, in which case there'll be
543 an error later anyway, not for opening files during tests.
545 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
547 * grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
548 instead of MOD_FILES.
549 * grub-core/genemuinit.sh: Simplify stripping of suffix so it works
550 both with and without .exe.
551 * grub-core/genemuinitheader.sh: Same.
553 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
555 * util/grub-install.c: Fix a typo.
557 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
559 * grub-core/normal/main.c (read_config_file): Buffer config file.
562 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
564 * acinclude.m4 (grub_CHECK_LINK_DIR): Check that we can also remove
565 symbolic link to directory. It fails in Msys shell on Windows 2003.
567 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
569 * Makefile.am (default_payload.elf): Add modules
570 multiboot cbmemc linux16 gzio echo help.
572 2014-01-18 Mike Gilbert <floppym@gentoo.org>
574 * Makefile.util.def: Link grub-ofpathname with zfs libs.
576 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
578 * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
581 Reported by: Andrey Borzenkov.
583 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
585 * include/grub/misc.h: Move macros for compiler features to ...
586 * include/grub/compiler.h: ... new file.
587 * include/grub/list.h: Include <grub/compiler.h> instead of <grub/misc.h>.
588 * grub-core/commands/fileXX.c: Include <grub/misc.h>.
589 * grub-core/efiemu/prepare.c: Include <grub/misc.h>.
590 * grub-core/loader/i386/xen_file.c: Include <grub/misc.h>.
591 * grub-core/loader/i386/xen_fileXX.c: Include <grub/misc.h>.
592 * grub-core/video/capture.c: Include <grub/misc.h>.
593 * include/grub/command.h: Include <grub/misc.h>.
594 * include/grub/dl.h: Include <grub/misc.h>.
595 * include/grub/procfs.h: Include <grub/misc.h>.
597 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
599 * configure.ac: Add support for BUILD_EXEEXT and use it ...
600 * Makefile.am: ... here.
601 * Makefile.util.def: ... and here.
602 * grub-core/Makefile.am: ... and here.
604 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
606 * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
607 FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
609 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
611 * grub-core/term/terminfo.c: Recognize keys F1-F12.
613 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
615 * configure.ac: Add support for BUILD_LDFLAGS.
616 * Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
617 * grub-core/Makefile.am: ... and here.
618 * INSTALL: Mention BUILD_LDFLAGS.
620 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
622 * util/grub-mount.c: Extend GCC warning workaround to grub-mount.
624 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
626 * grub-core/kern/efi/efi.c: Ensure that the result starts with /
629 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
631 * NEWS: Add few missing entries.
633 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
635 * util/grub.d/00_header.in (make_timeout): Use && rather than test
637 * util/grub.d/10_windows.in: Likewise.
638 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
640 * util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
643 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
645 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
646 redundant preprocessor conditional.
648 2014-01-08 Colin Watson <cjwatson@ubuntu.com>
650 * Makefile.util.def (grub-macbless): Change mansection to 8.
652 2014-01-07 Leif Lindholm <leif.lindholm@linaro.org>
654 * grub-core/loader/arm64/linux.c: correctly set device path end length.
656 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
658 * util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
659 arm64 to comply with EFI specification. Also use grubaa64.efi for
661 * util/grub-mkrescue.c: Change to use bootaa64.efi too.
663 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
665 * include/grub/osdep/hostfile_windows.h: Do not redefine fseeko/ftello
666 on MinGW-64 when compiling for 32 bits.
668 2013-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
670 * grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
672 2013-12-30 Vladimir Serbinenko <phcoder@gmail.com>
674 * NEWS: Add few missing entries. Correct existing ones.
676 2013-12-28 Vladimir Serbinenko <phcoder@gmail.com>
678 Don't abort() on unavailable coreboot tables if not running on coreboot.
680 2013-12-28 Andrey Borzenkov <arvidjaar@gmail.com>
682 * grub-core/kern/emu/misc.c: Remove unused error.h; fixes compilation
685 2013-12-28 Colin Watson <cjwatson@ubuntu.com>
687 * NEWS: The cmosclean command in fact dates back to 1.99. Remove
688 mention of it from 2.02.
690 2013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
692 * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
694 As these functions are used on pre-ARMv6 CPUs as well we don't want
695 to make assembler assume that architecture is higher than default one.
697 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
699 * NEWS: First draft of 2.02 entry.
701 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
703 * INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
704 * docs/grub.texi (Getting the source code): Likewise.
706 2013-12-25 Andrey Borzenkov <arvidjaar@gmail.com>
708 * grub-core/osdep/windows/platform.c (get_platform): Fix EFI
711 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
713 * configure.ac: Set version to 2.02~beta2.
715 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
717 * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
719 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
721 * util/grub-probe.c: Improve help message and simplify list handling.
723 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
725 Fix buffer overflow in grub_efi_print_device_path.
727 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
729 Show SATA device path.
731 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
733 Revert grub-file usage in grub-mkconfig.
735 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
737 Make newly-created files other than grub.cfg world-readable.
739 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
741 * util/grub.d/00_header.in: Improve compatibility with old config.
743 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
745 Make rijndael.c respect aliasing rules.
747 Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
749 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
751 Make grub_util_device_is_mapped_stat available in grub-emu core.
753 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
755 Add -Qn to TARGET_CFLAGS if it's supported.
756 Fixes compilation on cygwin.
758 Reported by: Andrey Borzenkov.
759 Suggested by: Andrey Borzenkov.
761 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
763 Save TARGET_CC version in modinfo.sh.
765 Suggested by: Andrey Borzenkov.
767 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
769 Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
770 follow the same algorithm to avoid method mismatch. Don't assume
771 DMRAID- UUID to mean full disk but instead check that mapping is linear.
773 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
775 Declare GRUB_EFI_VENDOR_APPLE_GUID.
777 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
779 Dump type and vendor specific data when printing device path.
781 2013-12-23 Colin Watson <cjwatson@debian.org>
783 Update some documentation to refer to Git rather than Bazaar.
785 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
787 * po/README: Likewise. Fix spelling mistake.
789 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
791 Don't distribute config.h.
793 * Makefile.am (platform_HEADERS): Move to ...
794 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
795 failure when building from a distributed tarball.
797 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
799 * configure.ac: Fix spelling.
800 * grub-core/commands/parttool.c: Fix grammar.
801 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
802 Embedding Partition".
804 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
806 ARM64 support for grub-mkrescue.
808 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
810 Install modinfo.sh to keep build information around.
812 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
814 * grub-core/modinfo.sh.in: Add build config information.
816 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
818 ARM64 grub-file and grub-mkconfig support.
820 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
822 Remove leftover options defines.
824 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
826 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
828 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
830 * grub-core/loader/arm64/linux.c: Add missing bracket.
832 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
834 Add arm64-efi recognition to grub-file.
836 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
838 Fix ia64-efi recognition in grub-file.
840 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
842 Recognize raspberry pi kernel in grub-file.
844 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
846 Enable cache on ARM U-Boot port.
848 Without it the port is reidiculously slow.
850 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
852 Fix ARM cache maintainance.
854 More code was converted from ASM to C for easier handling.
856 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
858 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
861 Suggested by: Leif Lindholm.
863 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
865 * util/grub-mkconfig.in: Fix Xen platform conditions.
867 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
869 * util/grub-mkrescue.c: Split single help message string in several
870 strings used in previous shell version.
872 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
874 Add arm64 Linux loader.
876 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
878 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
880 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
882 Add module loading and parsing boot time checkpoints.
884 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
886 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
889 2013-12-22 Lars Wendler <polynomial-c@gentoo.org>
891 * util/grub-mkconfig.in: Skip non-executable files.
893 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
895 Workaround buggy timer in raspberry pie by using our own timer
898 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
900 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
901 Increase to 16 MiB to allow loading the whole memdisk.
903 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
905 Fix ARM Linux Loader on non-FDT platforms.
907 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
909 * configure.ac: Choose link format based on host_os on emu.
911 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
913 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
915 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
917 * grub-core/kern/emu/main.c: Build fix for emu.
919 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
921 Build fixes for argp.h with older gcc.
923 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
925 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
928 Suggested by: David Prévot.
930 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
932 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
934 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
936 Enable -Wformat=2 if it's supported.
938 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
940 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
941 -Wmissing-declarations if supported.
943 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
945 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
946 u32 as both HFS and HFS+ have 32-bit inodes.
948 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
950 * include/grub/misc.h (grub_strtol): Fix overflow.
952 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
954 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
955 as return type in both conditionals.
957 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
959 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
960 to use uint8_t for color.
962 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
964 * util/misc.c (grub_util_get_image_size): Check for overflow.
966 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
968 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
971 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
973 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
974 for pointer difference.
976 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
978 * util/import_gcry.py: Skip sample keys.
980 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
982 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
984 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
986 * configure.ac: Remove duplicate warning arguments.
988 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
990 Add missing static qualifiers.
992 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
994 Add missing includes.
996 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
998 Inline printf templates when possible to enable format checking.
1000 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1002 * include/grub/crypto.h: Don't discard const attribute.
1004 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1006 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
1009 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1011 * grub-core/lib/crypto.c: Don't discard const attribute.
1013 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1015 * grub-core/lib/disk.c: Fix potential overflow.
1017 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1019 * grub-core/lib/arg.c: Don't discard const attribute.
1021 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1023 * grub-core/kern/dl.c: Don't discard const attribute.
1025 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1027 * grub-core/kern/disk.c: Fix potential overflow.
1029 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1031 * conf/Makefile.common: Don't include non-existing directory
1032 grub-core/lib/libgcrypt-grub/include.
1034 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1036 Clarify several translatable messages.
1038 2013-12-21 David Prévot <david@tilapin.org>
1040 Correct some translatable strings.
1042 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
1044 * util/grub-mkrescue.c: Rephrase mkrescue description.
1046 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1047 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
1049 Clarify several translatable messages.
1051 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
1053 Be more verbose about some configure failures.
1055 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
1057 Fix various build problems on GNU/Hurd.
1059 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
1061 (xgetcwd): Likewise.
1062 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
1063 [__GNU__]: Add prototype.
1064 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
1065 long int using %ld rather than %d.
1067 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1069 * util/grub-install.c: Inform user about install platform.
1071 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1073 * configure.ac: Set version to 2.02~beta1.
1075 2013-12-18 Allen Pais <allen.pais@oracle.com>
1076 2013-12-18 Bob Picco <bob.picco@oracle.com>
1078 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
1080 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1082 Make grub_zlib_decompress handle incomplete chunks.
1086 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1088 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
1091 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1093 * grub-core/disk/usbms.c: Retry on unknown errors.
1094 Reuse the same tag on retries.
1096 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1098 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
1100 Avoid confusing them with already completed transfers.
1102 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1106 Due to XEN bug it prevents Linux boot. Remove it at least, until
1107 workaround is found.
1109 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1111 * po/exclude.pot: Add 2 missing excludes.
1113 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1115 Add missing license section in macbless.mod and macho.mod.
1117 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1119 Allow compilation without thumb-interwork as long as no thumb is
1120 involved or only thumb2 is used.
1122 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1124 * INSTALL: Update comment as to why sparc64 clang isn't usable.
1126 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1128 Add __attribute__ ((sysv_abi)) only if it's really needed.
1130 Some compilers don't support it.
1132 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1134 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
1136 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1138 Remove -Wold-style-definition.
1140 Not very useful and interaction of it with regexp depends on GCC
1143 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1145 Make grub_util_get_windows_path_real static.
1147 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1149 * grub-core/commands/fileXX.c: Silence cast-align.
1150 * grub-core/loader/i386/xen_fileXX.c: Likewise.
1152 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1154 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
1155 rather than LL suffix.
1157 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1159 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
1161 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1163 * grub-core/loader/arm/linux.c: Use common initrd functions.
1165 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1167 Decrease number of strings to translate.
1169 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1171 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
1173 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1175 Mark strings for translation and add remaining ones to exclude list.
1177 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1179 * util/grub-file.c (main): Fix sizeof usage.
1181 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1183 Silence spurious warning.
1185 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1187 Remove check_nt_hiberfil as it's been superseeded by file command.
1189 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1191 * docs/osdetect.cfg: Add isolinux config to detected OSes.
1193 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1195 Implement syslinux parser.
1197 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1199 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
1201 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1203 Support cpuid --pae.
1205 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1207 Use AT keyboard on Yeeloong 3A.
1209 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1211 Add Yeeloong 3A reboot and halt.
1213 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1215 Add Radeon Yeeloong 3A support.
1217 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1219 Add bonito 3A support.
1221 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1223 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
1225 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1227 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
1229 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1231 * grub-core/loader/macho.c: Fix compilation on non-i386.
1233 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1235 Add missing format_arg attribute to check that printf with translated
1236 messages has proper arguments.
1238 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1240 Use grub_xasprintf to format translated error messages containing
1243 2013-12-17 Jon McCune <jonmccune@google.com>
1245 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
1247 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1249 Unify message for unsupported relocation.
1251 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1253 Mark miscompile error for translation.
1255 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1257 Use %I64 and not %ll when using OS printf if compiling for windows.
1259 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1261 Update Mac code to match new register_efi prototype.
1263 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1265 Implement better integration with Mac firmware.
1267 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1269 * grub-core/loader/multiboot_mbi2.c: Implement special value for
1272 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1274 Include serial module in default_payload.elf.
1276 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1278 Add explicit thumb interwork bx in asm files.
1280 Shouldn't matter for armv >= 5 but let's be safe.
1282 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1284 Implement Truecrypt ISO loader.
1286 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1288 * grub-core/lib/arg.c: Ensure at least a single space between commands.
1290 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1292 Implement grub_file tool and use it to implement generating of config
1295 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1297 Change to v1 xen grants.
1299 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1301 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
1303 GRUB relied on %ebx being preserved across hypercall which isn't true.
1305 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1307 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
1309 GRUB relied on %rdi being preserved across hypercall which isn't true.
1311 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1313 Implement XEN VFB support.
1315 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1317 Remove grub_bios_interrupt on coreboot.
1319 It's not used currently and cannot be used safely currently.
1321 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1323 Update exclude.pot and mark few strings for translation.
1325 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1327 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
1329 Reported by: Jon McCune
1331 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1333 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1334 Add verbose information which firmware directories were tried.
1336 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1338 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
1339 function to optionally redirect all three standard descriptors.
1340 Redefine grub_util_exec, grub_util_exec_redirect and
1341 grub_util_exec_redirect_null to use it.
1342 * include/grub/emu/exec.h: Define it.
1343 * include/grub/osdep/exec_unix.h: Delete, it is unused.
1344 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1345 Use grub_util_exec_redirect_all to redirect error to NULL.
1347 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1349 * grub-core/tests/sleep_test.c: Silence spurious warning.
1351 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1353 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
1354 linker trying to "fixup" the code.
1356 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1358 * grub-core/kern/x86_64/xen/startup.S: Align stack.
1360 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1362 Add support for converting PE+ to Elf64.
1364 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1366 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
1368 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1370 Remove practice of assigning random const pointers to device id.
1372 This is not required as cache code already checks driver id as well.
1374 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1376 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
1379 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1381 * include/grub/efi/api.h: Don't use call wrappers when compiled with
1382 mingw or cygwin as API already matches.
1384 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1386 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
1388 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1390 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
1393 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1395 Handle X86_64_PC64 relocation.
1397 Those are generated by some cygwin compilers.
1399 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1401 Determine the need for mingw-related stubs at compile time rather than
1402 using not very significant $target_os.
1404 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1406 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
1407 may not work with ELF.
1409 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1411 Use unix functions for temporary files and special files on cygwin.
1413 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1415 Define functions explicitly rather than using --defsym in tests
1416 whenever possible. Respect locality in remaining cases.
1418 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1420 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
1422 2013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
1424 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
1425 unlikely errors when getting EFI variables and make exhaustive search
1426 for all BootNNNN variables to find matching one.
1428 2013-12-15 Ian Campbell <ijc@hellion.org.uk>
1430 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
1432 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1434 New functional test for sleep function.
1436 This test allows to check sleep without qemu. Keep qemu version as
1437 well as functional test won't notice if all clocks are going too fast
1440 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1442 Add explicit sysv_abi on amd64 asm routines.
1444 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1446 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
1449 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1451 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
1454 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1456 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
1459 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1461 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
1463 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1465 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
1468 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1470 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
1472 In case of quick removal of loopback and adding another one it may
1473 get same ID, confusing the cache system.
1475 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1477 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
1480 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1482 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
1483 than converting to long.
1485 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1487 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
1489 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1491 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
1492 than almost useless pointer.
1494 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1496 Add gcc_struct to all packed structures when compiling with mingw.
1498 Just "packed" doesn't always pack the way we expect.
1500 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1502 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
1504 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1506 * util/grub-pe2elf.c: Fix handling of .bss.
1508 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1510 Implement windows flavour of EFI install routines.
1512 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1514 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
1516 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1518 Change grub_install_register_efi interface to pass GRUB device.
1520 This allows grub_install_register_efi to request partition info
1523 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1525 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
1527 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1529 Do not use TCHAR string functions as they are not available on cygwin.
1531 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1533 Workaround windows bug when querying EFI system partition parameters.
1535 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1537 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
1540 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1542 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
1544 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1546 Make i386-* other than i386-pc compileable under cygwin.
1548 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1550 Fix definition of grub_efi_hard_drive_device_path. Take care that
1551 existing code would work even if by some reason bogus definition is
1552 used by EFI implementations.
1554 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1556 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
1558 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1560 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
1563 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1565 * util/config.c: Remove trailing newline from distributor in simple
1568 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1570 * include/grub/efi/api.h: Rename protocol and interface to avoid
1573 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1575 * .gitignore: add .exe variants. add missing files. remove few outdated
1578 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1580 * grub-core/osdep/exec.c: Use unix version on cygwin.
1582 2013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1584 Implement multiboot2 EFI BS specification.
1586 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1588 * grub-core/normal/charset.c: Fix premature line wrap and crash.
1589 Crash happened only in some cases like a string starting at the
1590 half of the screen of same length.
1592 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1594 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
1595 with EFI counterpart.
1597 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1599 Propagate the EFI commits to x86-efi specific parts.
1601 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1603 * grub-core/commands/efi/lssal.c: Fix terminating condition.
1605 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1607 Introduce grub_efi_packed_guid and use it where alignment is not
1610 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1612 * include/grub/efi/api.h (grub_efi_device_path): Define length as
1613 unaligned u16 rather than u8[2].
1615 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1617 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
1618 for relocation range.
1620 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1622 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
1623 non-function pcrel21b relocation. It happens with .text.unlikely
1626 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1628 * make MAX_USABLE_ADDRESS platform-specific
1629 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
1631 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1633 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
1635 2013-12-09 Jon McCune <jonmccune@google.com>
1637 * Add --no-rs-codes flag to optionally disable reed-solomon codes
1638 in grub-install and grub-bios-setup for x86 BIOS targets.
1640 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1642 Add missing compile and link options for sparc64-emu.
1644 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1646 Implement sparc64 trampolines (needed for sparc64-emu).
1648 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1650 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
1651 range of R_SPARC_HI22.
1652 Implement R_SPARC_LM22.
1654 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1656 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
1657 Do not explicitly check for symbol table as it's already checked in
1658 platform-independent layer.
1660 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1662 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
1663 on ia64 as __clear_cache is a dummy on ia64.
1665 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1667 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1668 Do not explicitly check for symbol table as it's already checked in
1669 platform-independent layer.
1671 2013-12-09 Colin Watson <cjwatson@ubuntu.com>
1673 * util/grub-mkconfig.in: Add missing newline to output.
1675 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1677 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
1678 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
1680 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1682 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
1683 compilation with GCC <= 4.2.
1684 * grub-core/kern/emu/argp_common.c: Likewise.
1686 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1688 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
1689 right platform rather than leaking to sparc64-emu.
1691 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1693 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
1694 But ensure that the variables in question are indeed unsigned.
1696 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1698 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
1700 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1702 Remove grub_memalign on emu.
1704 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1706 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
1707 truncate incomplete lines but instead flushes them.
1709 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1711 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
1712 and implement windows variant.
1714 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1716 Fix mips-emu compilation.
1718 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1720 * configure.ac: Check for freetype library usability.
1722 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1726 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1728 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
1730 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1732 * docs/grub.texi (Environment): Update color_normal and color_highlight
1733 defaults (light-gray instead of white).
1735 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1737 * grub-core/normal/main.c (INIT): Set default color to light-gray
1738 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
1739 and apparently BIOS defaults.
1741 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1743 Transform -C option to grub-mkstandalone to --core-compress available
1744 in all grub-install flavours.
1746 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1748 Merge GRUBFS and GRUB_FS variables.
1750 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1752 Revert commit 69ca97c820, it caused failures when using OS device name
1753 in grub-install. Instead just strip off parenthesis in grub-install
1754 if (hdX) was passed.
1756 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1758 * util/grub-install.c (push_partmap_module): Add helper to convert
1759 partmap names to module names and use it in probe_mods(). Fixes
1760 failure to find partmap modules in diskfilter case.
1762 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1764 * configure.ac: Make unifont mandatory on coreboot.
1766 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1768 * configure.ac: Skip unifont 6.3 pcf and bdf.
1770 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1772 * Makefile.am: Remove partial font files if generation failed.
1774 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1776 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1778 * include/grub/util/misc.h: Define it ...
1779 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1781 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1783 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1786 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1788 Don't add -mlong-calls when compiling with clang.
1790 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1792 * configure.ac: Fix a typo.
1794 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1796 Revamp relocation handling.
1798 Move more code to common dl.c. Add missing veneers for arm and arm64.
1799 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1801 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1803 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1805 2013-12-05 Mike Gilbert <floppym@gentoo.org>
1807 * INSTALL: Raise minimum python version to 2.6.
1808 * gentpl.py: Use python3-style print function.
1810 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1812 * util/grub-install.c: Mention Boot* variable.
1814 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1816 * grub-core/osdep/linux/hostdisk.c
1817 (grub_util_find_partition_start_os): Initialise start to avoid
1818 spurious compiler warning.
1820 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1822 On Linux, read partition start offsets from sysfs if possible, to
1823 cope with block device drivers that don't implement HDIO_GETGEO.
1824 Fixes Ubuntu bug #1237519.
1826 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1828 (sysfs_partition_start): Likewise.
1829 (grub_util_find_partition_start_os): Try sysfs_partition_start
1832 2013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1834 * grub-core/kern/fdt.c: Update struct size when adding node.
1836 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1838 Handle unaligned .bss on sparc64.
1840 Current code improperly assumes that both __bss_start and _end are
1841 aligned to 8-bytes. Eliminating this assumption and explicitly align
1844 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1846 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
1847 so it doesn't land in the middle of loaded image.
1849 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1851 * configure.ac: Move all warning options that may be absent in
1852 gcc >= 3.1 to optional.
1854 Note: while this allows to compile with older GCC, official requirements
1855 remain the same and no support for older GCC.
1857 2013-12-04 Colin Watson <cjwatson@ubuntu.com>
1859 Copying the themes directory in grub-shell isn't
1860 parallel-test-friendly and breaks on the second test when the source
1861 directory is read-only (as in "make distcheck"). Instead, add a
1862 hidden --themes-directory option to grub-mkrescue et al, and use it
1865 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1867 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
1868 as it's no longer necessarry.
1870 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1872 * configure.ac: Allow compilation with older GCC for ARM.
1874 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1876 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
1877 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
1880 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1882 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
1884 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1886 Pass font config to config.h and not by TARGET_CFLAGS as adding
1887 arguments doesn't work if TARGET_CFLAGS is specified on command
1890 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1892 * configure.ac: Add -Wvla if compiler supports it.
1894 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1896 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
1897 Remove variable length arrays.
1898 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
1900 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1902 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
1904 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1906 * include/grub/types.h: Declare all byteswaps as inline functions
1907 except compile-time ones.
1909 Solves variable shadowing in constructions like
1910 cpu_to_le (le_to_cpu(x) + 1).
1912 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1914 * grub-core/kern/efi/efi.c: Remove variable length arrays.
1916 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1918 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
1921 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1923 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
1924 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
1926 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1928 * grub-core/Makefile.core.def (setjmp): Distribute
1931 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1933 Add a new timeout_style environment variable and a corresponding
1934 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
1935 controls hidden-timeout handling more simply than the previous
1936 arrangements, and pressing any hotkeys associated with menu entries
1937 during the hidden timeout will now boot the corresponding menu entry
1940 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
1941 generates a warning, and if it shows the menu it will do so as if
1942 the second timeout were not present. Other combinations are
1943 translated into reasonable equivalents.
1945 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
1947 2013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
1949 * util/config.c: Add missing pointer adjustment.
1950 Reported by: qwertial
1952 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1954 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
1955 directly, not via `cpu' link, to fix libgrub.pp generation.
1957 2013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
1961 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1963 * docs/grub.texi (sleep): Document exit codes.
1965 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1967 Ensure that -mno-unaligned-access or some equivalent option is used.
1969 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1971 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
1974 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1976 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
1978 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1980 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
1981 builds, since we don't have an EPS version of font_char_metrics.png.
1982 Add leading dot to image extension per the Texinfo documentation.
1984 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1986 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
1987 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
1988 * util/grub-gen-widthspec.c: Likewise.
1989 * util/grub-mkfont.c: Likewise.
1991 2013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
1993 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
1994 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
1995 failed to install on (hdX).
1996 * util/grub-setup.c (get_device_name): Remove, not needed after
1999 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2001 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
2003 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2005 * util/grub-fstest.c: Remove variable length arrays.
2007 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2009 * grub-core/osdep/linux/ofpath.c: Check return value of read.
2011 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2013 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
2014 computing crc32 rather than handling with md fundtions directly.
2016 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2018 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
2019 checking fwstart.img rather than md fundtions directly.
2021 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2023 * util/grub-mkrescue.c (main): Check that fread succeeded.
2025 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2027 * conf/Makefile.common: Remove -mexplicit-relocs and
2028 -DUSE_ASCII_FALLBACK on yeeloong.
2030 -DUSE_ASCII_FALLBACK is already added by font snippets.
2031 -mexplicit-relocs isn't needed is compiler/assemblera are
2032 configured properly.
2033 If they're not we shouldn't attempt to fix it by ourselves.
2034 Binary compare between before and after shows no difference.
2036 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2038 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
2039 sources in dependencies directly.
2041 This was the only instance of "library" in core config. A bug was
2042 reported that -fno-stack-protector wasn't passed to it. Instead of
2043 figuring out why it failed just remove this construction used
2046 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2048 * grub-core/osdep/unix/password.c (grub_password_get): Check that
2051 2013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
2053 * docs/grub.texi (ls): Fix command description in case of a device name
2056 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2058 Eliminate variable length arrays in grub_vsnprintf_real.
2060 A bit tricky because this function has to continue to work without
2061 heap for short strings. Fixing prealloc to 32 arguments is reasonable
2062 but make all stack references use 32-bit offset rather than 8-bit one.
2063 So split va_args preparsing to separate function and put the prealloc
2066 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2068 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
2069 Fixes build for windows.
2071 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2073 * gentpl.py: Don't generate platform-dependent conditionals for
2074 platform-independent targets.
2076 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2078 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
2079 references to mdadm from otherwise generic code.
2080 (grub_util_exec_pipe): Likewise.
2081 (grub_util_exec_pipe_stderr): Likewise.
2082 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
2083 This function calls vgs, not mdadm; adjust variable names
2086 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2088 Generate Makefile.*.am directly from gentpl.py, eliminating the use
2089 of Autogen. The Autogen definitions files remain intact as they
2090 offer a useful abstraction.
2092 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2094 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
2095 into no-ops, and use it in programs that copy files but do not need
2096 to take special care to sync writes (grub-mknetdir, grub-rescue,
2099 2013-11-26 Colin Watson <cjwatson@ubuntu.com>
2101 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
2102 than hardcoding /usr/local/bin/xorriso.
2104 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2106 Add PCI command activation to all PCI drivers as required for coreboot
2107 and maybe some other firmwares.
2109 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2111 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
2112 and non-Apple variants of efiemu compile.
2114 2013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
2116 * configure.ac: Add explicit check for linking format of
2117 efiemu64; save it as EFIEMU64_LINK_FORMAT.
2118 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
2119 hardcoding linking format.
2121 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2123 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
2126 2013-11-25 Colin Watson <cjwatson@ubuntu.com>
2127 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2129 Add a --locale-directory option to grub-install and related tools.
2131 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
2132 --locale-directory option.
2133 (enum grub_install_options): Add
2134 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2135 * util/grub-install-common.c (grub_install_help_filter): Handle
2136 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2137 (grub_install_parse): Likewise.
2138 (get_localedir): New function to check for a user-provided option
2139 before trying grub_util_get_localedir.
2140 (copy_locales): Use get_localedir rather than
2141 grub_util_get_localedir. Handle differing locale directory layouts.
2142 (grub_install_copy_files): Likewise.
2144 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2146 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
2147 Don't rely on PATH_MAX.
2149 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2151 * grub-core/genmoddep.awk: Use more portable && rather than and.
2153 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2155 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
2156 an object after data. While it doesn't seem right solution, it
2157 works well enough and OSX isn't main compilation platform.
2159 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2161 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
2162 While it doesn't seem right solution, it works well enough and
2163 OSX isn't main compilation platform.
2165 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2167 * configure.ac: Add -static to LDFLAGS when using apple linker to
2168 prevent it from pulling in dynamic linker.
2170 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2172 Apple assembly doesn't handle symbol arithmetic well. So define an
2173 offset symbol in boot.S and use it.
2175 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2177 Apple assembly doesn't handle symbol arithmetic well. So instead
2178 of getting addres of kernel_sector + 4 define kernel_sector_high.
2179 It also makes code more readable.
2181 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2183 With Apple assembly in .macro environvemnt you have to use $$ instead
2184 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
2185 to $$x on Apple and to $x on everything else.
2187 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2189 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
2192 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2194 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
2195 and non-Apple. This instruction is shorter and faster,
2196 so no reason not to use it on both.
2198 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2200 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
2201 .text when compiling for Apple.
2203 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2205 * grub-core/term/arc/console.c: Add missing cast to silence warning.
2207 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2209 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
2210 %dx restore the probe worked on non-existant drive. Reorganize the
2211 code a little bit to free 2 bytes necessary for push/pop.
2213 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2215 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2216 Add missing cast to silence warning.
2218 2013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
2220 * util/grub-install.c (update_nvram): Support --no-nvram flag
2223 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2225 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
2227 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2229 * util/garbage-gen.c: Add missing include of sys/time.h.
2231 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2233 Don't add -mflush-func if it's not supported by compiler.
2235 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2237 Move common BIOS/coreboot memory map declarations to
2238 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
2240 2013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
2242 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
2244 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2246 * INSTALL: Document why older clang versions aren't appropriate.
2248 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2250 * INSTALL: Document about clang for mips.
2252 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2254 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
2257 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2259 Add *-xen to the list of grub-install-common platforms.
2261 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2263 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
2266 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2268 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
2270 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2272 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
2273 with -mcmodel=large.
2275 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2277 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
2278 range-checking for 32-bit quantities.
2280 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2282 * configure.ac: Compile with -fPIC when compiling with clang on
2285 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2287 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
2288 when compiling with clang.
2290 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2292 clang emits calls to abort () under some unknown conditions.
2293 Export abort () when compiling with clang.
2295 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2297 * docs/grub-dev.texi: Document stack and heap sizes.
2299 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2301 * include/grub/i386/pc/memory.h: Decrease
2302 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
2303 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
2304 The binary doesn't change (checked). It's more to better reflect actual
2307 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2309 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
2310 at compile time that enough of scratch size is available.
2312 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2314 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
2315 Previously we misaligned stack by 8 in startup.S and compensated
2316 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
2317 right behaviour is to align stack in startup.S and keep it aligned
2318 in callwrap.S. startup.S part was committed few commits before. This
2319 takes care of callwrap.S.
2320 Reported by: Gary Lin.
2322 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2324 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
2325 .data and .bss. May happen if compiler and assembly use different
2328 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2330 On MIPS handle got16 relocations to local symbols in an ABI-compliant
2333 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2335 Add support for a new magic symbol _gp_disp on mips to handle PIC
2338 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2340 Use $t9 for indirect calls from asm to C as PIC ABI requires.
2342 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2344 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
2345 when rest of GRUB is compiled for hisher stepping. Instead use
2346 .set mips3/.set mips1 around cache and sync opcodes.
2348 2013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
2350 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
2351 do essentially the same thing, do it in similar way.
2353 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2355 * util/grub-mkrescue.c (main): If a source directory is not
2356 specified, read platform-specific files from subdirectories of
2357 pkglibdir, not pkgdatadir.
2359 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2361 * grub-core/normal/progress.c: Remove unused file.
2363 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2365 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
2368 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2370 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
2373 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2375 * coreboot.cfg: Add missing file.
2377 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2379 * Makefile.am: Allow STRIP to be empty when creating windowszip.
2381 2013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
2383 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
2384 selectively skipping systems.
2386 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2388 * Makefile.util.def (grub-mkimage): Add
2389 grub-core/osdep/aros/config.c to extra_dist.
2390 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
2391 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
2392 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
2393 grub-core/gnulib-no-gets.diff.
2395 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2397 Add automated filesystem checking based on scripts I've used now for
2398 quite some time locally. Most of the test require root so they are
2399 skipped when run without necessarry privelegies.
2401 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2403 * util/grub-install.c (main): Adjust info messages to match
2404 installed paths of grub-bios-setup and grub-sparc64-setup.
2406 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2408 * util/grub-install-common.c (copy_locales): Consistently use
2409 grub_util_get_localedir () rather than LOCALEDIR.
2410 (grub_install_copy_files): Likewise.
2412 2013-11-19 Josh Triplett <josh@joshtriplett.org>
2414 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
2415 16-byte boundary, as required by the x86-64 ABI, before calling
2416 grub_main. In some cases, GCC emits code that assumes this
2417 alignment, which crashes if not aligned. The EFI firmware is also
2418 entitled to assume that stack alignment without checking.
2420 2013-11-18 Josh Triplett <josh@joshtriplett.org>
2422 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
2423 4k page boundaries as expected by firmware rather than 1k
2425 (grub_mmap_malign_and_register): Likewise.
2427 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2429 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
2430 fragmentation 512M is enough.
2432 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2434 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
2435 pointer to 32K. This is the size of cache element which is the most
2436 common allocation >1K. This way the pointer is always around blocks
2437 of 32K and so we keep performance while decreasing fragmentation.
2439 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2441 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
2442 current memory when allocating large chunks. This significantly
2443 decreases memory fragmentation.
2445 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2447 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
2449 * tests/lzocompress_test.in: Skip if lzop is not installed.
2450 * tests/xzcompress_test.in: Skip if xz is not installed.
2452 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2454 * util/grub-mkrescue.c (main): Fix typo.
2456 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2458 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
2459 clock frequency to 200 MHz,
2461 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2463 * tests/util/grub-shell.in: Increase console size to 1024x1024.
2465 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2467 * Makefile.am (default_payload.elf): Add pata to loaded modules.
2468 Load config file from (cbfsdisk)/etc/grub.cfg.
2470 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2472 * util/grub-install-common.c (grub_install_copy_files): Fix module
2473 destination directory.
2475 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2477 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
2478 files have not been built.
2480 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2482 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
2483 Handle errors from mkstemp.
2484 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
2486 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2488 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
2489 on primary master on pseries.
2491 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2493 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
2494 already loaded. This saves memory needed for tests,
2496 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2498 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
2501 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2503 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
2506 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2508 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
2509 master since with some combinations of qemu and firmware only primary
2510 IDE channel is available.
2512 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2514 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
2515 low-memory platforms where we don't have enough memory for them.
2516 * grub-core/tests/videotest_checksum.c: Likewise.
2518 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2520 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
2521 already loaded. This saves memory needed for tests,
2523 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2525 Fix handling of install lists.
2527 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2529 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
2531 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2533 On i386-ieee1275 we run in paged mode. So we need to explicitly map
2534 the devices before accessing them.
2536 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2538 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
2541 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2543 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
2545 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2547 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
2548 (grub_file_close): Free file->name.
2550 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2552 * grub-core/commands/verify.c (free_pk): Plug memory leak.
2553 (grub_load_public_key): Likewise.
2554 (grub_verify_signature_real): Likewise.
2555 (grub_cmd_verify_signature): Likewise.
2557 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2559 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
2562 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2564 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
2565 (grub_longjmp): Restore r31.
2566 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
2568 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2570 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
2571 modules to be in line with make_image_abs.
2573 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2575 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
2577 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
2579 2013-11-17 Ian Campbell <ijc@hellion.org.uk>
2581 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
2583 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2585 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
2586 to leave some memory to firmware.
2588 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2590 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
2591 of loading gfxterm as gfxterm is embed in kernel on some platforms.
2592 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
2595 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2597 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
2598 now needs full arguments.
2600 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2602 * util/grub-mkrescue.c (main): Add trailing \n in
2603 .disk_label.contentDetails to be in line with previous shell script.
2605 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2607 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
2609 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2611 * util/grub-install-common.c (grub_install_parse): Recognize
2612 --compress=none like shell script did.
2614 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2616 * include/grub/misc.h: Replace check for __sparc64__ with one for
2617 __sparc__ as __sparc64__ isn't actually defined.
2619 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2621 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
2622 counterpart of fixing the naming of escc ports.
2624 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2626 * util/grub-install-common.c (platforms): Fix the order of entries and
2627 remove useless field val.
2629 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2631 * util/grub-install.c: Add new option --no-bootsector to skip
2632 installing of bootsector. Accept --grub-setup=/bin/true as
2633 backwards-compatible synonym.
2635 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2637 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
2638 order of qsort arguments (number of elements vs. element size).
2640 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2642 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
2643 the function of these files exceeds what can be sanely handled in shell
2644 in posix-comaptible way. Also writing it in C extends the functionality
2645 to non-UNIX-like OS and minimal environments.
2647 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2649 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
2650 compiling to thumb2.
2651 * grub-core/kern/arm/cache_armv7.S: Likewise.
2652 * grub-core/lib/arm/setjmp.S: Likewise.
2654 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2656 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
2657 in grub_uboot_syscall
2659 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2661 Decrease stack usage in lexer.
2663 We have only 92K of stack and using over 4K per frame is wasteful
2665 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
2666 as macros so that compiler would remove useless structure on stack.
2667 Better solution would be to fix flex not to put this structure on
2668 the stack but flex is external program.
2670 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2672 Decrease stack usage in signature verification.
2674 We have only 92K of stack and using over 4K per frame is wasteful
2676 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
2678 (grub_verify_signature_real): Likewise.
2680 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2682 Decrease stack usage in mdraid 0.9x.
2684 We have only 92K of stack and using over 4K per frame is wasteful
2686 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
2689 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2691 Decrease stack usage in BtrFS.
2693 We have only 92K of stack and using over 4K per frame is wasteful
2695 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
2698 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2700 Decrease stack usage in JFS.
2702 We have only 92K of stack and using over 4K per frame is wasteful
2704 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
2705 stack. Note: this function is recursive.
2706 (grub_jfs_read_inode): Read only part we care about.
2708 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2710 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
2713 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2715 * configure.ac: Restore -nostdlib for libgcc symbols tests.
2717 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2719 * docs/grub.texi (Environment): Document cmdpath.
2721 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2723 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2724 Remove "unused" attribute from arguments, they are used.
2726 2013-11-15 Colin Watson <cjwatson@debian.org>
2728 * .gitignore: Only ignore grub-mk* at the top level.
2730 2013-11-15 Colin Watson <cjwatson@ubuntu.com>
2732 * util/grub-reboot.in (usage): Fix a typo.
2734 2013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2736 Replace libgcc version of ctz with our own.
2738 On upcoming arm64 port libgcc ctz* are not usable in standalone
2739 environment. Since we need ctz* for this case and implementation is
2740 in C we may as well use it on all concerned platforms.
2742 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2744 * configure.ac: Probe for linking format rather than guessing it based
2747 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2749 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
2750 "1" prior to handoff.
2752 Reported by: M A Young.
2754 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2756 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
2759 Reported by: M A Young.
2761 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2763 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
2764 compilation on NetBSD.
2766 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2768 * acinclude.m4: Don't add -P on initial nm test.
2770 Note: even though this patch postdates Andrey's it bears 14 Nov as
2771 date due to timezone difference.
2773 2013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2775 * grub-core/Makefile.core.def (signature_test): Add missing
2778 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2780 * util/grub-install_header: Set localedir here, since this file is
2782 * util/grub-install.in: Remove setting of localedir.
2783 * util/grub-mkrescue.in: Likewise.
2785 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2787 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2789 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2791 * configure.ac: Move nm checks to the end.
2792 Call grub_PROG_NM_WORKS.
2793 * acinclude.m4: New check grub_PROG_NM_WORKS.
2794 Use $TARGET_CFLAGS -c when compiling test binary.
2796 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2798 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2801 2013-11-14 Matthew Garrett <mjg@redhat.com>
2803 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2804 cmdpath to firmware directory.
2806 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2808 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2809 at the start of second iteration.
2811 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2813 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2815 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2817 * Makefile.am (default_payload.elf): New target for easier coreboot
2820 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2822 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2823 clang (not necessarry with -no-integrated-as).
2824 * include/grub/symbol.h [__arm__]: Likewise.
2826 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2828 * configure.ac: Use -no-integrated-as on arm with clang.
2829 * INSTALL: Mention ARM compilation with clang.
2831 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2833 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2836 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2838 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2839 code for indirect block handling.
2841 Saves 185 bytes on compressed image.
2843 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2847 * Makefile.am: Remove build-grub-* in make clean.
2849 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2851 New files to gitignore.
2853 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
2854 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
2856 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2858 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
2860 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2862 * .gitignore: fix rules for .dep* and add *.a post git migration
2864 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2866 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
2869 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2871 * grub-core/kern/misc.c: Don't redirect divisions in the
2873 * include/grub/misc.h: Likewise.
2875 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2877 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
2878 systems that require checking the return value of write.
2880 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2882 * util/grub-install.in (efi_quiet): Fix inverted logic: make
2883 efibootmgr quiet when --debug is not used, rather than when it is.
2885 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2887 * gentpl.py (define_macro_for_platform_dependencies): Remove
2888 first (and thus unused) of two definitions for this function.
2889 (platform_dependencies): Likewise.
2891 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2893 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
2894 functions, we only need to check this for the target, not the host.
2895 * configure.ac (grub_apple_cc): Likewise.
2897 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2899 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
2900 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
2901 asm to stay in arm even if surrounding is thumb.
2903 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2905 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
2906 helper functions are needed for thumb.
2908 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2910 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
2911 level / 3 division explicitly unsigned. Saves few bytes.
2913 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2915 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
2917 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2919 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
2922 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2924 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
2925 grub_uboot_boot_data to asm part.
2927 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2929 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
2931 (grub_uboot_syscall): Save/restore r9 and align stack.
2933 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2935 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
2937 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2939 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
2940 occurencies with END.
2942 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2944 * util/grub-editenv.c (help_filter, argp): Document how to delete
2945 the whole environment block.
2946 Reported by Dan Jacobson. Fixes Debian bug #726265.
2948 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2950 * docs/grub.texi (Internationalisation, Supported kernels): Fix
2953 2013-11-13 Josh Triplett <josh@joshtriplett.org>
2955 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
2956 increment/decrement.
2958 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2960 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
2961 compiling with clang.
2963 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2965 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
2968 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2970 Redirect all divisions to grub_divmod64.
2972 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2974 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
2976 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2978 Add missing includes of loader.h.
2980 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2982 * configure.ac: Allow disabling themes.
2984 2013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
2986 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
2988 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2990 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
2991 until it becomes operational.
2993 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2995 * grub-core/Makefile.core.def (legacy_password_test): Disable
2996 on platforms where no legacycfg is compiled.
2997 * grub-core/tests/lib/functional_test.c: Tolerate failure to
2998 load legacy_password_test.
3000 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3002 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
3004 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3006 * grub-core/efiemu/prepare.c: Remove variable length arrays.
3008 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3010 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
3011 strict-aliasing warning.
3012 (fsync): Silence cast warning.
3014 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3016 * grub-core/commands/verify.c: Remove variable length arrays.
3017 Load gcry_dsa/gcry_rsa automatically.
3019 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3021 * grub-core/tests/signature_test.c: New test.
3023 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3025 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
3028 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3030 * grub-core/tests/legacy_password_test.c (vectors): Make static.
3031 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
3033 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3035 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
3037 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3039 * grub-core/fs/proc.c: Allow \0 in proc files.
3041 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3043 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
3045 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3047 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
3049 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3051 * grub-core/fs/ext2.c: Remove variable length arrays.
3053 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3055 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
3058 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3060 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
3061 * grub-core/disk/cryptodisk.c: Likewise.
3062 * grub-core/disk/geli.c: Likewise.
3063 * grub-core/disk/luks.c: Likewise.
3065 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3067 * grub-core/tests/legacy_password_test.c: New test.
3068 * grub-core/commands/legacycfg.c: Remove variable length arrays.
3070 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3072 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
3074 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3076 * grub-core/tests/pbkdf2_test.c: New test.
3078 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3080 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
3082 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3084 * grub-core/io/lzopio.c: Remove variable length arrays.
3086 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3088 * include/grub/crypto.h: Add maximums on hash size and cipher block
3091 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3093 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
3095 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3097 * grub-core/tests/xnu_uuid_test.c: New test.
3099 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3101 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
3104 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3106 * grub-core/commands/hashsum.c: Remove variable length arrays.
3108 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3110 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
3112 * tests/grub_func_test.in: Increase memory allocation.
3114 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3116 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
3117 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
3120 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3122 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
3123 (grub_util_get_fd_size_os): ...this.
3124 (grub_hostdisk_flush_initial_buffer): New empty function.
3126 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3128 * grub-core/gensyminfo.sh.in: Handle the case of portable output
3129 without --defined-only.
3131 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3133 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
3134 rip-relative addressing in prologue.
3136 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3138 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
3139 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
3141 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3143 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
3144 Add missing semicolon.
3146 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3148 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
3150 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3152 * configure.ac: Check for lzma.h for enabling liblzma and allow
3155 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3157 Add missing includes of loader.h.
3159 2013-11-11 Fam Zheng <famcool@gmail.com>
3161 * util/grub.d/30_os-prober.in: Add minix entry.
3163 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3165 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
3166 right buffer for temporary load.
3168 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3170 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
3172 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3174 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
3177 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3179 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
3181 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
3183 (LzmaDec_InitDicAndState): Make static.
3185 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3187 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
3189 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3191 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
3193 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
3195 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3197 * docs/grub-dev.texi: Replace bzr references with git ones.
3199 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3201 * docs/grub.texi (Simple configuration): Remove reference to
3202 grub-reboot from saved default entry description - grub-default
3203 does not use it anymore.
3205 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3207 * configure.ac: Make efiemu test cflags match the cflags efiemu is
3210 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3212 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
3214 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3216 Fix grub_machine_fini bitrot.
3218 Reported by: Glenn Washburn.
3220 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3222 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
3224 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3226 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
3228 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
3231 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3233 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
3234 Add -march=core2 when testing compile of efiemu64.
3236 Thanks Andrey Borzenkov for spotting this.
3238 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3240 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
3241 XEN PV environment and load kernels.
3243 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3245 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
3246 * grub-core/loader/multiboot_mbi2.c: Likewise.
3248 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3250 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
3253 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3255 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
3257 Tested by: Denis 'GNUtoo' Carikli.
3259 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3261 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
3263 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3265 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
3266 Use to get rounded angle rather than truncated.
3268 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3270 * grub-core/term/serial.c: Add option for enabling/disabling
3271 RTS/CTS flow control.
3273 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3275 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
3278 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3280 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
3281 Use grub_fatal rather than divide by zero.
3282 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
3284 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3286 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
3288 (grub_fixed_fsf_divide): Likewise.
3290 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3292 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
3293 division by-zero and senseless negative divisions.
3295 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3297 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
3298 division by-zero and senseless negative divisions.
3299 (circprog_set_property): Don't accept negative num_ticks.
3301 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3303 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
3304 division by-zero and senseless negative divisions.
3306 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3308 * configure.ac: Use elf_*_fbsd on kfreebsd.
3310 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3312 * grub-core/tests/div_test.c: New test.
3314 2013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3316 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
3317 * grub-core/gfxmenu/gui_canvas.c: Likewise.
3318 * grub-core/gfxmenu/view.c: Likewise.
3319 * grub-core/video/fb/video_fb.c: Introduce new functions:
3320 grub_video_set_area_status, grub_video_get_area_status,
3321 grub_video_set_region, grub_video_get_region.
3322 * grub-core/video/bochs.c: Likewise.
3323 * grub-core/video/capture.c: Likewise.
3324 * grub-core/video/video.c: Likewise.
3325 * grub-core/video/cirrus.c: Likewise.
3326 * grub-core/video/efi_gop.c: Likewise.
3327 * grub-core/video/efi_uga.c: Likewise.
3328 * grub-core/video/emu/sdl.c: Likewise.
3329 * grub-core/video/radeon_fuloong2e.c: Likewise.
3330 * grub-core/video/sis315pro.c: Likewise.
3331 * grub-core/video/sm712.c: Likewise.
3332 * grub-core/video/i386/pc/vbe.c: Likewise.
3333 * grub-core/video/i386/pc/vga.c: Likewise.
3334 * grub-core/video/ieee1275.c: Likewise.
3335 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
3336 * include/grub/video.h: Likewise.
3337 * include/grub/video_fb.h: Likewise.
3338 * include/grub/fbfill.h: Updated render_target structure.
3339 grub_video_rect_t viewport, region, area
3340 int area_offset_x, area_offset_y, area_enabled
3341 * include/grub/gui.h: New helper function
3342 grub_video_bounds_inside_region.
3343 * docs/grub-dev.texi: Added information about new functions.
3345 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3347 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
3350 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3352 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
3354 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
3356 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3358 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
3359 simple division on arm and ia64.
3361 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3363 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
3366 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3368 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
3370 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3372 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
3373 prefix symbol, not @.
3375 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3377 * INSTALL: Add note about older gcc and clang.
3379 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3381 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
3383 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3385 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
3386 NULL pointer dereference.
3388 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3390 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
3393 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3395 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
3398 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3400 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
3402 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
3403 * grub-core/disk/geli.c (ascii2hex): Likewise.
3405 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3407 * configure.ac: Run linker tests without -Werror.
3408 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
3409 Change all occurences of -static-libgcc resp -lgcc to
3410 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
3412 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3414 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
3416 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3418 Allow compiling with clang (not really supported though).
3420 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
3422 * configure.ac: Add -no-integrated-as when using clangfor asm files.
3423 Add -mrtd -mregparm=3 on i386 when not using clang.
3424 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
3426 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3428 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
3430 * grub-core/lib/reed_solomon.c: Likewise.
3431 * include/grub/i386/gdb.h: Likewise.
3432 * include/grub/i386/pc/int.h: Likewise.
3433 * include/grub/i386/pc/pxe.h: Likewise.
3434 * include/grub/ieee1275/ieee1275.h: Likewise.
3436 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3438 Import libgcrypt 1.5.3.
3440 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3442 * configure.ac: Don't add -Wcast-align on x86.
3444 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3446 * configure.ac: Add -freg-struct-return on all platforms that
3449 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3451 * acinclude.m4: Use -Werror on parameter tests.
3452 * configure.ac: Likewise.
3454 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3456 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
3458 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3460 * configure.ac: Check that -malign-loops works rather than assuming that
3461 either -falign-loops or -malign-loops work.
3463 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3465 * configure.ac: Remove -fnested-functions. We don't need it anymore.
3467 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3469 * configure.ac: Prevent cflags leaking to subsequent tests by always
3470 resetting cflags to target_cflags in target tests.
3472 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3474 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
3477 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3479 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
3481 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3483 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
3485 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3487 * grub-core/normal/cmdline.c (grub_cmdline_get):
3488 Remove nested functions.
3490 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3492 * tests/test_sha512sum.in: Make it work on emu.
3494 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3496 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
3498 (grub_bidi_line_logical_to_visual): Likewise.
3500 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3502 Remove vestiges of -Wunsafe-loop-optimisations.
3504 * conf/Makefile.common (CFLAGS_GNULIB): Remove
3505 -Wno-unsafe-loop-optimisations.
3506 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
3508 * grub-core/io/gzio.c: Likewise.
3509 * grub-core/script/parser.y: Likewise.
3510 * grub-core/script/yylex.l: Likewise.
3511 * util/grub-mkfont.c: Likewise.
3513 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3515 * util/grub-mkfont.c (process_cursive): Remove nested function.
3517 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3519 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
3520 (grub_boot_time): Likewise.
3522 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3524 * include/grub/symbol.h (FUNCTION): Use @function rather than
3526 (VARIABLE): Likewise.
3528 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3530 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
3532 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3534 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
3535 (parse_dhcp_vendor): Likewise.
3537 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3539 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
3541 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3543 * grub-core/gettext/gettext.c (main_context), (secondary_context):
3544 Define after defining type and not before.
3546 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3548 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
3550 (grub_gcm_decrypt): Likewise.
3551 (algo_decrypt): Likewise.
3552 (grub_zfs_decrypt_real): Transform error type.
3554 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3556 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
3558 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3560 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
3561 (grub_usbms_cbi_reset): Likewise.
3562 (grub_usbms_bo_reset): Likewise.
3563 (grub_usbms_reset): Likewise.
3564 (grub_usbms_attach): Likewise.
3565 (grub_usbms_transfer_cbi): Likewise.
3567 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3569 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
3570 "checksum = checksum;".
3572 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3574 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
3577 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3579 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
3582 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3584 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
3586 (grub_ehci_fini_hw): Likewise.
3587 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
3589 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3591 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
3592 return grub_usb_err_t for cosistency. All users updated.
3594 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3596 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
3597 assigning to itself.
3599 2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
3600 2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3602 Issue separate DNS queries for ipv4 and ipv6
3604 Adding multiple questions on a single DNS query is not supportted by
3605 most DNS servers. This patch issues two separate DNS queries
3606 sequentially for ipv4 and then for ipv6.
3608 Fixes: https://savannah.gnu.org/bugs/?39710
3610 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
3611 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
3612 * (grub_net_dns_lookup): Now using separated dns packages.
3613 * (grub_cmd_nslookup): Add error condition.
3614 * (grub_cmd_list_dns): Print DNS option.
3615 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
3616 --prefer-ipv4, and --prefer-ipv6.
3617 * include/grub/net.h (grub_dns_option_t): New enum.
3618 * (grub_net_network_level_address): option added.
3620 2013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
3622 * grub-core/video/fb/video_fb.c: Merge two blit functions
3625 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3627 * grub-core/term/terminfo.c: Add sequences for home and end.
3629 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3631 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
3634 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3636 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
3639 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3641 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
3642 e-mail by Per Öberg.
3644 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3646 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
3649 2013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
3651 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
3653 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
3655 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3657 * docs/grub.texi: Document usage of menuentry id.
3659 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3661 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
3663 2013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
3665 * grub-core/commands/i386/nthibr.c: New command.
3667 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3669 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
3671 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3673 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
3676 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3678 Support GRUB_DISABLE_SUBMENU config.
3680 Inspired by patch from Prarit Bhargava.
3682 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3684 * docs/grub.texi: Mention RSA support.
3686 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3688 * grub-core/commands/verify.c: Add RSA support.
3690 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3692 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
3693 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
3694 device is known to be ATAPI.
3696 2013-11-03 Mike Frysinger <vapier>
3698 * configure.ac: Don't add target-prefix.
3700 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3702 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
3705 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3707 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
3708 if language is English.
3710 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3712 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
3714 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3716 * configure.ac: Don't add -m32/-m64 on emu.
3720 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
3721 broken linux headers.
3723 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3725 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
3727 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3729 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
3730 Reed-Solomon recovery if more than half of redundancy info is 0.
3732 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3734 * util/grub-mount.c: Handle symlinks to directories.
3736 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3738 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
3739 find_file recursively for symlink.
3741 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3743 * tests/util/grub-shell.in: Copy themes.
3745 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3747 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
3749 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3751 * configure.ac: Use 0x8000 for address instead of 8000.
3753 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3755 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
3758 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3760 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
3763 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3765 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
3767 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3769 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
3770 file_progress_read_hook.
3771 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3773 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3775 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3778 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3780 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3782 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3784 Rewrite blocklist functions in order to get progress when
3785 reading large extents and decrease amount of blocklist hook calls.
3787 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3789 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3792 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3794 Support --base-clock for serial command to handle weird cards with
3795 non-standard base clock.
3797 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3799 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3801 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3802 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3803 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3804 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3805 + strcpy rather than strncpy.
3807 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3809 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3810 (check_pool_label): Likewise. Fixes overflow.
3811 (nvlist_find_value): Fix comparison.
3813 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3815 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3816 more appropriate functions.
3818 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3820 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3823 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3825 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3827 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3829 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3832 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3834 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3836 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3838 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3839 (initialize_tables): reset tl and td to NULL after freeing.
3841 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3843 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3845 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3847 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
3850 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3852 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
3854 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3856 * grub-core/loader/multiboot.c: Add support for multiboot kernels
3859 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3861 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
3862 a page in protected space.
3864 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3866 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
3867 allocate space for zero-sized modules.
3869 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3871 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
3873 2013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
3875 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
3877 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3879 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
3880 safeguards. Fixes a crash with i386/pc/console.c.
3882 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3884 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
3885 and grub_hostfs_init.
3887 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3889 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
3890 windows method on other platforms without good stat as well.
3892 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3894 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
3896 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3898 Make / in btrfs refer to real root, not the default volume.
3899 Modify mkrelpath to work even if device is mounted with subvolid option.
3901 2013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
3903 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
3905 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
3908 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3910 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
3913 2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
3915 * docs/autoiso.cfg: New file.
3917 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3919 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
3920 COND_GRUB_PE2ELF conditions.
3922 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3924 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
3925 "vnd", "rd" and "fd" disks.
3927 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3929 Move grub_disk_write out of kernel into disk.mod.
3931 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3933 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
3936 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3938 * grub-core/kern/misc.c (grub_abort): Make static
3940 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3942 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
3943 transform invalid unicode codepoints.
3945 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3947 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3950 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3952 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
3954 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3956 Consolidate cpuid code.
3958 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3960 Move cpuid code to cpuid.h and TSC code to tsc.c.
3962 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3964 * util/grub.d/00_header.in: Don't use LANG if it's not set.
3966 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3968 * util/grub-mkconfig.in: Replace $0 with $self.
3969 * util/grub-reboot.in: Likewise.
3970 * util/grub-set-default.in: Likewise.
3972 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3974 * docs/osdetect.cfg: New file.
3976 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3978 * tests/util/grub-shell.in: Add new --debug option.
3980 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3982 * tests/test_unset.in: New test.
3984 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3986 * tests/test_sha512sum.in: New test.
3988 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3990 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
3991 * include/grub/misc.h: Remove strncat.
3992 * grub-core/lib/posix_wrap/string.h: Likewise.
3994 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3996 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
3997 Try to handle more than 0xFFFF packets.
3998 Reported by: Bernhard Übelacker <bernhardu>.
3999 He also spotted few overflows in first version of this patch.
4001 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4003 * tests/date_unit_test.c: New test.
4005 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4007 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
4008 of first three years after start of validity of unixtime.
4010 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4012 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
4013 division as the one making more sense.
4014 (update_screen): Likewise.
4015 (complete): Likewise.
4017 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4019 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
4021 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4023 Make char and string width grub_size_t rather than grub_ssize_t.
4025 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4027 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
4029 (grub_history_replace): Likewise.
4031 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4033 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
4036 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4038 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
4041 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4043 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
4044 Use unsigned divisions rather than signed variants.
4046 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4048 * grub-core/video/readers/png.c (grub_png_convert_image): Use
4049 unsigned arithmetics.
4052 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4054 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
4056 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4058 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
4059 rather than signed one.
4060 (recovery): Likewise.
4062 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4064 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
4066 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4068 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
4071 2013-10-25 Jon McCune <jonmccune@google.com>
4073 * docs/grub.texi: Cleanup security documentation around signatures.
4075 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4077 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
4079 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4081 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
4084 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4086 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
4087 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
4088 functions when compiling for kernel.
4090 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4092 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
4093 unsigned long long when using %llu.
4095 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4097 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
4098 terminal after updating progress.
4100 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4102 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
4103 argument. We don't disable Gate A20 in this code.
4105 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4107 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
4108 Conceptually based on change in branch "vbe-on-coreboot".
4110 2013-10-24 Robert Millan <rmh@gnu.org>
4112 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
4113 numeric constants with their symbolic equivalent.
4114 Taken from branch "vbe-on-coreboot".
4116 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4118 * docs/grub.texi: Fix ordering and use pxref rather than xref.
4120 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4122 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
4123 divmod64 for offset division.
4125 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4127 Rename .bzrignore to .gitignore. Add "*.o" rule.
4129 * .bzrignore: Renamed to...
4130 * .gitignore: ...this.
4132 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4134 Add new progress module that displays the load progress of files.
4136 * grub-core/lib/progress.c: New file.
4137 * grub-core/Makefile.core.def (progress): New module.
4138 * grub-core/kern/file.c (grub_file_open): File name added.
4139 * (grub_file_read): Progress hook added.
4140 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
4141 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
4142 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
4143 * include/grub/file.h (struct grub_file): Add progress module members.
4144 * include/grub/term.h (struct grub_term_output): Likewise.
4145 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
4146 Terminal velocity added.
4147 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
4148 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
4149 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
4150 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
4151 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
4152 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
4153 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
4154 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
4155 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
4156 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
4157 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
4158 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
4160 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4162 Verify signatures of signatures unless --skip-sig is specified.
4164 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4166 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
4169 Saves 70 bytes on compressed image.
4171 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4173 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
4176 Saves 10 bytes on compressed image.
4178 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4180 * grub-core/kern/misc.c (grub_isprint): Move to ...
4181 * include/grub/misc.h (grub_isprint): ... here. Make inline.
4183 Saves 20 bytes on compressed image due to remving exporting.
4185 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4187 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
4189 Saves 5 bytes on compressed image.
4191 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4193 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
4196 Saves 379 bytes on compressed image.
4198 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4200 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
4202 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4204 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
4206 Saves 40 bytes on compressed image.
4208 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4210 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
4211 mask rather than 64-bit type.
4213 Saves 20 bytes on compressed image.
4215 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4217 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
4218 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
4220 Saves 273 bytes on compressed image.
4222 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4224 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
4225 variable length arrays.
4227 Saves 50 bytes on compressed image.
4229 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4231 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
4233 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4235 * grub-core/fs/ufs.c: Remove variable length arrays.
4237 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4239 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
4241 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4243 * grub-core/fs/zfs.c: Remove variable length arrays.
4244 Reduces zfs.mod by 160 bytes (208 compressed).
4246 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4248 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
4250 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4252 * grub-core/net/arp.c: Remove variable length arrays.
4253 * grub-core/net/bootp.c: Likewise.
4254 * grub-core/net/dns.c: Likewise.
4255 * grub-core/net/icmp6.c: Likewise.
4256 * grub-core/net/net.c: Likewise.
4258 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4260 * grub-core/fs/ntfs.c: Remove variable length arrays.
4261 Increases ntfs.mod by 64 bytes (but decreases by 3 when
4264 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4266 * grub-core/fs/hfs.c: Remove variable length arrays.
4267 Reduces hfs.mod by 8 bytes (52 compressed).
4269 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4271 * grub-core/fs/udf.c: Remove variable length arrays.
4272 Increases udf.mod by 128 bytes (but decreases by 13 when
4275 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4277 * grub-core/fs/iso9660.c: Remove variable length arrays.
4278 Increases iso9660.mod by 200 bytes (but decreases by 79 when
4281 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4283 * grub-core/fs/nilfs2.c: Remove variable length arrays.
4284 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
4287 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4289 * grub-core/fs/xfs.c: Remove variable length arrays.
4290 Reduces xfs.mod by 40 bytes (43 compressed).
4292 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4294 * grub-core/fs/fshelp.c: Remove variable length arrays.
4295 Reduces fshelp.mod by 116 bytes (23 compressed).
4297 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4299 * grub-core/normal/completion.c: Remove variable length arrays.
4300 * grub-core/normal/menu_entry.c: Likewise.
4302 Reduces normal.mod by 496 bytes.
4304 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4306 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
4307 by 356 bytes (158 compressed).
4309 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4311 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
4312 by 364 bytes (169 compressed).
4314 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4316 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
4317 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
4318 * include/grub/types.h (grub_unaligned_uint64_t): New type.
4320 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4322 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
4323 bitmasks to small structures of size chosen to fit in registers.
4325 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4327 * conf/Makefile.common: Use -freg-struct-return on i386. This
4328 decreases code size and improves performance.
4330 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4332 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
4334 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4336 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
4338 Simplify expressions to save around 256 bytes in kernel.img.
4339 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
4341 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4343 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
4344 Use GRUB_UTIL_FD_O_* rather than O_*.
4346 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4348 Add haiku-specific functions.
4350 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4352 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
4354 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4356 Move stat () and device mode checking into OS-dependent files as
4357 long as performance doesn't suffer.
4359 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4361 Split make_system_path_relative_to_its_root into separate file
4362 relpath.c from getroot.c as it's common between unix and haiku
4363 but otherwise haiku doesn't use any functions from unix getroot.c.
4365 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4367 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
4369 (grub_util_is_special_file): Likewise.
4371 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4373 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
4374 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
4376 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4378 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
4379 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
4381 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4383 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
4384 (load_image): Likewise.
4386 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4388 * util/grub-render-label.c: Move backend part to ...
4389 * util/render-label.c: ... here.
4391 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4393 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
4394 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
4396 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4398 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
4400 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4402 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
4403 CD-ROM in case when it's declared as having subpartitions.
4405 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4407 Don't add -lm on haiku.
4409 * configure.ac: Define BUILD_LIBM to -lm on most platforms
4411 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
4414 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4416 * configure.ac: Use -melf_*_haiku as target on haiku.
4418 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4420 * Makefile.util.def: Add util/setup.c to extra_dist.
4422 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4424 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
4425 unknown types through.
4427 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4429 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
4430 (grub_util_check_char_device): Likewise.
4431 * include/grub/emu/getroot.h: Likewise.
4433 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4435 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
4436 memset rather than inline static function.
4438 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4440 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
4441 not doing embedded decompressor.
4443 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4445 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
4447 * grub-core/kern/disk.c: Likewise.
4448 * grub-core/kern/misc.c: Likewise.
4449 * include/grub/parser.h: Likewise.
4450 * include/grub/script_sh.h: Likewise.
4451 * include/grub/zfs/zfs.h: Likewise.
4453 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4455 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
4457 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4459 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
4460 defined before trying to use it.
4462 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4464 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
4467 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4469 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
4470 Use __unused__ rather than __used__ on gcc < 3.2.
4472 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4474 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
4476 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
4478 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4480 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
4482 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4484 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
4485 * include/grub/emu/misc.h: Likewise.
4487 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4489 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
4492 2013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
4494 * grub-core/tests/checksums.h: Regenerated due to progress bar
4495 get_minimal_size changes.
4497 2013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
4499 Added `tr' command support.
4501 * grub-core/commands/tr.c: New file.
4502 * grub-core/Makefile.core.def: Build rules for new module.
4504 * tests/grub_cmd_tr.in: New test.
4505 * Makefile.util.def: Build rules for new test.
4507 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4509 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
4511 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4513 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
4514 * docs/gurb.texi: Likewise.
4516 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4518 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
4519 Pixmap highlighted section with east and west slices was displayed
4520 incorrectly due to negative width of the central slice.
4522 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4524 * docs/grub.texi: Graphical options information update.
4525 Removed outdated. Updated current. Inserted missed.
4527 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4529 * docs/grub.texi: Mention few new platform-specific commands.
4531 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4533 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
4534 currently used so this doesn't really have any effect.
4535 Reported by: Douglas Ray <dougray>
4537 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4539 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
4540 compilation but prevents gcc from displaying messages in non-Latin
4542 * conf/Makefile.common: Likewise.
4544 2013-10-16 Hiroyuki YAMAMORI
4546 Handle Japanese special keys.
4547 Reported by: Hiroyuki YAMAMORI.
4548 Codes supplied by: Hiroyuki YAMAMORI.
4550 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4552 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
4554 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4556 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
4557 * docs/grub.texi: Likewise.
4559 2013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4561 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
4562 value in case of incomplete read.
4563 (grub_util_fd_write): Likewise.
4565 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4567 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
4569 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4571 * util/grub-editenv.c (create_envblk_file): More from here ...
4572 * util/editenv.c (grub_util_create_envblk_file): ... to here.
4574 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4576 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
4577 canonicalize file name before doing the rest.
4579 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4581 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
4584 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4586 Define grub_util_is_directory/regular/special_file and
4587 use OS-dependent versions rather than to rely on stat().
4589 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4591 * util/grub-mkimage.c: Move backend part to ...
4592 * util/mkimage.c: ... here.
4594 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4596 Allow compilation with mingw64 albeit with warnings due to lack of
4599 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
4600 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
4601 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
4602 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
4604 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
4606 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4608 Remove leftover references to some of the system headers.
4610 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4612 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
4615 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4617 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
4620 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4622 Split out blocklist retrieving from setup.c to
4623 grub-core/osdep/blocklist.c and add windows implementation since
4624 generic version doesn't work on NTFS on Windows due to aggressive
4627 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4629 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
4632 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4634 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
4635 Cut tailing newline. Remove arbitrary limitation. Always use
4636 grub_util_tchar_to_utf8.
4638 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4640 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
4641 * tests/printf_unit_test.c (printf_test): Add %% tests.
4642 Reported by: Paulo Flabiano Smorigo.
4644 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4646 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
4649 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4651 * configure.ac: Check for nvlist_lookup_string in nvpair since we
4652 use nvlist_lookup_string and don't use nvlist_print.
4654 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4656 Add wrappers around rename, unlink, mkdir, opendir, readdir and
4657 closedir to handle filename charset translation.
4659 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4661 * include/grub/emu/hostdisk.h: Move file operations to
4662 * include/grub/emu/hostfile.h: ... here.
4664 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4666 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
4669 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4671 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
4673 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4675 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
4676 and remove export.h.
4678 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4680 * grub-core/kern/emu/error.c: Removed.
4681 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
4682 explicitly as it's already in libgnu.a.
4684 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4686 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
4687 config-util.h include.
4689 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4691 Split emunet into platform-dependent and GRUB-binding parts. Keep
4692 platform-dependent part in kernel for easy access to OS functions.
4694 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4696 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
4699 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4701 * grub-core/osdep/windows/emuconsole.c: New file.
4703 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4705 * conf/Makefile.extra-dist: Add osdep/*/init.c
4707 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4709 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
4711 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4713 * util/grub-probe.c (probe): Separate different drives in hint-str
4714 by spaces and not newlines.
4715 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
4717 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4719 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4722 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4724 Pass-through unknown E820 types. It required reorganisation of mmap
4727 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4729 * Makefile.util.def: Add osdep/init.c to grub-mount files.
4731 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4733 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
4736 2013-10-14 qwertial <qwertial>
4738 * grub-core/gdb_grub.in: Fix overflow and wrong field.
4740 2013-10-14 Jon McCune <jonmccune@google.com>
4742 * docs/grub.texi: Document new signatures possibility.
4744 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4746 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
4748 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4750 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
4752 (grub_util_tchar_to_utf8): Likewise.
4754 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4756 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
4757 * grub-core/kern/emu/main.c: Add missing include.
4758 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
4759 Don't call grub_util_init_nls.
4760 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
4763 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4765 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
4768 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4770 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4772 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4774 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4776 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4778 Add a wrapper for fopen. On unix-like systems just pass-through. On
4779 windows use unicode version.
4781 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4783 Move set_program_name and init_nls to host_init. On windows
4784 fix in this fuction console and argument charset as well.
4786 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4788 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4789 GRUB_ENABLE_CRYPTODISK.
4791 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4792 GRUB_ENABLE_CRYPTODISK.
4793 * util/grub-mkconfig_lib.in: Likewise.
4795 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4797 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4799 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4801 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4802 error when enabling debug.
4804 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4806 * configure.ac: Use -melf_*_obsd on openbsd.
4808 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4810 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4812 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4814 * include/grub/misc.h: Use gnu_printf rather than printf as format
4815 template since our functions are independent of libc.
4817 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4819 * util/grub-setup.c (setup): Move copying of partition table as
4820 futher up as possible to avoid possible overwrite by floppy routines.
4822 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4824 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4826 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4828 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4829 * docs/grub.texi: Likewise.
4831 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4833 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4834 it's mostly unused. Move vestiges to the callers.
4836 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4838 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4839 version of salt and hash. Use grub_snprintf rather than snprintf.
4841 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4843 * docs/grub.texi: Fix problem with braces.
4845 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4847 * conf/Makefile.extra-dist: Fix extra-dist list.
4848 * grub-core/Makefile.core.def: Likewise.
4850 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4852 * docs/grub.texi: Document disk names used on Windows and AROS.
4854 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4856 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
4858 * grub-core/osdep/aros/hostdisk.c: Likewise.
4860 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4862 Avoid including hostfile.h when not necessarry as it pulls
4863 in OS-specific headers which may redefine generic names
4866 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4868 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
4869 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
4870 scrollbar_bottom_pad
4871 * docs/grub.texi: Likewise.
4873 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4875 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
4877 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4879 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
4881 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4883 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
4885 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
4888 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4890 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
4893 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4895 Move OS-specific driver configuration to grub_util_fd_open. This
4896 moves OS-dependent parts from kern/emu/hostdisk.c to
4897 grub-core/osdep/*/hostdisk.c.
4899 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4901 * util/grub-mkimage.c (generate_image): Use size_t instead of
4903 * util/grub-mkimagexx.c (locate_sections): Likewise.
4904 (load_image): Likewise.
4906 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4908 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
4910 (grub_util_write_image): Likewise.
4912 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4914 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
4915 get random when no RNG is available.
4916 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
4918 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4920 * include/grub/util/lvm.h: Removed.
4922 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4924 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
4925 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
4927 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4929 * grub-core/osdep/windows/sleep.c: Add missing config.h.
4931 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4933 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
4935 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4937 * grub-core/net/drivers/emu/emunet.c: Move to ..
4938 * grub-core/osdep/linux/emunet.c: ..here.
4940 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4942 * util/ieee1275/ofpath.c: Move to ...
4943 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
4944 * grub-core/osdep/basic/ofpath.c: ..here.
4946 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4948 Move password-querying (util-version) routines to grub-core/osdep.
4950 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4952 Move sleep routines to grub-core/osdep.
4954 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4956 Move OS-dependent files to grub-core/osdep and document it.
4958 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4960 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
4961 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
4963 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4965 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
4967 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4969 * util/misc.c: Remove leftover inclusion of malloc.h.
4971 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4973 * include/grub/setjmp.h: Remove leftover GRUBOF.
4975 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4977 * util/raid.c: Fold into ...
4978 * util/getroot_linux.c: ... here. Make all functions static.
4980 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4982 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
4983 macros to GRUB ones.
4985 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4987 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
4988 occasional bug. If there are too many boot entries or too low
4989 scrollbar height then we need to use another formula to calculate
4990 the position and size of the scrollbar thumb.
4992 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4994 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
4996 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4998 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
4999 * docs/grub.texi: Likewise.
5001 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5003 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
5006 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5008 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
5009 minimal width calculations.
5011 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5013 * docs/grub.texi: Update note on colors on emu console.
5015 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5017 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
5018 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
5019 it's FS and not GRUB limitation.
5021 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5023 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
5025 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5027 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
5029 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
5031 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
5032 kernels by version order.
5034 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5036 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
5038 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5040 Add AROS hostdisk and getroot routines.
5042 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5044 Make cryptodisk and diskfilter probe data retrievable programmatically
5045 and not just printable.
5047 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5049 Split random retrieving code into separate files.
5051 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5053 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
5056 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5058 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
5060 * grub-core/tests/fake_input.c: Likewise.
5061 * grub-core/tests/cmdline_cat_test.c: Likewise.
5063 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5065 * grub-core/video/capture.c: Do not do finalization when .fini
5066 is called as there is explicit capture_end.
5068 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5070 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
5071 changing windows to avoid crash.
5073 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5075 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
5077 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5079 * po/exclude.pot: Add several strings to exclude.
5081 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5083 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
5085 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5087 * autogen.sh: Add ./util/grub-gen-widthspec.c and
5088 ./util/grub-gen-asciih.c to exclude list.
5090 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5092 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
5093 and don't mark error strings for translation.
5095 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5097 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
5098 properly in case of missing block size.
5100 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5102 * grub-core/lib/arm/setjmp.S: Add missing license section.
5104 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5106 * po/swiss.sed: Add replacement for key names and for term computer.
5108 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
5110 * grub-core/gfxmenu/theme_loader.c: New global options for the
5111 theme background image handling. desktop-image-scale-method,
5112 desktop-image-h-align, desktop-image-v-align.
5113 * grub-core/gfxmenu/view.c: Likewise.
5114 * include/gfxmenu_view.h: Likewise.
5115 * include/bitmap_scale.h: Proportional scale functions introduced.
5116 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
5117 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
5118 cases of unexpected input variables for scale functions.
5119 * docs/grub.texi: Updated documentation for new options.
5121 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
5123 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
5125 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5127 * grub-core/tests/checksums.h: Corrected due to changes in
5128 bilinear interpolation function.
5130 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5132 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
5133 to eliminate artefacts in bilinear interpolation.
5135 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5137 * grub-core/video/readers/tga.c: Support paletted tga.
5139 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5141 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
5142 incorrect cbcr setting when in color mode.
5144 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5146 * grub-core/video/readers/png.c: Support paletted images and clean up
5149 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5151 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
5152 usage of wrong table which resulted in mishandling of 4-byte
5155 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5157 * grub-core/term/terminfo.c: Add Home and End key sequences.
5159 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5161 * grub-core/video/readers/png.c (grub_png_decode_image_header):
5162 Fix formula for computing total number of bytes.
5164 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5166 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
5167 image processing, fix big-endian and support grayscale.
5169 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5171 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
5172 Correctly will with maximum transparency when using index color.
5174 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5176 * grub-core/video/readers/png.c: Support grayscale
5178 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5180 * grub-core/video/readers/jpeg.c: Support grayscale.
5182 2013-09-26 Jon McCune <jonmccune@google.com>
5184 * grub-core/commands/loadenv.c: Support skipping signature check
5185 and variable names filtering.
5187 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5189 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
5190 * grub-core/kern/emu/hostfs.c: Likewise.
5191 * util/getroot_unix.c: Likewise.
5193 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5195 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
5196 Migrate all explicit defines to this new one.
5198 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5200 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
5201 grub_util_fd_strerror when using grub_util_fd_*.
5202 (grub_util_fd_open_device): Likewise.
5203 (grub_util_biosdisk_read): Likewise.
5204 (grub_util_biosdisk_write): Likewise.
5205 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
5206 (grub_util_fd_strerror): Likewise.
5207 (grub_util_fd_sync): Likewise.
5208 (grub_util_fd_close): Likewise.
5209 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
5210 (grub_util_fd_close): Likewise.
5211 (grub_util_fd_strerror): Likewise.
5212 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
5213 function proto rather than macro.
5214 (grub_util_fd_sync): Likewise.
5215 (grub_util_fd_open): Likewise.
5216 (grub_util_fd_strerror): New proto.
5218 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5220 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
5221 platforms on which it doesn't work.
5223 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5225 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
5226 stat immediately to where it's used.
5228 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5230 * util/getroot.c (grub_util_check_block_device): Move to ...
5231 * util/getroot_unix.c (grub_util_check_block_device): ... here.
5232 * util/getroot.c (grub_util_check_char_device): Move to ...
5233 * util/getroot_unix.c (grub_util_check_char_device): ... here.
5235 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5237 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
5240 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5242 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
5244 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5246 * docs/grub.texi (File name syntax): Document ZFS filenames
5247 (/volume@snapshot/...).
5249 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5251 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
5252 Always return full path. Fixes a problem with mkrelpath.
5254 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5256 * util/grub-install.in: Add GPT PReP support.
5257 * util/grub-probe.c (probe): Support GPT partition type.
5258 (main): Support -t gpt_parttype.
5260 2013-09-23 Aleš Nesrsta <starous@volny.cz>
5262 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
5264 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
5266 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
5268 2013-09-23 Tim Hardeck <thardeck>
5270 * util/grub.d/10_hurd.in: Filter out character for the class.
5271 * util/grub.d/10_kfreebsd.in: Likewise.
5272 * util/grub.d/10_linux.in: Likewise.
5273 * util/grub.d/20_linux_xen.in: Likewise.
5275 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
5277 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
5280 2013-09-23 Josh Triplett <josh@joshtriplett.org>
5282 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
5285 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5287 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
5288 doesn't use posix_wrap. Keep literal -fno-builtin however.
5290 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5292 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
5294 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5297 * configure.ac: Do not enable -Wmissing-noreturn as its
5298 usefulness is limited and creates problems on some OS notably with
5299 code generated by bison.
5301 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5304 * configure.ac: Do not explicitly enable -Waddress as it's not
5305 supported by all gcc and when it is, it's already enabled by -Wall.
5307 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5309 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
5310 desactivated use of EDID at all.
5312 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5315 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
5316 video if no text is available.
5318 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5321 * configure.ac: Substitute TARGET_RANLIB.
5323 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5326 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
5328 Based on patches from AROS.
5330 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5333 * grub-core/Makefile.am: Override STRIP and RANLIB.
5334 * configure.ac: compute TARGET_RANLIB.
5335 * INSTALL: Document TARGET_RANLIB
5337 Based on patches from AROS.
5339 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5341 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
5342 that floppies are unpartitioned.
5344 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5346 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
5347 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
5349 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5351 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
5352 less nice but more portable.
5353 * grub-core/lib/posix_wrap/wchar.h: Likewise.
5355 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5357 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
5359 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
5361 (grub_cryptodisk_cheat_insert): Likewise.
5362 (grub_cryptodisk_close): Likewise.
5364 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5366 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
5367 Use windows path for DEFAULT_DIRECTORY.
5369 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5371 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
5372 difference was likely just gcc version, not anything mingw-related.
5374 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5376 Use Winapi on both cygwin and mingw32 to share more code between both.
5378 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5380 * util/grub-install.in: Add --grub-editenv option.
5381 * util/grub-install_header (grub_compress_file): Explicitly check for
5382 plain file to avoid cp error.
5384 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5386 * docs/grub.texi (Device syntax): Document new LVM UUID based device
5387 names; fix LVM driver name (lvm, not lv).
5388 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
5391 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5393 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
5394 files rather than one file with loads of #if's.
5395 * util/getroot.c: Likewise.
5397 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5399 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
5401 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5403 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
5404 GNU/Hurd to the list of checked PRNG.
5406 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5408 * configure.ac: On FreeBSD use -melf_*_fbsd format.
5410 2013-09-21 Ales Nesrsta <starous@volny.cz>
5412 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
5414 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5416 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
5417 * grub-core/disk/lvm.c: Add LVM UUIDs.
5418 * util/getroot.c: Use LVM UUIDs whenever possible.
5420 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
5422 * docs/grub.texi (Networking commands): Add documentation for
5423 network related commands.
5425 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5427 * util/getroot.c (grub_util_open_dm): Check major rather than the name
5428 to determine if device is handled by devmapper.
5429 (convert_system_partition_to_system_disk): Likewise.
5430 (get_dm_uuid): Don't check explicitly if device is mapped, it's
5431 already done in grub_util_open_dm.
5433 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
5435 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
5436 Clean up stack manipulation (sync_caches_armv*)
5438 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5440 * util/lvm.c: Remove since unused. Remove remaining references.
5442 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5444 Handle the case of partitioned LVM properly.
5446 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5447 Stop on meeting LVM, mpath or DMRAID.
5448 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
5449 (read_device_map): Likewise.
5450 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
5451 device is full disk rather than erroring out on LVM and similar cases.
5453 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5455 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
5457 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5459 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
5461 Reported by: Leif Lindholm
5463 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
5464 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5466 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
5469 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
5471 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
5472 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
5474 2013-09-18 Douglas Ray <dougray@cpan.org>
5476 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
5479 2013-09-18 Aleš Nesrsta <starous@volny.cz>
5481 * docs/grub.texi: Fix broken link.
5483 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
5485 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
5486 to break endless loop.
5488 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5490 * util/grub-fstest.c: Fix several printf formats.
5491 * util/grub-mkimage.c: Likewise.
5492 * util/grub-mkimagexx.c: Likewise.
5493 * util/grub-script-check.c: Likewise.
5495 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5497 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
5500 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5502 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
5504 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5506 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
5507 removed in current versions cygwin_conv_*.
5509 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5511 * configure.ac: Disable efiemu runtime on cygwin.
5513 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5515 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
5516 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
5518 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5520 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
5523 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5525 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
5527 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
5530 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5532 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
5533 when on x86 and not cygwin.
5534 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
5537 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5539 * configure.ac: Set CPP to build one when checkoing for freetype for
5542 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5544 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
5545 [!GRUB_BUILD]: Remove has_argument.
5547 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5549 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
5550 Replace with a dummy.
5552 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5554 * configure.ac: Don't change host_os from mingw to cygwin.
5556 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5558 * configure.ac: Change target_os from windows to cygwin.
5560 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5562 Handle grub-pe2elf and grub-mkfont for cases when build != host.
5564 * Makefile.am (build-grub-mkfont): Don't include gnulib.
5565 (build-grub-gen-asciih): Likewise.
5566 (build-grub-gen-widthspec): Likewise.
5567 * Makefile.util.def (grub-pe2elf): Remove.
5568 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
5569 * configure.ac: Separate tests for build.
5570 Move ./build-grub-pe2elf to grub-core.
5572 * grub-core/Makefile.am (build-grub-pe2elf): New target.
5573 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
5575 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
5577 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
5578 * util/grub-pe2elf.c: Simplify not to rely on getopt.
5579 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
5581 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5583 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
5584 mingw32 as well based on grub_util_get_disk_size.
5585 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
5586 grub_util_get_fd_size.
5588 (fsync): Moved to ...
5589 * grub-core/kern/emu/misc.c (fsync): ... here.
5591 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5593 * include/grub/mm.h (grub_extend_alloc): Remove.
5594 * grub-core/loader/i386/pc/plan9.c: Use own version of
5595 grub_extend_alloc with appropriate types.
5597 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5599 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
5601 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5603 * util/getroot.c: Include sys/wait.h only when we need waitpid.
5605 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5607 Fix dependencies on cygwin.
5609 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
5610 dependencies when used and defined.
5611 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
5613 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5615 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
5616 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
5618 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5620 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
5621 implementation available to cause compile-time rather than runtime
5624 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5626 * util/grub-fstest.c: Don't check for symlinks on windows.
5628 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5630 * INSTALL: Mention unavailability of man pages when cross-compiling.
5632 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5634 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
5636 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
5638 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5640 * INSTALL: Document cross-compilation.
5641 * acinclude.m4: Determine whether nm support -P and --defined-only.
5642 * configure.ac: Add TARGET_ to all variables pertaining to target
5643 that don't have it yet.
5644 * gentpl.py: Likewise.
5645 * grub-core/Makefile.am: Likewise.
5646 * grub-core/genmod.sh.in: Likewise.
5647 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
5650 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5652 * configure.ac: Remove -Wempty-body. It's not essential and needs
5655 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5657 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
5658 * util/getroot.c: Likewise.
5660 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5662 * grub-core/disk/ahci.c: Add needed explicit cast.
5663 * grub-core/lib/backtrace.c: Likewise.
5664 * grub-core/net/ip.c: Likewise.
5665 * grub-core/net/tcp.c: Likewise.
5666 * grub-core/net/udp.c: Likewise.
5668 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5670 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
5672 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5674 * util/import_gcry.py: Add final newline in visibility.h.
5676 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5678 * conf/Makefile.common: Fix typo.
5680 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5682 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
5684 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5686 * Makefile.am (widthspec.h): Fix typo.
5687 * util/grub-gen-widthspec.c: Likewise.
5689 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5691 Move ascii.h and widthspec.h generation to a separate build-time-only
5694 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5696 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5697 Always fill bootdisk info and improve check for NetBSD disklabel.
5699 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5701 * conf/Makefile.extra-dist: Add util/bin2h.c.
5702 Reported by: floppym.
5704 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5706 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
5708 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5710 * configure.ac: Disable unifont and starfield if no freetype was found.
5712 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5714 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
5715 on NetBSD and OpenBSD.
5717 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5719 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
5721 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5723 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
5724 reduced. Inheritant options are processed during the theme loading.
5726 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5728 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
5730 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5732 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
5734 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5736 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
5739 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5741 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
5742 remove-potcdate.sed.
5744 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5746 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
5747 unused attribute from pull argument.
5749 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5751 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
5754 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5756 * util/getroot.c (pull_lvm_by_command): add --separator option
5757 to vgs call to disable padding of output to 10 characters.
5759 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5761 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
5763 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
5766 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5768 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
5771 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5773 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5774 full Canadian cross. Tested with build=x86_64, host=arm,
5775 target=ppc-ieee1275.
5777 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5779 * configure.ac: Error if no $BUILD_CC could be found.
5782 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5784 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5787 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5789 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5790 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5792 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
5794 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5795 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5796 falling back to the partition device, otherwise a later call to this
5797 function may fail spuriously.
5798 Reported by Axel Beckert. Fixes Debian bug #708614.
5800 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5802 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5804 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5806 Prevent shadowing of stdlib's devname(3) on BSD.
5808 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5809 and devlast to diskname and disklast, respectively.
5811 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
5813 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5815 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5817 * docs/grub.texi: Introduce terminal window position options:
5818 terminal-left: terminal window's left position
5819 terminal-top: terminal window's top position
5820 terminal-width: terminal window's width
5821 terminal-height: terminal window's height
5822 terminal-border: terminal window's border width
5823 * grub-core/gfxmenu/theme-loader.c: Likewise.
5824 * include/grub/gfxmenu_view.h: Likewise.
5825 * po/exlude.pot: Likewise.
5826 * grub-core/gfxmenu/view.c: Likewise.
5827 Also updated minimal window size.
5828 Also terminal_sanity_check function has been introduced.
5829 * grub-core/tests/checksums.h: Update (terminal window height
5830 is adjusted now for low resolution screen)
5832 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5834 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5837 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5839 * po/exclude.pot: Add few recent exceptions.
5841 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5843 * tests/grub_func_test.in: Add unicode.pf2.
5845 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5847 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
5848 standard rather than noral color, in line with other terminals.
5850 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5852 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
5855 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5857 * grub-core/loader/arm/linux.c: Change printf to dprintf.
5859 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5861 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
5862 inappropriate printf.
5864 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
5866 * .bzrignore: Remove grub-core/lib/dtc-grub,
5867 grub-core/Makefile.libfdt.def
5868 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
5870 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5872 * include/grub/video.h (grub_video_register): Keep double-linked as
5873 well as single-linked invariants.
5874 Reported by: qwertial.
5876 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5878 * grub-core/commands/nativedisk.c (get_uuid): Handle
5879 GRUB_DISK_DEVICE_UBOOTDISK_ID.
5881 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
5883 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
5884 maximum of NW, N, NE heights instead of N's height and maximum of
5885 NW, W, SW widths instead of W's width. (So the box will be always
5888 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
5890 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
5891 Fix misuse of variable count.
5893 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
5894 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
5895 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5897 New ports to arm-uboot and arm-efi.
5898 Mostly by Leif Lindholm with some additions from
5899 Francesco Lavra and cleanup by Vladimir Serbinenko.
5901 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5903 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
5905 Reported by: Leon Drugi.
5907 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5909 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
5910 Reported by: Paulo Flabiano Smorigo.
5912 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5914 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
5916 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5918 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
5920 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5922 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
5924 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5926 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
5928 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
5930 * grub-core/net/bootp.c: Export net_* variables.
5931 * grub-core/net/net.c: Likewise.
5933 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5935 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
5937 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5939 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
5941 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5943 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
5945 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5947 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
5949 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5951 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
5954 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5956 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
5959 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5961 * grub-core/fs/zfs/zfs_lz4.c: New file.
5962 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
5964 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5966 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
5968 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5970 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
5971 (check_pool_label): Likewise.
5972 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
5974 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5976 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
5978 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5980 * docs/grub.texi (Commands): Document postition parameters
5981 for menuentry command.
5983 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5985 * util/grub-mknetdir.in: Remove stray line from help output.
5987 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5989 Remove early sm712 init as there is no reason for it (the "watchdog"
5990 effect was due to wrong GPIO map).
5992 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5994 * grub-core/commands/pcidump.c: Remove static variables.
5996 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5998 * grub-core/commands/sleep.c: Refresh screen before sleeping.
6000 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6002 * configure.ac: Move delimiter after the infos.
6004 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6006 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
6008 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6010 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
6011 not filling whole 8x16 space.
6013 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6015 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
6017 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6019 * configure.ac: Indicate which liblzma is used if any.
6021 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
6022 2013-06-21 Craig Sanders <savannah@taz.net.au>
6024 * util/grub-reboot.in: Document submenu usage.
6026 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
6028 * .bzrignore: Update with a number of new test-related files.
6030 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
6032 * util/grub-script-check.c: Fail on scripts containing no
6033 commands, to guard against corrupted grub-mkconfig setups that
6034 produce no useful output.
6035 * tests/grub_script_no_commands.in: New test.
6036 * Makefile.util.def (grub_script_no_commands): Add.
6037 Reported by Hans Putter. Fixes Debian bug #713886.
6039 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6041 * grub-core/disk/diskfilter.c: Forgot to remove comment
6042 from previous commit.
6044 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6046 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
6047 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
6049 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6051 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
6053 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6055 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
6056 rescan diskfilter devices until nothing new is found.
6058 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6060 Fix casts when compiling coreboot-specific code for 64-bit EFI.
6062 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6064 Don't try to detect cbfs on *-emu.
6066 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6068 * grub-core/term/gfxterm.c: USe right background color when scrolling.
6070 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6072 Add support for processed coreboot payload chainloading.
6074 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6076 Enable coreboot information commands even when not loaded as
6077 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
6079 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6081 Support for cbfs. Also factor out the part which is common
6082 for all archives to a separate module. This splits tar from cpio
6083 as they are very different but keeps cpio, cpio_be, odc and newc
6084 together since they're very similar.
6086 2013-06-15 David Michael <fedora.dm0@gmail.com>
6088 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
6089 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
6091 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6093 * tests/grub_script_eval.in: Really add the eval test.
6095 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
6097 Move flavour-specific parts out of common cpio.c file and
6098 rename remaining to cpio_common.c
6100 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6102 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
6103 off new function grub_script_execute_new_scope. Change callers to use
6104 either of them as appropriate.
6105 * grub-core/commands/eval.c: New command eval.
6106 * docs/grub.texi (Commands): Document it.
6108 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6110 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
6111 to fetch values when listing.
6113 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6115 Fix make dist on non-pc.
6117 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
6119 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
6120 without a device name.
6122 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6124 Remove enable_executable_check as it's not needed anymore.
6125 Reported by: dougray.
6127 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6129 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
6130 ambigouos RAID before discovering RAIDs on top of it.
6133 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6135 Fix typo (failback vs fallback).
6137 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
6139 * util/grub.d/30_os-prober.in: Add support for probing EFI
6140 System Partition (as of os-prober 1.58).
6142 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6144 * configure.ac: Add yet another path to unifont. For parabola.
6146 2013-05-30 Josh Triplett <josh@joshtriplett.org>
6148 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
6149 handling to copy the killed characters to the kill buffer as
6150 UCS4 stored as grub_uint32_t rather than as 8-bit characters
6151 stored as char. Eliminates UCS4 truncation and corruption
6152 observed when killing characters with Ctrl-u and yanking them
6155 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6157 Detach optional parts of gfxterm and integrate in with coreboot init.
6159 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6161 Move blit and fill dispatcher to appropriate files to decrease export
6162 and relocation overhead.
6164 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6166 * grub-core/font/font.c, include/grub/font.h: Inline simple font
6169 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6171 * grub-core/Makefile.am: Fix compilation problem with some
6174 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6176 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
6178 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6180 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
6183 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6185 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
6188 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
6190 * grub-core/partmap/dfly.c: New partition map.
6192 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6194 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
6196 Reported by: Francesco Lavra.
6198 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
6200 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
6201 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
6203 * conf/Makefile.common: define dist_grubconf_DATA
6205 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6207 Progressively skip menu elements on small terminals rather
6210 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6212 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
6213 to avoid losing last column.
6215 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6217 * po/exclude.pot: Add missing string "%C".
6219 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6221 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
6224 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6226 * util/grub-install.in: Gettextize "Not found" message.
6228 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6231 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6233 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6235 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
6237 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
6239 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6241 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
6243 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6245 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
6246 attribute since structure is not necessarily aligned.
6248 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
6250 * docs/grub.texi (Device syntax): Clarify description of network
6253 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6255 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
6256 for vasprintf presence.
6258 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6260 * util/grub-install.in: Handle efibootmgr presence check.
6261 Reported by: Leif Lindholm.
6263 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6265 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
6266 new strings to translate.
6268 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6270 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
6271 yet another string (pun intended) to translate.
6273 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6275 * po/POTFILES-shell.in: Autogenerate it.
6277 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6279 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
6281 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6283 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
6286 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
6288 * docs/grub.texi (Network): Add description of net_default_interface,
6289 net_default_ip and net_default_mac. Rewrite variables description
6290 to emphasize that they are per-interface.
6292 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6294 New test: cmdline and cat.
6296 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6298 * grub-core/commands/cat.c: Show UTF-8 characters.
6300 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6302 * conf/Makefile.common: Poison float and double on non-emu.
6304 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6306 * configure.ac: Don't disable extended registers on emu.
6308 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6310 * configure.ac: Don't use extended registers on x86_64.
6311 Reported by: Peter Jones.
6313 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6315 * grub-core/term/efi/console.c: Fix compile error.
6317 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6319 Compressed HFS+ support.
6321 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6323 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
6326 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6330 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6332 * grub-core/tests/setjmp_test.c: New test.
6334 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6336 New variables 'net_default_*' to determine MAC/IP of default interface.
6338 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6340 * tests/gettext_strings_test.in: A test to check for strings not
6341 marked for translation.
6343 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6345 * autogen.sh: Exclude unused libgcrypt files from translation.
6347 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6349 Simplify few strings.
6351 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6353 Mark few forgotten strings for translation.
6355 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6357 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
6360 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6362 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
6364 * grub-core/video/readers/tga.c: Likewise.
6366 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6368 * tests/priority_queue_unit_test.cc: New test.
6370 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6372 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
6375 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
6377 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
6378 variable for one time boot menu entry.
6380 2013-05-05 Bean <bean123ch@gmail.com>
6382 * grub-core/commands/testspeed.c: New command testspeed.
6384 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6386 Factor-out human-size printing.
6388 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6390 Agglomerate more mallocs to speed-up gfxterm.
6392 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6394 Speed-up gfxterm by slightly agglomerating mallocs.
6396 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6400 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6402 Speed-up gfxterm by saving intermediate results in index+alpha
6405 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6407 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
6410 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6412 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
6413 line of timeout as it may contain the rest of long line.
6415 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6417 * grub-core/normal/main.c: Fix freed memory dereference.
6419 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6421 Fix several memory leaks.
6423 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6425 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
6427 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6429 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
6431 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6433 Fix test -a and -o precedence.
6434 Reported by: adrian15.
6436 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6438 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
6440 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
6442 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
6443 and add it as source to functional_test module.
6445 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6447 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
6449 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6451 New series of tests for gfxterm and gfxmenu.
6453 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6455 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
6456 the theme path relative to $prefix/themes.
6458 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6460 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
6462 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
6464 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6466 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
6469 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6471 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
6472 grub_gfxmenu_timeout_notifications.
6473 (grub_gfxmenu_view_destroy): Likewise.
6475 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6477 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
6479 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6481 Several fixes to ieee1275 and big-endian video.
6483 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6485 Add missing exports on mips.
6487 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6489 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
6490 if no unifont is found.
6491 Restore original keyboard.
6493 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6495 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6496 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
6498 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6500 First automated video test (running videotest and comparing results)
6502 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6504 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
6505 instead of 2 to have full RGB/CMY test pattern.
6507 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6511 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6513 * include/grub/arc/arc.h: Account for missing "other" peripheral on
6514 ARCS. All users updated.
6516 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6518 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
6520 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6522 * grub-core/partmap/amiga.c: Fix size of checksummed block.
6524 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6526 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
6527 Reported by: qwertial.
6529 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6531 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
6532 with syntax "XXX deg"/"XXX °".
6534 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6536 Make PCI init in i386-qemu port more robust.
6538 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6540 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
6541 cached view is reused.
6542 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
6545 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6547 Unify more code in grub-install_header.
6549 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6553 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6555 Enforce disabling of firmware disk drivers when native drivers kick in.
6557 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6559 * grub-core/commands/nativedisk.c: Customize the list of modules on
6560 platform. Don't try to search for disks already using native drivers.
6562 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6564 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
6567 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6569 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
6570 handling of variables containing backslash.
6572 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6574 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
6576 Reported by: qwertial.
6578 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6580 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
6582 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6584 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
6586 Reported by: qwertial.
6588 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6590 * docs/grub.texi: Add a comment about usefullness of nativedisk.
6592 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6594 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
6596 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6598 New command `nativedisk'.
6600 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6602 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
6603 * grub-core/loader/i386/bsd.c: Likewise.
6605 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6607 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
6609 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6611 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
6612 grub_get_unaligned16 rather than shifts.
6614 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6616 * grub-core/kern/file.c: Use const char * rather than casting to
6619 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6621 * grub-core/commands/probe.c: Add missing grub_device_close.
6623 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6625 * INSTALL: Document linguas.sh.
6627 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6629 Remove POTFILES.in and regenerate it in autogen.sh.
6631 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6633 Move --directory/--override-directorry to grub-install_header and unify.
6635 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6637 * grub-core/term/morse.c: Macroify dih and dah.
6639 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6641 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
6643 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6645 * grub-core/term/ns8250.c: Systematically probe ports by writing
6646 to SR before using them.
6648 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6650 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
6652 (check_sas): Get sas_adress info.
6654 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6656 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
6659 2013-04-27 Leon Drugi <eyak>
6661 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
6664 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6666 Core compression test.
6668 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6670 Implement grub_machine_get_bootlocation for ARC.
6672 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6674 Improve AHCI detection and command issuing.
6676 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6680 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6682 Make 'make check' work on emu.
6684 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6686 Replace libcurses with our own vt100 handling for the ease of testing
6687 and decreasing prerequisites.
6689 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6691 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
6693 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6695 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
6696 compile when not needed.
6698 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6700 * tests/pseries_test.in: New test.
6702 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6704 Add test to check that different boot mediums work.
6706 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6708 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
6709 ofw limited ISO support.
6711 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6713 * configure.ac: Fix loongson conditional.
6715 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6719 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6721 Add serial on ARC platform.
6723 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6725 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
6728 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6730 * tests/partmap_test.in: Add missing double semicolon.
6732 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6734 * util/grub-mkrescue.in: Fix loongson filename.
6736 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6738 * util/grub-mkrescue.in: Move all files that don't have a location
6739 set in stone under /boot/grub. Use ISO hard links rather than copies
6742 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6744 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
6747 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6749 Make check work on mips-arc.
6751 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6753 * util/grub-mkrescue.in: Alias sashARCS as sash.
6755 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6757 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
6760 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6762 * util/grub-install.in: Fix target fo qemu_mips.
6763 Fix extension on EFI.
6765 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6767 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
6768 in front of chosen entry to mark it even if highlighting is lost.
6770 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6772 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6773 gfxpayload=keep if cbfb is active.
6775 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6777 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6779 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6781 Add missing video ids to coreboot and ieee1275 video.
6783 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6785 * util/grub-mkrescue.in: Add mips-arc support.
6787 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6789 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6791 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6793 Move mips-arc link address. Previous link address was chosen
6794 in belief that RAM on SGI platforms grows down while in fact it
6795 grows up from an unusual base.
6797 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6799 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6800 Fix a type which prevented CD-ROM and floppy boot.
6802 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6804 Support coreboot framebuffer.
6806 * grub-core/video/i386/coreboot/cbfb.c: New file.
6808 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6810 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6811 detecting too small regions.
6813 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6815 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6817 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6819 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6821 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6823 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6825 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6826 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6827 * grub-core/loader/powerpc/ieee1275/linux.c
6828 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6830 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6832 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6833 Look for /boot-rom as well as /rom/boot-rom.
6835 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6837 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6838 handling when creating text_layer failed.
6839 * grub-core/video/video.c (grub_video_create_render_target):
6840 Set result to 0 on error.
6841 (grub_video_delete_render_target): Do not dereference NULL.
6843 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6845 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
6846 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
6847 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
6848 (grub_linux_load64): Mask out 2 high bits.
6850 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
6852 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
6855 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6857 Add support for pseries and other bootinfo machines to grub-mkrescue.
6859 Tested by: Paulo Flabiano Smorigo.
6861 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6863 * util/grub-mkrescue.in: Add GPT for EFI boot.
6865 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6867 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
6868 It improves performance in qemu.
6870 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6872 * build-aux/snippet: Add missing gnulib files.
6874 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6876 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
6878 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6880 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
6882 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6883 2013-04-15 Peter Jones <pjones@redhat.com>
6885 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
6887 Based on patch by Peter Jones.
6889 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6891 Fix DMRAID partition handling.
6893 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6895 * tests/grub_cmd_date.in: Skip on sparc64.
6897 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6899 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
6900 firmware error messages.
6902 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6904 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
6905 source and destination differ.
6907 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6909 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
6912 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6914 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
6915 match config-util.h to avoid warnings and increase compatibility.
6917 2013-04-14 Szymon Janc <szymon@janc.net.pl>
6918 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6920 Add option to compress files on install/image creation.
6922 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6924 * docs/grub-dev.texi: Rearrange menu to match the section order.
6925 Reported by: Bryan Hundven.
6927 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6929 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
6931 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6933 Move GRUB out of system area when using xorriso 1.2.9 or later.
6935 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6937 * tests/grub_cmd_date.in: Add missing exit 1.
6939 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6941 * tests/partmap_test.in: Skip on sparc64.
6943 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6945 Support grub-shell on sparc64.
6947 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6949 Support mkrescue on sparc64.
6951 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6953 Allow IEEE1275 ports on path even if it wasn't detected automatically.
6954 Needed on OpenBIOS due to incomplete device tree.
6956 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6958 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
6959 would be otherwise excluded.
6961 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6963 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6964 Inline name defines used only once.
6966 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6968 Fix memory leaks in ofnet.
6969 Reported by: Francesco Lavra.
6971 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6973 * docs/man/grub-glue-efi.h2m: Add missing file.
6975 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6977 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
6979 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6981 Better support Apple Intel Macs on CD.
6983 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6985 Replace stpcpy with grub_stpcpy in tools.
6987 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6989 Handle Japanese special keys.
6990 Reported by: Hiroyuki YAMAMORI.
6991 Codes supplied by: Hiroyuki YAMAMORI.
6993 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6995 * util/grub-mkimage.c: Document memdisk implying --prefix.
6997 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6999 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
7000 much we can do about it anyway.
7002 2013-04-12 Aleš Nesrsta <starous@volny.cz>
7004 Fix handling of split transfers.
7006 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7008 * grub-core/net/http.c: Fix bad free.
7010 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7012 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
7015 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7017 Disable partmap check on i386-ieee1275 due to openfirmware issues.
7019 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7021 * tests/util/grub-shell.in: Fix it on powerpc.
7023 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7025 Turn off QEMU ACPI-way since new releases don't have shutdown port
7028 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7030 * docs/grub.texi: Update coreboot status info.
7032 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7034 * tests/grub_cmd_date.in: New test for datetime.
7036 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7038 * tests/partmap_test.in: Fix missing qemudisk setting.
7040 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7042 Support i386-ieee1275 grub-mkrescue and make check on it.
7044 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7046 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
7049 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7051 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
7052 GRUB_CMDLINE_XEN_DEFAULT.
7053 Reported by: Marc Warne (GigaTux) <gigatux>
7055 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7059 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7061 Use ACPI shutdown intests as traditional port was removed.
7063 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
7065 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
7068 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7070 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
7071 Fix few warining messages and leaks while on it.
7073 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
7075 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
7076 links under grub-core/lib/libgcrypt-grub/mpi.
7078 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7080 Fix ia64-efi image generation on big-endian machines. Deduplicate
7081 some code while on it.
7082 Reported by: Leif Lindholm.
7084 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7086 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
7089 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7091 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
7093 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
7095 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
7098 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7100 * grub-core/normal/term.c: Few more fixes for menu entry editor
7102 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7104 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7106 * grub-core/normal/term.c: Few more fixes for menu entry editor
7108 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7110 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7112 * conf/Makefile.extra-dist (EXTRA_DIST): Add
7113 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
7115 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7117 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
7118 instead of hardcoding grub.mo.
7120 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
7122 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
7124 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7126 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
7127 grub-core/disk/geli.c.
7129 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7131 * util/grub-mkfont.c: Prefer enum to #define.
7133 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7135 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
7137 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7139 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
7141 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7143 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
7145 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7147 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
7149 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7151 * include/grub/bsdlabel.h: Use enums.
7153 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7155 Move GRUB_CHAR_BIT to types.h.
7157 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7159 * docs/grub.texi: Document more user commands.
7161 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7163 * docs/grub.texi: Document menuentry --id option.
7165 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
7167 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
7169 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7171 Unify file copying setup across different install scripts. Add
7172 options for performing partial install.
7174 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7175 2013-04-04 Peter Jones <pjones@redhat.com>
7177 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
7179 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7181 Use TSC as a possible time source on i386-ieee1275.
7183 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7185 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
7188 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7190 * util/grub-setup.c (setup): Handle some corner cases.
7192 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7194 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
7196 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7198 * grub-core/commands/verify.c: Save verified file to avoid it being
7199 tampered with after verification was done.
7201 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7203 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
7204 reported width by one to compensate for curesor algorithm problem.
7206 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7208 Fix screen corruption in menu entry editor and simplify the code
7211 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
7213 * util/grub-mount.c (fuse_init): Return error if fuse_main
7216 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
7218 * include/grub/elf.h: Add missing ARM relocation codes and fix
7221 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7223 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
7225 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7226 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7228 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
7229 into account when calculating radius.
7231 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7233 * grub-core/gfxmenu/view.c: Fix off-by-one error.
7235 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7237 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
7239 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7241 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
7242 missing closing bracket.
7244 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7246 * INSTALL: Mention xorriso requirement.
7248 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
7250 * grub-core/commands/verify.c: Fix hash algorithms values for
7251 the first three hashes - they start with 1, not with 0.
7253 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7255 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
7256 Try terminating EFI services several times due to quirks in some
7259 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
7261 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
7262 skipping Event, Device, Processor, PowerRes, ThermalZone, and
7263 BankField extended opcodes.
7264 (get_sleep_type): Add minimal scope handling (just enough to
7265 handle setting the scope to the root path).
7266 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
7267 * include/grub/acpi.h: Add enumeration values for Event, Device,
7268 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
7270 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
7272 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
7275 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7277 * grub-core/disk/ahci.c: Give more time for AHCI request.
7279 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7281 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
7284 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7286 Replace the region at 0 from coreboot tables to available in BSD
7289 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7291 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
7294 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7296 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
7299 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7301 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
7302 handling of multi-device filesystems.
7304 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7306 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
7309 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7311 Add new 'proc' filesystem framework and put luks_script into it.
7313 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
7315 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
7318 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7320 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
7322 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7324 Add ability to generate newc additions on runtime.
7326 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7328 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
7331 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
7333 * po/POTFILES.in: Regenerate.
7335 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7337 * grub-core/commands/verify.c (hashes): Add several hashes
7340 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7342 Slight improve in USB-related boot-time checkpoints.
7344 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7346 * grub-core/commands/boottime.c: Fix copyright header.
7348 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7350 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
7351 coreboot tables content. Support for cbmemc.
7353 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7355 Fix a conflict between ports structures with 2 controllers of
7358 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7360 * include/grub/boottime.h: Add missing file.
7362 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7364 Initialize USB ports in parallel to speed-up boot.
7366 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7368 Fix USB devices not being detected when requested
7369 due to delayed attach.
7371 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7373 Implement boot time analysis framework.
7375 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7377 Remove get_endpoint_descriptor and change all functions needing
7378 descriptor to just receive it as argument rather than endpoint
7381 2013-03-19 Aleš Nesrsta <starous@volny.cz>
7383 Better estimate the maximum USB transfer size.
7385 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7387 Resend a packet if we got the wrong buffer in status.
7389 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7391 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
7392 multiplication rather than division.
7394 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7396 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
7399 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7401 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
7402 operations to have intended shifts and not divisions.
7404 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7406 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
7407 intended shifts rather than division.
7409 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7411 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
7412 computation for some years before epoch. Avode confusing division
7415 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7417 * grub-core/video/i386/pc/vbe.c
7418 (grub_video_vbe_print_adapter_specific_info): Replace division by
7421 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7423 Adjust types in gdb module to have intended unsigned shifts rather than
7426 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7428 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
7429 maximum size is 4G - 1 on hfs
7431 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7433 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
7435 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7437 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
7440 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
7442 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
7443 causing gcc error with gcc 4.7.1.
7445 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7447 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
7448 dereference null pointer. While the code is technically correct, gcc
7449 may eliminate a null check if pointer is already dereferenced.
7451 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7453 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
7455 * grub-core/normal/term.c (read_terminal_list): Likewise.
7457 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7459 Lift up core size limits on some platforms. Fix potential memory
7460 corruption with big core on small memory systems. Document remaining
7463 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7465 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
7468 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7470 Remove all trampoline support. Add -Wtrampolines when
7471 present. Remove symbols used for trampolines to make
7472 link fail if trampolines are present.
7474 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7476 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
7477 append out of its parent.
7479 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7481 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
7484 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7486 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
7487 all vars to a macro. All users updated.
7489 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7491 * grub-core/disk/ieee1275/nand.c: Fix compilation on
7494 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7496 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
7498 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7500 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
7502 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7504 Move to more hookless approach in IEEE1275 devices handling.
7506 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7508 * grub-core/kern/term.c (grub_term_normal_color),
7509 (grub_term_highlight_color): Add back lost defaults.
7511 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7513 Make elfload not use hooks. Opt for flags and iterators instead.
7515 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7517 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
7518 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
7520 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7522 * grub-core/script/execute.c (gettext_append): Remove nested functions.
7524 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7526 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
7527 hook pass-through parameter. All users updated and unnested.
7529 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7531 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
7534 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7536 * grub-core/fs/hfs.c: Remove nested functions.
7538 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7540 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
7541 the context through.
7542 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
7544 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7546 * util/grub-editenv.c (list_variables): Move print_var out of its
7549 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7551 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
7554 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7556 * grub-core/gentrigtables.c: Make tables const.
7558 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7560 Remove nested functions from videoinfo iterators.
7562 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7564 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
7565 for 64-bit platforms.
7567 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7569 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
7570 a FOR_CHILDREN macro.
7572 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7574 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
7575 platform from firmware path.
7577 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7579 Enable linux16 on non-BIOS systems for i.a. memtest.
7581 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
7583 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
7585 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7587 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
7588 Fix end of table condition.
7590 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7592 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
7595 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7597 * grub-core/fs/jfs.c: Remove nested functions.
7599 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7601 * grub-core/fs/minix.c: Remove nested functions.
7603 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7605 * grub-core/fs/iso9660.c: Remove nested functions.
7607 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7609 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
7612 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7614 * util/grub-fstest.c: Remove nested functions.
7616 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7618 * grub-core/loader/machoXX.c: Remove nested functions.
7620 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
7622 Remove nested functions from disk and file read hooks.
7624 * include/grub/disk.h (grub_disk_read_hook_t): New type.
7625 (struct grub_disk): Add read_hook_data member.
7626 * include/grub/file.h (struct grub_file): Likewise.
7627 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
7632 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
7634 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
7635 Fix off by one error in enumerating extended partitions.
7637 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
7639 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
7640 memory leak if device name is not found.
7642 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7644 * grub-core/normal/menu_entry.c (update_screen): remove
7645 unused variable `off' which caused scroll down arrow to be always shown.
7647 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7649 * grub-core/normal/menu_entry.c (insert_string): fix off by one
7650 access to unallocated memory.
7652 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7654 * Makefile.util.def: Add partmap/msdos.c to common library.
7655 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
7656 * grub-core/disk/ldm.c: Check for existence of
7657 GRUB_PC_PARTITION_TYPE_LDM.
7659 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7661 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
7662 sizes and display sector size.
7664 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7666 Implement new command cmosdump.
7668 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7670 Support Openfirmware disks with non-512B sectors.
7672 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
7674 * (grub_ofdisk_get_block_size): New function.
7675 * (grub_ofdisk_prepare): Use the correct block size.
7676 * (grub_ofdisk_read): Likewise.
7677 * (grub_ofdisk_write): Likewise.
7678 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
7681 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7683 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
7685 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7687 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
7690 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7692 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
7695 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7697 Implement USBDebug (full USB stack variant).
7699 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7701 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
7702 unless they have unexpected values.
7704 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7706 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
7709 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7711 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
7712 zero-out of port structure.
7714 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7716 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
7717 of extended attributes.
7719 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
7721 * util/grub-install.in: change misleading comment about
7724 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7726 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
7727 when menu highlight color isn't set.
7729 2013-01-27 C. Masloch <pushbx@38.de>
7731 Improve FreeDOS direct loading support compatibility.
7733 * include/grub/i386/relocator.h (grub_relocator16_state):
7735 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
7737 (grub_relocator16_boot): Handle %ebp.
7738 * grub-core/lib/i386/relocator16.S: Likewise.
7739 * grub-core/loader/i386/pc/freedos.c:
7740 Load BPB to pass kernel which partition to load from.
7741 Check that kernel file is not too large.
7742 Set register dl to BIOS unit number as well.
7744 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
7746 * util/grub-reboot.in (usage): Document the need for
7748 * util/grub-set-default.in (usage): Likewise.
7749 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
7751 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7753 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
7754 than defining WORDS_BIGENDIAN manually.
7756 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7758 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
7761 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7763 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
7765 (blit_comb: add_device_width): Likewise.
7767 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7769 Remove nested functions from USB iterators.
7771 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7772 (grub_usb_controller_iterate_hook_t): Likewise.
7773 (grub_usb_iterate): Add hook_data argument.
7774 (grub_usb_controller_iterate): Likewise.
7775 (struct grub_usb_controller_dev.iterate): Likewise.
7777 Update all implementations and callers.
7779 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7781 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7782 margin when not needed.
7784 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7786 Make color variables global instead of it being per-terminal.
7788 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7790 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7793 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7795 Fix powerpc and sparc64 build failures caused by un-nesting memory
7798 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7800 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7801 parameter declarations.
7803 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7805 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7807 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7809 Improve spkmomdem reliability by adding a separator between bytes.
7811 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7813 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7814 an Acer registration utility with several sightings in the wild.
7815 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7817 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7819 Remove nested functions from filesystem directory iterators.
7821 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7822 (struct grub_fs.dir): Add hook_data argument.
7824 Update all implementations and callers.
7826 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7828 * docs/grub.texi (Multi-boot manual config): Fix typo for
7831 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7833 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7834 until after its use in generate_image.
7836 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7838 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7839 initrd size to addr_min, since the initrd will be allocated after
7842 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7844 * conf/Makefile.common: Fix autogen rules to pass definition
7845 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
7847 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7849 * include/grub/elf.h: Update ARM definitions based on binutils.
7851 2013-01-20 Aleš Nesrsta <starous@volny.cz>
7853 Split long USB transfers into short ones.
7855 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7857 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
7858 is interrupted by ESC.
7860 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7862 * util/grub-script-check.c (main): Uniform the error message.
7864 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7866 Remove nested functions from ELF iterators.
7868 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7870 Remove nested functions from device iterators.
7872 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
7873 (grub_arc_iterate_devs): Add hook_data argument.
7874 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
7875 (struct grub_ata_dev.iterate): Add hook_data argument.
7876 * include/grub/device.h (grub_device_iterate_hook_t): New type.
7877 (grub_device_iterate): Add hook_data argument.
7878 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
7879 (struct grub_disk_dev.iterate): Add hook_data argument.
7880 (grub_disk_dev_iterate): Likewise.
7881 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
7883 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
7885 * include/grub/partition.h (grub_partition_iterate_hook_t): New
7887 (struct grub_partition_map.iterate): Add hook_data argument.
7888 (grub_partition_iterate): Likewise.
7889 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
7890 (struct grub_scsi_dev.iterate): Add hook_data argument.
7894 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7896 Fix typos for "developer" and "development".
7898 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7900 Add license header to spkmodem-recv.c.
7902 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
7904 Rewrite spkmodem to use PIT for timing. Double the speed.
7906 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7908 Add new command pcidump.
7910 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7912 New terminal outputs using serial: morse and spkmodem.
7914 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7916 Improve bidi handling in entry editor.
7918 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7920 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
7921 argument to prevent name collision.
7923 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7925 Remove nested functions from script reading and parsing.
7927 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
7928 getline_data argument, passed to getline.
7929 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
7930 getline_data argument, passed to grub_parser_split_cmdline.
7931 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
7932 lexerstate->getline_data to lexerstate->getline.
7933 (grub_script_lexer_init): Add getline_data argument, saved in
7934 lexerstate->getline_data.
7935 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
7936 argument, passed to grub_script_parse.
7937 * grub-core/script/script.c (grub_script_parse): Add getline_data
7938 argument, passed to grub_script_lexer_init.
7939 * include/grub/parser.h (grub_parser_split_cmdline): Update
7940 prototype. Update all callers to pass appropriate getline data.
7941 (struct grub_parser.parse_line): Likewise.
7942 (grub_rescue_parse_line): Likewise.
7943 * include/grub/reader.h (grub_reader_getline_t): Add void *
7945 * include/grub/script_sh.h (struct grub_lexer_param): Add
7946 getline_data member.
7947 (grub_script_parse): Update prototype. Update all callers to pass
7948 appropriate getline data.
7949 (grub_script_lexer_init): Likewise.
7950 (grub_normal_parse_line): Likewise.
7952 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
7954 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
7955 static instead of nested. Rename to ...
7956 (grub_parser_execute_getline): ... this.
7957 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
7959 * grub-core/normal/main.c (read_config_file: getline): Make static
7960 instead of nested. Rename to ...
7961 (read_config_file_getline): ... this.
7962 (grub_normal_read_line): Add unused data argument.
7963 * grub-core/script/execute.c (grub_script_execute_sourcecode:
7964 getline): Make static instead of nested. Rename to ...
7965 (grub_script_execute_sourcecode_getline): ... this.
7966 * util/grub-script-check.c (main: get_config_line): Make static
7969 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7971 Remove nested functions from memory map iterators.
7973 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
7974 argument, passed to hook.
7975 * grub-core/kern/i386/coreboot/mmap.c
7976 (grub_linuxbios_table_iterate): Likewise.
7977 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
7979 (grub_machine_mmap_iterate): Add hook_data argument.
7980 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
7981 Add hook_data argument, passed to hook.
7982 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
7984 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
7986 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
7988 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
7990 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
7992 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
7994 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
7995 (grub_machine_mmap_iterate): Likewise.
7996 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
7997 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
7999 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
8000 Remove NESTED_FUNC_ATTR from here and from all users.
8001 (grub_mmap_iterate): Update prototype.
8002 (grub_efi_mmap_iterate): Update prototype. Update all callers to
8003 pass appropriate hook data.
8004 (grub_machine_mmap_iterate): Likewise.
8006 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
8007 static instead of nested.
8008 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
8010 (lsmmap_hook): ... this.
8011 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
8013 (grub_efiemu_mmap_fill: fill_hook): Likewise.
8014 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
8015 heap_init): Likewise.
8016 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
8018 (mmap_iterate_hook): ... this.
8019 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
8021 * grub-core/lib/ieee1275/relocator.c
8022 (grub_relocator_firmware_get_max_events: count): Likewise.
8023 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
8025 (grub_relocator_firmware_fill_events_iter): ... this.
8026 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
8027 hook): Likewise. Rename to ...
8028 (grub_relocator_alloc_chunk_align_iter): ... this.
8029 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
8031 (generate_e820_mmap_iter): ... this.
8032 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
8034 (count_hook): ... this.
8035 (grub_linux_boot: hook): Likewise. Rename to ...
8036 (grub_linux_boot_mmap_find): ... this.
8037 (grub_linux_boot: hook_fill): Likewise. Rename to ...
8038 (grub_linux_boot_mmap_fill): ... this.
8039 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
8040 hook): Likewise. Rename to ...
8041 (grub_fill_multiboot_mmap_iter): ... this.
8042 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
8043 hook): Likewise. Rename to ...
8044 (count_hook): ... this.
8045 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
8046 hook): Likewise. Rename to ...
8047 (grub_fill_multiboot_mmap_iter): ... this.
8048 * grub-core/loader/powerpc/ieee1275/linux.c
8049 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
8050 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
8051 Likewise. Rename to ...
8052 (alloc_phys_choose): ... this.
8053 (determine_phys_base: get_physbase): Likewise.
8054 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
8055 find_hook): Likewise.
8056 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
8057 (malloc_hook: count_hook): Likewise.
8058 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
8059 Likewise. Rename to ...
8060 (lower_hook): ... this.
8061 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8062 (upper_hook): ... this.
8063 (grub_mmap_get_post64: hook): Likewise. Rename to ...
8064 (post64_hook): ... this.
8065 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
8066 Likewise. Rename to ...
8067 (lower_hook): ... this.
8068 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8069 (upper_hook): ... this.
8070 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
8071 (grub_mmap_iterate: fill_hook): Likewise.
8072 (fill_mask): Pass addr and mask within a single struct.
8073 (grub_cmd_badram: hook): Make static instead of nested. Rename
8075 (badram_iter): ... this.
8076 (grub_cmd_cutmem: hook): Likewise. Rename to ...
8077 (cutmem_iter): ... this.
8079 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8081 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
8082 delimit path in strings using quotes.
8083 * util/getroot.c (grub_guess_root_devices): Likewise.
8084 (grub_make_system_path_relative_to_its_root): Likewise.
8085 * util/grub-probe.c (probe): Likewise.
8086 * util/ieee1275/ofpath.c (find_obppath): Likewise.
8087 (xrealpath): Likewise.
8089 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8091 Fix compilation with older compilers.
8093 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
8094 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
8096 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
8097 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
8098 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
8100 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
8101 * include/grub/crypto.h: Add type defines.
8102 * util/import_gcrypth.sed: Remove duplicate type defines.
8104 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8106 New command list_trusted.
8108 * grub-core/commands/verify.c (grub_cmd_list): New function.
8110 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8112 * util/grub-mkimage.c (generate_image): Fix "size of public key"
8115 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8117 Remove nested functions from PCI iterators.
8119 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
8120 passed to hook. Update all callers to pass appropriate hook data.
8121 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
8122 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
8123 Remove NESTED_FUNC_ATTR from here and from all users.
8124 (grub_pci_iterate): Update prototype.
8125 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
8126 instead of nested. Rename to ...
8127 (grub_cs5536_find_iter): ... this.
8128 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
8129 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
8131 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
8133 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
8135 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
8137 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
8138 * grub-core/video/radeon_fuloong2e.c
8139 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
8140 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
8141 find_card): Likewise.
8142 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
8145 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8147 * grub-core/commands/verify.c: Mark messages for translating.
8149 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8151 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
8154 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8156 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
8159 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8161 * autogen.sh: Do not try to delete nonexistant files.
8162 * util/import_gcrypth.sed: Add some missing header removals.
8164 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
8166 Clean up dangling references to grub-setup.
8167 Fixes Ubuntu bug #1082045.
8169 * docs/grub.texi (Images): Refer generally to grub-install rather
8170 than directly to grub-setup.
8171 (Installing GRUB using grub-install): Remove direct reference to
8173 (Device map) Likewise.
8174 (Invoking grub-install): Likewise.
8175 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
8176 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
8177 * util/grub-install.in (usage): Likewise.
8179 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
8180 Apply to grub-bios-setup and grub-sparc64-setup rather than to
8182 * configure.ac: Remove grub_setup output variable.
8184 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
8186 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
8187 grub-setup to grub-sparc64-setup.
8189 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8191 Import gcrypt public-key cryptography and implement signature checking.
8193 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8195 * grub-core/fs/ntfs.c: Ue more appropriate types.
8196 * grub-core/fs/ntfscomp.c: Likewise.
8197 * include/grub/ntfs.h: Likewise.
8199 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8201 Support Apple FAT binaries on non-Apple platforms.
8203 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
8204 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
8206 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
8209 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8211 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
8214 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8216 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
8217 explicitly zeroing elements.
8218 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
8219 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
8220 of elements in a structure already allocated using grub_zalloc.
8221 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
8223 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8225 * docs/grub.texi (grub_cpu): New subsection.
8226 (grub_platform): Likewise.
8228 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8230 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
8232 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8234 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
8237 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8239 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
8240 * grub-core/fs/ntfscomp.c: Likewise.
8241 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
8242 (grub_ntfs_comp): Likewise.
8244 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8246 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
8248 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
8249 of groups_per_block. All users updated.
8251 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8253 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
8254 grub_error properly.
8255 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
8256 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
8258 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8260 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
8261 always in /boot/zfs.
8262 Reported by: Yuta Satoh.
8264 2013-01-03 Yuta Satoh <nigoro>
8266 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
8269 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8271 * configure.ac: Extend -Wno-trampolines to host.
8273 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8275 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
8278 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8280 * docs/grub.texi (Invoking grub-mkrelpath): New section.
8281 (Invoking grub-script-check): Likewise.
8283 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8285 * docs/grub.texi (Invoking grub-mount): New section.
8286 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
8288 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8290 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
8291 test failures, so that a failing unit test correctly causes 'make
8294 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8296 Fix failing printf test.
8298 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
8299 '$' in the correct order when collecting type information.
8301 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8303 * docs/grub.texi (configfile): Explain environment variable
8305 (source): New section.
8306 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
8308 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
8310 Remove several trivially-unnecessary uses of nested functions.
8312 * grub-core/commands/i386/pc/sendkey.c
8313 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
8315 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
8317 (legacy_file_getline): ... this.
8318 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
8320 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
8321 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
8323 (probe_dummy_iter): ... this.
8324 * grub-core/kern/i386/coreboot/mmap.c
8325 (grub_linuxbios_table_iterate: check_signature): Likewise.
8326 * grub-core/kern/parser.c (grub_parser_split_cmdline:
8327 check_varstate): Likewise. Mark inline.
8328 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
8329 an additional parameter.
8330 (find_long: fnd_long): Likewise. Pass two additional parameters.
8331 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
8332 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
8333 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
8334 Likewise. Rename to ...
8335 (grub_cmos_find_port_iter): ... this.
8336 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
8338 (find_rtc_iter): ... this.
8340 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
8341 function directly into the function body, since it is only called
8344 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
8346 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
8347 __attribute__ ((unused)).
8348 * grub-core/video/bochs.c (find_card): Likewise.
8349 * grub-core/video/cirrus.c (find_card): Likewise.
8350 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
8351 * grub-core/video/sis315pro.c (find_card): Likewise.
8352 * grub-core/video/sm712.c (find_card): Likewise.
8354 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8356 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
8357 Fixes Savannah bug #37821.
8359 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8361 Apply program name transformations at build-time rather than at
8362 run-time. Fixes Debian bug #696465.
8364 * acinclude.m4 (grub_TRANSFORM): New macro.
8365 * configure.ac: Create output variables with transformed names for
8367 * util/bash-completion.d/grub-completion.bash.in: Use
8368 pre-transformed variables for program names.
8369 * util/grub-install.in: Likewise.
8370 * util/grub-kbdcomp.in: Likewise.
8371 * util/grub-mkconfig.in: Likewise.
8372 * util/grub-mkconfig_lib.in: Likewise.
8373 * util/grub-mknetdir.in: Likewise.
8374 * util/grub-mkrescue.in: Likewise.
8375 * util/grub-mkstandalone.in: Likewise.
8376 * util/grub-reboot.in: Likewise.
8377 * util/grub-set-default.in: Likewise.
8378 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8379 * tests/util/grub-shell-tester.in: Remove unused assignment.
8380 * tests/util/grub-shell.in: Likewise.
8381 * util/grub.d/00_header.in: Likewise.
8383 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8385 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
8387 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
8389 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
8391 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
8393 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
8394 Reported by: Eriks Latosheks <foresterlv>.
8396 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8398 * docs/grub.texi (Network): Update instructions on generating netboot
8401 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8403 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
8404 around device name if necessarry.
8406 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8408 * util/grub-install.in: Follow the symbolic link parameter added
8409 to the file command.
8411 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
8413 * util/grub-install.in: Remove stale TODO.
8415 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8417 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
8418 dynamic allocation for the bootpath buffer.
8420 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
8422 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
8425 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8427 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
8428 argument rather than font name. All users updated.
8429 (grub_gfxterm_set_window): Likewise.
8431 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
8433 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
8436 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8438 * util/getroot.c (convert_system_partition_to_system_disk): Support
8441 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8443 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
8444 infinite loop on corrupted FS.
8446 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8448 Fix big-endian mtime.
8450 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
8451 together sec and usec.
8452 (grub_ufs_dir): Use correct byteswapping for UFS time.
8454 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8456 Support big-endian UFS1.
8458 * Makefile.util.def (libgrubmods): Add ufs_be.c
8459 * grub-core/Makefile.core.def (ufs1_be): New module.
8460 * grub-core/fs/ufs_be.c: New file.
8461 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
8464 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
8466 * include/grub/types.h: Fix functionality unaffecting typo in
8467 GRUB_TARGET_WORDSIZE conditional macro.
8469 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8471 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
8473 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
8475 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
8476 that /netbsd appears first (when it exists).
8478 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
8480 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
8481 Fixes Savannah bug #37558.
8483 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
8485 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
8486 description of extract_entries_configfile.
8488 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
8490 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
8492 (grub_cmd_linux): Likewise.
8493 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
8494 preferred_lifetime. Update all users.
8496 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8498 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
8499 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
8501 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8503 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
8504 errors from grub-probe to /dev/null, not stdout.
8506 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
8508 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
8511 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
8513 * util/grub-install.in: Make the error message if $source_dir
8514 doesn't exist more useful.
8516 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
8518 Fix grub-emu build on FreeBSD.
8520 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
8521 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
8523 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
8524 implementation is currently Linux-specific.
8525 * util/getroot.c (exec_pipe): Define only on Linux or when either
8526 libzfs or libnvpair is unavailable.
8527 (find_root_devices_from_poolname): Remove unused path variable.
8529 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8531 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
8532 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
8533 should fit before end == 63.
8535 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8537 * util/grub-setup.c (write_rootdev): Remove unused core_img
8538 parameter. Update all callers.
8539 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
8540 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
8543 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8545 * util/grub-mkconfig_lib.in (grub_tab): New variable.
8546 (grub_add_tab): New function.
8547 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
8548 * util/grub.d/10_illumos.in: Likewise.
8549 * util/grub.d/10_kfreebsd.in: Likewise.
8550 * util/grub.d/10_linux.in: Likewise.
8551 * util/grub.d/10_netbsd.in: Likewise.
8552 * util/grub.d/10_windows.in: Likewise.
8553 * util/grub.d/10_xnu.in: Likewise.
8554 * util/grub.d/20_linux_xen.in: Likewise.
8555 * util/grub.d/30_os-prober.in: Likewise.
8557 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8559 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8560 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
8561 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
8562 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
8563 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
8565 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8566 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
8568 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8570 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
8572 Reported by: BURETTE, Bernard.
8574 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
8576 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
8579 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
8581 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
8582 IEEE1275 machines. Fixes powerpc-emu compilation.
8583 * include/grub/terminfo.h: Likewise.
8585 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8587 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
8589 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
8591 (efiemu_set_variable): Make vendor_guid a const pointer.
8593 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8595 Don't require grub-mkconfig_lib to generate manpages for programs.
8597 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
8598 dependencies, don't add grub-mkconfig_lib.
8599 (program): Pass empty adddeps.
8600 (script): Pass grub-mkconfig_lib as adddeps.
8602 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8604 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
8605 * util/getroot.c (grub_find_device): Likewise.
8606 (get_mdadm_uuid): Likewise.
8607 (grub_util_is_imsm): Likewise.
8608 (grub_util_pull_device): Likewise.
8609 * util/grub-probe.c (probe): Likewise.
8611 2012-09-10 Benoit Gschwind <gschwind>
8613 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
8614 (devs): Add devpath_8.
8616 2012-09-08 Peter Jones <pjones@redhat.com>
8618 * grub-core/Makefile.core.def (efifwsetup): New module.
8619 * grub-core/commands/efi/efifwsetup.c: New file.
8620 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
8621 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
8623 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
8625 2012-09-05 Jiri Slaby <jslaby@suse.cz>
8627 * configure.ac: Add SuSe path.
8629 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8633 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8635 * util/import_gcry.py: Sort cipher_files, to make build system
8636 generation more deterministic.
8638 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8640 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
8641 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
8642 (grub_set_datetime): Likewise.
8644 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8646 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
8649 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8651 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
8653 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8655 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
8657 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8659 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
8660 required for checkouts from bzr, but it may be useful for users or
8661 distributors wishing to update translations against a tarball
8662 distribution, and it can be helpful for the tarball to be a superset
8665 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8667 * Makefile.am (EXTRA_DIST): Add
8668 grub-core/tests/boot/linux.init-mips.S,
8669 grub-core/tests/boot/linux.init-ppc.S, and
8670 grub-core/tests/boot/linux-ppc.cfg.
8672 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8674 * grub-core/mmap/mips/loongson: Remove empty directory.
8676 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8678 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
8681 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8683 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
8686 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8688 * configure.ac: Strengthen the test for working -nostdinc -isystem.
8690 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8692 * po/POTFILES.in: Regenerated.
8694 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8696 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
8697 (NetBSD): New subsection.
8699 2012-07-22 Ales Nesrsta <starous@volny.cz>
8701 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
8702 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
8704 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8706 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
8707 * util/grub.d/10_hurd.in: Add missing quoting.
8708 * util/grub.d/10_illumos.in: Likewise.
8709 * util/grub.d/10_kfreebsd.in: Likewise.
8710 * util/grub.d/10_linux.in: Likewise.
8711 * util/grub.d/20_linux_xen.in: Likewise.
8713 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8715 New command `lsefi'.
8717 * grub-core/Makefile.core.def (lsefi): New module.
8718 * grub-core/commands/efi/lsefi.c: New file.
8719 * include/grub/efi/api.h: Add more GUIDs.
8721 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8723 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
8724 (grub_bsd_elf32_hook): Likewise.
8725 (grub_bsd_elf64_size_hook): Likewise.
8726 (grub_bsd_elf64_hook): Likewise.
8727 (grub_bsd_load_elf): Likewise.
8729 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8731 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
8732 if hash function is unavailable.
8733 (dec_stream_header): Likewise.
8735 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8737 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
8740 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8742 Fix coreboot compilation.
8744 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
8745 (grub_vga_text_init_real): ... this.
8746 (grub_vga_text_fini): Rename to ...
8747 (grub_vga_text_fini_real): ... this.
8749 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8751 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
8753 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8755 * grub-core/lib/legacy_parse.c: Support clear and testload.
8757 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8759 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
8761 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8763 * grub-core/fs/ext2.c: Experimental support for 64-bit.
8765 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8767 * grub-core/net/tftp.c (ack): Fix endianness problem.
8768 (tftp_receive): Likewise.
8769 Reported by: Michael Davidsaver.
8771 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8773 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8775 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8777 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8778 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8779 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8781 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8783 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8785 Reported by: Stuart Hayes.
8787 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8789 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8791 * grub-core/Makefile.core.def (mda_text): New module.
8792 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8793 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8794 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8795 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8797 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8798 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8799 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8801 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8803 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8805 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8807 * grub-core/term/i386/vga_common.c: Removed.
8808 * include/grub/i386/vga_common.h: Likewise.
8809 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8810 (grub_vga_cr_bw_read): Likewise.
8811 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8812 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8813 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8814 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8815 grub_vga_cr_read/grub_vga_cr_write.
8816 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8818 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8820 * configure.ac: Bump version to 2.00.
8821 * grub-core/normal/main.c (features): Add feature_200_final.
8823 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8824 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8826 * NEWS: Fix unclarity and language mistakes.
8828 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8830 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8831 additional size to 3 pages.
8832 Reported by: Stuart Hayes.
8834 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8836 * NEWS: Add 2.00 entry.
8838 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8840 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8841 put explicit "/" for empty path.
8842 (wildcard_expand): Improve dprintf.
8844 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8846 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
8847 it's equal to currnode. This can happen with "" symlink.
8849 2012-06-27 Yves Blusseau <blusseau@zetam.org>
8851 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
8852 echo shell command by printf command.
8854 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8856 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
8857 the value returned by firmware is the maximal position, not diumension.
8858 (grub_terminfo_output_state): Use a more sane fallback.
8860 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8862 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
8864 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8866 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
8867 frequency to 150 MHz.
8869 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8873 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
8875 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
8877 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
8879 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8881 Handle slash in HFS label.
8883 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
8884 (grub_hfs_dir): Tanslate slash.
8885 (grub_hfs_label): Don't translate slash.
8887 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8889 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
8890 network protocol listing since it introduces problematic dependency on
8893 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8895 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
8897 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8899 Init video early on yeeloong to avoid being rebooted by watchdog.
8901 * grub-core/Makefile.am (gensm712): New target.
8902 (sm712_start.S): Likewise.
8903 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
8904 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
8905 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
8907 * include/grub/vga.h: Move registry definitions to...
8908 * include/grub/vgaregs.h: ... here.
8910 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8912 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
8915 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8917 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
8918 platforms with firmware disk drivers in the core.
8920 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8922 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
8923 informative verbose message.
8924 (read_lv): Handle 64-bit segment size.
8926 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8928 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
8930 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8932 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
8933 character but still remove trainling spaces.
8934 (grub_fat_label): Ignore archive flag.
8936 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8938 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
8939 cast between linux_kernel_header and linux_kernel_params.
8941 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8943 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
8945 (grub_raid6_recover_func_t): Likewise.
8946 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
8947 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
8949 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8951 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
8953 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
8957 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
8958 [__NetBSD__]: Add explicit cast before bitshift.
8960 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8962 * configure.ac: Bump to 2.00~rc1.
8964 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8966 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
8969 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8970 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
8972 * docs/grub.texi: Fix search syntax.
8973 (Multi-boot manual config): Put msdos rather than GPT example.
8974 Grammar corrections.
8976 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8978 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
8980 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8982 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
8984 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8986 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
8987 message on double free. Put the value of magic in case of mismatch.
8989 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8991 Speed-up video on yeeloong.
8993 * grub-core/video/sm712.c (framebuffer): Remove render_target and
8995 (grub_video_sm712_video_fini): Unmap cached_ptr.
8996 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
8997 (grub_video_sm712_set_active_render_target): Removed.
8998 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
8999 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
9002 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9004 Avoid flushing the same line multiple times on loongson.
9006 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
9007 Step in 32 bytes and not 1 byte.
9008 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
9011 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9013 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
9016 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9018 Implement flow control for http.
9020 * grub-core/net/http.c (parse_line): Handle response 206.
9021 (http_receive): Stall if too many packets are in the queue.
9022 (http_establish): Fix range header.
9023 (http_seek): Fix double free.
9024 (http_close): Likewise.
9025 (http_packets_pulled): New function.
9026 (grub_http_protocol): Set http_seek
9027 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
9028 (ack_real): Set window depending on i_stall.
9029 (grub_net_send_tcp_packet): Likewise.
9030 (grub_net_tcp_stall): New function.
9031 (grub_net_tcp_unstall): Likewise.
9032 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
9033 (grub_net_tcp_unstall): Likewise.
9035 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9037 * grub-core/net/tftp.c: Decrease stall to 50 packets.
9039 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9041 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
9043 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9045 * tests/util/grub-shell.in: Fix a typo.
9047 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9049 Implement flow control for tftp.
9051 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
9052 packets but stop only if stop condition is satisfied.
9053 (grub_net_fs_read_real): Call packets_pulled after real read. Use
9054 `stall' instead of `eof' as stop condition.
9055 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
9056 (http_err): Likewise.
9057 * grub-core/net/tftp.c (ack): Replace the first argument with data
9059 (tftp_receive): Stall if too many packets are in wait queue.
9060 (tftp_packets_pulled): New function.
9061 (grub_tftp_protocol): Set packets_pulled.
9062 * include/grub/net.h (grub_net_packets): New field count.
9063 (grub_net_put_packet): Increment count.
9064 (grub_net_remove_packet): Likewise.
9065 (grub_net_app_protocol): New field `packets_pulled'.
9066 (grub_net): New field `stall'.
9068 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9070 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
9071 sync part to handle them.
9073 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9075 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
9076 * grub-core/net/drivers/ieee1275/ofnet.c
9077 (grub_ieee1275_net_config_real): Likewise.
9079 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9081 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
9082 the direct route for server/gateway.
9084 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9086 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
9087 IP address to server name since we may not hame the DNS.
9089 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9091 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
9092 freeing random buffer on failure.
9093 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
9095 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9097 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
9099 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9101 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
9103 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
9104 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
9105 Handle malloc error correctly.
9107 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9109 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
9112 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9114 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
9117 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9119 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
9120 none is explicitly specified.
9122 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9124 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
9127 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9129 Respect netmask from bootp/dhcp.
9131 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
9132 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
9133 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
9135 (grub_net_add_ipv4_local): ... this.
9136 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
9137 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
9138 (grub_net_add_ipv4_local): New proto.
9140 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9142 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
9143 determining EFI memory map size.
9145 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9147 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
9149 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9151 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
9152 when looking for partition separator.
9154 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9156 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9159 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9161 Restructure FAT driver to avoid hook in label reading as it hits a
9164 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
9165 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
9166 (grub_fat_iterate_dir): Split into ...
9167 (grub_fat_iterate_init): ... this, ...
9168 (grub_fat_iterate_fini): ... this, ...
9169 (grub_fat_iterate_dir_next): ... and this. All users updated.
9171 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9173 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
9174 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
9175 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9176 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
9177 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
9178 New fields last_key and last_key_time.
9179 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
9180 extended key-esc into extended key-extended key.
9182 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9184 Avoid unnecessary memcpy of whole video buffer.
9186 * grub-core/video/fb/video_fb.c (dirty): New struct.
9187 (framebuffer): Add members current_dirty and previous_dirty.
9188 (dirty): New function.
9189 (grub_video_fb_fill_rect): Update dirty.
9190 (common_blitter): Likewise.
9191 (grub_video_fb_scroll): Likewise.
9192 (doublebuf_blit_update_screen): Copy only dirty part.
9193 (doublebuf_pageflipping_update_screen): Likewise.
9194 (grub_video_fb_doublebuf_blit_init): Init dirty.
9195 (doublebuf_pageflipping_init): Likewise.
9196 (grub_video_fb_setup): Likewise.
9198 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9200 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
9203 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9205 Fix wildcard regexp dot and other special characters handling.
9206 Reported by: Robert Mabee.
9208 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
9209 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
9210 (split_path): Trigger expansion on '?'.
9211 (unescape): New function.
9212 (wildcard_expand): Unescape parts copied without globbing.
9213 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
9214 (grub_script_arglist_to_argv): Don't unescape expansions.
9216 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9218 * include/grub/net.h (grub_net_card): New member txbufsize.
9219 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
9220 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9221 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
9222 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
9224 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
9225 compatible property to check for macs. Set
9226 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9227 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
9228 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
9229 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
9230 (send_card_buffer): Use txbuf.
9231 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
9232 nested function out of the parent while on it.
9234 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9236 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
9238 (grub_ieee1275_net_config_real): Fix config pointer.
9240 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9242 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
9243 filename parsing to non-block devices.
9245 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9247 * grub-core/kern/device.c (grub_device_open): Remove dead code.
9249 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9251 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
9254 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9256 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
9257 UUID search command even if hints probing failed.
9259 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9261 * po/POTFILES.in: Regenerated.
9263 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9265 Speed-up video on fuloong.
9267 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
9269 (grub_pci_device_unmap_range): Handle non-cached address.
9270 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
9272 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
9273 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
9274 (grub_video_sis315pro_set_active_render_target): Removed.
9275 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
9276 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9277 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
9279 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
9282 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9284 * docs/grub.texi (Multi-boot manual config): New section.
9286 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9288 Avoid slow read-back from VRAM.
9290 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9292 * grub-core/video/fb/video_fb.c
9293 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
9294 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
9295 (front_target): Remove front_target. Add pages.
9296 (grub_video_fb_init): Skip setting front_pages.
9297 (grub_video_fb_fini): Likewise.
9298 (doublebuf_blit_update_screen): Use pages.
9299 (grub_video_fb_doublebuf_blit_init): Likewise.
9300 (doublebuf_pageflipping_init): Allocate offscreen buffer.
9301 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
9302 (grub_video_fb_setup): Prefer doublebuffing.
9304 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9306 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
9309 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9313 * tests/util/grub-shell.in: Handle loongson.
9314 * tests/partmap_test.in: Add loongson to the list of platform using ATA
9316 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
9317 Reboot instead of shutdown if REBOOT is defined.
9319 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9321 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
9322 sized ports since unlike on real hardware qemu supports only 32-bit
9325 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9327 * Makefile.util.def (grub-mkrescue): Enable on loongson.
9328 * util/grub-mkrescue.in: Handle loongson.
9330 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
9332 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
9333 Set is_part appropriately.
9334 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
9335 names. Canonicalize partition without full disk.
9337 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9339 Revert usb-quiesce since it's wrong.
9341 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
9342 (grub_ofdisk_init): Don't do quiesce.
9344 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9346 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
9347 PowerMac workaround to Xserves as well.
9348 Information supplied by: Benjamin Herrenschmidt.
9350 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9352 Don't assume that beginning address is also the entry point on ppc.
9354 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
9355 (grub_linux_boot): Use linux_entry.
9356 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
9357 (grub_linux_load64): Likewise.
9359 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9361 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
9363 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9365 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
9366 needlessly lose the console.
9368 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9370 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
9373 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9375 Remove non-functional EFI grub_get_rtc. Put a better fatal message
9376 than current grub_get_rtc() not implemented when booted with
9377 coreboot without TSC.
9379 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
9380 Add machine/time.h to kernel headers on loongson.
9381 * grub-core/Makefile.core.def (kernel): Remove
9382 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
9383 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
9384 (grub_get_rtc): Likewise.
9385 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
9386 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
9387 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
9388 * grub-core/kern/i386/tsc.c (grub_tsc_init)
9389 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
9390 rather than installing known non-working time source.
9391 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
9392 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
9393 * include/grub/time.h: Don't include machine/time.h.
9394 * include/grub/efi/time.h: Removed.
9395 * include/grub/i386/efi/time.h: Likewise.
9396 * include/grub/i386/ieee1275/time.h: Likewise.
9397 * include/grub/powerpc/ieee1275/time.h: Likewise.
9398 * include/grub/sparc64/ieee1275/time.h: Likewise.
9399 * include/grub/x86_64/efi/time.h: Likewise.
9401 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9403 Remove dot on i and j when combining with above diacritics.
9405 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
9407 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
9408 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
9409 with dotless variants when any combining above is present.
9411 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9413 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
9414 text and not binary.
9416 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9418 Stop polling as soon as we have the packet we were waiting for.
9420 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
9422 * grub-core/net/arp.c (have_pending): New var.
9423 (pending_req): Likewise.
9424 (grub_net_arp_send_request): Fill pending_req and use have_pending as
9426 (grub_net_arp_receive): Set have_pending.
9427 * grub-core/net/dns.c (recv_data): New field stop.
9428 (recv_hook): Set stop.
9429 (grub_net_dns_lookup): Init stop and use as stop condition.
9430 * grub-core/net/http.c (http_establish): Use headers_recv as stop
9432 * grub-core/net/net.c (grub_net_poll_cards): New argument
9433 stop_condition. Stop when it goes true.
9434 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
9436 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
9438 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9440 Keep TX and RX buffers on EFI rather than always allocate new ones.
9442 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
9443 card. All users updated.
9444 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
9445 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
9446 (get_card_packet): Likewise.
9447 (grub_efinet_findcards): Init new fields.
9449 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9451 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
9452 compilation error on sparc64.
9454 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9456 Use ITC on IA64 rather than broken routine based on daytime.
9458 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
9460 (grub_get_rtc) [__ia64__]: Likewise.
9461 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
9462 (get_itc): New function.
9463 (grub_rtc_get_time_ms): Likewise.
9464 (grub_machine_init): Calibrate ITC.
9465 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
9466 Keep only on non-ia64. Don't export since it's broken and used only
9467 if TSC is unavailable.
9469 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9471 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
9473 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
9474 Skip if parent is unused.
9476 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9478 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
9480 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9482 Fix wildcard escaping.
9484 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
9485 * grub-core/script/execute.c (wildcard_escape): .. to here.
9487 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
9488 * grub-core/script/execute.c (wildcard_unescape): .. to here.
9490 * grub-core/script/execute.c (gettext_append): Always escape.
9491 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
9492 * grub-core/script/yylex.l: Don't cut away the escaping.
9493 * tests/grub_script_echo1.in: Add tests with wildcard.
9495 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9497 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
9498 (ftdi_hw_configure): Likewise.
9499 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
9501 (real_config): Handle 1.5 stop bits.
9502 (pl2303_hw_configure): Likewise.
9504 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9506 * Makefile.am: Add ppc linux bootcheck.
9507 * grub-core/tests/boot/linux-ppc.cfg: New file.
9508 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
9510 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9512 * tests/grub_script_expansion.in: Skip network protocols.
9514 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9516 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
9518 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9520 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
9524 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9526 ESCC serial driver for conducting sautomated tests in qemu.
9527 Not tested on real hardware.
9529 * include/grub/serial.h (grub_serial_port): New field escc_desc.
9530 * grub-core/term/ieee1275/escc.c: New file.
9531 * grub-core/Makefile.core.def (escc): New module.
9533 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9535 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
9537 (serial_hw_fetch): Don't read invalid handle.
9538 (serial_hw_put): Don't write into invalid handle.
9540 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9542 Add a 1.5 stop bits value.
9544 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
9545 * include/grub/serial.h (grub_serial_stop_bits_t): Add
9546 GRUB_SERIAL_STOP_BITS_1_5.
9548 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9550 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
9551 value rather than let it uninited.
9553 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9555 * grub-core/commands/wildcard.c (+check_file): New function.
9556 (wildcard_expand): Don't expand to non-existing files, expand with
9557 suffix and not attempt to expand if not needed.
9559 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9561 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
9562 out of partitions containing other partitions.
9564 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9566 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
9567 on some qemu versions with GRUB.
9569 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
9571 (grub_openbsd_bootarg_pcibios): New struct.
9572 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
9575 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9577 * tests/util/grub-shell.in: Trim firmware output on EFI.
9579 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9581 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
9582 and coreboot since it's already in kernel.
9584 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9586 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
9587 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9588 to here. New return value start. All users updated.
9589 Recursively scan linear mappings.
9590 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
9592 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9593 Use grub_util_get_dm_node_linear_info.
9594 * util/getroot.c (convert_system_partition_to_system_disk): Use
9595 grub_util_info rather than grub_dprintf.
9596 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
9598 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9600 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
9602 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
9603 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
9605 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9607 * include/grub/types.h (grub_set_unaligned64): New function.
9608 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
9611 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9613 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
9614 (grub_ofdisk_fini): Quiesce USB devices.
9616 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9618 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
9621 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9623 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
9625 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9627 * grub-core/disk/pata.c (grub_pata_pio_read)
9628 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
9629 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
9631 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9633 Extend automated tests to qemu-mips.
9635 * Makefile.am: reorganise tests and enable qemu-mips.
9636 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
9637 * grub-core/tests/boot/linux.init-mips.S: New file.
9638 * tests/partmap_test.in: Handle ata0 disks.
9639 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
9642 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9644 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
9646 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
9649 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9651 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
9652 (grub_halt): Likewise.
9653 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
9655 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9657 * grub-core/term/serial.c (grub_serial_register)
9658 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
9659 the behaviour in line with x86 platforms.
9661 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9663 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
9664 (grub_ata_strncpy): Likewise.
9665 (grub_ata_identify): Add missing byteswaps.
9667 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9669 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
9671 (screen_read_char): Likewise.
9672 (grub_vga_text_cls): Likewise.
9674 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9676 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
9678 (make_file_path): Likewise.
9680 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9682 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
9684 Tested by: Paulo Flabiano Smorigo.
9685 Crucial information about API supplied by: Coleen <Last name unknown>.
9686 Reviewed by: Coleen <Last name unknown>.
9688 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9690 * util/grub-mkimage.c: Disable -Wcast-align.
9692 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9694 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
9697 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9699 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
9701 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9703 * util/grub-probe.c (escape_of_path): Fix double free.
9705 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9707 * grub-core/commands/videoinfo.c (hook): Show pitch.
9709 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9711 * util/grub.d/20_linux_xen.in: Skip xen-syms.
9713 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9715 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
9716 (probe): Add ieee1275 to OFW devices.
9718 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9720 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
9722 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9724 Handle IBM OFW path.
9726 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
9728 (of_path_of_scsi): Handle vdevice.
9730 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9732 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
9733 Allocate in multiples of 16 to avoid adding a few bytes free region the
9736 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9738 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
9739 Allocate in multiples of 16 to avoid adding a few bytes free region the
9741 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
9743 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9745 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
9747 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
9748 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
9750 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
9752 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
9754 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9756 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
9757 resulted in \\ at the end of the line.
9759 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9761 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
9762 (grub_parser_cmdline_state): Likewise.
9763 (grub_parser_split_cmdline): Likewise.
9765 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9767 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
9768 /dev/root and /dev/dm-*.
9770 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9772 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9773 fix partially stale display.
9775 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9777 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9780 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9782 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9783 Fix MBR remapping workaround.
9784 (grub_util_biosdisk_read) [__linux__]: Likewise.
9786 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9788 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9790 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9792 * configure.ac: Bump to beta6.
9794 2012-05-31 Christer Weinigel <christer@weinigel.se>
9796 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9798 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9800 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9801 (grub_cmd_linux): Likewise.
9803 2012-05-31 Christer Weinigel <christer@weinigel.se>
9807 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9808 (GRUB_EHCI_MULT_TWO): Likewise.
9809 (GRUB_EHCI_MULT_THREE): Likewise.
9810 (GRUB_EHCI_CMASK_MASK): New enum value.
9811 (GRUB_EHCI_SMASK_MASK): Likewise.
9812 (GRUB_EHCI_CMASK_OFF): Likewise.
9813 (GRUB_EHCI_SMASK_OFF): Likewise.
9814 (grub_ehci_pci_iter): Enable periodic schedule.
9815 (grub_ehci_parse_notrun): Likewise.
9816 (grub_ehci_restore_hw): Likewise.
9817 (grub_ehci_setup_qh): Set flags for low speed transfers.
9818 (grub_ehci_find_qh): Use periodic list for low speed.
9819 (grub_ehci_setup_transfer): Check periodic queue as well.
9820 (grub_ehci_check_transfer): Likewise.
9821 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9823 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9825 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9828 2012-05-31 Peter Jones <pjones@redhat.com>
9830 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9831 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9832 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9834 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9836 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9837 uninited variable. Allocate at least setup_sects.
9839 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9841 Fix handling of EFI with big memory maps.
9843 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9844 (real_mode_mem): Likewise.
9845 (real_mode_target): Likewise.
9846 (real_mode_pages): Likewise.
9847 (prot_mode_pages): Likewise.
9848 (linux_params): New var.
9849 (linux_cmdline): Likewise.
9850 (free_pages): Don't set real mode variables.
9851 (allocate_pages): Don't allocate real mode memory.
9852 (grub_e820_add_region): Remove the limit.
9853 (grub_linux_boot): Allocate and copy real mode memory.
9854 (grub_linux_unload): Free linux_cmdline.
9855 (grub_cmd_linux): Use temporary storage for parameters.
9856 (grub_cmd_initrd): Likewise.
9857 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
9858 (linux_kernel_params): Make it 1K big.
9860 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9862 * Makefile.util.def: Remove -Wno-format.
9863 * grub-core/Makefile.core.def: Likewise.
9865 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9867 * tests/cmp_unit_test.c: Add missing failure message.
9868 * tests/example_unit_test.c: Likewise.
9869 * tests/printf_unit_test.c: Likewise.
9871 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9873 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
9874 relaxation of protective MBR requirements.
9876 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9878 * configure.ac: Add condition for COND_HOST_XNU.
9879 * Makefile.util.def (10_xnu): New script.
9880 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
9882 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9884 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
9887 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9889 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
9890 Binary on other platforms stays identical.
9892 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9894 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
9897 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9899 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
9901 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9903 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
9904 rather than defining size_t ourselves to avoid conflict.
9906 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9908 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
9909 initialisation to avoid __bzero reference.
9911 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9913 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
9915 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
9916 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
9917 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
9918 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
9919 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
9921 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9923 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
9924 * grub-core/kern/misc.c: Likewise.
9925 * grub-core/loader/i386/xnu.c: Likewise.
9926 * include/grub/i386/tsc.h: Likewise.
9927 * include/grub/symbol.h: Likewise.
9929 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9931 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
9932 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
9935 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9937 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
9938 Implement Apple flavour.
9939 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
9941 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9943 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
9944 (memmove) [__APPLE__]: Likewise.
9945 (memcpy) [__APPLE__]: Likewise.
9946 (memset) [__APPLE__]: Likewise.
9947 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
9948 (memmove) [__APPLE__]: Likewise.
9949 (memcpy) [__APPLE__]: Likewise.
9950 (memset) [__APPLE__]: Likewise.
9952 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9954 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
9957 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9959 * grub-core/normal/main.c (read_config_file): Provide config_file and
9961 * util/grub.d/41_custom.in: Use config_directoy when available.
9963 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9965 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
9966 (grub_bfs_dir): Likewise.
9968 2012-05-27 Peter Jones <pjones@redhat.com>
9970 The old code gives arguments to a printf function which can't work
9971 correctly, and the compiler complains.
9973 * grub-core/tests/example_functional_test.c (example_test): Add
9975 * grub-core/tests/lib/test.c (add_failure): Rewrite.
9976 * include/grub/test.h (grub_test_assert_helper): New declaration.
9977 (grub_test_assert): Use grub_test_assert_helper.
9979 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9981 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
9982 (exfctest): ... this to avoid overlong filenames.
9985 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9987 Handle "." and ".." on squashfs.
9989 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
9990 Make inode numbers into stack.
9991 (grub_squash_read_symlink): Use stack.
9992 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
9993 (make_root_node): Fill stack.
9994 (grub_squash_open): Use stack.
9996 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9998 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
10001 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10003 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
10004 stderr on test calls.
10006 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10008 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
10010 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10012 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
10014 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10016 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
10019 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10021 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
10022 (grub_hfsplus_iterate_dir): Add "." and "..".
10024 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10026 * grub-core/fs/cpio.c (canonicalize): Handle "..".
10027 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
10029 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10031 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
10032 (find_path): Handle "." and "..".
10034 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10036 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
10037 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
10038 (grub_affs_iterate_dir): Handle hardlinks.
10040 2012-05-26 Matthew Garrett <mjg@redhat.com>
10042 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
10043 (grub_efi_console_fini): Likewise.
10044 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
10045 (grub_video_gop_fill_mode_info): Rename to ...
10046 (grub_video_gop_fill_real_mode_info): ... this.
10047 (grub_video_gop_fill_mode_info): New function.
10048 (grub_video_gop_setup): Setup double framebuffer.
10049 (grub_video_gop_get_info_and_fini): Use original framebuffer.
10051 (grub_video_gop_swap_buffers): Copy framebuffer.
10052 (grub_video_gop_fini): Free offscreen buffer.
10053 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
10055 (grub_efi_gop_blt_pixel): New struct.
10057 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10059 * gentpl.py: Remove error disabling for objconv.
10061 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10063 * configure.ac: Remove -Wunitialized as it's not available on older
10066 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10068 Fix extent overflow comparator.
10070 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
10071 (grub_hfsplus_read_block): Set type.
10072 (grub_hfsplus_cmp_extkey): Compare type.
10074 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
10076 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
10078 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10080 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
10083 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10085 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
10086 (dejavu_bold_14.pf2): New target.
10088 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10090 * configure.ac: Fix djvu font detection.
10092 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10094 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
10095 ext* instead of ext2.
10097 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10099 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
10102 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
10104 * docs/grub-dev.texi: Remove dot from .png.
10106 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10108 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
10109 protective entry in any slot.
10110 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
10111 if protective entry is found in any slot.
10113 Protective entry in non-first slot make no sense but is a widespread
10116 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10118 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
10120 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10122 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
10124 (grub_reiserfs_open): Don't free root.
10126 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10128 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
10129 after freeing for safety.
10131 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10133 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
10134 Reported by: Jordan Uggla.
10136 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
10138 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
10139 actual implementation. Specifically, clarify that the grub menu will
10140 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
10143 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
10145 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
10148 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10150 Remove unjustified hard dependency of normal.mod on gfxterm.
10152 * include/grub/term.h (grub_term_output): New member fullscreen.
10153 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
10154 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
10155 (grub_gfxterm): Set .fullscreen.
10156 * grub-core/normal/menu.c (menu_init): Use fullscreen.
10157 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
10159 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10161 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
10162 mentioning possible problems with non-ASCII (non-compliant) ISOs.
10163 Mention case-insensitive AFFS, SFS and JFS.
10165 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10167 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
10169 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10171 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10174 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10176 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
10177 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
10179 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10181 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
10182 (grub_jfs_mount): Fill caseins.
10183 (grub_jfs_find_file): Respect caseins.
10185 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10187 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
10190 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10192 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
10193 New argument origpath. All users updated.
10195 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10197 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
10198 (read_attr): Ensure that we read start of possibly compressed block.
10200 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10202 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
10203 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
10206 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10208 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
10209 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
10210 (dejavu.pf2): Replace with ...
10211 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
10214 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10216 * util/grub.d/20_linux_xen.in: Add missing line.
10218 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10220 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
10221 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
10222 (grub_utf16_to_utf8): Likewise.
10224 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10226 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
10227 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
10228 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10229 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
10230 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
10231 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
10233 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10235 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10238 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10240 * grub-core/fs/udf.c (read_string): Bail out on size=0.
10241 (grub_udf_read_symlink): Handle read_string failure.
10243 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10245 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
10248 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10250 Fix handling of UDF symlinks.
10252 * grub-core/fs/udf.c (read_string): New argument outbuf.
10254 (grub_ufs_read_symlink): Rename to ...
10255 (grub_udf_read_symlink): ... this. All users updated.
10256 Handle symlinks with more than one component.
10258 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10260 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
10261 symlinks. Replace leading colon with a slash.
10263 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10265 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
10268 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10270 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
10271 match in inner node.
10273 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10275 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
10276 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
10277 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
10278 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
10279 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
10280 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
10281 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
10282 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
10283 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
10285 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10287 Use grub-probe and not cmp to check that disk is empty.
10289 * util/grub-install.in: Use grub-probe for zero-check.
10290 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
10291 (probe): Handle PRINT_ZERO_CHECK.
10292 (argp_parser): Handle -t zero_check.
10294 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10296 Flush block cache on adding disk to device map.
10298 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
10299 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
10301 (read_device_map): Likewise.
10302 (open_device): Flush on opening.
10304 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10306 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
10307 (handle_symlink): Fix off-by-one error.
10308 Canonicalize the target.
10309 (grub_cpio_dir): Canonicalize the name.
10312 (grub_cpio_open): Canonicalize the name.
10314 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10316 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
10319 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10321 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
10322 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
10324 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10326 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
10327 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
10330 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10332 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
10335 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10337 Fix UFS1 big file support.
10339 * grub-core/fs/ufs.c (INODE): Removed.
10340 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
10342 (INODE_MODE): Simplify.
10343 (grub_ufs_inode): Use uint64_t for size and not int64_t.
10344 (grub_ufs_lookup_symlink): Don't use INODE.
10346 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10348 Fix minixfs with non-power-of-two blocks since it's supported by minix.
10350 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
10351 (grub_minix_data): Replace log_block_size with block_size.
10352 (grub_minix_read_file): Use block_size but avoid 64-bit division.
10353 (grub_minix_mount): Fill block_size.
10355 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10357 * configure.ac: Bump to beta5.
10359 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10361 Fix wrapped HFS+ handling.
10363 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
10364 blocks_start. All users updated.
10365 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
10367 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
10369 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10371 Fix long symlinks on reiserfs.
10373 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
10374 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
10375 (grub_reiserfs_iterate_dir): Save size for non-directories.
10376 (grub_reiserfs_open): Don't reread stat block as we already know the
10378 (grub_reiserfs_read): Split into...
10379 (grub_reiserfs_read_real): ... and ...
10380 (grub_reiserfs_read): ...this.
10382 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10384 Fix non-indexed JFS.
10386 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
10387 (grub_jfs_data): New field namecomponentlen.
10388 (grub_jfs_mount): Fill namecomponentlen.
10389 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
10391 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10393 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
10394 * tests/grub_script_echo1.in: Add tests.
10396 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10398 * util/grub-install.in: Ignore empty devicetree directory.
10400 2012-05-08 Bean <bean123ch@gmail.com>
10402 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
10404 (free_rsm): Free header as well.
10405 (free_old_fragments): Fix memory leak.
10406 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
10407 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
10408 (destroy_pq): Likewise.
10409 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
10411 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10413 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
10414 resulting hash as a precaution.
10416 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10418 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
10419 '_' in variable names.
10420 * grub-core/net/net.c (grub_net_network_level_interface_register):
10423 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10425 Fix AFFS with non-512B blocks.
10427 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
10428 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
10429 (grub_affs_data): Replace blocksize with log_blocksize.
10430 (grub_affs_read_block): Fix non-512B blocks.
10431 (grub_affs_read_symlink): Likewise.
10432 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
10433 (grub_affs_read): Fix non-512B blocks.
10434 (grub_affs_label): Likewise.
10435 (grub_affs_mtime): Likewise.
10436 (grub_affs_mount): Fix block detection routine.
10438 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10440 Add filesystem mtime to AFFS.
10442 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
10443 (aftime2ctime): New function.
10444 (grub_affs_dir): Use aftime2ctime.
10445 (grub_affs_label): Fix return value.
10446 (grub_affs_mtime): New function.
10447 (grub_affs_fs): Add mtime.
10449 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10451 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
10454 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10456 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
10459 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10461 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
10463 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10465 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
10467 (FLAGS_CASE_SENSITIVE): New enum value.
10468 (cache_entry): New struct.
10469 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
10470 cache_size and cache.
10471 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
10472 Add log_blocksize and fshelp_flags.
10473 (grub_sfs_read_extent): Handle non-512 blocks.
10474 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
10475 (grub_sfs_read_file): Handle non-512 blocks.
10476 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
10478 (grub_sfs_read_symlink): Handle non-512 blocks.
10479 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
10480 (grub_sfs_dir): Free cache.
10481 (grub_sfs_close): Likewise.
10483 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10485 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
10488 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10490 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
10492 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10494 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
10496 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10498 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
10499 (grub_sfs_read_extent): Likewise.
10500 (grub_sfs_read_block): Likewise.
10501 (grub_sfs_mount): Likewise.
10502 (grub_sfs_iterate_dir): Likewise.
10503 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
10504 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
10506 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10508 Fix errors on compressed NTFS with 512B clusters.
10510 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
10512 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
10514 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
10515 Relax check for inline extents.
10516 (ntfscomp): Return correct -1 on error and not 0.
10518 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10520 * util/grub-install.in: Fix handling of prefix containing spaces.
10522 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10524 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
10525 (grub_squash_read_data): Fix offset byte-swapping.
10527 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10529 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
10530 per common usage and preffered in several parts of code.
10531 (grub_memcmp): Likewise.
10532 (grub_strncmp): Likewise.
10533 * include/grub/misc.h (grub_strcasecmp): Likewise.
10534 (grub_strncasecmp): Likewise.
10535 * Makefile.util.def (cmp_test): New test.
10536 (grub_script_strcmp): Likewise.
10537 * tests/cmp_unit_test.c: New file.
10538 * tests/grub_script_strcmp.in: Likewise.
10539 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
10541 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10543 * include/grub/pci.h: Move enums into no-asm part.
10545 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10547 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
10549 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
10551 * util/getroot.c (find_hurd_root_device): Try to make error message
10552 and comments to translators clearer.
10554 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10556 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
10558 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10560 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
10563 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10565 * docs/grub.cfg: Update.
10567 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10569 * docs/grub.texi (PXE): Remove not present variables.
10571 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10573 * grub-core/net/net.c (defserver_set_env): New function.
10574 (defserver_get_env): Likewise.
10575 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
10577 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10579 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
10582 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10584 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
10585 * grub-core/kern/emu/hostdisk.c: Likewise.
10587 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10589 Handle hurd userspace partitions.
10591 * util/getroot.c (find_hurd_root_device): New function.
10592 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
10594 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10596 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
10598 Reported by: Bastian Blank.
10600 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10602 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
10603 crossing page boundary.
10605 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10607 Fix B-tree search in BFS, especially in presence of non-ASCII
10610 * grub-core/fs/bfs.c (bfs_strcmp): New function.
10611 (find_in_b_tree): Use standard bsearch + btree algorithm.
10613 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10615 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
10618 2012-05-03 Matthew Garrett <mjg@redhat.com>
10619 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10621 Suspend broadcom cards in order to stop their DMA.
10623 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
10624 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
10625 (pci): Don't build on x86 EFI.
10626 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
10627 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
10629 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
10630 stop_broadcom if running on EFI.
10631 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
10632 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
10633 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
10634 (grub_pci_find_capability): New proto.
10636 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10638 * docs/grub.texi: Remove dot from the extension as it apparently
10639 doesn't work with some makeinfo versions.
10641 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10643 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
10644 with GRUB expectance.
10646 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10648 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
10650 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10652 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
10653 zero after directory block since last entry may be not 0-terminated if
10654 it ends on block boundary. Use continue instead of if spanning whole
10657 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10659 Support 4K sectors UDF inline files.
10661 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
10662 (grub_udf_extended_file_entry): Likewise.
10663 (grub_fshelp_node): Name the anonymous union. Put block at the end.
10665 (get_fshelp_size): New function.
10666 (grub_udf_read_icb): Read whole block.
10667 (grub_udf_iterate_dir): Likewise.
10668 (grub_udf_dir): Likewise.
10669 (grub_udf_open): Likewise.
10671 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10673 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
10675 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10677 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
10678 inline symlinks in addition to workaround.
10680 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10682 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
10684 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10686 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
10688 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10690 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
10692 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10694 Fix reiserfs big seek times.
10696 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
10697 exact. All users updated.
10698 (grub_reiserfs_read): Use nearest btree search for seeking.
10699 Fix return value on error.
10701 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10703 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
10705 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
10706 * docs/grub.texi: Update menuentry description.
10708 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10710 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
10711 crash when embedding onto filesystem.
10713 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10715 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
10718 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10720 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
10722 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10724 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
10727 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10728 2012-05-01 Bean <bean123ch@gmail.com>
10730 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
10732 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10734 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
10735 Special behaviour for len = 0 to read whole file isn't used anywhere and
10736 can cause buffer ovewrflows in several places.
10738 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10740 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
10742 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10744 Handle RAIDZ on non-512B sectors.
10746 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
10747 max_children_ashift.
10748 (fill_vdev_info_real): Fill max_children_ashift.
10749 (read_device): Use max_children_ashift.
10751 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10753 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
10755 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10757 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
10759 * docs/grub.texi: Update device.map parts.
10761 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10763 Don't scan into non-diskfilter devices having diskfilter names.
10765 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
10766 (scan_disk): New argument accept_diskfilter. Fix recursion depth
10768 (scan_disk_hook): New function.
10770 2012-04-29 Bean <bean123ch@gmail.com>
10772 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10775 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10777 * configure.ac: Detect starfield theme font path
10778 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10780 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10782 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10783 geometry on serial consoles.
10785 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10787 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10788 because of network consoles.
10790 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10792 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10795 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10797 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10798 falls on Q syndrom.
10800 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10802 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10803 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10805 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10807 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10808 Allocate at lest 8192 for temporary buffer as required for lzo.
10810 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10812 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10813 to cluster_bits, since it's already added in.
10814 (grub_fat_read_data): Likewise.
10816 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10818 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10819 as long as cluster size is multiple of 512 bytes.
10821 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10823 * util/grub-mkrescue.in: Fix locale directory.
10825 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10827 * grub-core/kern/emu/hostdisk.c (map): Make static.
10829 2012-04-23 Bean <bean123ch@gmail.com>
10831 * util/grub-fstest.c (fstest): Add missing break.
10833 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10837 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10838 not define nr variable.
10839 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10840 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10841 grub_find_device): Do not define.
10843 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10845 Fix kfreebsd compile and behaviour.
10847 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
10849 * util/getroot.c: Fix wait.h include.
10850 (grub_guess_root_devices): Error if grub_find_device fails.
10851 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
10852 (grub_util_get_dev_abstraction): Likewise.
10853 (grub_util_pull_device): Likewise.
10854 (grub_util_get_grub_dev): Likewise.
10855 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
10857 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10859 Fix and unify wholedisk detection.
10861 * util/getroot.c (convert_system_partition_to_system_disk): New argument
10862 is_part. All users updated.
10863 (device_is_wholedisk): Removed.
10864 (grub_util_biosdisk_get_grub_dev): Use is_part.
10866 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10868 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
10871 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10873 * configure.ac: Bump to beta4.
10875 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10877 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
10878 --fs-uuid --set UUID syntax.
10880 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10882 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
10885 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10887 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
10889 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
10891 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
10893 2012-04-18 Mike Gilbert <floppym@gentoo.org>
10895 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
10897 2012-04-18 Bean <bean123ch@gmail.com>
10899 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
10902 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10904 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
10906 (grub_util_biosdisk_read): Handle Linux partitions not exactly
10907 corresponding to GRUB partitions.
10908 (grub_util_biosdisk_write): Likewise.
10910 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10912 Scan mdraid before LVM.
10914 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
10915 (grub_diskfilter_register_front): ... this.
10916 (grub_diskfilter_register_back): New function.
10917 All users of grub_diskfilter_register updated.
10919 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10921 * util/grub-install.in: Fix an automatic target detection bug.
10923 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10925 * util/grub-install.in: New option --efi-directory.
10927 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
10929 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
10930 boot services if we have no other choice.
10932 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
10934 * util/grub-mknetdir.in: Rename --override-directory to --directory and
10936 * tests/util/grub-shell.in: Update to --directory.
10938 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10940 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
10942 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10944 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
10945 (grub_minix_read_file): Likewise.
10946 (grub_minix_read_inode): Likewise.
10947 (grub_minix_find_file): Likewise.
10948 (grub_minix_dir): Likewise.
10950 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10952 * util/grub-setup.c (setup): Fix partition handling and blocklist
10955 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10957 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
10958 redundant buggy overlap check.
10960 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10962 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
10965 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10967 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
10968 kh.loadflags on pre-2.00 kernels.
10970 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10972 Terminate UNDI and PXE before launching the payload to avoid problems
10975 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
10976 (grub_loader_flags): ... this. All users updated.
10977 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
10978 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
10979 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
10980 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
10982 (grub_pxe_restore): Likewise.
10983 (fini_hnd): New var.
10984 (GRUB_MOD_INIT): Register shutdown hook.
10985 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
10986 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
10987 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
10988 (grub_loader_set): Rename second argument to flags.
10990 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10992 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
10994 (grub_get_num_of_utf8_bytes): New function.
10995 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
10996 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
10998 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
10999 (grub_ucs4_to_utf8): Change return type.
11001 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11003 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
11005 * grub-core/fs/bfs.c (hop_level): Likewise.
11006 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
11008 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11010 * grub-core/lib/adler32.c: Recode due to license unclearness.
11012 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11014 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
11015 (test_header): Likewise.
11017 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11019 Fix --help formatting.
11021 * util/grub-mkconfig_lib.in (print_option_help): New function.
11022 (grub_fmt): Likewise.
11023 * util/grub-install.in: Use print_option_help and grub_fmt.
11024 * util/grub-kbdcomp.in: Likewise.
11025 * util/grub-mkconfig.in: Likewise.
11026 * util/grub-mknetdir.in: Likewise.
11027 * util/grub-mkrescue.in: Likewise.
11028 * util/grub-mkstandalone.in: Likewise.
11029 * util/grub-reboot.in: Likewise.
11030 * util/grub-set-default.in: Likewise.
11031 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11033 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11035 * linguas.sh: Remove autogenerated *.po.
11037 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11039 * po/README: Move language fetcing to ...
11040 * linguas.sh: ... here.
11041 * po/README: Point to linguas.sh.
11043 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11045 * po/README: Exclude ko.po due to disclaimer problems.
11047 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11049 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
11051 (grub_gettext_translate_real): Handle 0th string.
11052 (grub_gettext_translate): Ensure that "" isn't translated.
11054 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11056 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
11057 TRANSLATORS comment.
11058 (grub_diskfilter_print_partmap): Propagate changing of error into
11061 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11063 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
11064 to uint64_t to prevent overflow.
11065 (grub_diskfilter_lv): Increase start_extent and extent_count
11066 to uint64_t to prevent overflow.
11068 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11070 * configure.ac: Increase version.
11072 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11074 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
11076 * po/Rules-translit: New file.
11077 * po/arabic.sed: Likewise.
11078 * po/cyrillic.sed: Likewise.
11079 * po/greek.sed: Likewise.
11080 * po/hebrew.sed: Likewise.
11081 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
11082 * po/Makefile.in.in: Add extra_dist4.
11084 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11086 Handle big-endian minixfs (fixes minixfs tests on bigendian).
11088 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
11089 modify names. Introduce MODE_BIGENDIAN.
11090 * grub-core/fs/minix_be.c: New file.
11091 * grub-core/fs/minix2_be.c: Likewise
11092 * grub-core/fs/minix3_be.c: Likewise.
11093 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
11095 * grub-core/Makefile.core.def (minix_be): New module.
11096 (minix2_be): Likewise.
11097 (minix3_be): Likewise.
11099 2012-04-01 Felix <email@hamburg.de>
11101 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
11102 (devs): Add MBP 2011.
11104 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11106 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
11108 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11110 * grub-core/normal/cmdline.c (print_completion): New field
11112 (grub_cmdline_get): Handle width properly.
11114 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11116 * grub-core/commands/lsacpi.c (options): Add missing terminator.
11118 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11120 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
11121 after 29th of February.
11123 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11125 Fix exfat endianness handling.
11127 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
11128 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
11129 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
11130 Byte-swap utf16 when necessary.
11131 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
11133 2012-03-31 Anton Blanchard <anton@samba.org>
11134 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11136 Fix btrfs endianness handling.
11138 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
11139 (lower_bound): Make root uint64_t. Use root in le.
11140 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
11141 (find_path): Fix template key init.
11142 (grub_btrfs_dir): Fix mtime byteswap.
11143 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
11145 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11147 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
11148 recursion_depth. Break infinite resursions. All users updated.
11150 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11152 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
11154 Reported by: Peter Jones.
11156 2012-03-31 Anton Blanchard <anton@samba.org>
11158 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
11161 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11163 * util/grub-install.in: Fix nvram call for PreP.
11165 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11167 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
11168 the error when some elements are missing into a warning.
11170 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11172 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
11174 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
11176 * docs/grub.texi (Invoking grub-probe): New section.
11177 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
11179 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
11181 Fix tab and wide character handling in editor and menu.
11183 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
11184 agglomerate control characters with combining marks.
11185 (bidi_line_wrap): Allow break on tab.
11186 (grub_unicode_get_comb_start): New function.
11187 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
11189 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
11191 * grub-core/normal/term.c (print_ucs4_terminal): New argument
11192 fixed_tab_size. All users updated.
11193 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
11194 (grub_term_getcharwidth): Handle \t.
11195 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
11198 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11200 Handle big-endian mdraid.
11202 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
11203 * grub-core/Makefile.core.def (mdraid09_be): New module.
11204 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
11205 rather than grub_le_to_cpu* and grub_cpu_to_le*.
11206 * grub-core/disk/mdraid_linux_be.c: New file.
11208 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11210 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
11212 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11214 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11215 missing quotes which caused confusion among translators.
11217 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11219 * util/grub-mkconfig_lib.in: Fix typo.
11221 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11223 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
11225 * tests/grub_script_leading_whitespace.in: New file.
11226 * Makefile.util.def (grub_script_leading_whitespace): New test.
11228 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11230 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
11233 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11235 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
11236 starts with control character.
11238 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11240 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
11242 (grub_gdb_outbuf): Likewise.
11244 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11246 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
11247 zero terminator. Fixes a crash.
11249 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11251 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
11253 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
11254 images independently of preffered adderss field.
11256 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11258 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
11259 * grub-core/commands/regexp.c: Likewise.
11260 * grub-core/loader/i386/linux.c: Likewise.
11261 * grub-core/partmap/msdos.c: Likewise.
11262 * grub-core/script/execute.c: Likewise.
11263 * grub-core/term/gfxterm.c: Likewise.
11265 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11267 Add variable parsing in $"..." and fix several mismatches with bash.
11269 * Makefile.util.def (grub_script_gettext): New test.
11270 * grub-core/script/execute.c (parse_string): New function.
11271 (gettext_append): Likewise.
11272 (grub_script_arglist_to_argv): Use gettext_append.
11273 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
11274 * tests/grub_script_gettext.in: New file.
11276 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11278 Fix handling of leading spaces in scripts.
11280 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
11282 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
11283 other than skipping \r. All users updated.
11284 * tests/grub_script_echo1.in: Add space-related tests.
11285 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
11287 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11289 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
11291 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11293 * configure.ac: Bump up the version to beta2.
11295 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11297 Fix gettext reload bugs (e.g. inability to disable gettext
11300 * grub-core/gettext/gettext.c: Encapsulate all static variables in
11301 main_context and secondary_context. All functions updated.
11302 (grub_gettext_translate): Rename to ...
11303 (grub_gettext_translate_real): ... this. Return NULL on failed
11305 (grub_gettext_translate): Handle secondary context.
11306 (grub_gettext_delete_list): Close file and zero-out the context.
11307 (grub_mofile_open): Don't call grub_gettext_delete_list.
11309 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
11310 if locale="" to avoid pointless error message.
11311 (grub_gettext_env_write_lang): Update lang even if load fails.
11312 Handle secondary context.
11313 (grub_gettext_reread_prefix): New function.
11314 (read_main): Likewise.
11315 (read_secondary): Likewise.
11316 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
11317 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
11318 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
11319 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
11321 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11323 * configure.ac: Decrease warning level to avoid spurious warnings and
11324 to be able to compile with GCC 4.2.
11325 * Makefile.util.def: Remove -Wno-error=logical-op.
11327 2012-03-10 William Bittner <william.bittner@gmail.com>
11329 * util/import_unicode.py: Add missing brackets around string for
11332 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11334 Fix efi chainloader on network root.
11336 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
11338 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
11341 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11343 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
11344 unused show_text member.
11345 * docs/grub.texi: Document "text" property.
11347 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11349 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
11352 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11354 Fix IMSM handling on Fedora.
11356 * util/getroot.c (grub_util_is_imsm): New function.
11357 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
11359 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11361 * Makefile.am: Strip gold section.
11362 * conf/Makefile.common: Likewise.
11363 * gentpl.py: Likewise.
11364 * grub-core/Makefile.core.def: Likewise.
11365 * grub-core/genmod.sh.in: Likewise.
11367 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11369 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
11370 * util/grub.d/20_linux_xen.in: Likewise.
11371 Based on Debian patch.
11373 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11375 * util/grub.d/10_linux.in: Fix syntax error resulting in
11376 Richard Laager's patch.
11377 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
11379 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11381 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
11384 2012-03-10 Richard Laager <rlaager@wiktel.com>
11386 * util/grub.d/10_linux.in: Fix ZFS root passing.
11388 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11390 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11391 * grub-core/commands/xnu_uuid.c: Likewise.
11392 * grub-core/loader/efi/appleloader.c: Likewise.
11393 * grub-core/script/execute.c: Likewise.
11394 * grub-core/script/main.c: Likewise.
11395 * util/grub-mkfont.c: Likewise.
11397 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11399 * util/grub-mkfont.c (options): Use more appropriate "select" that
11400 "set" for face index.
11402 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11404 * util/grub-editenv.c (options): Gettextize command summaries.
11406 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11408 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
11409 "out of memory" error messagge.
11411 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11413 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
11414 of diskfilter for diskfilter on diskfilter support.
11416 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11418 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
11420 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11422 * util/grub-install.in: Check for themes/starfield/theme.txt and not
11425 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11427 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
11429 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11431 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
11433 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11435 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
11438 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11440 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
11442 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11444 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
11446 * util/grub-install.in: Fix and gettextize error message.
11448 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11450 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
11452 * util/grub-mount.c (options): Likewise.
11454 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11456 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
11458 * grub-core/commands/search_wrap.c (options): Likewise.
11460 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11462 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
11464 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11466 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
11468 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
11471 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11473 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
11474 "temporary" since it's used in identifier and is limited in space.
11476 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11478 * po/POTFILES.in: Regenerate. Include *.h since they contain
11479 translatable strings as well.
11481 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11483 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
11484 byte-swap on big-endian.
11485 Reported by: Lennart Sorensen
11487 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11489 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
11490 (allocate_pages): Improve dprintf.
11491 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
11492 code32_start. Fill code32_start and kernel_alignment in params.
11493 (grub_cmd_initrd): Use prot_init_space.
11495 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11497 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
11499 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11501 * util/grub-install.in: Add missing dot at the end of sentence.
11503 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11505 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11506 * grub-core/commands/videotest.c: Likewise.
11507 * grub-core/loader/i386/linux.c: Likewise.
11509 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11511 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
11513 Reported by: Milo Casagrande.
11515 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11517 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
11518 * grub-core/commands/gptsync.c: Likewise.
11519 * grub-core/commands/hashsum.c: Likewise.
11520 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11521 * grub-core/commands/legacycfg.c: Likewise.
11522 * grub-core/io/gzio.c: Likewise.
11523 * grub-core/net/net.c: Likewise.
11524 * grub-core/term/gfxterm.c: Likewise.
11525 * grub-core/term/terminfo.c: Likewise.
11526 * grub-core/tests/test_blockarg.c: Likewise.
11527 * grub-core/video/video.c: Likewise.
11528 * util/grub-install.in: Likewise.
11529 * util/grub-mkfont.c: Likewise.
11531 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11533 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
11535 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11537 * grub-core/commands/search_wrap.c (options): Fix a typo.
11538 Reported by: David Prévot.
11540 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11542 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
11545 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11547 * util/grub-script-check.c (main): Fix a syntax error message which was
11550 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11552 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
11554 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11556 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
11559 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11561 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
11563 * util/grub-mount.c (options): Likewise.
11565 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11567 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
11569 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11571 * grub-core/net/http.c: Add TRANSLATORS comments.
11572 * grub-core/normal/cmdline.c: Likewise.
11573 * grub-core/normal/misc.c: Likewise.
11574 * grub-core/partmap/msdos.c: Likewise.
11575 * grub-core/parttool/msdospart.c: Likewise.
11576 * grub-core/script/execute.c: Likewise.
11577 * grub-core/script/main.c: Likewise.
11578 * grub-core/term/terminfo.c: Likewise.
11579 * grub-core/video/bitmap.c: Likewise.
11580 * util/grub-install.in: Likewise.
11581 * util/grub-mkimage.c: Likewise.
11582 * util/grub-mklayout.c: Likewise.
11583 * util/grub-setup.c: Likewise.
11585 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11587 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
11588 with similar messages in grub-fstest.
11590 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11592 * util/grub-install.in: Unify "option requires an argument" message
11593 with similar messages in other files.
11594 * util/grub-mkconfig.in: Likewise.
11596 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11598 * util/grub-set-default.in: Replace printf with gettext_printf (the
11599 string in in question is already translated from grub-reboot)
11601 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11603 * configure.ac: Bump up the version to beta1.
11605 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11607 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
11608 case when min_align = 0.
11610 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11612 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
11613 and fix a case when line_start overflows.
11615 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11617 * util/grub-reboot.in (usage): Mention id posibility.
11618 * util/grub-set-default.in (usage): Likewise.
11620 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11622 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
11623 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
11624 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11625 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11626 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11627 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11628 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11630 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11632 * grub-core/commands/menuentry.c (options): Remove
11633 GRUB_ARG_OPTION_REPEATABLE.
11634 Reported by: Andreas Vogel
11636 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
11638 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
11640 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
11642 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
11645 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11647 Use sort -V by the idea of Georgi Georgiev.
11649 * util/grub-mkconfig_lib.in (version_sort): New function.
11650 (version_test_numeric): Use version_sort.
11652 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11654 Use submenus in grub-mkconfig.
11656 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
11657 * util/grub-mkconfig_lib.in (grub_quote): New function.
11658 (gettext_printf): Use gettext and not gettext_quoted to fix several
11660 * util/grub.d/10_hurd.in: Use submenus.
11661 * util/grub.d/10_kfreebsd.in: Likewise.
11662 * util/grub.d/10_linux.in: Likewise.
11663 * util/grub.d/10_netbsd.in: Likewise.
11664 * util/grub.d/20_linux_xen.in: Likewise.
11665 * util/grub.d/30_os-prober.in: Likewise.
11666 * util/grub.d/10_illumos.in: Add missing quoting.
11667 * util/grub.d/10_windows.in: Likewise.
11669 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11671 Fix menu title instability bug.
11673 * grub-core/commands/menuentry.c (options): New option --id.
11674 (grub_normal_add_menu_entry): New argument id. All users updated.
11675 (grub_cmd_menuentry): Handle --id.
11676 (grub_menu_init): Accept unknown arguments.
11677 * grub-core/normal/main.c (features): Add feature_menuentry_id and
11678 feature_menuentry_options.
11679 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
11681 (get_entry_number): Match with id as well.
11682 * include/grub/menu.h (grub_menu_entry): New member id.
11683 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
11684 * util/grub.d/00_header.in: Define menuentry_id_option.
11685 * util/grub.d/10_hurd.in: Define id.
11686 * util/grub.d/10_illumos.in: Likewise.
11687 * util/grub.d/10_kfreebsd.in: Likewise.
11688 * util/grub.d/10_linux.in: Likewise.
11689 * util/grub.d/10_netbsd.in: Likewise.
11690 * util/grub.d/10_windows.in: Likewise.
11691 * util/grub.d/20_linux_xen.in: Likewise.
11692 * util/grub.d/30_os-prober.in: Likewise.
11694 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11696 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
11697 "scope" with "body".
11699 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11701 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
11702 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
11703 prot_size and prot_file_size.
11705 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11707 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
11708 All users updated. If easily=1 require raid-5/-6 to be full.
11709 (is_node_readable): Likewise.
11710 (scan_devices): Scan incomplete but readable LVs at the end.
11711 (grub_diskfilter_memberlist): Pull missing devices.
11712 (insert_array): Skip scanning until device is complete or scan is
11714 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
11716 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
11717 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
11719 2012-03-03 Matthew Garrett <mjg@redhat.com>
11720 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11722 Avoid EFI boot services when loading Linux.
11724 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
11725 avoid_efi_bootservices. All users updated.
11726 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
11727 argument avoid_efi_bootservices. All users updated.
11728 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
11729 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
11730 align, min_align, relocatable, prefered_address. All users updated.
11731 Allocate avoiding boot services if kernel is relocatable.
11732 (grub_cmd_linux): Check if kernel is relocatable.
11733 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
11734 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
11735 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
11736 avoid_efi_boot_services.
11737 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
11738 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
11739 (linux_kernel_params): Likewise.
11741 2012-03-03 Matthew Garrett <mjg@redhat.com>
11742 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11746 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
11748 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
11749 modes. Set gop_handle.
11750 (grub_video_gop_get_edid): New function.
11751 (grub_gop_get_preferred_mode): Likewise.
11752 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
11753 (grub_video_efi_gop_adapter): Set .get_edid.
11754 * include/grub/efi/edid.h: New file.
11755 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
11757 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11759 * util/grub-install.in: Load efivars unconditionally.
11761 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11763 * po/Rules-piglatin: Change suffix from .po-update-en to
11764 .po-update-en-piglatin.
11766 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11770 * po/piglatin.sed: New file.
11771 * po/en@piglatin.header: Likewise.
11772 * po/Rules-piglatin: Likewise.
11773 * po/README: Add en@piglatin to autogenerated languages.
11775 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11777 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11779 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11780 "Check" since we don't check anything.
11781 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11783 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11784 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11785 (grub_md_sha512_real): Likewise.
11787 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11789 * grub-core/commands/gptsync.c: Fix typographic quoting.
11790 * grub-core/commands/ieee1275/suspend.c: Likewise.
11791 * grub-core/commands/parttool.c: Likewise.
11792 * grub-core/commands/search_wrap.c: Likewise.
11793 * grub-core/commands/videoinfo.c: Likewise.
11794 * grub-core/gfxmenu/gui_label.c: Likewise.
11795 * grub-core/hello/hello.c: Likewise.
11796 * grub-core/kern/emu/main.c: Likewise.
11797 * grub-core/net/net.c: Likewise.
11798 * grub-core/normal/menu.c: Likewise.
11799 * grub-core/normal/menu_text.c: Likewise.
11800 * grub-core/normal/misc.c: Likewise.
11801 * util/grub-editenv.c: Likewise.
11802 * util/grub-install.in: Likewise.
11803 * util/grub-kbdcomp.in: Likewise.
11804 * util/grub-mkconfig.in: Likewise.
11805 * util/grub-mknetdir.in: Likewise.
11806 * util/grub-mkrescue.in: Likewise.
11807 * util/grub-mkstandalone.in: Likewise.
11808 * util/grub-reboot.in: Likewise.
11809 * util/grub-set-default.in: Likewise.
11810 * util/grub-setup.c: Likewise.
11811 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11813 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11815 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11816 * grub-core/commands/keystatus.c: Likewise.
11817 * grub-core/commands/loadenv.c: Likewise.
11818 * grub-core/commands/probe.c: Likewise.
11819 * grub-core/commands/regexp.c: Likewise.
11820 * grub-core/commands/true.c: Likewise.
11821 * grub-core/commands/videoinfo.c: Likewise.
11822 * grub-core/disk/cryptodisk.c: Likewise.
11823 * grub-core/disk/ldm.c: Likewise.
11824 * grub-core/disk/loopback.c: Likewise.
11825 * grub-core/disk/luks.c: Likewise.
11826 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11827 * grub-core/kern/disk.c: Likewise.
11828 * grub-core/kern/emu/hostdisk.c: Likewise.
11830 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11832 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11833 * util/grub-install.in: Add missing quote in the comment.
11835 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11837 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11838 * grub-core/commands/lsmmap.c: Likewise.
11839 * grub-core/commands/minicmd.c: Likewise.
11840 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11841 * grub-core/commands/regexp.c: Likewise.
11842 * grub-core/gdb/gdb.c: Likewise.
11843 * grub-core/term/gfxterm.c: Likewise.
11844 * util/grub-mkconfig.in: Likewise.
11845 * util/grub-mkfont.c: Likewise.
11846 * util/grub-mklayout.c: Likewise.
11847 * util/grub-mknetdir.in: Likewise.
11848 * util/grub-mkrescue.in: Likewise.
11849 * util/grub.d/30_os-prober.in: Likewise.
11851 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11853 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
11854 with "Direct color" and "Packed" with "Packed pixel".
11855 (grub_cmd_videoinfo): Simplify legend.
11857 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11859 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11860 absolutely unclear error message.
11862 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11864 * util/grub-mkstandalone.in: Remove confusing leftover print.
11866 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11868 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
11870 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
11871 (GRUB_MOD_INIT): Likewise.
11872 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
11874 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
11876 * util/grub-install.in (usage): Likewise.
11877 Spell ID in whole letters.
11878 Add missing ending dot.
11880 * util/grub-reboot.in: Fix capitalisation.
11881 * util/grub-set-default.in: Likewise.
11883 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11885 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
11886 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
11887 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
11888 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
11889 Disable -Werror for -Wdeprecated-declarations.
11890 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
11891 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
11892 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
11893 (grub_util_get_grub_dev): Make luks handling dependent on
11894 HAVE_DEVICE_MAPPER and not __linux__.
11895 (get_win32_path): Fix format security.
11896 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
11897 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
11898 Don't try grub_find_zpool_from_dir.
11899 (grub_make_system_path_relative_to_its_root) [!__linux__]:
11900 #ifdef-out paresdir.
11902 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11904 * util/grub-pe2elf.c (usage): Add missing noreturn.
11905 (write_section_data): Rename name to shname to avoid shadowing.
11906 (write_symbol_table): Rename name to symname to avoid shadowing.
11907 Fix write_reloc_section call.
11909 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11911 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
11912 to ensure that it's after the last byte of .text.
11914 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11916 * util/ieee1275/ofpath.c (my_isdigit): New function.
11917 (trailing_digits): Use my_isdigit.
11918 (strip_trailing_digits): Likewise.
11920 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11922 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
11923 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
11925 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11927 * grub-core/kern/i386/pc/startup.S: Define __start.
11929 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11931 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
11932 strip already transforms he format.
11934 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11936 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
11938 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11940 * util/grub-install.in: Add missing gettext init.
11941 * util/grub-kbdcomp.in: Likewise.
11942 * util/grub-mkconfig.in: Likewise.
11943 * util/grub-mknetdir.in: Likewise.
11944 * util/grub-mkrescue.in: Likewise.
11945 * util/grub-mkstandalone.in: Likewise.
11946 * util/grub-reboot.in: Likewise.
11947 * util/grub-set-default.in: Likewise.
11948 * util/grub.d/00_header.in: Likewise.
11949 * util/grub.d/10_hurd.in: Likewise.
11950 * util/grub.d/10_windows.in: Likewise.
11951 * util/grub.d/30_os-prober.in: Likewise.
11952 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11954 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11956 * po/Rules-swiss: Fix header comment.
11958 2012-02-29 Andreas Vogel <anvoit>
11960 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
11961 resulted in leak of arguments.
11963 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11965 * grub-core/boot/i386/pc/startup_raw.S: Use separate
11966 reed_solomon_size const definition instead of computing it since
11967 Apple assembler doesn't support the later.
11969 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11971 * gentpl.py (kernel): Rewrite Apple part.
11973 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11975 * include/grub/kernel.h (FOR_MODULES): Check module magic.
11977 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11979 * util/grub-mkimagexx.c (locate_sections): Support non-standard
11981 (load_image): Likewise.
11983 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11985 * configure.ac: Fix a typo in previous commit.
11987 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11989 Don't add -Wl,-N on Apple platform.
11991 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
11992 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
11994 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11996 * grub-core/Makefile.core.def (lzma_decompress): Use
11997 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
11999 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12001 * grub-core/genmod.sh.in: Rewrite the Apple part.
12003 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12005 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
12008 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12010 * acinclude.m4 (grub_CHECK_PIC): New test.
12011 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
12013 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12015 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
12016 to avoid the warning.
12018 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12020 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
12021 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
12022 after. All users updated.
12024 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12026 Use the common size routine in hostfs so we can read disks as well.
12028 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
12029 (grub_util_get_fd_size): ... this. Return size in bytes.
12031 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
12032 grub_util_get_fd_size.
12034 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12036 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
12037 Add blocksize retrieval.
12039 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12041 * configure.ac: Restore CFLAGS after efiemu check.
12043 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12045 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
12048 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12050 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
12052 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12054 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
12055 (grub_cmd_halt): Likewise.
12057 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12059 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
12060 for local arithmetics.
12061 Break %sp init into 2 instructions.
12062 Add 0 byte at the end.
12064 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12066 * grub-core/disk/diskfilter.c (read_segment): Initialise err
12069 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12071 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
12074 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12076 * grub-core/disk/ldm.c (make_vg): Init part.name.
12077 (grub_ldm_detect): Silence spurious warning.
12078 (grub_util_is_ldm): Likewise.
12080 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12082 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
12083 sane value to avoid a spurious warning.
12085 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12087 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
12088 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
12090 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12092 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
12093 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
12095 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12097 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
12098 hardcoding the relevant info.
12100 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12102 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
12103 missing const qualifiers.
12104 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
12106 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12108 * util/getroot.c [__APPLE__]: Add missing includes.
12109 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
12111 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12113 * util/grub-mkimage.c (generate_image): Silence spurious warning.
12115 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12117 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
12120 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12122 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
12124 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12126 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
12127 and grub_file_close call.
12129 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12131 Add LZSS Mach-O support (needed for new xnu kernelcache).
12133 * grub-core/Makefile.core.def (xnu): Add file lzss.c
12134 * grub-core/loader/lzss.c: New file.
12135 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
12136 on Mach-O open failure.
12137 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
12138 Don't free cmdsXX in uncompressedXX is set.
12139 (grub_macho_file): Init new fields.
12140 New argument is_64bit. All users updated.
12141 Handle compressed. Error out if no suitable architecture is found.
12143 (grub_macho_open): New argument is_64bit. All users updated.
12144 * grub-core/loader/macho32.c: Add defines for new fields.
12145 * grub-core/loader/macho64.c: Likewise.
12146 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
12147 (grub_macho_parse): Handle compressed.
12148 Defer actual processing if compressed.
12149 (grub_macho_cmds_iterate): Decompress if compressed. New argument
12150 "filename". All users updated.
12151 (grub_macho_size): New argument "filename". All users updated.
12152 (grub_macho_get_entry_point): Likewise.
12153 (grub_macho_load): Handle compressed.
12154 * include/grub/macho.h (grub_macho_lzss_header): New struct.
12155 (GRUB_MACHO_LZSS_OFFSET): New define.
12156 (grub_decompress_lzss): New proto.
12157 * include/grub/machoload.h (grub_macho_file): New fields to handle
12159 (grub_macho_contains_macho64): Remove proto.
12160 (grub_macho_contains_macho32): Likewise.
12161 * util/grub.d/30_os-prober.in: Use kernel cache if available.
12163 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12165 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
12167 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12171 * Makefile.am (starfield_theme_files): New var.
12172 (starfield_DATA): Use starfield_theme_files.
12173 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
12174 Add bootcheck-related files.
12175 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
12176 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
12177 and font_char_metrics.txt.
12178 * grub-core/Makefile.core.def (kernel): Update extra_dist.
12179 (setjmp): Add lib/ia64/longjmp.S.
12180 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
12181 * po/POTFILES.in: Regenerate.
12182 * po/Rules-swiss: use DISTFILES.common.extra2 and not
12183 DISTFILES.common.extra1.
12184 * util/devicemap.c: Removed.
12185 * grub-core/lib/i386/relocator_backward.S: Likewise.
12186 * util/import_gcry.py: Remove unused files. Add extra_dist for
12189 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12191 * grub-core/gettext/gettext.c (grub_mofile_open): Call
12192 grub_gettext_delete_list before changing grub_gettext_max to avoid
12193 running out of array bounds.
12195 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12197 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
12198 grub_vga_text_init/grub_vga_text_fini.
12200 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12202 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
12204 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12206 * configure.ac: Bump to 2.00~beta0.
12208 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12210 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
12211 missing initialisation.
12213 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12215 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
12217 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12219 Support v2 xnu boot arguments.
12221 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
12222 New argument fsbfreq_out.
12223 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
12224 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
12226 * grub-core/loader/machoXX.c (grub_macho_load): New argument
12228 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
12229 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
12230 (grub_xnu_boot_params): Rename to ...
12231 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
12232 (grub_xnu_boot_params_v2): New struct.
12234 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12236 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
12237 zeroing of CRC field before computing CRC.
12239 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12241 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
12242 Change order of allocations to decrease fragmentation.
12244 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12246 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
12248 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12250 Use write-combining MTRR to speed up video with buggy BIOSes.
12252 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
12253 (cpuid): New define.
12256 (mtrr_base): Likewise.
12257 (mtrr_mask): Likewise.
12258 (grub_vbe_enable_mtrr_entry): New function.
12259 (grub_vbe_enable_mtrr): Likewise.
12260 (grub_vbe_disable_mtrr): Likewise.
12261 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
12262 control off to BIOS.
12263 (grub_video_vbe_init): Fill mtrr.
12264 (grub_video_vbe_fini): Disable mtrr.
12265 (grub_video_vbe_get_info_and_fini): Likewise.
12266 (grub_video_vbe_setup): Enable mtrr.
12268 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12270 * include/grub/partition.h (grub_partition_map): Change prototype of
12271 embed to take a maximum value for nsectors.
12272 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
12273 * include/grub/fs.h (grub_fs): Likewise.
12274 * grub-core/partmap/msdos.c (embed_signatures): New array.
12275 (pc_partition_map_embed): Check for and avoid sectors matching any
12276 of the signatures in embed_signatures, up to max_nsectors.
12277 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
12278 returned sector map to max_nsectors.
12279 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
12280 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
12281 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
12282 * util/grub-setup.c (setup): Allow for the embedding area being
12283 split into multiple blocklists. Tell dest_partmap->embed the
12284 maximum number of sectors we care about.
12286 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12288 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
12289 Specify blocklist_install and reserver_first_sector for all fs.
12290 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
12293 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12295 * util/grub-install.in: Clarify strings.
12296 Fix source dir check.
12298 2012-02-27 Richard Laager <rlaager@wiktel.com>
12300 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
12301 "zfs" and "fuse.zfs" as synonyms.
12303 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12305 * configure.ac: Put platform and target_cpu substitutions back since
12306 they are used for directories.
12308 2012-02-27 Richard Laager <rlaager@wiktel.com>
12309 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12311 * util/grub.d/10_linux.in: Add ZFS-related arguments.
12312 * util/grub.d/20_linux_xen.in: Likewise.
12314 2012-02-27 Richard Laager <rlaager@wiktel.com>
12316 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
12319 2012-02-27 Richard Laager <rlaager@wiktel.com>
12321 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
12324 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12326 Don't use insecure popen in getroot.
12328 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
12329 (exec_pipe): ... here.
12330 (find_root_devices_from_poolname): Use exec_pipe.
12332 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12334 Remove platform and target_cpu replacement.
12336 * configure.ac: Remove platform and target_cpu substitutions.
12337 * tests/util/grub-shell.in: Use modinfo.
12338 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
12341 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12343 Autodetect platform in grub-install but allow override.
12345 * util/grub-install.in: Autodetect platform. Support --target and
12346 --directory. Read platform from modinfo.sh.
12348 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12350 Support btrfs multi-volume probe.
12352 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
12353 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
12354 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
12355 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
12356 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
12357 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
12358 grub_find_root_devices_from_btrfs if on btrfs.
12360 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12362 Remove any awareness of *.c util files about target.
12364 * Makefile.util.def (grub-setup): Split to ...
12365 (grub-bios-setup): ... and this.
12366 (grub-sparc64-setup): ... and this.
12367 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
12368 * docs/man/grub-setup.h2m: Split into ...
12369 * docs/man/grub-sparc64-setup.h2m: ... this.
12370 * docs/man/grub-bios-setup.h2m: ... and this.
12371 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
12372 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
12373 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
12374 (grub_target_addr_t): Remove.
12375 (grub_target_size_t): Remove.
12376 (grub_target_ssize_t): Remove.
12377 * util/grub-install.in: Use new grub-*-setup.
12378 * util/grub-mkimagexx.c (Elf_Word): New define.
12379 (Elf_Half): Likewise.
12380 (Elf_Section): Likewise.
12381 (ELF_ST_TYPE): Likewise.
12382 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
12383 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
12385 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12387 Replace grub_target_addr with more appropriate types.
12389 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
12390 grub_target_addr with grub_addr.
12391 * grub-core/commands/iorw.c (grub_cmd_read): Replace
12392 grub_target_addr with grub_port.
12393 (grub_cmd_write): Likewise.
12394 * grub-core/commands/memrw.c (grub_cmd_read): Replace
12395 grub_target_addr with grub_addr.
12396 (grub_cmd_write): Likewise.
12397 * grub-core/video/efi_uga.c (find_line_len): Likewise.
12399 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12401 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
12402 const qualifier for vendor_guid.
12404 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12406 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
12408 (efiemu_memequal): Likewise.
12409 (find_variable): Likewise.
12411 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12413 Fix missing console prototype on qemu-mips.
12415 * include/grub/mips/qemu_mips/console.h: New file.
12417 2012-02-27 Matthew Garrett <mjg@redhat.com>
12418 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12420 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
12421 * include/grub/efi/efi.h: Likewise.
12422 * include/grub/efi/api.h: Add guid for EFI-specified variables.
12423 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
12424 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
12425 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
12426 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
12427 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
12429 2012-02-27 Matthew Garrett <mjg@redhat.com>
12431 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
12433 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12435 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
12438 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12440 * configure.ac: Remove inappropriate use of program_transform_name
12441 on grubdir and bootdir but allow explicit specification of those
12444 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12446 * util/grub-mknetdir.in (grub_prefix): Removed.
12447 (subdir): Use @bootdirname@ and @grubdirname@.
12449 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12451 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
12453 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12455 * po/POTFILES.in: Regenerated.
12457 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12459 Remove improper use of program_transform_name on pkglibrootdir.
12461 * configure.ac (pkglibrootdir): Removed.
12462 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
12463 * util/grub-mkimage.c: Likewise.
12465 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12467 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
12470 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12472 * util/grub-install.in: Use file identifier if no UUID is available
12473 or user explicitly prompted for it.
12475 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
12477 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
12478 (freebsd_get_zfs): New function.
12479 (grub_freebsd_boot): Pass zfs UUID.
12480 (grub_cmd_freebsd): Set zfs UUID.
12482 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12484 * conf/Makefile.common (platformdir): Base on pkglibdir and not
12487 2012-02-27 Mike Gilbert <floppym@gentoo.org>
12489 Add configure flag to control libzfs integration.
12491 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
12493 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12495 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
12497 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
12500 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12502 Remove grub_{modname}_init and grub_{modname}_fini. They should never
12503 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
12504 be used on non-modules.
12506 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
12507 Rename to grub_boot_init.
12508 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
12509 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
12510 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
12511 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
12512 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
12513 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
12514 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
12515 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
12517 (grub_machine_init): Remove empty inits.
12518 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
12520 (grub_machine_init): Remove empty inits.
12521 * grub-core/term/arc/console.c: Remove explicit proto.
12522 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
12523 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
12524 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12525 grub_at_keyboard_fini.
12526 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
12527 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
12528 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12530 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
12531 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
12532 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12534 * grub-core/term/ieee1275/console.c: Remove explicit proto.
12535 * grub-core/term/serial.c (GRUB_MOD_INIT)
12536 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
12537 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12539 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
12540 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
12541 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12542 grub_terminfo_fini.
12543 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
12544 (GRUB_MOD_FINI): Likewise.
12545 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
12546 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
12547 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12548 grub_video_radeon_fuloong2e_fini.
12549 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
12550 [LOONGSON]: Rename to grub_video_sis315pro_init.
12551 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12552 grub_video_sis315pro_fini.
12553 * grub-core/video/sm712.c (GRUB_MOD_INIT)
12554 [LOONGSON]: Rename to grub_video_sm712_init.
12555 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12556 grub_video_sm712_fini.
12557 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
12558 (grub_at_keyboard_fini): Likewise.
12559 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
12560 Don't declare grub_{modname}_init.
12561 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
12562 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
12564 (grub_keylayouts_fini) [!EMU]: Likewise.
12565 * include/grub/serial.h (grub_serial_init) [!EMU]:
12567 (grub_serial_fini) [!EMU]: Likewise.
12568 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
12570 (grub_terminfo_fini) [!EMU]: Likewise.
12571 * include/grub/video.h (grub_font_init) [!EMU]:
12573 (grub_font_fini) [!EMU]: Likewise.
12574 (grub_gfxterm_init) [!EMU]: Likewise.
12575 (grub_gfxterm_fini) [!EMU]: Likewise.
12576 (grub_video_sm712_init) [!EMU]: Likewise.
12577 (grub_video_sm712_fini) [!EMU]: Likewise.
12578 (grub_video_sis315pro_init) [!EMU]: Likewise.
12579 (grub_video_sis315pro_fini) [!EMU]: Likewise.
12580 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
12581 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
12583 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12585 Make nand a prefix for nand devices.
12587 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
12589 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12591 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
12592 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
12594 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12596 * include/grub/env.h (grub_env_find): Remove prototype.
12597 * grub-core/kern/env.c (grub_env_find): Make static.
12598 (grub_env_set): Remove useless set.
12600 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12602 * grub-core/kern/i386/realmode.S: Remove useless align.
12604 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12606 * include/grub/dl.h (grub_dl_load_file): Don't export.
12608 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12610 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
12613 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12615 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
12617 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
12618 not reloading whole superblock but only the part which is really needed.
12619 Remove useless grub_errors.
12620 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
12623 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12625 Don't export grub_get_rtc.
12627 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
12628 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
12630 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12632 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
12634 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12636 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
12637 argument since it can be deduced from diskfilter. All users updated.
12639 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12643 * include/grub/list.h (grub_prio_list): Removed.
12644 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
12645 GRUB_COMMAND_PRIO_MASK.
12646 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
12647 GRUB_COMMAND_FLAG_ACTIVE.
12648 (grub_prio_list_insert): Removed.
12649 (grub_prio_list_remove): Likewise.
12650 (GRUB_AS_PRIO_LIST): Likewise.
12651 (GRUB_AS_PRIO_LIST_P): Likewise.
12652 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
12653 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
12654 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
12655 * grub-core/kern/command.c (grub_register_command_prio): Inline
12656 the prio_list code.
12657 (grub_unregister_command): Likewise.
12659 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12661 Fix interrupt mixup from previous commit.
12663 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
12664 (grub_realidt): New var.
12665 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
12667 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
12669 (grub_relocator16_boot): Set grub_relocator16_idt.
12670 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
12671 (LOCAL(realidt)): ... this.
12672 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
12673 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
12674 (grub_realidt): New variable.
12676 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12678 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
12679 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
12680 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
12681 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
12683 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
12684 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
12685 * po/POTFILES.in: Regenerate.
12687 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12689 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
12692 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12694 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
12696 (add_length): Likewise.
12698 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12699 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
12701 GDB serial and backtrace support.
12703 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
12704 (prot_to_real): Likewise.
12705 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
12706 * grub-core/Makefile.core.def (backtrace): New module.
12708 * grub-core/gdb/cstub.c: New file.
12709 * grub-core/gdb/gdb.c: Likewise.
12710 * grub-core/gdb/i386/idt.c: Likewise.
12711 * grub-core/gdb/i386/machdep.S: Likewise.
12712 * grub-core/gdb/i386/signal.c: Likewise.
12713 * grub-core/lib/i386/backtrace.c: Likewise.
12714 * grub-core/lib/backtrace.c: Likewise.
12715 * include/grub/backtrace.h: Likewise.
12716 * include/grub/gdb.h: Likewise.
12717 * include/grub/i386/gdb.h: Likewise.
12719 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12721 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
12723 (add_length): Likewise.
12724 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
12725 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
12727 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
12728 __argp_get_display_len.
12730 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12732 $"..." support in scripts.
12734 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
12735 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
12736 * grub-core/script/yylex.l: Likewise.
12737 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
12740 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12742 * gentpl.py: Remove obsolete pkglib_DATA handling.
12744 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12746 Don't transform PACKAGE_TARNAME following a discussion on autoconf
12749 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
12750 * util/grub-kbdcomp.in: Likewise.
12751 * util/grub-mkconfig.in: Likewise.
12752 * util/grub-mkconfig_lib.in: Likewise.
12753 * util/grub-mknetdir.in: Likewise.
12754 * util/grub-mkrescue.in: Likewise.
12755 * util/grub-mkstandalone.in: Likewise.
12756 * util/grub-reboot.in: Likewise.
12757 * util/grub-set-default.in: Likewise.
12758 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12760 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12762 Remove GRUB_PREFIX.
12764 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
12765 * util/grub.d/00_header.in: Compute prefix in the only place it's still
12766 used for backward compatibility.
12768 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12770 Add new all_video module.
12772 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12773 * grub-core/Makefile.core.def (all_video): New module.
12774 * grub-core/genmoddep.awk: Generate dependency of all_video from
12776 * grub-core/lib/fake_module.c: New file.
12777 * grub-core/normal/main.c (features): Add feature_all_video_module.
12778 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12779 don't do explicit search again.
12780 insmod all_video in load_video if available.
12782 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12784 Another round of string clarification and adding TRANSLATORS comments.
12786 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12788 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12790 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12792 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12794 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12795 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12797 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12799 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12800 trailing newline implicitly. All users updated.
12802 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12804 Implement serial on IEEE1275 and EFI.
12806 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12807 on emu. Mention arc and emu as the only platforms without serial
12809 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12810 ieee1275 platforms.
12811 * grub-core/term/efi/serial.c: New file.
12812 * grub-core/term/ieee1275/serial.c: Likewise.
12813 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12814 specification if no ns8250 driver is available.
12815 (grub_cmd_serial): Likewise.
12816 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12817 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12818 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12819 (grub_efi_parity_type_t): New type.
12820 (grub_efi_stop_bits_t): Likewise.
12821 (grub_efi_serial_io_interface): New struct.
12822 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12823 available for all interfaces.
12824 Add EFI and IEEE1275 fields.
12825 (grub_ofserial_init): New proto.
12826 (grub_efiserial_init): Likeiwse.
12827 * util/grub.d/00_header.in: Don't check for the presence of serial
12830 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12832 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12833 name as if it was an alias.
12835 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12837 * grub-core/commands/lsacpi.c (options): Fix typo.
12839 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12841 Convert grub-emu to argp.
12843 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12845 * util/argp_common.c: Rename to ...
12846 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
12847 Add missing includes.
12848 * grub-core/kern/emu/main.c: Convert to argp.
12849 * po/POTFILES.in: Regenerate.
12850 * util/grub-install.in (usage): Make first letter lowcase in messages
12852 * util/grub-setup.c (options): Likewise.
12854 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12856 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
12857 Put back accidently commented-out code.
12859 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12861 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
12862 loop check using Brent algorithm.
12863 (grub_hfsplus_btree_search): Likewise.
12865 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12867 * util/grub-install.in: Fix usage of wrong device for PreP install.
12869 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12871 * conf/Makefile.common (CFLAGS_GNULIB): Add
12872 -Wno-unsafe-loop-optimizations.
12873 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
12875 * grub-core/commands/legacycfg.c: Add pragma to skip
12876 -Wunsafe-loop-optimizations.
12877 (check_password_md5_real): Fix loop counter type.
12878 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
12880 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
12881 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
12883 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
12884 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
12885 * grub-core/net/net.c (grub_net_route_address): Add safety loop
12887 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
12888 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
12889 avoid possible infinite loops.
12890 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
12891 and -Wunsafe-loop-optimizations.
12892 * grub-core/script/yylex.l: Likewise.
12893 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
12894 (print_glyphs): Avoid infinite loops.
12895 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
12897 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
12899 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
12900 to avoid infinite loop.
12901 (disp_acpi_rsdt_table): Likewise.
12903 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12905 * grub-core/font/font.c (grub_font_load): Add support for default
12906 path for fonts ($prefix/fonts).
12907 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
12908 for checking if string is a path.
12909 * grub-core/normal/main.c (features): Add feature_default_font_path.
12910 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
12911 * util/grub.d/00_header.in: Use default directory if possible.
12912 * util/grub-install.in: Install unicode.pf2.
12914 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12916 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
12917 * po/Rules-swiss: New file.
12918 * po/swiss.sed: Likewise.
12920 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12922 * grub-core/fs/btrfs.c (find_device): Fix typos.
12923 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
12924 * util/grub-mkrelpath.c (argp_parser): Likewise.
12925 Reported by: Yuri Chornoivan.
12927 2012-02-23 Dalet Omega <daletomega@gmail.com>
12929 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
12930 for usual informative messages.
12932 2012-02-23 Dalet Omega <daletomega@gmail.com>
12936 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
12937 * conf/Makefile.common: Define starfielddir.
12938 * configure.ac: Configure starfield.
12939 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
12940 * themes/starfield/README: Likewise.
12941 * themes/starfield/blob_w.png: Likewise.
12942 * themes/starfield/boot_menu_c.png: Likewise.
12943 * themes/starfield/boot_menu_e.png: Likewise.
12944 * themes/starfield/boot_menu_n.png: Likewise.
12945 * themes/starfield/boot_menu_ne.png: Likewise.
12946 * themes/starfield/boot_menu_nw.png: Likewise.
12947 * themes/starfield/boot_menu_s.png: Likewise.
12948 * themes/starfield/boot_menu_se.png: Likewise.
12949 * themes/starfield/boot_menu_sw.png: Likewise.
12950 * themes/starfield/boot_menu_w.png: Likewise.
12951 * themes/starfield/slider_c.png: Likewise.
12952 * themes/starfield/slider_n.png: Likewise.
12953 * themes/starfield/slider_s.png: Likewise.
12954 * themes/starfield/src/blob_nw.xcf: Likewise.
12955 * themes/starfield/src/bootmenu/: Likewise.
12956 * themes/starfield/src/bootmenu/center.xcf: Likewise.
12957 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
12958 * themes/starfield/src/bootmenu/side.xcf: Likewise.
12959 * themes/starfield/src/slider_c.xcf: Likewise.
12960 * themes/starfield/src/slider_n.xcf: Likewise.
12961 * themes/starfield/src/slider_s.xcf: Likewise.
12962 * themes/starfield/src/terminalbox/: Likewise.
12963 * themes/starfield/src/terminalbox/center.xcf: Likewise.
12964 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
12965 * themes/starfield/src/terminalbox/side.xcf: Likewise.
12966 * themes/starfield/starfield.png: Likewise.
12967 * themes/starfield/terminal_box_c.png: Likewise.
12968 * themes/starfield/terminal_box_e.png: Likewise.
12969 * themes/starfield/terminal_box_n.png: Likewise.
12970 * themes/starfield/terminal_box_ne.png: Likewise.
12971 * themes/starfield/terminal_box_nw.png: Likewise.
12972 * themes/starfield/terminal_box_s.png: Likewise.
12973 * themes/starfield/terminal_box_se.png: Likewise.
12974 * themes/starfield/terminal_box_sw.png: Likewise.
12975 * themes/starfield/terminal_box_w.png: Likewise.
12976 * themes/starfield/theme.txt: Likewise.
12978 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12980 * util/grub.d/00_header.in: Add missing export theme.
12982 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12984 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
12986 Reported by: Eren D.
12988 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12990 * conf/Makefile.common (grubdatadir): Removed.
12991 (Makefile.am): Move eveything grubdata to pkgdata.
12993 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12995 * grub-core/commands/acpihalt.c (get_sleep_type):
12996 Remove unused variable.
12998 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13000 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
13001 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
13002 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
13003 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
13004 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
13005 i18n with gettext no-op.
13006 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
13007 GRUB_ACPI_OPCODE_STRING_CONST.
13008 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
13009 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
13011 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13013 * po/POTFILES.in: Regenerate.
13015 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13017 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
13018 -Wno-error=missing-noreturn.
13020 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13022 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
13023 condition to avoid possibly infinite loops.
13024 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
13025 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
13027 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13029 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
13030 condition to avoid possibly infinite loops.
13032 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13034 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
13037 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13039 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
13041 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13043 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
13045 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13047 * util/bin2h.c (usage): Add missing attribute noreturn.
13049 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13051 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
13052 if the size isn't divisible by 512.
13054 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13056 Make list_push and list_remove functions rather than inline functions
13057 to decrease size and avoid aliasing violations.
13059 * include/grub/list.h (grub_list_push): Move to ...
13060 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
13061 * include/grub/list.h (grub_list_remove): Move to ...
13062 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
13064 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13066 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
13067 and -Wunused-result.
13069 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13071 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
13072 Reported by: Seth Goldberg
13074 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13076 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
13078 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13080 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
13081 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
13083 * docs/grub.texi (Simple configuration): Document
13084 GRUB_CMDLINE_GNUMACH.
13086 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13088 * conf/Makefile.common (platform_SCRIPTS): New variable.
13089 (platform_PROGRAMS): Likewise.
13090 * gentpl.py: Mark *,module and *.image for install.
13091 * grub-core/gdb_grub.in: Add a notice of expected environment.
13092 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
13093 (gmodule.pl): Likewise.
13095 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13097 Replace grub_checkkey with grub_getkey_noblock.
13099 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
13100 (grub_getkey_noblock): ... this. All users updated.
13102 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13104 * grub-core/kern/emu/console.c: Move to ...
13105 * grub-core/term/emu/console.c: ...here.
13106 (grub_ncurses_getkey): Fix return value if no key is detected.
13108 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13110 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
13111 (grub_unit_test_fini): Likewise.
13112 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
13114 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13116 * include/grub/test.h (GRUB_UNIT_TEST)
13118 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13120 * grub-core/script/execute.c (grub_script_break): Clarify logic.
13121 Better error handling.
13122 (grub_script_return): Likewise.
13123 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13125 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13127 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
13128 rimplicit redifinition.
13130 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13132 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
13135 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13137 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
13138 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
13141 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13143 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
13144 as GRUB_ERR_BUG. Don't malloc if no device is available.
13146 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13148 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
13149 Mark calling with invalid term as GRUB_ERR_BUG.
13151 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13153 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
13154 packets rather than raising an error.
13156 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13158 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
13161 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13163 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
13164 diagnostic to dprintf.
13165 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13167 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13169 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
13172 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13174 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
13175 (grub_ntfs_iterate_dir): Likewise.
13177 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13179 Efiemu stylistic fixes and gettext.
13181 * grub-core/efiemu/i386/loadcore32.c
13182 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
13183 * grub-core/efiemu/i386/loadcore64.c
13184 (grub_arch_efiemu_relocate_symbols64): Likewise.
13185 * grub-core/efiemu/i386/pc/cfgtables.c
13186 (grub_machine_efiemu_init_tables): Likewise.
13187 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
13188 (grub_efiemu_loadcore_initXX): Add a filename argument.
13190 Improved error message.
13191 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
13192 Add a filename argument.
13194 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
13195 Reclassify double relocation as GRUB_ERR_BUG.
13197 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13199 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
13202 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13204 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
13207 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13209 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
13211 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13213 Improve string. Gettextize.
13215 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13217 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
13219 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
13221 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13223 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
13224 [GRUB_UTIL]: New function.
13225 (insert_array) [GRUB_UTIL]: Store partmaps.
13226 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
13228 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
13229 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
13230 (probe_abstraction): Print diskfilter and not raid.
13231 Reported by: Lennart Sorensen
13233 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13235 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
13236 * util/grub-mkimagexx.c (MASK3): New define.
13237 (add_value_to_slot_20b): Use MASK3.
13238 (add_value_to_slot_21): Likewise.
13239 (relocate_addresses): Fix format specification.
13240 (load_image): Explicitly init symtab_section.
13242 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13244 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
13245 (grub_util_biosdisk_get_grub_dev): Fix format specification.
13247 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13249 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
13251 Reported by: Lennart Sorensen
13253 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13255 * gentpl.py: Add missing license header.
13256 * docs/grub.texi: Update copyright year.
13258 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
13260 Source grub-mkconfig_lib from the build directory at build time.
13261 Suggested by: Vladimir Serbinenko.
13263 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
13264 * util/grub-install.in: Define pkgdatadir if not already set, and source
13265 grub-mkconfig_lib from there.
13266 * util/grub-kbdcomp.in: Likewise.
13267 * util/grub-mkconfig.in: Likewise.
13268 * util/grub-mknetdir.in: Likewise.
13269 * util/grub-mkrescue.in: Likewise.
13270 * util/grub-mkstandalone.in: Likewise.
13271 * util/grub-reboot.in: Likewise.
13272 * util/grub-set-default.in: Likewise.
13273 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13275 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13277 Increase warning level.
13279 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
13280 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
13281 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
13282 (TARGET_CFLAGS): Likewise.
13283 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
13284 * grub-core/Makefile.core.def (decompressor_xz): Add
13285 -Wno-unreachable-code.
13286 (normal): Add -Wno-redundant-decls.
13287 (xzio): Add -Wno-unreachable-code.
13288 (lzopio): Add -Wno-redundant-decls -Wno-error.
13289 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
13290 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
13291 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
13292 * grub-core/kern/dl.c: Add exception to -Wcast-align.
13293 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
13294 * grub-core/kern/i386/coreboot/init.c: Add exception to
13295 -Wsuggest-attribute=noreturn.
13296 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
13297 * grub-core/kern/ia64/dl_helper.c: Likewise.
13298 * grub-core/kern/mips/dl.c: Likewise.
13299 * grub-core/kern/sparc64/dl.c: Likewise.
13300 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
13301 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
13302 (memcmp): Likewise.
13303 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
13304 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
13305 * grub-core/loader/mips/linux.c: Likewise.
13306 * grub-core/loader/multiboot_elfxx.c: Likewise.
13307 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
13308 * grub-core/video/sm712.c: Add exception to -Wcast-align.
13309 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
13310 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
13312 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
13313 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
13316 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13318 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
13321 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13323 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
13324 Avoid improper use of strings.
13325 (grub_cmd_legacy_initrdnounzip): Likewise.
13327 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13329 * include/grub/emu/misc.h (grub_util_warn): Add missing format
13331 (grub_util_info): Likewise.
13332 (grub_util_error): Likewise.
13334 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13336 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
13337 * util/grub-fstest.c (fstest): Likewise.
13339 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13341 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
13342 (grub_md_sha512_real): Likewise.
13343 (grub_util_get_geli_uuid): Likewise.
13344 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
13345 (grub_util_biosdisk_open): Fix format specification.
13346 Respect format security.
13347 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
13348 (xrealloc): Likewise.
13349 (xasprintf): Likewise.
13351 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13353 * util/import_gcry.py: Include grub/crypto.h in init.c.
13355 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13357 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
13358 (generate_image): Make prefix a const char *.
13359 Fix format specifications. Respect format security.
13360 Avoid void * arithmetics.
13362 (argp_parser): Remove unused variable. Respect format security.
13363 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
13364 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
13365 (count_funcs): Remove unused variable.
13366 (relocate_addresses): Fix format specification.
13367 Disable x86-64 with elf32. Remove unused variables.
13368 (add_fixup_entry): Avoid shadowing.
13369 (make_reloc_section): Fix format specification.
13371 (locate_sections): Fix format specifications.
13372 (load_image): Avoid shadowing.
13374 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13376 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
13377 Fix format specifications. Respect format security.
13378 Don't translate already translated grub_errmsg.
13379 (argp_parser): Remove unused variable
13381 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13383 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
13385 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13387 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
13388 (main): Likewise. Use xmalloc. Respect format security.
13390 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13392 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
13394 (argp_parser): Remove unused variable.
13396 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13398 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
13399 (add_pixel): Make static.
13400 (add_font): Likewise.
13401 (write_string_section): Make name and str a const char *.
13402 (write_be16_section): Make name a const char *.
13403 (print_glyphs): Make static.
13404 (write_font_ascii_bitmap): Likewise.
13405 (write_font_width_spec): Likewise.
13406 (write_font_pf2): Likewise.
13407 (argp_parser): Remove unused variable.
13408 Respect format security.
13409 (main): Avoid shadowing. Respect format security.
13411 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13413 * util/grub-editenv.c (argp_parser): Make static.
13414 (create_envblk_file): Use xmalloc.
13415 (open_envblk_file): Likewise.
13416 Resepect format security.
13417 (set_variables): Respect format security.
13419 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13421 * util/getroot.c (grub_find_device): Respect format security.
13422 (get_mdadm_uuid): Remove unused variable.
13423 (grub_util_pull_device): Dont call gettext on already translated
13425 (find_system_device): Remove unused variable.
13426 (grub_util_get_grub_dev): Likewise.
13427 (grub_make_system_path_relative_to_its_root): Respect format security.
13429 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13431 * util/grub-fstest.c (execute_command): Make first argument
13433 (read_file): Avoid shadowing.
13434 Reuse underlying error message if device open fails.
13435 (cmd_cmp): Respect format security.
13436 (root): Make const char *.
13437 (fstest): Remove args argument and use global copy.
13438 Respect format security.
13439 (argp_parser): Make static.
13440 (main): Make default_root const char *.
13442 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13444 * util/grub-mount.c (root): Make const char *.
13445 (execute_command): Make first argument a const char *.
13446 (fuse_init): Respect format security.
13447 (argp_parser): Make static. Remove unused variable.
13448 (main): Make default_root a const char *.
13449 Respect format security.
13451 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13453 * util/grub-probe.c (probe): Don't call gettext on already translated
13455 Remove unused variables.
13456 (argp_parser): Remove unused variable.
13458 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13460 * util/grub-script-check.c (argp_parser): Remove unused variable.
13461 (main): Rename read to curread to avoid shadowing.
13463 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13465 * util/misc.c (grub_util_write_image_at): Fix format specification.
13466 (grub_util_write_image): Likewise.
13467 (grub_script_execute_argument_to_string): Removed (unused).
13468 (grub_script_execute_menuentry): Likewise.
13469 (grub_putchar): Likewise.
13471 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13473 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
13474 (FUNCTION) [GRUB_UTIL]: Likewise.
13475 (VARIABLE) [GRUB_UTIL]: Likewise.
13477 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13479 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
13480 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
13482 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13484 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
13487 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13489 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
13490 (LzmaEnc_SaveState): Removed (unused).
13491 (LzmaEnc_RestoreState): Likewise.
13492 (LzmaEnc_InitPriceTables): Made static.
13493 (LzmaEnc_Construct): Likewise.
13494 (LzmaEnc_FreeLits): Likewise.
13495 (LzmaEnc_Destruct): Likewise.
13496 (LzmaEnc_Init): Likewise.
13497 (LzmaEnc_InitPrices): Likewise.
13498 (LzmaEnc_Finish): Likewise.
13499 (LzmaEnc_PrepareForLzma2): Removed (unused).
13500 (LzmaEnc_MemPrepare): Likewise.
13501 (LzmaEnc_GetNumAvailableBytes): Likewise.
13502 (LzmaEnc_GetCurBuf): Likewise.
13503 (LzmaEnc_CodeOneMemBlock): Likewise.
13505 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13507 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
13508 (grub_util_ldm_embed): Likewise.
13510 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13512 * util/grub-editenv.c (print_var): Rename name to varname to
13514 (main): Rename index to curindex to avoid shadowing.
13515 Make filename a const char *.
13517 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13519 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
13520 to arg_getline to avoid shadowing.
13522 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13524 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
13525 disk_ to avoid shadowing.
13527 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13529 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
13530 curindex to avoid shadowing.
13532 (MatchFinder_GetNumAvailableBytes): Make static.
13534 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13536 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
13539 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13541 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
13542 argument from encrypt to do_encrypt to avoid shadowing.
13544 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13546 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
13547 incorrect nesting of #if's.
13549 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13551 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
13552 checks which are always false on some platforms.
13553 (grub_cmd_lsacpi): Likewise.
13554 * grub-core/kern/misc.c (grub_strtoul): Likewise.
13555 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
13558 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13560 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
13561 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
13563 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13565 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
13566 re_dfa_t to avoid breaking alignment invariants.
13567 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
13568 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
13570 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13572 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
13573 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
13575 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13577 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
13580 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13582 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
13583 conserve alignment invariants.
13584 (grub_ehci_ehcc_read16): Likewise.
13585 (grub_ehci_oper_read32): Likewise.
13586 (grub_ehci_oper_write32): Likewise.
13587 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
13588 Conserve alignment invariants.
13590 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13592 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
13593 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
13596 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13598 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
13599 Remove unused variable.
13601 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13603 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
13606 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13608 * include/grub/net.h: Remove double declarations.
13610 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13612 Remove "payload" command in ia64 Linux loader since I couldn't
13613 find any evidence of it being used for anything.
13614 Replace "relocate" command with an environment variable
13616 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
13618 (ia64_boot_payload): Removed.
13619 (last_payload): Likewise.
13620 (RELOCATE_OFF): Likewise.
13621 (RELOCATE_ON): Likewise.
13622 (RELOCATE_FORCE): Likewise.
13623 (relocate): Likewise.
13624 (free_pages): Don't free payloads.
13625 (grub_load_elf64): Use common error messages.
13626 Use "linux_relocate" variable.
13627 Increase the space after boot_params.
13628 (grub_cmd_payload): Removed.
13629 (grub_cmd_relocate): Likewise.
13630 (grub_cmd_fpswa): Improve messages.
13631 (cmd_payload): Removed.
13632 (cmd_relocate): Likewise.
13633 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
13634 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
13636 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13638 Convert UHCI to DMA framework.
13640 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
13641 (grub_uhci_pci_iter): Fill new members
13642 (grub_alloc_td): Use P2V and V2P functions.
13643 (grub_free_queue): Likewise.
13644 (grub_alloc_qh): Likewise.
13645 (grub_uhci_setup_transfer): Likewise.
13646 (grub_uhci_check_transfer): Likewise.
13648 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13650 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
13651 Remove assignment in if while on it.
13653 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13655 * util/grub-mkstandalone.in: Fix modules directory.
13657 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13659 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
13661 (argp_parser): Accept "auto" as compression specification.
13663 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13665 Fix `help' with unloaded modules.
13667 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
13668 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
13669 (grub_dyncmd_dispatcher): Small stylistic fix.
13670 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
13671 explicit help is requested.
13673 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13675 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
13676 Explicitly init restart while on it.
13678 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13680 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
13683 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13685 * util/grub-mknetdir.in: Use . rather than source for POSIX
13688 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13690 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
13692 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13694 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
13697 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13699 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
13702 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13704 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
13706 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13708 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
13709 iteration of partitions.
13711 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13713 Improve gettext support. Stylistic fixes and error handling fixes while
13716 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13718 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
13719 part. Instead setup the correct stack in RM.
13720 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
13722 * include/grub/i386/relocator_private.h: New file.
13724 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13726 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
13728 * util/grub-fstest.c (options): Add missing DEVICE part.
13730 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13732 Clarify and unify messages.
13734 * grub-core/commands/hashsum.c (options): Unify messages.
13735 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
13736 literal-only message as translatable.
13737 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
13738 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
13739 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
13741 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
13742 key, not the key used to unlock. Clarify what it's used for.
13743 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
13744 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
13745 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
13746 * util/grub-editenv.c (options): Unify "verbose" message.
13747 * util/grub-fstest.c (read_file): Unify error message.
13748 (fstest): Add quotes around commands.
13749 (options): Unify "verbose" message.
13750 * util/grub-install.in: Add quotes around variable name.
13751 * util/grub-kbdcomp.in: Unify error message.
13752 * util/grub-mkfont.c (main): Likewise.
13753 * util/grub-mkrescue.in: Likewise.
13754 * util/grub-mklayout.c (options): Unify "verbose" message.
13755 * util/grub-mkstandalone.in: Unify help and verbose messages.
13756 * util/grub-mount.c (options): Unify "verbose" message.
13757 * util/grub-probe.c (options): Likewise.
13758 * util/grub-script-check.c (options): Likewise.
13759 * util/grub-setup.c (setup): Unify no-terminator message.
13760 (options): Use DEVICE and not DEV.
13761 Unify "verbose" message.
13762 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
13764 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13766 Improve and unify messages.
13768 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
13769 name. All users updated.
13770 Print filename in error.
13771 (read_device_map): Print filename in error.
13772 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13773 (grub_util_get_os_disk): Likewise.
13774 (grub_util_biosdisk_get_grub_dev): Likewise.
13775 (grub_util_check_block_device): Likewise.
13776 (grub_util_check_char_device): Likewise.
13777 (grub_make_system_path_relative_to_its_root): Likewise.
13778 * util/grub-editenv.c (create_envblk_file): Likewise.
13779 (open_envblk_file): Likewise.
13780 (write_envblk): Likewise.
13781 * util/grub-fstest.c (cmd_cp): Likewise.
13782 (cmd_cat): Likewise.
13783 (cmd_cmp): Likewise.
13784 * util/grub-menulst2cfg.c (main): Likewise.
13785 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13786 (write_font_width_spec): Likewise.
13787 (write_font_pf2): Likewise.
13788 * util/grub-mkimage.c (generate_image): New argument outname.
13790 Remove unreacheable message.
13791 (options): Unify messages.
13792 (help_filter): Likewise.
13793 * util/grub-mklayout.c (usage): Removed (unused).
13794 (main): Print filename in error.
13795 * util/grub-mkrescue.in: Fix wrong quoting.
13796 * util/grub-setup.c (setup): Print filename in error.
13797 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13798 (check_sas): Likewise.
13799 * util/misc.c (grub_util_get_fp_size): Removed.
13800 (grub_util_get_image_size): Print filename in error.
13801 (grub_util_read_at): Removed.
13802 (grub_util_read_image): Print filename in error.
13803 (grub_util_load_image): Likewise.
13804 (grub_util_write_image_at): New argument filename. All users updated.
13805 Print filename in error.
13806 (grub_util_write_image): New argument filename. All users updated.
13807 Print filename in error.
13808 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13809 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13811 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13813 * grub-core/Makefile.core.def (pxechain): New module.
13814 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13815 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13817 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13818 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13820 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13822 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13823 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13824 * include/grub/err.h (grub_error_saved): New struct.
13825 (grub_errmsg): Make array size explicit.
13826 * include/grub/misc.h (grub_error_save): New function.
13827 (grub_error_load): Likewise.
13828 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13829 (grub_error_push): Update `errno' member name.
13830 (grub_error_pop): Likewise
13831 * grub-core/net/tftp.c (tftp_data): New member save_err.
13832 (tftp_receive): Save error.
13833 (tftp_open): Restore error.
13835 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13837 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13838 to real mode down to execute A20-related code in protected mode as
13841 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13843 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13844 NULL when the argument `level' has an unexpected value.
13846 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13848 Move platform-dependent files from $prefix to $prefix/$platform.
13850 * config.h.in (GRUB_TARGET_CPU): New definition.
13851 (GRUB_PLATFORM): Likewise.
13852 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
13853 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
13854 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13855 * grub-core/kern/dl.c (grub_dl_load): Likewise.
13856 * grub-core/normal/autofs.c (read_fs_list): Likewise.
13857 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
13858 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
13859 * grub-core/normal/term.c (read_terminal_list): Likewise.
13860 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
13862 (grub_gettext_init_ext): Likewise.
13863 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
13865 * util/grub-install.in: Update directories.
13866 * util/grub-mknetdir.in: Likewise.
13867 * util/grub-mkrescue.in: Likewise.
13869 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13871 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
13872 grub_error framework. All users updated.
13874 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13876 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
13877 lists (by always binsearching), improve caching (cache strings
13878 used for binsearch, not only results), improve
13879 maintainability (by using more structured binary search) and correct
13882 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13884 * grub-core/script/execute.c (grub_script_return): Fix warning.
13886 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13888 * grub-core/script/execute.c (grub_script_return): Fix potential
13890 Reported by: Jim Meyering.
13892 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13894 * po/POTFILES.in: Regenerate.
13895 * util/grub-install.in: Gettextize the strings missed in first pass.
13897 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13899 * Makefile.util.def (grub-mkdevicemap): Removed.
13900 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
13901 * include/grub/util/deviceiter.h: Removed.
13902 * util/deviceiter.c: Likewise.
13903 * util/getroot.c (grub_util_get_os_disk): New function.
13904 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
13905 replacement for EFI.
13906 * util/grub-mkdevicemap.c: Removed.
13907 * util/grub-probe.c (probe): Handle PRINT_DISK.
13908 (argp_parser): Handle -t disk.
13910 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13912 * util/grub-mkfont.c: Migrate to argp.
13913 * util/grub-mklayout.c: Likewise.
13914 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13915 * util/grub-mkrelpath.c: Likewise.
13916 * util/grub-probe.c: Likewise.
13917 * util/grub-script-check.c: Likewise.
13919 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13921 * util/grub-reboot.in: Add missing datarootdir.
13922 Add missing newline.
13923 * util/grub-set-default.in: Add missing datarootdir.
13924 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
13925 * util/grub-mkrescue.in: Likewise.
13927 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13929 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
13931 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13933 * util/grub-kbdcomp.in: Add decent help and gettextize.
13934 * docs/man/grub-kbdcomp.h2m: New file.
13936 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13938 Migrate grub-mkimage.c to argp.
13940 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
13941 (grub-setup): Likewise.
13942 * util/grub-setup.c (print_version): Move to ...
13943 * util/argp_common.c (print_version): ... here.
13944 * util/grub-setup.c (argp_program_version_hook): Move to ...
13945 * util/argp_common.c (argp_program_version_hook): ... here.
13946 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
13948 * util/grub-mkimage.c (main): Migrate to argp.
13950 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13952 * util/grub-mkrescue.in: Use same message as
13953 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
13954 for better translations.
13956 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13958 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
13959 options with generic grub-mkrescue.in with the goal of future
13962 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13964 * grub-core/kern/mm.c: Add missing include of i18n.h
13965 * grub-core/lib/relocator.c: Likewise.
13967 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13969 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
13971 (allocate_pages): Check return value.
13972 Replace fatal with error.
13973 (grub_linux_boot): Replace printf with dprintf.
13974 Check find_mmap_size return value.
13975 Replace fatal with error.
13976 Don't call grub_machine_fini.
13977 (grub_load_elf64): Replace printf with dprintf.
13978 (grub_cmd_linux): Likewise.
13979 (grub_cmd_initrd): Likewise.
13980 (grub_cmd_payload): Likewise.
13982 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13984 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
13986 * grub-core/video/radeon_fuloong2e.c
13987 (grub_video_radeon_fuloong2e_setup): Likewise.
13988 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
13989 * grub-core/video/video.c (grub_video_set_mode): Don't override
13990 standard out of memory message.
13992 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
13994 NetBSD disk wedge support.
13996 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
13997 [__NetBSD__]: Handle NetBSD disk wedges.
13998 * util/getroot.c (convert_system_partition_to_system_disk)
13999 [__NetBSD__]: Likewise.
14001 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
14003 * util/grub-mkconfig.in: Use umask rather than chmod to create
14004 grub.cfg.new to avoid insecure grub.cfg.
14006 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14008 * grub-core/commands/ls.c: Gettextize.
14009 * grub-core/commands/setpci.c: Likewise.
14010 * grub-core/commands/videotest.c: Likewise.
14011 * grub-core/disk/geli.c: Likewise.
14012 * grub-core/kern/mm.c: Likewise.
14013 * grub-core/lib/relocator.c: Likewise.
14014 * grub-core/loader/efi/appleloader.c: Likewise.
14015 * grub-core/loader/i386/xnu.c: Likewise.
14016 * grub-core/loader/ia64/efi/linux.c: Likewise.
14017 * grub-core/loader/xnu.c: Likewise.
14018 * grub-core/net/dns.c: Likewise.
14019 * grub-core/net/net.c: Likewise.
14020 * grub-core/script/lexer.c: Likewise.
14021 * grub-core/script/parser.y: Likewise.
14022 * grub-core/script/yylex.l: Likewise.
14023 * util/getroot.c: Likewise.
14024 * util/grub-setup.c: Likewise.
14026 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14028 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
14031 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14033 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
14035 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14037 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
14039 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
14040 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
14042 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14044 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
14045 * util/grub-install.in: Gettextize.
14046 * util/grub-mkconfig.in: Likewise.
14047 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
14049 (grub_warn): Gettextize.
14050 * util/grub-mknetdir.in: Gettextize.
14051 * util/grub-mkrescue.in: Likewise.
14052 * util/grub-mkstandalone.in: Likewise.
14053 * util/grub-reboot.in: Likewise.
14054 * util/grub-set-default.in: Likewise.
14055 * util/grub.d/00_header.in: Likewise.
14056 * util/grub.d/10_hurd.in: Likewise.
14057 * util/grub.d/10_kfreebsd.in: Likewise.
14058 * util/grub.d/10_linux.in: Likewise.
14059 * util/grub.d/10_netbsd.in: Likewise.
14060 * util/grub.d/10_windows.in: Likewise.
14061 * util/grub.d/20_linux_xen.in: Likewise.
14062 * util/grub.d/30_os-prober.in: Likewise.
14063 * po/POTFILES-shell.in: Regenerate.
14065 2012-02-03 Richard Laager <rlaager@wiktel.com>
14067 * util/grub-mkimage.c (main): Fix format-security warning.
14068 * util/grub-mkrelpath.c (main): Likewise.
14069 * util/grub-probe.c (main): Likewise.
14071 2012-02-03 Richard Laager <rlaager@wiktel.com>
14073 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
14075 Put back lost PRINT_DRIVE.
14077 2012-02-03 Richard Laager <rlaager@wiktel.com>
14079 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
14080 (grub_guess_root_devices): Replace strlen with sizeof.
14082 (find_root_devices_from_poolname): Remove unused variable.
14085 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14087 Support install on multi-device filesystems.
14089 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
14090 (grub_guess_root_devices): ...this. Return char **. All users updated.
14091 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
14093 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
14094 (find_root_devices_from_poolname): ... here.
14095 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
14097 (grub_guess_root_device): Rename to ...
14098 (grub_guess_root_devices): ... this. Return char **. All users updated.
14099 * util/grub-install.in: Handle multi-device filesystems.
14100 * util/grub-probe.c (probe). Make device_names a char **. Add delim
14101 argument. All users updated.
14102 Handle multi-device filesystems.
14103 Use 'delim' as separator.
14104 Remove device check to allow filesystems on file.
14105 (main): Support -0 argument. Handle multi-device.
14106 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
14107 Fix a cross-device check while on it.
14108 (arguments): Remove root_dev.
14109 (argp_parser): Remove -r.
14110 (main): Remove root_dev.
14112 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14114 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
14116 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14118 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
14120 Reported by: NODA, Kai <nodakai>.
14122 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14126 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
14128 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
14129 (grub_ehci_setup_qh): Likewise.
14130 (grub_ehci_find_qh): Likewise.
14131 (grub_ehci_transaction): Likewise.
14132 (grub_ehci_setup_transfer): Likewise.
14133 (grub_ehci_check_transfer): Likewise.
14134 (grub_ehci_portstatus): Likewise.
14135 (grub_ehci_detect_dev): Likewise.
14136 (grub_ehci_transfer_controller_data): New field td_last_phys.
14137 (grub_ehci_setup_transfer): Fill td_last_phys.
14138 (grub_ehci_check_transfer): Use td_last_phys.
14140 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
14142 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
14143 if no submenu is present.
14145 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14149 * include/grub/usb.h (grub_usbms_protocol_t): New values
14150 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
14151 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
14152 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
14153 (grub_usbms_dev): Add subclass, protocol and intrpt.
14154 Remove in_maxsz and out_maxsz.
14155 (grub_usbms_reset): Rename to ...
14156 (grub_usbms_bo_reset): .. this.
14157 (grub_usbms_cbi_cmd): New function.
14158 (grub_usbms_cbi_reset): Likewise.
14159 (grub_usbms_reset): Likewise.
14160 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
14161 (grub_usbms_transfer): Rename to ...
14162 (grub_usbms_transfer_bo): ... this.
14163 (grub_usbms_transfer_cbi): Likewise.
14164 (grub_usbms_transfer): Likewise.
14166 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14167 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14169 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
14170 the support for the CS5536 modification thereos and few bugfixes.
14172 * grub-core/Makefile.core.def (ehci): New module.
14173 * grub-core/bus/usb/ehci.c: New file.
14174 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
14175 port and hubaddr. All users updated.
14176 Save port and hubaddr into dev structure.
14177 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
14179 * include/grub/pci.h (grub_dma_phys2virt): New function.
14180 (grub_dma_virt2phys): Likewise.
14181 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
14183 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14185 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
14186 check as some mkfs implementations omit it.
14188 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14190 * docs/grub.texi (Unicode): Mention identifier and space limitations.
14192 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14194 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
14195 Add new member volname2.
14196 (grub_jfs_label): Use volname2 if available.
14198 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14200 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
14201 over last_mounted as seen in image generated by mkfs.nilfs2.
14202 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
14204 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14206 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
14207 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
14208 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
14210 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14212 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
14215 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14217 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
14218 subvolume name (by removing a bogus and useless check).
14220 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14222 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
14223 sizeof while on it.
14225 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14227 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
14228 (grub_scsi_read_capacity10): ... this.
14229 (grub_scsi_read_capacity16): New function.
14230 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
14232 Fix off-by-one error.
14233 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
14235 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
14236 (grub_scsi_read_capacity10): ... this.
14237 (grub_scsi_read_capacity_data): Rename to ...
14238 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
14239 (grub_scsi_read_capacity16): New struct.
14240 (grub_scsi_read_capacity16_data): Likewise.
14241 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
14242 grub_scsi_cmd_read_capacity10.
14243 New command grub_scsi_cmd_read_capacity16.
14245 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14247 SCSI >2TiB support.
14249 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
14250 (grub_scsi_write16): Likewise.
14251 (grub_scsi_read): Use read16 when necessary.
14252 (grub_scsi_write): Likewise.
14253 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
14254 (grub_scsi_write16): Likewise.
14255 (grub_scsi_cmd_t): Add READ16 and WRITE16.
14257 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14259 SCSI write support (for usbms mainly).
14261 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
14263 (grub_scsi_write): Implement.
14264 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
14266 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14268 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
14271 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14273 * grub-core/lib/posix_wrap/string.h (memchr): New function.
14275 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14277 * po/POTFILES.in: Regenerate.
14279 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14281 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
14282 with grub_printf to avoid unnecessary fatal failure.
14284 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14286 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
14287 (INT_MAX): Likewise.
14288 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
14289 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
14290 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
14291 (strcpy): Likewise.
14292 (strstr): Likewise.
14293 (strchr): Likewise.
14294 (strncpy): Likewise.
14295 (strcat): Likewise.
14296 (strncat): Likewise.
14297 (strcoll): Likewise.
14298 * include/grub/types.h (GRUB_SHRT_MAX): New define.
14299 (GRUB_INT_MAX): Likewise.
14301 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14303 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
14305 (optimize_utf8): Likewise.
14306 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
14308 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14310 * grub-core/boot/i386/pc/lnxboot.S: Use
14311 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
14312 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
14314 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
14316 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
14318 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14320 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
14321 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
14322 now to avoid double free.
14323 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
14325 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
14326 * util/grub-probe.c (escape_of_path): Always return a new copy.
14327 (print_full_name): Escape path.
14328 (probe): Don't call grub_util_devname_to_ofpath on NULL.
14329 Fix hints on abstractions.
14331 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14333 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
14334 Don't add "root" line if no compatibility hont is available.
14335 Suggested by: Seth Goldberg.
14337 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14339 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
14340 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
14341 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
14342 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
14344 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14346 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
14348 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14350 * util/grub-pe2elf.c (ehdr): Make static.
14352 (num_sections): Likewise.
14353 (offset): Likewise.
14355 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14357 Eliminate ofpath limits and possible overflows.
14359 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
14360 (OF_PATH_MAX): Removed.
14361 (MAX_DISK_CAT): New const.
14362 (find_obppath): Use allocated rather than preallocated buffer.
14363 Return result. Argument of_path removed. All users updated.
14364 Add missing fdstat.
14365 (xrealpath): New function.
14366 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
14367 Allocate rather than use preallocated buffer. All users updated.
14368 (__of_path_common): Use allocated rather than preallocatecd buffer.
14369 Return result. Argument of_path removed. All users updated.
14370 (vendor_is_ATA): Read only needed part form the file.
14371 (check_sas): Allocate depending on contents rather than fixed.
14372 (main) [STANDALONE]: Handle NULL result.
14374 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14376 * grub-core/normal/completion.c (iterate_dev): Close the disk.
14378 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14380 Cryptodisk write support.
14382 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
14383 (grub_cryptodisk_decrypt): Moved logic to ...
14384 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
14385 (grub_cryptodisk_write): Implement.
14386 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
14387 (grub_util_fd_write): ... this. Make global.
14388 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
14390 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14392 * include/grub/list.h (grub_list_remove): Don't crash if element is
14395 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14397 Rename ofconsole to console.
14399 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
14400 as sysnonym to console.
14401 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
14402 * grub-core/term/ieee1275/console.c: ... this. All users updated.
14403 Rename grub_ofconsole_ to grub_console_. All users updated
14404 (grub_console_term_output): Rename "ofconsole" to "console".
14405 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
14408 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14410 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
14412 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
14413 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
14414 GRUB_DISK_DEVICE_FILE_ID.
14416 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14418 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
14419 and improve performance.
14421 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14423 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
14424 missing ieee1275/ prefix on whole disk.
14426 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14428 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
14429 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14431 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14433 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
14435 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14437 Merge common RAID and LVM logic to an abstract diskfilter.
14438 Add LDM support using the same framework.
14440 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
14441 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
14442 (libgrubmods): Remove grub-core/disk/raid.c and
14443 grub-core/partmap/gpt.c.
14444 * grub-core/Makefile.core.def (ldm): New module.
14445 (raid): Renamed to diskfilter. All users updated.
14446 * grub-core/disk/raid.c: Moved to ...
14447 * grub-core/disk/diskfilter.c: ... here.
14448 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
14450 (find_array): Renamed to ...
14451 (find_lv): ... this. Support multi-LV. Skip nameless LVs
14452 (grub_is_array_readable): Renamed to ...
14453 (grub_is_lv_readable): ... this. Support multinode hierarchy.
14454 (insert_array): New argument id.
14455 (is_node_readable): New function.
14456 (scan_device): Rename to ...
14457 (scan_disk): .. this. Restrict to one disk.
14458 (scan_devices): New function.
14459 (grub_diskfilter_iterate): Support multi-LV.
14460 Skip invisible and nameless LVs.
14461 (grub_diskfilter_memberlist): Support multi-LV.
14462 (grub_diskfilter_read_node): New function.
14463 (grub_raid_read): Most of logic moved to ...
14464 (read_segment): ... here
14465 (read_lv): New function.
14466 (grub_diskfilter_get_vg_by_uuid): New function.
14467 (grub_diskfilter_make_raid): Likewise.
14468 * grub-core/disk/ldm.c: New file.
14469 * grub-core/disk/lvm.c (vg_list): Removed.
14470 (lv_count): Likewise.
14471 (scan_depth): Likewise.
14472 (is_lv_readable): Likewise.
14473 (grub_lvm_getvalue): Advance pointer past the number.
14474 (find_lv): Removed.
14475 (do_lvm_scan): Refactored into ...
14476 (grub_lvm_detect): ... this. Support raid.
14477 (grub_lvm_iterate): Removed.
14478 (grub_lvm_memberlist): Likewise.
14479 (grub_lvm_open): Likewise.
14480 (grub_lvm_close): Likewise.
14481 (read_lv): Likewise.
14482 (read_node): Likewise.
14483 (is_node_readable): Likewise.
14484 (is_lv_readable): Likewise.
14485 (grub_lvm_read): Likewise.
14486 (grub_lvm_write): Likewise.
14487 (grub_lvm_dev): Use diskfilter
14488 (GRUB_MOD_INIT): Likewise.
14489 (GRUB_MOD_FINI): Likewise.
14490 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
14492 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
14493 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14494 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
14495 grub_diskfilter_read_node.
14496 Fix a bug with xor.
14497 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
14498 grub_diskfilter_read_node.
14499 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
14500 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
14501 (grub_disk_dev_iterate): Move from here...
14502 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
14503 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
14505 (grub_hostdisk_find_partition_start): Likewise.
14506 (grub_hostdisk_os_dev_to_grub_drive): New function.
14507 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
14508 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
14509 * util/getroot.c (make_device_name): ... here.
14510 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
14512 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
14513 * grub-core/kern/emu/hostdisk.c
14514 (convert_system_partition_to_system_disk): Move to ...
14515 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
14516 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
14517 * util/getroot.c (device_is_wholedisk): ... here.
14518 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
14519 * util/getroot.c (find_system_device): ... here.
14520 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
14522 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
14523 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14525 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
14527 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14529 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
14530 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
14531 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
14533 * include/grub/raid.h: Renamed to ...
14534 * include/grub/diskfilter.h: ... this.
14535 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
14536 (GRUB_RAID_LAYOUT_*): Make into array.
14537 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
14538 (grub_diskfilter_vg): New struct.
14539 (grub_diskfilter_pv_id): Likewise.
14540 (grub_raid_member): Removed.
14541 (grub_raid_array): Likewise.
14542 (grub_diskfilter_pv): New struct.
14543 (grub_diskfilter_lv): Likewise.
14544 (grub_diskfilter_segment): Likewise.
14545 (grub_diskfilter_node): Likewise.
14546 (grub_diskfilter_get_vg_by_uuid): New proto.
14547 (grub_raid_register): Inline.
14548 (grub_diskfilter_unregister): Likewise.
14549 (grub_diskfilter_make_raid): New proto.
14550 (grub_diskfilter_vg_register): Likewise.
14551 (grub_diskfilter_read_node): Likewise.
14552 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
14553 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
14554 (grub_util_is_ldm): Likewise.
14555 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
14556 (grub_hostdisk_find_partition_start): Likewise.
14557 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
14558 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
14560 (grub_gpt_partition_map_iterate): New proto.
14561 * include/grub/lvm.h (grub_lvm_vg): Removed.
14562 (grub_lvm_pv): Likewise.
14563 (grub_lvm_lv): Likewise.
14564 (grub_lvm_segment): Likewise.
14565 (grub_lvm_node): Likewise.
14566 * util/getroot.c [...]
14567 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
14568 (probe_abstraction): Likewise.
14569 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
14570 (main): Remove dead logic.
14572 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
14574 Simplify root device discover and don't fail when trying to open
14577 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
14579 (get_diskname_from_path): Likewise.
14580 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
14583 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14585 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
14587 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14589 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
14592 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14594 * util/grub-install.in: Add missing \.
14595 Reported by: gentoofan
14597 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14599 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
14600 (direct_read): Use correct compressed size.
14601 (grub_squash_read_data): Likewise.
14603 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14605 * docs/grub.texi (Platform limitations): New section.
14606 (Platform-specific operations): Likewise.
14607 * docs/grub-dev.texi (Porting): Likewise.
14609 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14611 IEEE1275 disk write support.
14613 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
14615 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
14616 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
14617 and seek loginc to ...
14618 (grub_ofdisk_prepare): ... here.
14619 (grub_ofdisk_write): Implement.
14621 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14623 ARC disk write support.
14625 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
14626 (reopen): New argument writable. All users updated.
14627 Handle required access mode.
14628 (grub_arcdisk_write): Implement.
14629 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
14630 (grub_arc_firmware_vector): Make buffer to write a const buffer.
14632 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14634 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
14635 (read_sblock): Don't attempt to read superblocks outside the disk size.
14637 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14639 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
14640 first superblock to find the second one when possible.
14642 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14644 * util/grub-install.in: Fix an ARC bug.
14645 Print a warning if no platform-specific setup is available.
14647 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14649 Use static allocation rather than scratch pointer in reed_solomon.
14650 It decreases its size significantly and avoids a variable in .text.
14652 * grub-core/lib/reed_solomon.c (scratch): Removed.
14653 (chosenstat): New const or static array.
14655 (errpot): Likewise.
14656 (errpos): Likewise.
14659 (errvals): Likewise.
14660 (eqstat): Likewise.
14661 (pol_evaluate): Replace x with log_x argument. All users updated.
14662 (syndroms): Removed.
14663 (gauss_solve): Use statically allocated arrays.
14664 (rs_recover): Likewise.
14665 Calculate syndroms directly.
14666 (decode_block): Use statically allocated arrays.
14667 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
14668 (main) [TEST]: Allow -DTEST -DSTANDALONE.
14670 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14672 Eliminate fixed limit on reed solomon decoder length.
14674 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
14675 rather than hardcoding the address.
14676 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
14677 no_reed_solomon_length.
14678 Move gate_a20 to no-reed-solomon part.
14679 Don't force a particular size of no reed-solomon part.
14680 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14682 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
14683 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
14685 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14687 * grub-core/commands/wildcard.c (match_files): Handle filenames
14688 without explicit device.
14689 (wildcard_expand): Don't add explicit device if not already present.
14690 * tests/grub_script_echo1.in: Add a new expansion test.
14692 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14694 Replace single-linked with double-linked lists. It results in more
14695 compact and more efficient code.
14697 * grub-core/kern/list.c (grub_list_push): Moved from here ...
14698 * include/grub/list.h (grub_list_push): ... to here. Set prev.
14699 (grub_list_remove): Moved from here ...
14700 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
14701 (grub_prio_list_insert): Set prev.
14702 * include/grub/list.h (grub_list): Add prev. All users updated.
14704 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14706 Handle newer autotools. Add some missing quotes while on it.
14708 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
14709 (pkglib_DATA): Move grub-mkconfig_lib from here ...
14710 (pkgdata_DATA): ... here.
14711 * Makefile.util.def (update-grub_lib): Removed.
14712 * conf/Makefile.common (pkglib_DATA): Removed.
14713 (pkglib_SCRIPTS): Likewise.
14714 (pkgdata_DATA): New variable.
14715 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
14717 Add missing quotes.
14718 Remove unused variable while on it.
14719 * tests/util/grub-shell.in: Likewise.
14720 * util/grub-install.in: Likewise.
14721 * util/grub-mkconfig.in: Likewise.
14722 * util/grub-mknetdir.in: Likewise.
14723 * util/grub-mkrescue.in: Likewise.
14724 * util/grub-mkstandalone.in: Likewise.
14725 * util/grub.d/00_header.in: Likewise.
14726 * util/grub.d/10_hurd.in: Likewise.
14727 * util/grub.d/10_illumos.in: Likewise.
14728 * util/grub.d/10_kfreebsd.in: Likewise.
14729 * util/grub.d/10_linux.in: Likewise.
14730 * util/grub.d/10_netbsd.in: Likewise.
14731 * util/grub.d/10_windows.in: Likewise.
14732 * util/grub.d/20_linux_xen.in: Likewise.
14733 * util/grub.d/30_os-prober.in: Likewise.
14734 * util/update-grub_lib.in: Removed.
14736 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
14738 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
14739 a workaround for intel problem.
14741 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
14742 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14743 2012-01-23 pfsmorigo
14745 * util/grub-install.in: Support dd'in into PreP partition.
14746 * util/grub-probe.c (probe): Support discovering partition type.
14747 (main): Support -t msdos_parttype.
14749 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14751 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
14752 infinite recursion using counter.
14753 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
14754 init to skip it if the magic check fails.
14755 (dec_stream_header): Init s->crc32.
14757 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14758 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
14759 2012-01-22 Richard Laager <rlaager@wiktel.com>
14761 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
14763 (find_bestub): Determine correct size.
14764 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
14765 (scan_disk): Align the size down.
14766 Call check pool before find_bestub to have ashift.
14768 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14770 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
14771 dprintf in no-malloc zone.
14773 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14775 * configure.ac: Add back in test for limits.h.
14777 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14779 Support 4K-sector NTFS.
14781 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14782 (grub_ntfs_data): Remove blocksize.
14783 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14784 Remove data argument. All users updated.
14786 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14788 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14789 being in .text to avoid dprel references.
14790 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14791 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14792 (grub_arch_highmemsize): Likewise.
14793 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14794 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14795 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14797 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14799 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14801 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14802 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14804 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14806 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14808 (grub_set_datetime_cmos): Likewise.
14810 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14812 Make XZ compression parameters dependent on target and not host CPU.
14814 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14815 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14817 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14819 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14820 set but not used variable.
14822 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14824 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14825 created when no uuid support is compiled into mkfs.reiser.
14827 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14829 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14830 (utf8_to_macroman): Do the opposite.
14831 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14833 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14835 * configure.ac: Refise build qemu_mips w/o unifont.
14837 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14839 Eliminate grub_min/grub_max prone to overflow usage.
14841 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14842 (poll_nonroot_hub): Likewise.
14843 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14844 (grub_affs_label): Likewise.
14845 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
14846 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
14847 (grub_hfs_label): Likewise.
14848 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14849 * grub-core/fs/zfs/zfs.c (MIN): Remove.
14850 (zap_leaf_array_equal): Use grub_size. Remove MIN.
14851 (zap_leaf_array_get): Likewise.
14852 (dnode_get_path): Likewise.
14853 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
14854 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
14855 * grub-core/script/execute.c (grub_script_break): Likewise.
14856 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
14858 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
14859 * include/grub/misc.h (grub_min): Removed.
14860 (grub_max): Likewise.
14862 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14864 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
14867 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14869 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
14871 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14873 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
14875 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14877 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
14878 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
14880 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14882 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
14883 rather than a hack for grub_strncasemap.
14885 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14887 Support multiple initrds
14888 Note: part of this was accidently committed in r3739.
14890 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
14892 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
14893 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
14894 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14895 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14896 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14898 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14900 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
14901 disks with unknown size.
14902 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
14904 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14906 Remove defines pertaining to arbitrary limits not affecting GRUB
14909 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
14910 (EXT2_MAX_SYMLINKCNT): Likewise.
14911 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
14912 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
14913 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
14914 (GRUB_PXE_MAX_BLKSIZE): Likewise.
14915 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
14916 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
14917 (DN_MAX_OBJECT_SHIFT): Likewise.
14918 (DN_MAX_OFFSET_SHIFT): Likewise.
14919 (DN_MAX_OBJECT): Likewise.
14920 (DNODES_PER_LEVEL_SHIFT): Likewise.
14921 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
14922 (SPA_MAXBLOCKSIZE): Likewise.
14923 (SPA_BLOCKSIZES): Likewise.
14924 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
14925 (MZAP_MAX_BLKSZ): Likewise.
14927 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14929 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
14930 handle NULL appropriately.
14933 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14937 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
14939 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
14940 * configure.ac: Fix efiemu check.
14942 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14944 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
14946 Reported by: adamwill
14948 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
14950 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
14952 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14954 Fix handling of wide characters in gfxterm.
14956 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
14957 (clear_char): Likewise.
14958 (paint_char): Skip code == NULL chars.
14959 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
14961 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14963 * grub-core/normal/charset.c: Move comment to right place.
14965 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14967 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
14968 (GRUB_AFFS_FLAG_FFS): Put back where it was.
14969 (grub_affs_mount): Revert the correct version checking.
14971 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14973 * docs/grub.texi (Unicode): Mention several other unsupported features.
14975 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14977 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
14978 case statements as compile-time one.
14979 (direct_read): Prevent spurious warnings.
14980 (grub_squash_read_data): Likewise.
14982 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14984 Various squash4 fixes and LZO and XZ support.
14986 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
14987 Add xzembed source files.
14988 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
14989 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
14990 (grub_squash_inode): New subtype long_dir.
14991 (SQUASH_TYPE_LONG_DIR): New inode type.
14992 (COMPRESSION): New enum.
14993 (XZBUFSIZ): New const.
14994 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
14995 (read_chunk): Use data->decompress.
14996 (zlib_decompress): New function.
14997 (lzo_decompress): Likewise.
14998 (xz_decompress): Likewise.
14999 (squash_mount): Set new data fields.
15000 (grub_squash_iterate_dir): Handle long dir.
15001 (squash_unmount): Free xzdec and xzbuf.
15002 (grub_squash_open): Check ino type.
15003 (direct_read): Stylistic fixes. Use data->decompress.
15004 (grub_squash_read_data): Likewise.
15005 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
15006 (get_byte): Likewise.
15007 (grub_zlib_disk_read): Removed.
15008 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
15009 (GRUB_POSIX_BOOL_DEFINED): New define.
15010 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
15011 * grub-core/lib/xzembed/xz.h: Addmissing includes.
15012 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
15013 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
15015 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15017 Don't override more informative errors.
15019 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
15020 * grub-core/font/font.c (open_section): Likewise.
15021 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
15022 filename. Don't override errors.
15023 (grub_cmd_openbsd_ramdisk): Don't override errors.
15024 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
15025 (grub_cmd_initrd): Likewise.
15026 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
15027 (grub_cmd_initrd): Likewise.
15028 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
15029 (grub_cmd_linux): Likewise.
15030 (grub_cmd_initrd): Likewise.
15031 (grub_cmd_payload): Likewise.
15032 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
15033 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
15034 (grub_cmd_module): Likewise.
15035 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15036 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15037 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
15038 (grub_cmd_xnu_mkext): Likewise.
15039 (grub_cmd_xnu_ramdisk): Likewise.
15040 (grub_xnu_check_os_bundle_required): Likewise.
15041 (grub_xnu_load_kext_from_dir): Likewise.
15042 (grub_cmd_xnu_kextdir): Likewise.
15043 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
15045 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15047 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
15048 as 1024 in block size field. Found on one of my test images.
15049 Small optimisation while on it.
15051 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15053 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
15054 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
15055 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
15056 performance fixes while on it.
15057 (grub_sfs_close): Fix memory leak while on it.
15058 (grub_sfs_label): Convert Latin1 to UTF-8.
15060 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15062 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
15063 space to avoid overflows.
15064 (grub_hfs_label): Convert from macroman to UTF-8.
15066 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15068 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
15070 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15072 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
15074 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15076 * unicode: Import Unicode 6.0 data.
15078 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15080 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
15083 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15085 Avoid cutting in the middle of UTF-8 character.
15087 * include/grub/charset.h (grub_getend): New function.
15088 * grub-core/script/function.c (grub_script_function_find): Use
15090 * grub-core/normal/completion.c (add_completion): Likewise.
15092 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15094 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
15095 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
15096 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
15097 (GRUB_UNICODE_TAG_END): Likewise.
15098 (GRUB_UNICODE_LAST_VALID): Likewise.
15100 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15102 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
15103 len and make it smaller. All users updated.
15104 * util/import_unicode.py: Put length and not end character.
15107 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15109 Make better Unicode-compliant and unify some UTF-8 code pathes.
15111 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
15113 (grub_is_valid_utf8): Use grub_utf8_process.
15114 Check resulting code range.
15115 (grub_utf8_to_ucs4): Use grub_utf8_process.
15116 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
15119 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15121 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
15123 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15125 * docs/grub.texi (Filesystems): Mention AFS.
15127 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15129 * docs/grub.texi (Filesystems): Clarify restrictions.
15130 (Regexp): Mention non-Unicode regexp behaviour.
15131 (Other): Mention non-Unicode matching behaviour.
15133 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15135 Make HFS implementation use MacRoman.
15137 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
15138 (macroman): New const array.
15139 (macroman_to_utf8): New function.
15140 (utf8_to_macroman): Likewise.
15141 (grub_hfs_find_dir): Use utf8_to_macroman.
15142 (grub_hfs_dir): Use macroman_to_utf8.
15143 Set case_insensitive.
15145 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15147 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
15149 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15151 Integrate hints into autogeneration scripts.
15153 * docs/grub.texi (Filesystems): Add a hostdisk example.
15154 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
15155 (grub-probe): Add ofpath.
15156 * gentpl.py: Remove group nosparc64.
15157 * grub-core/commands/search.c (cache_entry): New struct.
15159 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
15160 * grub-core/commands/search_wrap.c (options): Add platform-specific
15162 (grub_cmd_search): Handle platform-specific hints.
15163 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
15164 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
15165 (grub_util_biosdisk_data): Likewise.
15166 (grub_util_biosdisk_open): Set device_map.
15167 (read_device_map): Handle "" as indication of no map.
15169 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
15170 (grub_util_biosdisk_get_compatibility_hint): New function.
15171 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
15172 * include/grub/emu/hostdisk.h
15173 (grub_util_biosdisk_get_compatibility_hint): New proto.
15174 * util/grub-install.in: Don't call grub-mkdevicemap.
15175 Add platform-specific hint to load.cfg.
15176 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
15177 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
15178 hints. Set root preliminary to compatibility hint, not to OS name.
15179 * util/grub-probe.c (PRINT_*): Add hints.
15180 (print): Make static.
15181 (escape_of_path): New function.
15182 (guess_bios_drive): Likewise.
15183 (guess_efi_drive): Likewise.
15184 (guess_baremetal_drive): Likewise.
15185 (print_full_name): Likewise.
15186 (probe): Handle hints.
15188 * util/ieee1275/devicemap.c: Removed.
15189 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
15191 (grub_util_devname_to_ofpath): Return NULL on failure.
15193 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
15195 * util/getroot.c (grub_util_pull_device): Fix memory leak.
15197 * po/POTFILES.in: Regenerated.
15199 Allow purely long options
15201 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
15202 (SHORT_ARG_USAGE): Likewise.
15203 (grub_arg_show_help): Compare opt with help_options.
15204 (parse_option): Receive opt as argument. If makes big simplificatons.
15207 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15209 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
15210 Restructure to avoid warning.
15212 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15214 * util/grub-install.in: Account for possible escaped comma in device
15217 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15219 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
15222 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15224 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
15225 allocation and zero-setting.
15226 (grub_ieee1275_get_devname): Check that alias is complete.
15228 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15230 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
15231 unaligned segments.
15233 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15235 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
15237 (grub_ofdisk_open): Check and discard ieee1275 prefix.
15238 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
15239 Add ieee1275 prefix.
15241 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15243 * docs/grub.texi (Filesystems): Update.
15245 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15247 Support odc, newc and bigendian cpio formats.
15249 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
15250 * grub-core/Makefile.core.def (newc): New module.
15252 (cpio_be): Likewise.
15253 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
15255 (MAGIC2): Likewise.
15256 (head) [MODE_ODC]: Adapt for the format.
15257 (head) [MODE_NEWC]: Likewise.
15258 (head) [!MODE_*]: Write fields of interest as arrays.
15259 (MAGIC_USTAR): Removed.
15260 (read_number) [MODE_NEWC]: Change to hex.
15261 (read_number) [!MODE_*]: Parse binary arrays.
15262 (grub_cpio_find_file): Factor out the code for better structure and
15263 always use read_number.
15264 (grub_cpio_mount): Use MAGIC and MAGIC2.
15265 (grub_cpio_dir): Exit on first hook non-0 return.
15266 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
15267 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
15268 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
15269 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
15270 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
15271 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
15272 * grub-core/fs/newc.c: New file.
15273 * grub-core/fs/odc.c: Likewise.
15274 * grub-core/fs/cpio_be.c: Likewise.
15276 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15278 Fix handling of tar numbers occupying the whole field.
15280 * grub-core/fs/cpio.c (read_number): New function.
15281 (grub_cpio_find_file): Use read_number instead of strtoull.
15283 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15285 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
15286 occupying the whole field size.
15288 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
15290 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
15292 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15294 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
15296 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
15298 * grub-core/Makefile.core.def (lzma_decompress): Add missing
15299 TARGET_IMG_LDFLAGS.
15301 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15303 * util/getroot.c (ESCAPED_PATH_MAX): New define.
15304 (mountinfo_entry): Increase the field size to take escaping into
15306 (find_root_device_from_libzfs): Add one byte to size of strings for
15309 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15311 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
15313 * util/grub-setup.c (setup): Likewise.
15315 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15317 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
15320 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15322 * docs/grub.texi (Internationalisation): New section.
15324 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15326 * docs/grub.texi (Loopback booting): New section.
15328 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
15330 * util/grub-mkstandalone.in: Fix minor typo errors.
15332 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15334 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
15336 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
15337 net/icmp.c and net/icmp6.c.
15338 (http): New module.
15339 (priority_queue): Likewise.
15340 * grub-core/io/bufio.c: Rewritten.
15341 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
15342 TYPE_WITH_CONFIGFILE_OPTION.
15343 (legacy_commands): Add bootp and dhcp.
15344 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
15345 (grub_legacy_parse): Likewise.
15346 * grub-core/lib/priority_queue.c: New file.
15347 * grub-core/net/arp.c: Add missing license header.
15348 (arp_find_entry): Removed.
15349 (arp_find_entry): Likewise.
15350 (grub_net_arp_resolve): Rename to ...
15351 (grub_net_arp_send_request): ...this.
15352 (grub_net_arp_receive): New card argument.
15353 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
15354 Set router and DNS server.
15355 (grub_net_configure_by_dhcp_ack): Handle routing information.
15356 (grub_cmd_bootp): Set checksum.
15357 (grub_bootp_init): Remove net_dhcp.
15358 * grub-core/net/dns.c: New file.
15359 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
15361 (get_card_packet): Handle allocation.
15362 (grub_efinet_findcards): Set mtu.
15363 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
15364 (get_card_packet): Handle allocation.
15365 (emucard): Set mtu.
15366 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
15367 (GRUB_MOD_INIT): Set mtu.
15368 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
15370 (get_card_packet): Handle allocation.
15371 (grub_ofnet_findcards): Set mtu.
15372 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
15374 (grub_net_recv_ethernet_packet): Handle IPv6.
15375 * grub-core/net/http.c: New file.
15376 * grub-core/net/icmp.c: Likewise.
15377 * grub-core/net/icmp6.c: Likewise.
15378 * grub-core/net/ip.c (ip6addr): New type.
15379 (ip6hdr): Likewise.
15380 (reassemble): Likewise.
15381 (cmp): New function.
15382 (reassembles): New variable.
15383 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
15384 (id): New variable.
15385 (send_fragmented): New function.
15386 (grub_net_send_ip_packet): Rename to ...
15387 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
15389 (grub_net_recv_ip_packets): Rename to ...
15390 (handle_dgram): ... this. Check checksum. Handle non-UDP.
15391 (free_rsm): New function.
15392 (free_old_fragments): Likewise.
15393 (grub_net_recv_ip4_packets): New function.
15394 (grub_net_send_ip6_packet): Likewise.
15395 (grub_net_send_ip_packet): Likewise.
15396 (grub_net_recv_ip6_packets): Likewise.
15397 (grub_net_recv_ip_packets): Likewise.
15398 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
15399 (LINK_LAYER_CACHE_SIZE): New const.
15400 (link_layer_find_entry): New function.
15401 (grub_net_link_layer_add_address): Likewise.
15402 (grub_net_link_layer_resolve_check): Likewise.
15403 (grub_net_link_layer_resolve): Likewise.
15404 (grub_net_ipv6_get_slaac): Likewise.
15405 (grub_net_ipv6_get_link_local): Likewise.
15406 (grub_cmd_ipv6_autoconf): Likewise.
15407 (parse_ip): Handle one number representation.
15408 (parse_ip6): New functoion.
15409 (match_net): Handle IPv6.
15410 (grub_net_resolve_address): Handle IPv6 and DNS.
15411 (grub_net_resolve_net_address): Handle IPv6.
15412 (route_cmp): New function.
15413 (grub_net_route_address): Find best route.
15414 (grub_net_addr_to_str): Handle IPv6.
15415 (grub_net_addr_cmp): New function.
15416 (grub_net_add_addr): Register local route.
15417 (print_net_address): Handle net address.
15418 (grub_net_poll_cards): Retransmit TCP.
15419 (grub_net_poll_cards_idle_real): Likewise.
15420 (have_ahead): New function.
15421 (grub_net_seek_real): Use underlying seek.
15422 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
15423 * grub-core/net/tcp.c: New file.
15424 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
15425 (cmp): New function.
15427 (tftp_receive): Handle unordered input.
15428 (destroy_pq): New function.
15429 (tftp_close): Close pq.
15430 * grub-core/net/udp.c: Put missing license header.
15431 (grub_net_udp_socket): New function.
15432 (udp_socket_register): Likewise.
15433 (grub_net_udp_close): Likewise.
15434 (grub_net_recv_udp_packet): Check checksum.
15435 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
15436 * include/grub/misc.h (grub_memchr): New function.
15437 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
15438 (grub_net_card_driver): Return buf in recv.
15439 (grub_net_slaac_mac_list): New struct.
15440 (grub_network_level_protocol_id): Add ipv6.
15441 (grub_net_network_level_addr): Likewise.
15442 (grub_net_network_level_net_addr): Likewise.
15443 (grub_net_app_protocol): Add seek.
15444 (grub_net_socket): Removed.
15445 (grub_net_sockets): Likewise.
15446 (grub_net_socket_register): Likewise.
15447 (grub_net_socket_unregister): Likewise.
15448 (FOR_NET_SOCKETS): Likewise.
15449 (grub_net_add_addr): Add const.
15450 (GRUB_NET_BOOTP_*): New enum.
15451 (grub_net_addr_cmp): New proto.
15452 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
15453 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
15454 (grub_net_hwaddr_to_str): NEw proto.
15455 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
15456 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
15457 (grub_dns_init): New proto.
15458 (grub_dns_fini): Likewise.
15459 (grub_net_tcp_retransmit): Likewise.
15460 (grub_net_link_layer_add_address): Likewise.
15461 (grub_net_link_layer_resolve_check): Likewise.
15462 (grub_net_link_layer_resolve): Likewise.
15463 (grub_net_dns_lookup): Likewise.
15464 (grub_net_add_dns_server): Likewise.
15465 (grub_net_remove_dns_server): Likewise.
15466 (GRUB_NET_TRIES): New const.
15467 (GRUB_NET_INTERVAL): Likewise.
15468 * include/grub/net/arp.h: Mostly rewritten.
15469 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
15470 * include/grub/net/ip.h: Mostly rewritten.
15471 * include/grub/net/netbuff.h: Indent.
15472 * include/grub/net/tcp.h: New file.
15473 * include/grub/net/udp.h: Mostly rewritten.
15474 * include/grub/priority_queue.h: New file.
15475 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
15476 (grub_swap_bytes64_compile_time): Likewise.
15477 (grub_cpu_to_be16_compile_time): Likewise.
15478 (grub_cpu_to_be32_compile_time): Likewise.
15479 (grub_cpu_to_be64_compile_time): Likewise.
15480 (grub_be_to_cpu64_compile_time): Likewise.
15482 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
15484 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
15485 UINT_TO_PTR with cast.
15487 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15489 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
15492 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15494 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
15497 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15499 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
15502 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15504 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
15505 Add missing const attribute.
15506 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
15508 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
15511 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15513 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
15515 (serpent_setkey): Likewise.
15516 (serpent_encrypt_internal): Likewise.
15517 (serpent_decrypt_internal): Likewise.
15518 (serpent_encrypt): Don't put an alignment-increasing cast.
15519 (serpent_decrypt): Likewise.
15520 (serpent_test): Likewise.
15522 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15524 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
15526 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15528 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
15530 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
15532 (PTR_TO_UINT64): Likewise.
15533 (PTR_TO_UINT32): Likewise.
15535 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15537 * util/grub-mkimage.c (generate_image): Decrease the higher limit
15539 * util/grub-setup.c (setup): Don't add redundancy past the higher load
15542 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15544 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
15545 text_width > available width a bit more gracefully.
15547 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15549 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
15550 current address calculation.
15552 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15554 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
15556 (encode_block): Likewise.
15558 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15560 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
15563 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15565 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
15566 non-RS part to avoid RS messing with GDT.
15567 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
15568 Increase to suit in realmode routines.
15570 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15572 * grub-core/kern/i386/realmode.S: Increase alignment.
15573 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
15575 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15577 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
15579 (syndroms): Compute 0 syndrom.
15580 (rs_recover): Use 0 syndrom.
15582 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15584 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
15586 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15588 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
15591 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15593 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
15595 (get_top_pad): Likewise.
15596 (get_right_pad): Likewise.
15597 (get_bottom_pad): Likewise.
15599 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15601 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
15603 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15605 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
15606 attribute as the structure isn't guaranteed to be properly aligned.
15607 (grub_efi_pci_device_path): Likewise.
15608 (grub_efi_pccard_device_path): Likewise.
15609 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
15610 specify the size of `memory_type'.
15611 (grub_efi_vendor_device_path): Likewise.
15612 (grub_efi_controller_device_path): Likewise.
15613 (grub_efi_acpi_device_path): Likewise.
15614 (grub_efi_expanded_acpi_device_path): Likewise.
15615 (grub_efi_atapi_device_path): Likewise.
15616 (grub_efi_scsi_device_path): Likewise.
15617 (grub_efi_fibre_channel_device_path): Likewise.
15618 (grub_efi_1394_device_path): Likewise.
15619 (grub_efi_usb_device_path): Likewise.
15620 (grub_efi_usb_class_device_path): Likewise.
15621 (grub_efi_i2o_device_path): Likewise.
15622 (grub_efi_mac_address_device_path): Likewise.
15623 (grub_efi_ipv4_device_path): Likewise.
15624 (grub_efi_ipv6_device_path): Likewise.
15625 (grub_efi_infiniband_device_path): Likewise.
15626 (grub_efi_uart_device_path): Likewise.
15627 (grub_efi_vendor_messaging_device_path): Likewise.
15628 (grub_efi_hard_drive_device_path): Likewise.
15629 (grub_efi_cdrom_device_path): Likewise.
15630 (grub_efi_vendor_media_device_path): Likewise.
15631 (grub_efi_file_path_device_path): Likewise.
15632 (grub_efi_protocol_device_path): Likewise.
15633 (grub_efi_piwg_device_path): Likewise.
15634 (grub_efi_bios_device_path): Likewise.
15636 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15638 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
15639 (grub_ucs4_to_utf8_alloc): Likewise.
15640 (grub_ucs4_to_utf8): Likewise.
15641 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
15642 (grub_ucs4_to_utf8_alloc): Likewise.
15644 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15646 AFFS never uses unicode.
15648 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
15649 (grub_latin1_to_utf8): New inline function.
15650 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
15652 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15654 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
15657 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15659 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
15660 (grub_squash_dirent_header): Likewise.
15661 (read_chunk): Don't double swap.
15662 (grub_squash_iterate_dir): Fix swap sizes.
15664 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15666 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
15668 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15670 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
15671 (grub_hfs_iterate_dir): Likewise.
15673 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15675 Fix video on platforms where unaligned access is forbidden.
15676 Make several optimisations while on it.
15678 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
15679 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15680 (grub_video_fbblit_replace_32bit_1bit): Likewise.
15681 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15683 (grub_video_fbblit_replace_16bit_1bit):
15684 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15685 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15686 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
15687 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
15688 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15689 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15690 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
15691 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
15692 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
15693 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
15694 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
15695 (grub_video_fbblit_replace_index_RGB888): Likewise.
15696 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
15697 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
15698 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
15699 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
15700 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
15701 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15702 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15704 (grub_video_fbblit_blend_XXX565_1bit):
15705 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15706 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
15707 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
15709 * grub-core/video/fb/video_fb.c (common_blitter)
15710 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
15711 (grub_video_fb_create_render_target_from_pointer)
15712 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
15713 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
15714 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
15716 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
15718 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15720 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
15721 HH22 and HM10 relocations.
15723 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15725 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
15727 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15729 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
15730 allocation succeeded.
15732 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15734 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
15735 argument a u8 pointer. All users updated.
15736 Handle unaligned buffers.
15738 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15740 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
15741 add_part to workaround compiler bug.
15743 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15745 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
15747 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15749 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
15750 Reserve alignment invariants.
15751 (grub_multiboot_load): Likewise.
15752 (retrieve_video_parameters): Likewise.
15753 (grub_multiboot_make_mbi): Likewise.
15755 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15757 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
15760 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15762 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
15763 (grub_pata_pio_write): Likewise.
15765 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15767 Add noreturn attributes and remove unreachable code.
15769 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
15771 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15772 code. Mark as noreturn.
15773 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15774 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15775 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15777 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15778 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15779 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15780 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15781 * include/grub/kernel.h (grub_main): Mark as noreturn.
15782 * include/grub/reader.h (grub_rescue_run): Likewise.
15784 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15786 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15787 redundant declaration.
15789 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15791 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15792 redundant declaration.
15793 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15795 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15797 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15798 to ensure alignment.
15799 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15800 alignment. Ensure tmp alignment.
15801 (grub_cmd_hdparm): Ensure buf alignment.
15802 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15803 to ensure alignment.
15804 (grub_ata_dumpinfo): Ensure text alignment.
15805 (grub_atapi_identify): Preserve alignment invariant.
15806 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15808 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15810 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15811 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15812 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15813 * include/grub/misc.h (grub_reboot)
15814 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15815 (grub_halt) [__mips__]: Likewise.
15817 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15819 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15820 Remove redundant declaration.
15821 (grub_mmap_get_post64): Likewise.
15822 (grub_mmap_get_upper): Likewise.
15823 (grub_mmap_get_lower): Likewise.
15825 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15827 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15828 uint32_t * to ensure alignment.
15829 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15831 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15833 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15834 uint16_t * to ensure alignment.
15835 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15838 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15840 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
15841 to ensure alignment.
15842 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15844 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15846 * grub-core/fs/ntfs.c (u16at): Make into inline function.
15847 Handle unaligned pointers.
15850 (fixup): Use byte access instead of v16at.
15851 (find_attr): Fix imporper usage of v32at.
15852 (read_data): Likewise.
15853 (list_file): Handle byte-swapping and unaligned strings.
15854 (grub_ntfs_label): Likewise.
15856 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15858 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
15859 as it's not necessarily aligned.
15861 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15863 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
15864 redundant declaration.
15865 (grub_serial_init): Likewise.
15866 (grub_terminfo_init): Likewise.
15868 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15870 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
15872 (ZAP_HASH_IDX): Likewise.
15873 (ZAP_LEAF_HASH_SHIFT): Likewise.
15874 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
15875 (LEAF_HASH): Likewise.
15876 (ZAP_LEAF_NUMCHUNKS): Likewise.
15877 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
15878 alignment invariants. Return pointer. All users updated.
15879 (ZAP_LEAF_ENTRY): Make into inline function.
15882 (xor_out): Use grub_crypto_xor.
15883 (dnode_get_path): Use grub_get_unaligned.
15884 (nvlist_find_value): Likewise.
15885 (grub_zfs_nvlist_lookup_uint64): Likewise.
15886 (grub_zfs_nvlist_lookup_string): Likewise.
15887 (get_nvlist_size): Likewise.
15888 (grub_zfs_open): Likewise.
15889 (fill_fs_info): Likewise.
15890 (grub_zfs_dir): Likewise.
15891 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
15892 alignment invariants.
15893 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
15894 necessarily aligned.
15896 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15898 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
15900 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15902 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
15903 arithmetic to conserve alignment invariants.
15905 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15907 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
15908 redundant declaration.
15909 (grub_efiemu_mm_obtain_request): Likewise.
15910 (grub_efiemu_prepare): Likewise.
15912 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15914 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
15917 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15919 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
15920 case of aunaligned recptr.
15921 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
15923 (grub_hfsplus_btree_search): Handle unaligned index.
15925 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15927 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
15928 to get freetag and skip.
15930 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15932 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
15934 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
15935 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
15937 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15939 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
15940 name for checksum and fix allocation algorithm.
15942 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15944 * include/grub/types.h (grub_properly_aligned_t): New type.
15945 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
15946 (grub_get_unaligned16): Add explicit casts.
15947 (grub_get_unaligned32): Likewise.
15948 (grub_get_unaligned64): Likewise.
15949 (grub_set_unaligned16): New function.
15950 (grub_set_unaligned32): Likewise.
15952 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15954 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
15956 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15958 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
15959 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
15960 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
15962 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15964 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
15967 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15969 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
15970 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
15972 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15974 Unify and improve RAID and crypto xor.
15976 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
15977 changed to grub_crypto_xor
15978 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
15979 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
15980 Use bigger types when possible.
15982 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15984 * grub-core/disk/raid.c (scan_devices): Fix condition.
15986 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15988 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
15989 Make name a const ptr.
15991 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15993 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
15994 first argument a const pointer.
15995 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
15996 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
15998 (grub_children_iterate): Likewise.
15999 (grub_machine_mmap_iterate): Remove redundant declaration.
16001 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16003 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
16004 (grub_cmd_acpi) [!x86]: Disable EBDA.
16006 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16008 Enable UTF8 in gnulib regexp.
16010 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
16011 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
16012 (isupper): Use grub_isupper.
16013 (isascii): New inline function.
16014 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
16015 * grub-core/lib/posix_wrap/wctype.h: Likewise.
16016 * grub-core/normal/charset.c (grub_utf8_process): New function.
16017 (grub_utf8_to_utf16): Use grub_utf8_process.
16018 (grub_encode_utf8_character): New function.
16019 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
16020 * include/grub/charset.h (grub_utf8_process): New declaration.
16021 (grub_encode_utf8_character): Likewise.
16022 * include/grub/misc.h (grub_islower): New inline function.
16023 (grub_isupper): Likewise.
16024 (grub_strchrsub): Moved down to fix the definitions.
16026 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16028 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
16031 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16033 * include/grub/loader.h (grub_loader_register_preboot_hook):
16034 Use struct preboot * and not void * for handle. All users updated.
16035 (grub_loader_unregister_preboot_hook): Likewise.
16037 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
16039 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
16040 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
16041 UTF-16-BE. All users updated.
16042 (grub_hfsplus_cmp_catkey): Fix unicode handling.
16043 (grub_hfsplus_iterate_dir): Likewise.
16044 (grub_hfsplus_label): Likewise.
16046 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
16048 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
16050 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
16052 Add missing const qualifiers.
16054 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
16055 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
16056 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
16057 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
16058 (grub_lvm_check_flag): Likewise.
16059 * grub-core/efiemu/i386/coredetect.c
16060 (grub_efiemu_get_default_core_name): Likewise
16061 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
16062 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
16063 * grub-core/fs/ntfs.c (fixup): Likewise.
16064 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
16065 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
16066 (fzap_lookup): Likewise.
16067 (zap_lookup): Likewise.
16068 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
16069 * grub-core/lib/legacy_parse.c (check_option): Likewise.
16070 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
16071 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
16072 (grub_freebsd_add_meta_module): Likewise.
16073 (grub_cmd_freebsd_module): Likewise.
16074 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
16075 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
16076 (grub_xnu_writetree_get_size): Likewise.
16077 (grub_xnu_writetree_toheap_real): Likewise.
16078 (grub_xnu_find_key): Likewise.
16079 (grub_xnu_create_key): Likewise.
16080 (grub_xnu_create_value): Likewise.
16081 (grub_xnu_register_memory): Likewise.
16082 (grub_xnu_check_os_bundle_required): Likewise.
16083 (grub_xnu_scan_dir_for_kexts): Likewise.
16084 (grub_xnu_load_kext_from_dir): Likewise.
16085 * grub-core/normal/color.c (color_list): Likewise.
16086 * grub-core/normal/completion.c (current_word): Likewise.
16087 * grub-core/normal/menu_entry.c (insert_string): Likewise.
16088 * grub-core/term/serial.c (grub_serial_find): Likewise.
16089 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
16090 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
16092 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
16093 (grub_freebsd_add_meta_module): Likewise.
16094 * include/grub/lib/arg.h (grub_arg_option): Likewise.
16095 * include/grub/net.h (grub_net_card_driver): Likewise.
16096 (grub_net_card): Likewise.
16097 (grub_net_app_protocol): Likewise.
16098 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
16099 * include/grub/serial.h (grub_serial_find): Likewise.
16100 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
16101 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
16102 (grub_xnu_create_value): Likewise.
16103 (grub_xnu_find_key): Likewise.
16104 (grub_xnu_scan_dir_for_kexts): Likewise.
16105 (grub_xnu_load_kext_from_dir): Likewise.
16107 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
16108 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
16109 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
16110 Moved from here ...
16111 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
16113 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
16115 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
16117 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
16119 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
16120 (read_device): Fix size calculation.
16122 2011-11-25 Robert Millan <rmh@gnu.org>
16124 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
16125 (find_root_device_from_libzfs): Add zpool output parser to be used
16126 as fallback when libzfs isn't available.
16128 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
16130 * po/Makefile.in.in: Add missing escape-continuation.
16132 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
16134 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
16136 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16138 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
16140 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16142 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
16144 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16146 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
16148 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16150 * grub-core/lib/adler32.c: Add missing license specification.
16151 * grub-core/lib/crc64.c: Likewise.
16152 * grub-core/loader/i386/pc/plan9.c: Likewise.
16153 * grub-core/partmap/plan.c: Likewise.
16155 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
16157 Add facility to debug GRUB with gdb under qemu.
16159 * grub-core/gdb_grub.in: New file.
16160 * grub-core/gmodule.pl.in: Likewise.
16161 * grub-core/Makefile.core.def (gmodule.pl): New script.
16162 (gdb_grub): Likewise.
16164 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16166 * util/grub-mount.c (argp_parser): Accept relative pathes.
16167 * util/grub-fstest.c (argp_parser): Likewise.
16169 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16173 * Makefile.util.def (libgrubmods): Add
16174 grub-core/partmap/plan.c.
16175 * docs/grub.texi: Notice Plan9 support.
16176 * grub-core/Makefile.core.def (plan9): New module.
16177 (part_plan): Likewise.
16178 * grub-core/loader/i386/pc/plan9.c: New file.
16179 * grub-core/partmap/plan.c: Likewise.
16180 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
16182 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
16183 * include/grub/mm.h (grub_extend_alloc): New inline function.
16185 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16187 Make Reed-Solomon faster by using power of generator representation of
16190 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
16191 (gf_double_t): Likewise.
16192 (gf_invert): Removed.
16193 (gf_powx): New array.
16194 (gf_powx_inv): Likewise.
16195 (scratch): Move higher.
16196 (gf_reduce): Removed.
16197 (gf_mul): Use powx.
16198 (gf_invert): Likewise.
16199 (init_inverts): Replaced with ...
16200 (init_powx): ...this. All users updated.
16201 (pol_evaluate): Replace multiplications with additions.
16202 (rs_encode): Likewise.
16203 (gauss_eliminate): Call gf_invert.
16204 (grub_reed_solomon_add_redundancy): Call init_powx.
16205 (grub_reed_solomon_recover): Call init_powx unconditionally.
16207 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16209 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
16211 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16213 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
16214 disk->partiton for safety.
16216 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16218 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
16220 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
16222 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16224 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
16226 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16228 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
16230 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16232 Fix spaces handling in proc/self/mountinfo.
16234 * util/getroot.c (unescape): New function.
16235 (grub_find_root_device_from_mountinfo): Use unescape.
16237 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16239 Support ZFS embedding.
16241 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
16242 (grub_zfs_fs): Register grub_zfs_embed.
16244 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16246 Fix MIPS compilation.
16248 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
16249 * include/grub/offsets.h: Rename decompressor fields from
16250 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
16251 * util/grub-mkimage.c (image_targets): Use new names.
16253 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16255 Defer multiboot device parsing until we're in compressed part.
16257 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
16258 bsd_part. setdevice has fallen into disuse.
16259 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
16260 (bsd_part): Likewise.
16261 (boot_dev): New variable.
16262 (multiboot_trampoline): Don't parse multiboot device.
16263 Pass multiboot device in %edx.
16264 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
16266 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
16268 * grub-core/kern/i386/pc/startup.S: Save edx.
16269 (grub_boot_drive): Removed.
16270 (grub_install_dos_part): Likewise.
16271 (grub_install_bsd_part): Likewise.
16272 (grub_boot_device): New variable.
16273 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
16274 (grub_install_bsd_part): Likewise.
16275 (grub_boot_drive): Likewise.
16276 (grub_boot_device): New variable.
16277 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
16279 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16280 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
16281 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
16282 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
16283 * util/grub-install.in: Remove redundant condition.
16285 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16287 Fix bug introduced by previous commit.
16289 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
16291 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16293 Use decompressors framework on i386-pc. It increases core size
16294 by 46 bytes but improves compatibility and maintainability.
16296 * grub-core/Makefile.core.def (lzma_decompress): New image.
16297 (kernel): Add i386_pc_ldflags.
16298 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
16299 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
16300 to real_to_prot, prot_to_real and device info.
16301 * include/grub/offsets.h: Renamed decompressor offsets.
16302 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
16303 (image_target_desc): Remove raw_size and rename decompressor fields.
16304 (compress_kernel): Handle lzma.
16305 (generate_image): Handle decompressors on i386-pc.
16307 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16309 * configure.ac: Add -fno-asynchronous-unwind-tables.
16311 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16313 Move assembly code to C by using intwrap. It increases core size
16314 by 88 bytes but improves compatibility and maintainability.
16316 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
16317 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
16318 ... here. Translated to C.
16319 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
16320 * grub-core/term/i386/pc/console.c (grub_console_getkey):
16321 ... here. Translated to C.
16322 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
16323 * grub-core/term/i386/pc/console.c (grub_console_getxy):
16324 ... here. Translated to C.
16325 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
16326 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
16327 ... here. Translated to C.
16328 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
16329 * grub-core/term/i386/pc/console.c (grub_console_cls):
16330 ... here. Translated to C.
16331 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
16332 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
16333 ... here. Translated to C.
16334 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
16335 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
16337 * grub-core/term/i386/pc/console.c (int10_9): New function.
16338 (grub_console_putchar): Likewise.
16339 * include/grub/i386/pc/console.h: Removed the not anymore shared
16342 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16344 Move grub_chainloader_real_boot out of the kernel.
16346 * grub-core/Makefile.am: Remove machine/loader.h.
16347 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16349 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
16351 (grub_relocator16_keep_a20_enabled): Likewise.
16352 (grub_relocator16_boot): Fill new variables.
16353 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
16354 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
16356 (grub_chainloader_unload): Likewise.
16357 (grub_chainloader_cmd): Likewise.
16358 * include/grub/i386/pc/loader.h: Removed.
16359 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
16360 and esi. All initialisers updated.
16362 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16363 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
16365 * Makefile.util.def (grub-mount): New util.
16366 * .bzrignore: Add grub-mount.
16367 * configure.ac: Check for fuse and enable grub-mount if available.
16368 * docs/man/grub-mount.h2m: New file.
16369 * util/grub-mount.c: Likewise.
16371 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16373 * grub-core/commands/efi/fixvideo.c: Gettextize.
16374 * grub-core/commands/hashsum.c: Likewise.
16375 * grub-core/commands/i386/cmostest.c: Likewise.
16376 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16377 * grub-core/commands/i386/pc/lsapm.c: Likewise.
16378 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16379 * grub-core/commands/lsmmap.c: Likewise.
16380 * grub-core/commands/menuentry.c: Likewise.
16381 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
16382 * grub-core/commands/setpci.c: Likewise.
16383 * grub-core/loader/i386/bsd.c: Likewise.
16384 * grub-core/loader/i386/linux.c: Likewise.
16385 * util/getroot.c: Likewise.
16386 * util/grub-editenv.c: Likewise.
16387 * util/grub-fstest.c: Likewise.
16388 * util/grub-mkfont.c: Likewise.
16389 * util/grub-mkimage.c: Likewise.
16390 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16391 * util/grub-pe2elf.c: Likewise.
16392 * util/grub-probe.c: Likewise.
16393 * util/grub-setup.c: Likewise.
16394 * util/ieee1275/ofpath.c: Likewise.
16395 * util/misc.c: Likewise.
16396 * util/raid.c: Likewise.
16398 2011-11-11 Robert Millan <rmh@gnu.org>
16400 * util/getroot.c (grub_util_get_geom_abstraction): Remove
16401 __attribute__((unused)) from `os_dev', which *is* being used.
16403 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16405 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
16407 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
16408 GRUB_IA64_DL_GOT_ALIGN.
16409 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
16410 GRUB_IA64_DL_TRAMP_ALIGN.
16412 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16414 Replace grub_fatal with normal errors in i386 linux loader.
16416 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
16417 (allocate_pages): Check find_efi_mmap_size return value.
16418 (grub_e820_add_region): Return error.
16419 (grub_linux_boot): Check mmap return value.
16421 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16423 * grub-core/commands/acpihalt.c: Gettextized.
16424 * grub-core/commands/cacheinfo.c: Likewise.
16425 * grub-core/commands/cmp.c: Likewise.
16426 * grub-core/commands/efi/loadbios.c: Likewise.
16427 * grub-core/commands/gptsync.c: Likewise.
16428 * grub-core/commands/ieee1275/suspend.c: Likewise.
16429 * grub-core/commands/legacycfg.c: Likewise.
16430 * grub-core/commands/memrw.c: Likewise.
16431 * grub-core/commands/minicmd.c: Likewise.
16432 * grub-core/commands/parttool.c: Likewise.
16433 * grub-core/commands/time.c: Likewise.
16434 * grub-core/commands/videoinfo.c: Likewise.
16435 * grub-core/disk/geli.c: Likewise.
16436 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
16437 * grub-core/disk/luks.c: Likewise.
16438 * grub-core/disk/lvm.c: Likewise.
16439 * grub-core/font/font_cmd.c: Likewise.
16440 * grub-core/fs/zfs/zfscrypt.c: Likewise.
16441 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16442 * grub-core/gfxmenu/view.c: Likewise.
16443 * grub-core/kern/emu/hostdisk.c: Likewise.
16444 * grub-core/kern/emu/main.c: Likewise.
16445 * grub-core/kern/emu/misc.c: Likewise.
16446 * grub-core/kern/emu/mm.c: Likewise.
16447 * grub-core/kern/mips/arc/init.c: Likewise.
16448 * grub-core/kern/mips/loongson/init.c: Likewise.
16449 * grub-core/kern/partition.c: Likewise.
16450 * grub-core/lib/i386/halt.c: Likewise.
16451 * grub-core/lib/mips/arc/reboot.c: Likewise.
16452 * grub-core/lib/mips/loongson/reboot.c: Likewise.
16453 * grub-core/loader/i386/pc/chainloader.c: Likewise.
16454 * grub-core/loader/i386/xnu.c: Likewise.
16455 * grub-core/loader/multiboot.c: Likewise.
16456 * grub-core/net/bootp.c: Likewise.
16457 * grub-core/net/net.c: Likewise.
16458 * grub-core/normal/term.c: Likewise.
16459 * grub-core/partmap/bsdlabel.c: Likewise.
16460 * grub-core/parttool/msdospart.c: Likewise.
16461 * grub-core/term/gfxterm.c: Likewise.
16462 * grub-core/term/terminfo.c: Likewise.
16463 * grub-core/video/i386/pc/vbe.c: Likewise.
16464 * util/grub-menulst2cfg.c: Likewise.
16465 * util/grub-mkdevicemap.c: Likewise.
16466 * util/grub-mklayout.c: Likewise.
16467 * util/grub-mkrelpath.c: Likewise.
16468 * util/grub-script-check.c: Likewise.
16469 * util/ieee1275/grub-ofpathname.c: Likewise.
16470 * util/resolve.c: Likewise.
16472 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16474 Support %1$d syntax.
16476 * tests/printf_unit_test.c: New file.
16477 * Makefile.util.def (printf_test): New test.
16478 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
16480 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16482 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
16485 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16487 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
16489 * grub-core/font/font.c (grub_font_load): Likewise.
16491 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16493 * util/grub-macho2img.c: Add comment concerning gettext.
16494 * grub-core/lib/legacy_parse.c: Likewise.
16496 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16498 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
16499 (grub_xvasprintf): Likewise.
16501 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16503 Add const keyword to grub_env_get and gettextize week days.
16505 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
16506 (grub_read_hook_datetime): Return const char *.
16507 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
16509 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16511 (grub_get_weekday_name): Return const char *. Call gettext.
16512 * grub-core/script/argv.c (grub_script_argv_append): Receive const
16513 char * and len as the argument. All users updated.
16514 (grub_script_argv_split_append): Receive const char *.
16515 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
16516 * include/grub/env.h (grub_env_get): Likewise.
16517 (grub_env_read_hook_t): Return const char *.
16518 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
16519 (grub_script_argv_split_append): Likewise.
16521 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16523 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
16525 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16527 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
16528 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
16530 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16532 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
16535 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16537 Fix mips compilation.
16539 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
16541 (hashes): Use in embed decoder as well (for sizes).
16542 (dec_stream_header): Fix embed decompressor logic.
16543 (dec_stream_footer): Likewise.
16545 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16547 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
16548 an error and not a fatal on unrecognised relocation types.
16550 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16552 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
16553 Issue error rather than printf on unknown arguments.
16555 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16557 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
16560 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16562 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
16565 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16567 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
16568 leftover debug printf.
16570 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16572 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
16574 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16576 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
16579 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16581 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
16583 2011-11-10 Shea Levy <slevy@tieronedesign.com>
16585 Allow all modules to perform serial IO
16587 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
16588 * include/grub/serial.h (grub_serial_port_configure): New inline
16590 (grub_serial_port_fetch): Likewise.
16591 (grub_serial_port_put): Likewise.
16592 (grub_serial_port_fini): Likewise.
16593 (grub_serial_find): New proto.
16595 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16597 Put symlink at the end of the node and fix a potential
16600 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
16601 Make symlink into an array.
16602 (set_rockridge): Set have_symlink and alloc_dirents.
16603 (grub_iso9660_read_symlink): Use new layout.
16604 (grub_iso9660_iterate_dir): Fix memory corruption.
16606 (grub_iso9660_dir): Set have_symlink.
16607 (grub_iso9660_open): Likewise.
16609 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16611 Remove local keyword.
16613 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
16614 (version_test_gt): Likewise.
16615 (version_find_latest): Likewise.
16616 (gettext_printf): Likewise.
16617 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
16619 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16621 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
16623 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16625 Fix ZFS memory and resource leaks.
16627 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
16630 (fill_vdev_info): New parameter inserted. All users updated.
16631 (check_pool_label): Likewise.
16632 (scan_disk): Likewise.
16633 (scan_devices): Close non-inserted disks.
16634 (fzap_iterate): Free l.
16635 (unmount_device): Free children descripto memory.
16637 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16639 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
16640 argument (access out of bounds).
16642 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16644 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
16647 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16649 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
16652 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16654 Fix several memory leaks.
16656 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
16657 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
16658 (grub_cpio_dir): Likewise.
16659 * grub-core/fs/fat.c (grub_fat_label): Likewise.
16660 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
16661 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
16662 (grub_romfs_label): Likewise.
16663 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
16664 (squash_unmount): New function.
16665 (grub_squash_dir): Fix memory leak.
16666 (grub_squash_open): Likewise.
16667 (grub_squash_read): Likewise.
16668 (grub_squash_mtime): Likewise.
16669 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
16670 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
16671 * util/grub-fstest.c (fstest): Likewise.
16673 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16675 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
16676 avoid accessing beyond the array.
16678 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16680 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
16682 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16684 Several AFFS fixes.
16686 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
16687 (GRUB_AFFS_FLAG_FFS): Removed.
16688 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
16689 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
16690 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
16691 (grub_fshelp_node): Make block 32-bit.
16692 Add block_cache and last_block_cache.
16693 (grub_affs_read_block): Fill and use block cache.
16694 (grub_affs_read_file): Removed.
16695 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
16697 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
16699 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
16701 (grub_affs_close): Free block cache.
16702 (grub_affs_read): Use grub_fshelp_read_file directly.
16704 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16706 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
16709 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16711 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
16713 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16716 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16718 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
16720 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
16721 byteswap when needed.
16723 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16725 Fix FreeBSD compilation.
16727 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
16728 to avoid circular dependency.
16729 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
16730 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
16731 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
16733 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16735 Fix ZFS crypto error types.
16737 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
16738 (grub_gcm_decrypt): Likewise.
16739 (grub_zfs_load_key_real): Fix error code type. Handle possible error
16742 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16746 * Makefile.util.def (10_illumos): New script.
16747 * configure.ac: Set COND_HOST_ILLUMOS.
16748 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
16749 Support Illumos calls.
16750 (find_partition_start) [__sun__]: Likewise.
16751 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
16752 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
16753 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
16754 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
16756 * util/grub-probe.c (probe) [__sun__]: Do character check.
16757 * util/grub.d/10_illumos.in: New file.
16759 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16761 Support escaped commas in hostdisk.
16763 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
16764 (find_grub_drive): Use unescape_cmp.
16765 (make_device_name): Escape commas.
16767 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16769 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
16771 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16773 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16776 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16778 Support trampoline jumps on powerpc.
16780 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16782 (grub_dl_load_segments): Set mod->sz.
16783 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16785 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16787 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16789 (trampoline): New struct.
16790 (trampoline_template): New const.
16791 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16792 * include/grub/dl.h (grub_dl): Add sz element.
16793 [__powerpc__]: Follow __ia64__.
16794 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16795 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16796 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16797 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16799 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16801 ZFS crypto support.
16803 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16804 * grub-core/Makefile.core.def (zfscrypt): New module.
16805 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16806 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16807 it. All users updated.
16808 (grub_zfs_decrypt): New var.
16809 (grub_zfs_load_key): Likewise.
16810 (zio_checksum_functions): Add SHA256+MAC.
16811 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16812 (zio_read): Handle encrypted blocks.
16813 (zap_verify): Remove incorrect check.
16814 (fzap_iterate): Handle non-standard fzap.
16815 (zap_iterate): Likewise.
16816 (zap_iterate_u64): New function.
16817 (dnode_get_fullpath): Load keys.
16818 * grub-core/fs/zfs/zfscrypt.c: New file.
16819 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16820 (grub_crypto_ecb_encrypt): Make input const.
16821 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16822 (grub_crypto_ecb_encrypt): Make input const.
16823 (GRUB_CIPHER_AES): New macro.
16824 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16825 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16826 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16827 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16828 prefix. All users updated.
16829 (grub_zfs_add_key): New proto.
16830 (grub_zfs_decrypt): Likewise.
16831 (grub_zfs_load_key): Likewise.
16832 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16833 * util/grub-fstest.c (options): Add -K option.
16834 (argp_parser): Likewise.
16836 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16838 Support zle compression on ZFS.
16840 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16841 (decomp_table): Add zle.
16842 * include/grub/zfs/zio.h (zio_compress): Add zle.
16844 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16846 Support BtrFS embedding.
16848 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
16849 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
16850 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
16851 * util/grub-setup.c (setup): Use fs embedding if available.
16852 Add additional sanity check.
16854 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16856 * util/grub-install.in: Fix condition for config_opt.
16858 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16860 Support third redundancy strip on raidz3.
16862 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
16863 Return error on singularity. All users updated.
16864 (read_device): Don't stop on 3rd failure on raidz3.
16866 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16868 Support case-insensitive ZFS subvolumes.
16870 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
16872 (zap_hash): Likewise.
16873 (name_cmp): New function.
16874 (zap_leaf_array_equal): New parameter case_insensitive.
16876 (zap_leaf_lookup): Likewise.
16877 (fzap_lookup): Likewise.
16878 (zap_lookup): Likewise.
16879 (dnode_get_path): New parameter case_insensitive. Retrieve case
16880 sensitiviness of a volume. All users updated.
16881 (dnode_get_fullpath): New parameter case_insensitive.
16883 (grub_zfs_dir): Set info.case_insensitiveness.
16885 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16887 Support second redundancy strip on raidz(2,3).
16889 * grub-core/fs/zfs/zfs.c (powx): New array.
16890 (powx_inv): Likewise.
16892 (xor_out): New function.
16893 (gf_mul): Likewise.
16894 (recovery): Likewise.
16895 (read_device): Use second redundancy strip.
16897 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16899 Use a power of generator representation of GF(256) multiplication group
16900 to save space time and complexity.
16902 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
16903 (raid6_table2): Likewise.
16905 (powx_inv): Likewise.
16907 (grub_raid_block_mul): Replace with ...
16908 (grub_raid_block_mulx): ...this.
16909 (grub_raid6_init_table): Rewritten.
16910 (grub_raid6_recover): Use power of generator representation.
16912 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16914 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
16915 for the right device.
16917 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16919 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
16920 expected by grub-mkimage and it's more clear since there is no implicit
16923 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16925 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
16927 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16929 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
16931 * util/grub-mkrescue.in: Fix handling xorriso option.
16933 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16935 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
16938 2011-11-03 crocket <crockabiscuit@gmail.com>
16940 * util/grub.d/10_linux.in: Add Slackware initrd naming.
16942 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16944 XZ CRC64 and SHA256 support.
16946 * Makefile.util.def (libgrubmods): Add crc64.c.
16947 * grub-core/Makefile.core.def (crc64): New module.
16948 * grub-core/lib/crc64.c: New file.
16949 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
16950 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
16952 (MAX_HASH_SIZE): New define.
16953 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
16954 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
16955 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16956 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16957 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
16958 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
16959 Handle non-crc32 hashes.
16960 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
16961 (dec_stream_header): Handle non-crc32 hashes.
16962 (dec_stream_footer): Likewise.
16963 (dec_block_header): Likewise.
16964 (dec_main): Likewise.
16965 (xz_dec_init): Likewise.
16966 (xz_dec_reset): Likewise.
16967 (xz_dec_end): Likewise.
16968 * util/import_gcry.py: Add CRC64 line.
16970 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16972 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
16975 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16977 Make reiserfs label retrieval similar to other *_label functions.
16979 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
16980 (REISERFS_MAX_LABEL_LENGTH): Removed.
16981 (REISERFS_LABEL_OFFSET): Likewise.
16982 (grub_reiserfs_label): Rewritten.
16984 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16986 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
16989 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16991 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
16993 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16995 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
16996 drive failure on both raidz and raidz2.
16998 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
17000 Fix RAIDZ(2) for >= 5 devices.
17002 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
17003 asize argument. All users updated.
17005 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17009 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
17010 (fill_vdev_info_real): Set ashift.
17011 (read_device): Rewrite RAIDZ part based on reverse engineering.
17013 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17015 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
17016 don't report potentially unavialiable fields in debug output.
17017 (find_path): Fix double-free and memory leak.
17019 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17021 Read label on UFS1.
17023 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
17024 (grub_ufs_fs): Always set .label.
17026 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17030 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
17031 (grub_ufs_data): New field log2_blksz.
17032 (grub_ufs_read_file): Use shifts.
17033 (grub_ufs_mount): Check block size and logarithm it.
17035 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17037 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
17040 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17042 Handle symlinks and long names on tar and cpio.
17044 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
17045 (ATTR_FILE): Likewise.
17046 (ATTR_DIR): Likewise.
17047 (ATTR_LNK): Likewise.
17048 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
17049 (grub_cpio_find_file): Fill mode, handle linkname field as well as
17051 (grub_cpio_mount): Zero-fill data.
17052 (handle_symlink): New function.
17053 (grub_cpio_dir): Handle symlinks.
17054 (grub_cpio_open): Likewise.
17055 (grub_cpio_close) [MODE_USTAR]: Free linkname.
17057 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17059 Fix iso9660 filename limitations and fix memory leaks.
17061 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
17062 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
17064 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17066 Fix JFS file name length limitations.
17068 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
17069 (grub_jfs_diropen): Fix maximum filename length.
17070 (grub_jfs_getent): Fix filename length.
17071 (grub_jfs_lookup_symlink): Fix size checks.
17073 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17075 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
17078 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17080 Leverage BFS implementation to read AFS.
17082 * Makefile.util.def (libgrubmods): Add afs.c.
17083 * grub-core/Makefile.core.def (afs): New module
17084 * grub-core/fs/afs.c: New file.
17085 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
17087 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17089 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
17091 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17093 * grub-core/fs/bfs.c: Run indent.
17095 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17097 BFS implementation based on the specification.
17099 * grub-core/fs/bfs.c: New file.
17100 * Makefile.util.def (libgrubmods): Add bfs.c.
17101 * grub-core/Makefile.core.def (bfs): New module.
17103 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17105 * util/grub-fstest.c (cmd_cp): Clarify error message.
17106 (cmd_cmp): Likewise.
17108 2011-10-30 Yves Blusseau <blusseau@zetam.org>
17110 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
17113 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
17115 Remove afs and befs because of copyright problem.
17117 * grub-core/fs/afs.c: Removed.
17118 * grub-core/fs/afs_be.c: Removed.
17119 * grub-core/fs/befs.c: Removed.
17120 * grub-core/fs/befs_be.c: Removed.
17121 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
17122 * grub-core/Makefile.core.def (afs): Removed.
17123 (afs_be): Likewise.
17125 (befs_be): Likewise.
17127 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17129 Prefer rockridge over Joliet.
17131 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
17133 (set_rockridge): ... here.
17134 (grub_iso9660_mount): Check rockridge on the primary label when
17135 discovering. Ignore Joliet if Rockridge is present.
17137 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17139 Use shifts in nilfs2.
17141 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
17142 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
17143 (grub_nilfs2_palloc_entries_per_group): Replace with ...
17144 (grub_nilfs2_log_palloc_entries_per_group): ... this.
17145 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
17146 (grub_nilfs2_entries_per_block): Replaced with ...
17147 (grub_nilfs2_log_entries_per_block_log): ... this.
17148 (grub_nilfs2_blocks_per_group): Replaced with ...
17149 (grub_nilfs2_blocks_per_group_log): ... this.
17150 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
17151 (grub_nilfs2_blocks_per_desc_block_log): ... this.
17152 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
17153 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
17154 (grub_nilfs2_palloc_entry_offset): Replaced ...
17155 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
17156 (grub_nilfs2_dat_translate): Use shifts.
17157 (grub_nilfs2_read_inode): Likewise.
17158 (GRUB_MOD_INIT): Ensure that logs are correct.
17160 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17162 Use shifts in minix filesystem.
17164 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
17165 (GRUB_MINIX_ZONE2SECT): Likewise.
17166 (grub_minix_data): Replace block_size with log_block_size.
17167 (grub_minix_read_file): Use shifts.
17168 (grub_minix_mount): Check block size and take a logarithm.
17170 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17172 Use shifts in squash4.
17174 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
17175 (squash_mount): Check block size and take logarithm.
17176 (direct_read): Use shifts.
17178 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17180 Correct befs block counting logic.
17182 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
17183 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
17184 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
17185 (grub_afs_read_inode): Use block_shift.
17186 (RANGE_SHIFT): New definition.
17187 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
17188 unexpected conditions, use shifts and appropriate types.
17189 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
17191 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17193 * grub-core/disk/raid.c (scan_devices): Check partition.
17194 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17196 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17198 Support BFS (befs) UUID.
17200 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
17201 (grub_afs_small_data_element_header): New struct.
17202 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
17203 (grub_afs_read_attribute) [MODE_BFS]: New function.
17204 (grub_afs_iterate_dir): Allocate for complete inode.
17205 (grub_afs_mount): Likewise.
17206 (grub_afs_uuid) [MODE_BFS]: New function.
17207 (grub_afs_fs) [MODE_BFS]: Add .uuid.
17209 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17211 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
17212 (zfs_unmount): Fix memory leak.
17214 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17216 Support NTFS reparse points.
17218 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
17219 (symlink_descriptor): New struct.
17220 (grub_ntfs_read_symlink): New function.
17221 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
17222 (grub_ntfs_open): Likewise.
17224 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17226 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
17228 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17230 fstest xnu_uuid subcommand.
17232 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
17233 grub-core/commands/xnu_uuid.c.
17234 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
17235 (fstest): Handle xnu_uuid.
17236 (options): Document xnu_uuid.
17237 (argp_parser): Parse xnu_uuid.
17239 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17241 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
17242 -l argument. Add newline at the end if printing.
17243 (GRUB_MOD_INIT): Document -l.
17245 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17247 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
17249 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17251 ZFS multi-device and version 33 support.
17253 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
17254 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
17255 (grub_zfs_data): Add multidev-ice-related fields.
17256 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
17257 (dva_get_offset): Make dva const.
17258 (zfs_fetch_nvlist): New function.
17259 (fill_vdev_info_real): Likewise.
17260 (fill_vdev_info): Likewise.
17261 (check_pool_label): Likewise.
17262 (scan_disk): Likewise.
17263 (scan_devices): Likewise.
17264 (read_device): Likewise.
17265 (read_dva): Likewise.
17266 (zio_read_gang): Use read_dva.
17267 (zio_read_data): Likewise.
17268 (zap_leaf_lookup): Add missing endian conversion.
17269 (zap_verify): Add missing endian conversion. All users updated.
17270 (fzap_lookup): Likewise.
17271 (fzap_iterate): Likewise.
17272 (dnode_get_path): Handle SA bonus.
17273 (nvlist_find_value): Make input const. All users updated.
17274 (unmount_device): New function.
17275 (zfs_unmount): Use unmount_device.
17276 (zfs_mount): Use scan_disk.
17277 (zfs_mtime): New function.
17278 (grub_zfs_open): Handle system attributes.
17279 (fill_fs_info): Likewise.
17280 (grub_zfs_dir): Likewise.
17281 (grub_zfs_fs): Add mtime.
17282 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
17283 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
17284 (SA_MTIME_OFFSET): Likewise.
17285 (SA_SYMLINK_OFFSET): Likewise.
17286 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
17287 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
17288 (fstest): Support zfsinfo.
17289 (argp_parser): Likewise.
17291 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17293 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
17296 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17300 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
17301 sharing the same block. Iterate over correct number of indices.
17302 (dnode_get_path): Handle symlinks correctly.
17304 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17306 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
17308 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17310 Read label on HFS+.
17312 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
17313 (grub_hfsplus_btree_search): Fix types.
17314 (grub_hfsplus_label): Implement.
17316 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17318 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
17320 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17322 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
17324 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17326 Fix symlink handling on iso9660.
17328 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
17330 (grub_iso9660_susp_iterate): Accept zero-size iterate.
17331 (grub_iso9660_read_symlink): Moved most of code ...
17332 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
17334 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17336 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17337 Use union to avoid breaking strict-aliasing rules.
17339 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17341 Support multi-extent iso files.
17343 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
17345 (grub_fshelp_node): Revamp. All users updated.
17346 (FLAG_*): New enum.
17347 (read_node): New function.
17348 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
17350 (grub_iso9660_mount): Don't attempt to read sua when there is none.
17351 (get_node_size): New function.
17352 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
17354 Fix memory leak on . and ..
17355 (grub_iso9660_read): Use read_node.
17356 (grub_iso9660_close): Free node.
17358 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17360 Fix tar 4G limit and handle paths containing dot.
17362 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
17363 (canonicalize): New function.
17364 (grub_cpio_find_file): Use canonicalize. Store offs in
17366 (grub_cpio_dir): Use grub_disk_addr_t.
17367 (grub_cpio_open): Likewise.
17369 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17371 Fix handling of uncompressed blocks on squashfs and break 4G limit.
17373 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
17375 (grub_squash_inode): Add long_file and block_size.
17376 (grub_squash_cache_inode): New struct.
17377 (grub_squash_dirent): Make types into enum.
17378 (SQUASH_TYPE_LONG_REGULAR): New type.
17379 (grub_squash_frag_desc): Add field size.
17380 (SQUASH_BLOCK_FLAGS): New enum.
17381 (grub_squash_data): Use grub_squash_cache_inode.
17382 (grub_fshelp_node): Make ino_chunk 64-bit.
17383 (read_chunk): Minor argument change. All users updated.
17384 (squash_mount): Use correct le_to_cpu.
17385 (grub_squash_open): Handle LONG_REGULAR.
17386 (direct_read): New function.
17387 (grub_squash_read_data): Handle blocks correctly.
17389 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17391 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
17393 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17395 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
17397 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17399 Fix 2G limit on ZFS.
17401 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
17403 (uberblock_verify): Likewise.
17404 (dmu_read): Likewise.
17405 (grub_zfs_read): Likewise. Remove invalid cast.
17407 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17409 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
17410 (grub_jfs_blkno): Fix incorrect shift.
17411 (grub_jfs_read_file): Use more appropriate types.
17413 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17415 Support triple indirect on minix2 and minix3.
17417 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
17418 Declare triple_indir_zone.
17419 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
17422 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17426 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
17427 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
17428 Rename ctime to mtime. All users updated.
17429 (grub_minix_get_file_block): Fix types and double indirect computations.
17431 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17433 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
17434 if no label is found.
17435 (grub_fat_iterate_dir): Fix file size type.
17436 (grub_fat_iterate_dir): Likewise.
17438 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17440 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
17442 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17443 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17445 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17447 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
17449 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17451 * util/import_gcry.py: Accept space between # and include.
17453 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17455 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
17457 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17459 Fine grainely disable warnings on lexer. Remove Wno-error on it.
17461 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
17462 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
17464 * grub-core/script/yylex.l: Add fine-grained #pragma.
17466 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17468 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
17469 New inline function.
17470 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
17472 (memset) [GRUB_UTIL]: Likewise.
17473 (memcmp) [GRUB_UTIL]: Likewise.
17475 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17477 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
17478 inline function rather than a define.
17480 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17482 * util/grub-setup.c: Add missing include.
17484 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17486 * util/ieee1275/grub-ofpathname.c: Add missing include.
17488 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17490 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
17491 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
17494 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17496 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
17499 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17501 * util/grub-install.in: Add datarootdir as per automake manual
17503 * util/grub-mknetdir.in: Likewise.
17505 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17507 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
17509 * util/grub.d/10_kfreebsd.in: Likewise.
17510 * util/grub.d/10_linux.in: Likewise.
17511 * util/grub.d/10_netbsd.in: Likewise.
17512 * util/grub.d/10_windows.in: Likewise.
17513 * util/grub.d/20_linux_xen.in: Likewise.
17515 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
17517 Remove redundant grub_kernel_image_size.
17519 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
17521 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
17522 the small code. It moves it only by few bytes but simplifies the code.
17523 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
17525 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
17526 (grub_kernel_image_size): Removed.
17527 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
17528 (grub_kernel_image_size): Removed.
17529 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
17530 compiled with Apple toolchain.
17531 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
17532 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
17533 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
17534 (grub_total_module_size): Likewise.
17535 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
17537 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
17538 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
17539 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
17540 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
17541 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
17542 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
17543 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
17544 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
17546 (grub_total_module_size): Removed.
17547 * util/grub-mkimage.c (image_target_desc): Remove image_size.
17548 (image_targets): Likewise.
17549 Set .compressed_size to no field on sparc.
17550 (generate_image): Remove kernel_image_size handling.
17552 2011-10-19 Szymon Janc <szymon@janc.net.pl>
17554 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
17555 NULL pointer dereference.
17557 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17559 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
17560 done with a dedicated section.
17562 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
17563 Ensure the correct position of boot_path.
17564 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
17565 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
17567 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
17568 * include/grub/boot.h: Removed. All references removed.
17569 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17571 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
17573 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17575 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
17578 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17580 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
17582 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17584 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
17585 Don't add the bogus brackets.
17587 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17591 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
17592 * grub-core/Makefile.core.def (exfat): New module.
17593 * grub-core/fs/exfat.c: New file.
17594 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
17595 (GRUB_FAT_ATTR_*): Make into an enum.
17596 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
17597 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
17598 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
17599 (GRUB_FAT_MAXFILE): Removed.
17600 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
17601 (grub_current_fat_bpb_t): New type.
17602 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
17603 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
17604 (grub_fat_dir_node_t): New type.
17605 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
17606 (fat_log2) [MODE_EXFAT]: Removed.
17607 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
17608 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
17609 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
17610 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
17611 (grub_fat_label) [MODE_EXFAT]: New function.
17612 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
17613 reserved_first_sector to 0.
17615 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17617 Move grub_reboot out of the kernel.
17619 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
17620 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
17621 * grub-core/lib/efi/reboot.c: ... here.
17622 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
17623 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17624 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
17625 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
17626 * grub-core/lib/i386/reboot_trampoline.S: ... here.
17627 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
17628 * grub-core/lib/ieee1275/reboot.c: ... here.
17629 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
17630 * grub-core/lib/mips/arc/reboot.c: ... here.
17631 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
17632 * grub-core/lib/mips/loongson/reboot.c: ...here.
17633 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
17634 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
17635 * include/grub/emu/misc.h (grub_reboot): New function declaration.
17636 * include/grub/i386/reboot.h: New file.
17637 * include/grub/mips/loongson/ec.h: Fix includes.
17638 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
17639 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
17640 * grub-core/lib/i386/reboot.c: New file.
17642 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
17644 Make grub_prefix into module to fix the arbitrary limit and save
17647 * grub-core/kern/emu/main.c (grub_prefix): Removed.
17648 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
17649 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
17650 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
17651 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
17652 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
17653 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
17654 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
17655 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17656 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
17657 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
17658 * include/grub/ia64/efi/kernel.h: Removed.
17659 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
17660 (grub_prefix): Removed.
17661 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
17662 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
17663 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
17664 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
17665 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
17666 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
17667 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
17668 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
17669 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
17670 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
17671 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
17672 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
17673 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
17674 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
17675 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
17676 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
17677 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
17678 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
17679 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
17680 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
17681 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
17682 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
17683 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
17684 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
17685 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
17686 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
17687 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
17688 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
17689 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
17691 * util/grub-mkimage.c (image_target_desc): Removed prefix and
17693 (image_targets): Likewise.
17694 (generate_image): Put prefix as a module.
17696 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17698 Replace grub_module_iterate with FOR_MODULES.
17700 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
17701 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
17702 (grub_efi_modules_addr): ...this.
17703 * grub-core/kern/efi/init.c (grub_modbase): New variable.
17704 (grub_efi_init): Set grub_modbase.
17705 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
17706 (grub_modbase): New variable.
17707 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
17708 (grub_modbase): New variable.
17709 (grub_machine_init): Set grub_modbase.
17710 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
17711 (grub_modbase): New variable.
17712 (grub_machine_init): Set grub_modbase.
17713 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
17714 (grub_modbase): New variable.
17715 (grub_machine_init): Set grub_modbase.
17716 * grub-core/kern/main.c (grub_module_iterate): Remove.
17717 (grub_modules_get_end): Use grub_modbase.
17718 (grub_load_modules): Use FOR_MODULES.
17719 (grub_load_config): Likewise.
17720 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
17721 (grub_modbase): New variable.
17722 (grub_machine_init): Set grub_modbase.
17723 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
17724 (grub_modbase): New variable.
17725 (grub_machine_init): Set grub_modbase.
17726 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
17728 (grub_modbase): New variable.
17729 (grub_machine_init): Set grub_modbase.
17730 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
17731 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
17732 (grub_module_iterate): Likewise.
17733 (grub_modbase): New variable declaration.
17734 (FOR_MODULES): New macro.
17736 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17738 * configure.ac: Check for __ctzdi2 and __ctzsi2.
17739 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
17741 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17743 Fix few obvious type discrepancies.
17745 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
17746 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
17747 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
17749 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
17750 and connected types.
17751 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17753 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
17754 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
17755 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
17756 and connected types.
17758 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17760 Fix python 3.x incompatibilities.
17762 * gentpl.py: Put brackets around print strings.
17763 * util/import_gcry.py: Open explicitly as utf-8.
17764 Use in instead of has_key.
17766 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17768 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
17769 (GRUB_XFS_INO_AGBITS): Make into inline function.
17770 (GRUB_XFS_INO_INOINAG): Likewise.
17771 (GRUB_XFS_INO_AG): Likewise.
17772 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17773 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17774 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17775 (GRUB_XFS_EXTENT_SIZE): Likewise.
17776 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17777 (GRUB_XFS_NEXT_DIRENT): Likewise.
17778 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17779 (grub_xfs_read_file): Fix offset type.
17781 2011-10-15 Robert Millan <rmh@gnu.org>
17783 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17785 2011-10-15 Robert Millan <rmh@gnu.org>
17787 Fix build problem on FreeBSD and GNU/kFreeBSD.
17789 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17791 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17793 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17795 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17797 (grub_hfsplus_btree_recoffset): Likewise.
17798 (grub_hfsplus_btree_recptr): Likewise.
17799 (grub_hfsplus_find_block): Likewise.
17800 (grub_hfsplus_btree_search): Likewise.
17801 (grub_hfsplus_read_block): Likewise.
17802 (grub_hfsplus_read_file): Likewise.
17803 (grub_hfsplus_mount): Likewise.
17804 (grub_hfsplus_btree_iterate_node): Likewise.
17805 (grub_hfsplus_btree_search): Likewise.
17806 (grub_hfsplus_iterate_dir): Likewise.
17807 (grub_hfsplus_read): A small code simplification.
17809 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17811 * grub-core/kern/emu/hostdisk.c
17812 (convert_system_partition_to_system_disk): Don't assume that children
17813 of mapper nodes are mapper nodes.
17815 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17817 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17818 * include/grub/misc.h (grub_isxdigit): New function.
17819 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17820 switched to grub_isxdigit.
17821 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17822 number starting with a letter.
17824 2011-10-09 Robert Millan <rmh@gnu.org>
17826 LVM support for FreeBSD and GNU/kFreeBSD.
17828 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17830 (LVM_DEV_MAPPER_STRING): Move from here ...
17831 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17832 * util/getroot.c: Include `<grub/util/lvm.h>'.
17833 (grub_util_get_dev_abstraction): Enable
17834 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17835 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17836 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17837 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17839 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17841 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17842 when LVM abstraction is required for ${GRUB_DEVICE}.
17844 2011-10-06 Szymon Janc <szymon@janc.net.pl>
17846 Add support for LZO compression in GRUB:
17847 - import of minilzo library,
17848 - LZO decompression for btrfs,
17849 - lzop files decompression.
17851 * grub-core/io/lzopio.c: New file.
17852 * grub-core/lib/adler32.c: Likewise.
17853 * grub-core/lib/minilzo/lzoconf.h: Likewise.
17854 * grub-core/lib/minilzo/lzodefs.h: Likewise.
17855 * grub-core/lib/minilzo/minilzo.c: Likewise.
17856 * grub-core/lib/minilzo/minilzo.h: Likewise.
17857 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
17858 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
17859 grub-core/lib/minilzo/minilzo.c to common.
17860 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
17861 cflags in cppflags.
17862 * grub-core/Makefile.core.def (btrfs): Likewise.
17863 * grub-core/Makefile.core.def (lzopio): New module.
17864 (adler32): Likewise.
17865 * grub-core/fs/btrfs.c: Include minilzo.h.
17866 (GRUB_BTRFS_COMPRESSION_LZO): New define.
17867 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
17868 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
17869 (grub_btrfs_lzo_decompress): New function.
17870 (grub_btrfs_extent_read): Add support for LZO compression type.
17871 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
17872 (GRUB_USHRT_MAX): Likewise.
17873 (GRUB_UINT_MAX): Likewise.
17874 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
17875 (UINT_MAX): Likewise.
17876 (CHAR_BIT): Likewise.
17877 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
17878 grub-core/lib/posix_wrap/limits.h
17879 (UCHAR_MAX): Likewise.
17880 * include/grub/file.h (grub_file_filter_id): New compression filter
17881 GRUB_FILE_FILTER_LZOPIO.
17882 * include/grub/file.h (grub_file_filter_id): Set
17883 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
17884 * include/grub/types.h (grub_get_unaligned16): New function.
17885 (grub_get_unaligned32): Likewise.
17886 (grub_get_unaligned64): Likewise.
17887 * util/import_gcry.py (cryptolist): Add adler32.
17889 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
17891 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
17892 in perspective decreases the complexity of build system and fixes
17893 compilation right now.
17895 2011-10-01 Ales Nesrsta <starous@volny.cz>
17897 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
17898 (fixed problem related to using UHCI with coreboot).
17900 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17902 * gentpl.py: Use Autogen macros so that the output template file
17903 (Makefile.tpl) size is reduced.
17905 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
17907 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
17910 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17912 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
17913 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
17915 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17917 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
17920 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17922 Remove extra declaration of sleep for mingw32.
17924 * util/misc.c (sleep) [__MINGW32__]: Removed.
17925 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
17927 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
17929 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
17931 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
17933 (NETBSD_BTINFO_BOOTWEDGE): New definition.
17934 (grub_netbsd_btinfo_bootwedge): New struct.
17935 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17937 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
17939 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
17941 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
17944 2011-09-28 Andreas Born <futur.andy@googlemail.com>
17946 Fix incorrect identifiers in bash-completion.
17948 * util/bash-completion.d/grub-completion.bash.in
17949 (_grub_mkpasswd-pbkdf2): Rename to ...
17950 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
17951 (_grub_script-check): Rename to ...
17952 (_grub_script_check): ... this. All users updated.
17954 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
17956 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
17957 Return 0 if disk isn't biosdisk.
17959 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17961 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
17963 * Makefile.util.def (grub-fstest): Likewise.
17965 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17967 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
17968 Get sector size from disk label.
17970 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
17972 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
17973 */README* as well as README*.
17974 Reported by: Axel Beckert.
17976 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17978 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
17979 case of less than 256 MiB of RAM.
17981 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17983 * grub-core/commands/wildcard.c (make_regex): Handle @.
17985 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17987 * util/grub-install.in: Move cryptodisk logic to appropriate place.
17989 2011-08-21 Szymon Janc <szymon@janc.net.pl>
17991 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
17992 AC_LANG_CONFTEST macros.
17994 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17996 Add grub-fstest option to uncompress data for commands.
17998 * util/grub-fstest.c (uncompress): New var.
17999 (options): New option -u.
18001 2011-08-20 Szymon Janc <szymon@janc.net.pl>
18003 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
18004 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
18006 2011-08-20 Szymon Janc <szymon@janc.net.pl>
18008 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
18009 file type was not recognized correctly (not gzip or corrupted).
18011 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18013 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
18014 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
18016 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18018 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
18020 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
18021 video_radeon_fuloong2e.
18022 * grub-core/video/radeon_fuloong2e.c: New file.
18023 * include/grub/video.h (grub_video_id_t): Add new ID
18024 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
18026 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18028 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
18030 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
18031 that PRID matches the detected subplatform and reset the subplatform
18034 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18036 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
18038 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18040 Fix PCI iterating on functions >= 4.
18042 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
18043 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
18045 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
18046 (grub_pci_read): Fix bitmask.
18047 (grub_pci_read_word): Likewise.
18048 (grub_pci_read_byte): Likewise.
18049 (grub_pci_write): Likewise.
18050 (grub_pci_write_word): Likewise.
18051 (grub_pci_write_byte): Likewise.
18053 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18055 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
18056 can still be specified in TARGET_CFLAGS)
18058 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18060 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
18062 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
18063 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
18064 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
18065 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
18066 (FULOONG): Rename to ...
18067 (FULOONG2F): ... this. All users updated.
18068 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
18069 (machtype_fuloong2f_str): ... this.
18070 (machtype_fuloong2e_str): New string.
18071 Check for machtype_fuloong2e_str.
18072 * grub-core/loader/mips/linux.c (loongson_machtypes)
18073 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
18074 * grub-core/term/serial.c (loongson_defserial)
18075 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
18076 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
18077 loongson_defserial.
18078 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
18080 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
18081 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
18082 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
18083 to IMAGE_FULOONG2F_FLASH. All users updated.
18084 (image_targets): Rename images.
18085 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
18087 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18089 Make enable of disk cache statistics code configurable.
18091 * configure.ac: --enable-cache-stats added.
18092 * config.h.in (DISK_CACHE_STATS): New define.
18093 * grub-core/Makefile.core.def (cacheinfo): New command.
18094 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
18095 * grub-core/commands/cacheinfo.c: New file.
18096 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
18097 moved to cacheinfo.c.
18098 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
18100 * include/grub/disk.h: Likewise.
18102 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18104 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
18105 * grub-core/Makefile.am: Likewise.
18107 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18109 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
18112 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18114 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
18116 (grub_jfs_lookup_symlink): Use correct starting inode.
18118 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18120 * util/grub-setup.c (main): Add missing gcry initialisation.
18122 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18124 Don't accept text modes on EFI when booting Linux.
18126 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
18127 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
18129 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
18130 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18132 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
18133 use of "/path/.." as in grub-install for EFI as well as handling
18134 symlinks correctly.
18135 Fixes Debian bug #637768.
18137 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18139 * util/grub-probe.c: Remove duplicate #include.
18141 2011-08-10 Robert Millan <rmh@gnu.org>
18143 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
18145 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
18147 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
18148 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
18150 2011-08-03 Robert Millan <rmh@gnu.org>
18152 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
18153 la_array as packed.
18154 Reported by: Zachary Bedell
18156 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18158 * configure.ac: The Loongson port requires grub-mkfont due to its
18159 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
18162 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18164 * util/grub-install.in: Don't source grub-mkconfig_lib until after
18165 processing arguments (otherwise help2man fails when GRUB has not yet
18168 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18170 New script grub-mkstandalone.
18172 * Makefile.util.def (grub-mkstandalone): New script.
18173 * docs/man/grub-mkstandalone.h2m: New file.
18174 * util/grub-mkstandalone.in: Likewise.
18176 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18178 Support ATA disks with 4K sectors.
18180 * include/grub/ata.h (grub_ata): New member log_sector_size.
18181 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
18182 (grub_ata_identify): Read sector size.
18183 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
18185 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18187 * util/grub-install.in: Don't use uhci outside of x86.
18189 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18191 * util/grub-mkrescue.in: Add missing quotes.
18193 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18195 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
18198 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18200 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
18202 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18204 * include/grub/video.h: add missing EXPORT_FUND on
18205 grub_video_edid_checksum and grub_video_edid_preferred_mode.
18207 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18209 * include/grub/mips/kernel.h: Fix define conflict.
18211 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18213 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
18216 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
18218 Preferred resolution detection for VBE.
18220 * grub-core/video/video.c (grub_video_edid_checksum): New function.
18221 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
18222 the Flat Panel extension, in line with the X.org VESA driver.
18223 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
18225 (grub_vbe_bios_get_ddc_capabilities): Likewise.
18226 (grub_vbe_bios_read_edid): Likewise.
18227 (grub_vbe_get_preferred_mode): Likewise.
18228 (grub_video_vbe_setup): When the mode is "auto", try to get the
18229 preferred mode from VBE, and use the largest mode that is no larger
18230 than the preferred mode (some BIOSes expose a preferred mode that is
18231 not in their mode list!). If this fails, fall back to 640x480 as a
18232 safe conservative choice.
18233 (grub_video_vbe_get_edid): New function.
18234 (grub_video_vbe_adapter): Add get_edid.
18235 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
18236 (struct grub_video_adapter): Add get_edid.
18237 (grub_video_edid_checksum): Add prototype.
18238 (grub_video_edid_preferred_mode): Likewise.
18239 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
18242 * grub-core/commands/videoinfo.c (print_edid): New function.
18243 (grub_cmd_videoinfo): Print EDID if available.
18245 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
18246 is more appropriate on a wider range of platforms than 640x480.
18247 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
18250 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18252 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
18254 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18256 * po/POTFILES.in: Regenerate.
18258 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18260 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
18261 incorrect memory usage.
18263 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18265 * util/grub-install.in: Source grub-mkconfig_lib.
18267 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18269 Remove getroot.c from core on emu platform.
18271 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
18273 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
18275 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
18276 * util/getroot.c (get_win32_path): ... here.
18277 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
18278 * util/getroot.c (fini_libzfs): ... here.
18279 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
18280 * util/getroot.c (grub_get_libzfs_handle): ... here.
18281 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
18283 * util/getroot.c (grub_find_zpool_from_dir): ... here.
18284 * grub-core/kern/emu/misc.c
18285 (grub_make_system_path_relative_to_its_root): Moved from here...
18286 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
18287 * grub-core/kern/emu/getroot.c: Moved from here ...
18288 * util/getroot.c: ... here. All users updated.
18289 * grub-core/kern/emu/raid.c: Moved from here ...
18290 * util/raid.c: ... here. All users updated.
18292 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18294 * po/POTFILES.in: Regenerate.
18296 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18298 Fix compilation on GNU/Linux.
18300 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
18302 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
18303 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
18304 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
18306 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18307 2011-07-07 Michael Gorven <michael@gorven.za.net>
18308 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
18310 LUKS and GELI support.
18312 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
18313 grub-core/disk/luks.c, grub-core/disk/geli.c,
18314 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
18315 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
18316 grub-core/lib/arg.c.
18317 (libgrubmods.a): Remove gcrypts cflags and cppflags.
18318 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
18319 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
18320 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
18321 (grub-bin2h): Add libgcry.a.
18322 (grub-mkimage): Likewise.
18323 (grub-mkrelpath): Likewise.
18324 (grub-script-check): Likewise.
18325 (grub-editenv): Likewise.
18326 (grub-mkpasswd-pbkdf2): Likewise.
18327 (grub-pe2elf): Likewise.
18328 (grub-fstest): Likewise.
18329 (grub-mkfont): Likewise.
18330 (grub-mkdevicemap): Likewise.
18331 (grub-probe): Likewise.
18332 (grub-ofpath): Likewise.
18333 (grub-mklayout): Likewise.
18334 (example_unit_test): Likewise.
18335 (grub-menulst2cfg): Likewise.
18336 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
18337 * grub-core/Makefile.core.def (cryptodisk): New module.
18340 * grub-core/disk/AFSplitter.c: New file.
18341 * grub-core/disk/cryptodisk.c: Likewise.
18342 * grub-core/disk/geli.c: Likewise.
18343 * grub-core/disk/luks.c: Likewise.
18344 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
18346 (grub_util_get_dm_abstraction): New function.
18347 (grub_util_follow_gpart_up): Likewise.
18348 (grub_util_get_geom_abstraction): Likewise.
18349 (grub_util_get_dev_abstraction): Use new functions.
18350 (grub_util_pull_device): Pull GELI and LUKS.
18351 (grub_util_get_grub_dev): Handle LUKS and GELI.
18352 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
18353 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
18354 (follow_geom_up): Removed.
18355 (grub_util_fd_seek): New function.
18356 (open_device): Use grub_util_fd_seek.
18357 (nread): Rename to ..
18358 (grub_util_fd_read): ... this. All users updated.
18359 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
18360 (grub_crypto_cbc_decrypt): Likewise.
18361 (grub_crypto_hmac_write): Likewise.
18362 (grub_crypto_hmac_buffer): Likewise.
18363 (grub_password_get): Extend to util.
18364 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
18365 New member modname.
18366 (gcry_md_spec) [GRUB_UTIL]: Likewise.
18367 * include/grub/cryptodisk.h: New file.
18368 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
18369 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
18371 (grub_util_follow_gpart_up): New proto.
18372 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
18373 (grub_util_fd_read): Likewise.
18374 (grub_cryptodisk_cheat_mount): Likewise.
18375 (grub_util_cryptodisk_print_uuid): Likewise.
18376 (grub_util_get_fd_sectors): Likewise.
18377 * util/grub-fstest.c (mount_crypt): New var.
18378 (fstest): Mount crypto if requested.
18379 (options): New option -C.
18380 (argp_parser): Parse -C.
18381 (main): Init and fini gcry.
18382 * util/grub-install.in: Support cryptodisk install.
18383 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
18384 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
18386 (prepare_grub_to_access_device): Likewise.
18387 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
18388 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
18389 (probe_cryptodisk_uuid): New function.
18390 (probe_abstraction): Likewise.
18391 (probe): Use new functions.
18392 * util/import_gcry.py: Create Makefile.utilgcry.def.
18393 Add modname member.
18395 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18397 Lazy device scanning.
18399 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
18400 (grub-setup): Remove util/raid.c.
18401 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
18402 * grub-core/disk/lvm.c (scan_depth): New variable.
18403 (grub_lvm_iterate): Rescan if necessary.
18404 (find_lv): New function based on grub_lvm_open.
18405 (grub_lvm_open): Use find_lv. Rescan on error.
18406 (is_node_readable): New function.
18407 (is_lv_readable): Likewise.
18408 (grub_lvm_scan_device): Skip already found disks.
18409 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
18410 Stop if searched device is found and readable.
18411 * grub-core/disk/raid.c (inscnt): New variable.
18412 (scan_depth): Likewise.
18413 (scan_devices): New function based on grub_raid_register. Abort if
18414 looked for device is found.
18415 (grub_raid_iterate): Rescan if needed.
18416 (find_array): NEw function based on -grub_raid_open.
18417 (grub_raid_open): Use find_array and rescan.
18418 (insert_array): Set became_readable_at.
18419 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
18420 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
18422 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
18423 (grub_util_pull_device): New function.
18424 (grub_util_get_grub_dev): Call grub_util_pull_device.
18425 * util/raid.c: Moved to ..
18426 * grub-core/kern/emu/raid.c: ... here.
18427 (grub_util_raid_getmembers): New parameter "bootable".
18428 All users updated. Support 1.x.
18429 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
18431 * include/grub/disk.h (grub_disk_pull_t): New enum.
18432 (grub_disk_dev): Change iterate prototype.
18434 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
18436 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
18437 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
18438 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
18439 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
18441 * include/grub/util/raid.h: Removed.
18443 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18445 * po/POTFILES.in: Regenerate.
18447 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18449 Unify sparc init with other ieee1275.
18451 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
18452 instead of kern/sparc64/ieee1275/init.c.
18453 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
18454 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
18455 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
18456 grub/machine/kernel.h.
18457 (grub_ieee1275_original_stack) [__sparc__]: New variable.
18458 (grub_claim_heap) [__sparc__]: Use sparc version.
18459 (grub_machine_init): Moved args parsing to
18460 (grub_parse_cmdline): ...this.
18461 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
18462 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
18464 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
18466 Move BOOTP to separate file.
18468 * grub-core/Makefile.core.def (net): Add net/bootp.c.
18469 * grub-core/net/net.c: Move all BOOTP functions to
18470 * grub-core/net/bootp.c: ... here.
18472 Use frame interface on PXE.
18474 * grub-core/Makefile.core.def (pxecmd): Removed.
18475 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
18476 * grub-core/commands/i386/pc/pxecmd.c: Removed.
18477 * grub-core/i386/pc/pxe.c: Moved from here ...
18478 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
18479 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
18480 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
18482 EFI network support.
18484 * grub-core/Makefile.core.def (efinet): New module.
18485 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
18487 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
18489 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
18490 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
18491 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
18492 * grub-core/net/drivers/efi/efinet.c: New file.
18493 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
18494 (grub_efi_net_config): New extern var.
18496 Various cleanups and bugfixes.
18498 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
18500 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
18501 disk declared as partition.
18502 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
18504 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
18505 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
18506 (grub_debug_zalloc): Likewise.
18507 (grub_debug_realloc): Likewise.
18508 (grub_debug_memalign): Likewise.
18509 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
18510 Check that target is IPv4.
18511 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
18512 local-mac-address as fallback.
18513 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
18515 * grub-core/net/ip.c (ipchksum): Rename to ...
18516 (grub_net_ip_chksum): ... this. All users updated.
18517 (grub_net_recv_ip_packets): Special handling for DHCP.
18518 * util/grub-mkimage.c (generate_image): Zero-out aout header.
18520 Unify prefix handling
18522 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
18523 (grub_machine_get_bootlocation): ... this.
18524 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
18525 (grub_machine_get_bootlocation): ... this.
18526 (grub_prefix): New variable.
18528 (root_dev): New variable.
18530 (main): Use new variables.
18531 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
18533 (grub_machine_get_bootlocation): ... this.
18534 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
18535 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
18536 (grub_machine_get_bootlocation): ... this.
18537 (grub_machine_set_prefix): Removed.
18538 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
18539 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
18541 (grub_machine_get_bootlocation): ... this.
18542 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
18543 (grub_set_prefix_and_root): ... this. All users updated.
18544 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
18546 (grub_machine_get_bootlocation): ... this.
18547 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
18548 (grub_machine_get_bootlocation): New proto.
18549 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
18551 Less intrusive and more reliable seek on network implementation.
18553 * grub-core/kern/file.c (grub_file_net_seek): Removed.
18554 (grub_file_seek): Don't call grub_file_net_seek.
18555 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
18556 (grub_net_fs_read_real): .. this.
18557 (grub_net_seek_real): Use net->offset.
18558 (grub_net_fs_read): Seek if necessary.
18560 Unify IEEE1275 netwotk config with the other platforms.
18562 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
18564 (grub_machine_get_bootlocation): Support network.
18565 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
18566 Support type and device parsing.
18567 (grub_ieee1275_get_device_type): New function.
18568 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
18570 (grub_ieee1275_net_config_real): ... this.
18571 (grub_ofnet_probecards): Removed.
18572 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
18573 * include/grub/ieee1275/ofnet.h: Removed.
18574 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
18576 (grub_ieee1275_get_device_type): New function.
18578 Unify network device closing across platforms and make more robust.
18580 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
18582 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
18584 * grub-core/net/net.c (grub_net_network_level_interface_register):
18586 (grub_net_card_unregister): Close all interfaces.
18587 (receive_packets): Don't poll if no iterfaces are registered.
18589 (grub_net_fini_hw): New function.
18590 (grub_net_restore_hw): Likewise.
18591 (fini_hnd): New variable.
18592 (GRUB_MOD_INIT): Register preboot hook.
18593 (GRUB_MOD_FINI): Run and unregister preboot hook.
18595 Poll network cards when idle.
18597 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
18598 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
18599 * grub-core/net/net.c (receive_packets): Save last poll time.
18600 (grub_net_poll_cards_idle_real): New function.
18601 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
18602 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
18603 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
18605 Rename ofnet interfaces.
18607 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
18608 (grub_ofnet_findcards): Use ofnet_%s names.
18610 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
18612 Cleanup socket opening.
18614 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
18615 (grub_net_fs_close): Likewise.
18616 (grub_net_fs_read_real): Use eof member.
18617 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
18618 (+grub_net_udp_close): New inline function.
18620 * include/grub/net/tftp.h: Moved to the top of ...
18621 * grub-core/net/tftp.c: ... here.
18622 * include/grub/net/ip.h: Moved mostly to the top of ...
18623 * grub-core/net/ip.c: ... here.
18624 * include/grub/net/ethernet.h: Moved mostly to the top of ...
18625 * grub-core/net/ethernet.c: ... here.
18627 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
18629 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
18632 * include/grub/net/ip.h (ipv4_ini): Removed.
18633 (ipv4_fini): Likewise.
18635 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
18636 (grub_net_send_ip_packets): Likewise.
18638 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18640 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
18641 grub_read_cmos prototype.
18643 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18645 VGA text support in qemu-mips
18647 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
18648 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
18649 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
18651 * grub-core/kern/i386/qemu/init.c: Renamed to ...
18652 * grub-core/kern/vga_init.c: ... this.
18653 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
18654 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
18655 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
18657 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
18658 GRUB_MACHINE_PCI_IO_BASE.
18660 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18662 MIPS qemu flash support.
18664 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
18666 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
18667 (grub_machine_init): Probe memory if its size isn't known.
18668 * util/grub-mkimage.c (image_targets): Add flash targets.
18669 (generate_image): Handle flash targets.
18671 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18673 MIPS qemu at_keyboard support.
18675 * gentpl.py (videoinkernel): Add qemu-mips.
18676 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
18677 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
18678 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
18680 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
18681 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
18682 * grub-core/term/serial.c (grub_serial_register)
18683 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
18685 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18687 CMOS support on sparc.
18689 * gentpl.py (cmos): Add powerpc and sparc.
18690 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
18692 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
18693 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
18694 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
18695 grub_set_datetime_cmos.
18696 * grub-core/lib/ieee1275/cmos.c: New file.
18697 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
18698 (find_rtc): Set no_ieee1275_rtc on error.
18699 (grub_get_datetime): Call grub_get_datetime_cmos on error.
18700 (grub_set_datetime): Call grub_set_datetime_cmos on error.
18701 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
18702 fail. Move value to argument. All users updated
18703 (grub_cmos_write): Likewise.
18704 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
18705 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
18706 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
18707 grub_get_datetime_cmos and grub_set_datetime_cmos.
18709 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
18711 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
18712 sourcing grub-mkconfig_lib.
18713 * util/update-grub_lib.in: Likewise.
18714 * util/grub.d/00_header.in: Likewise.
18715 * util/grub.d/10_hurd.in: Likewise.
18716 * util/grub.d/10_kfreebsd.in: Likewise.
18717 * util/grub.d/10_linux.in: Likewise.
18718 * util/grub.d/10_netbsd.in: Likewise.
18719 * util/grub.d/10_windows.in: Likewise.
18720 * util/grub.d/20_linux_xen.in: Likewise.
18721 * util/grub.d/30_os-prober.in: Likewise.
18723 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
18725 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
18726 default_bg_color rather than black.
18727 (grub_gfxterm_fullscreen): Likewise.
18728 (grub_gfxterm_background_color_cmd): Save new background color in
18731 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18733 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
18735 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18737 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
18740 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18742 Chainloading on coreboot support.
18744 * grub-core/Makefile.core.def (chain): Add coreboot.
18745 * grub-core/loader/i386/coreboot/chainloader.c: New file.
18747 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18749 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
18752 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18754 Implement time command.
18756 * grub-core/Makefile.core.def (time): New module.
18757 * grub-core/commands/time.c: New file.
18758 * grub-core/script/parser.y: Remove "time" keyword.
18759 * grub-core/script/yylex.l: Likewise.
18761 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18763 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
18765 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18767 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
18768 when handling leftovers.
18770 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18772 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18773 so that help2man doesn't fail.
18775 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18777 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18778 type in pointers on sparc64.
18779 (get_card_packet): Likewise.
18781 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
18783 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18785 (grub_cmd_videoinfo): Fetch current video mode.
18787 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18789 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18790 because of underlying system restrictions.
18792 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18794 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18797 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18799 Coreboot video support.
18801 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18803 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18804 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18806 * grub-core/kern/i386/int.S: ... here.
18807 * grub-core/video/i386/pc/vbe.c: Updated includes.
18808 * grub-core/video/i386/pc/vga.c: Likewise.
18809 * include/grub/i386/coreboot/memory.h
18810 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18811 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18812 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18813 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18814 Disable interrupts.
18815 * include/grub/i386/pc/vga.h: Removed. All users updated.
18817 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18819 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18820 definitions for dprintf.
18821 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18823 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18825 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18827 (get_card_packet): Likewise.
18829 2011-06-26 Yves Blusseau <blusseau@zetam.org>
18831 Display the path of the file when file is not found
18833 * grub-core/fs/fat.c: Display the filename when file is not found.
18834 * grub-core/fs/fshelp.c: Likewise.
18835 * grub-core/fs/hfs.c: Likewise.
18836 * grub-core/fs/jfs.c: Likewise.
18837 * grub-core/fs/minix.c: Likewise.
18838 * grub-core/fs/ufs.c: Likewise.
18839 * grub-core/fs/btrfs.c: Likewise.
18840 * grub-core/commands/i386/pc/play.c: Likewise.
18842 2011-06-26 Szymon Janc <szymon@janc.net.pl>
18844 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18845 pointer checks before calling grub_free().
18846 * grub-core/commands/wildcard.c (match_devices): Likewise.
18847 * grub-core/commands/wildcard.c (match_files): Likewise.
18848 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
18849 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
18850 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
18851 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
18852 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
18853 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
18854 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
18855 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
18856 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
18858 2011-06-25 Patrick <p55@mailinator.com>
18860 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
18862 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
18864 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
18865 (grub_pxe_send): Likewise.
18866 (GRUB_MOD_INIT): Fix types.
18868 2011-06-24 Szymon Janc <szymon@janc.net.pl>
18870 * grub-core/io/xzio.c: Fix code style issues
18872 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18873 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
18875 Network infrastructure.
18876 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
18878 * include/grub/net/arp.h: New file.
18879 * include/grub/net/device.h: Likewise.
18880 * include/grub/net/ethernet.h: Likewise.
18881 * include/grub/net/ip.h: Likewise.
18882 * include/grub/net/netbuff.h: Likewise.
18883 * include/grub/net/tftp.h: Likewise.
18884 * include/grub/net/udp.h: Likewise.
18885 * include/grub/ieee1275/ofnet.h: Likewise.
18886 * include/grub/emu/export.h: Likewise.
18887 * include/grub/net.h: Likewise.
18888 * grub-core/net/arp.c: Likewise.
18889 * grub-core/net/ethernet.c: Likewise.
18890 * grub-core/net/ip.c: Likewise.
18891 * grub-core/net/udp.c: Likewise.
18892 * grub-core/net/tftp.c: Likewise.
18893 * grub-core/net/netbuff.c: Likewise.
18894 * grub-core/net/net.c: Likewise.
18895 * grub-core/net/drivers/emu/emunet.c: Likewise.
18896 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
18897 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
18899 * grub-core/Makefile.core.def (net): New module.
18902 (emunet): Likewise.
18903 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
18905 * grub-core/kern/device.c (grub_net_open) : New variable.
18906 (grub_device_open): Handle network device.
18907 (grub_device_close): Likewise.
18908 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
18909 (grub_grubnet_fini): Likewise.
18910 (grub_file_seek): Seek in network device.
18911 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
18912 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
18914 (grub_machine_fini): Call grub_grubnet_fini.
18915 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
18917 (grub_ieee1275_get_aliasdevname): New function.
18918 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18919 Add unofficial Solaris network info.
18920 (grub_multiboot_make_mbi): Likewise.
18921 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
18922 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
18923 * include/grub/device.h (grub_fs): Removed.
18924 * include/grub/err.h (grub_err_t): Add network-related values.
18925 * include/grub/i386/pc/pxe.h: Removed bootp parts.
18926 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
18927 (grub_ieee1275_get_aliasdevname): New proto.
18928 * include/grub/net.h: Rewritten.
18930 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18932 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
18935 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18937 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
18938 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
18939 it truncates the output.
18940 Reported by: Ximin Luo.
18942 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18944 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
18946 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18948 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
18949 partmap before abstraction.
18951 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
18953 * util/grub-mkconfig_lib.in: Add missing quotes.
18955 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18957 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
18958 old method if mountinfo would return /dev/root and /dev/root doesn't
18961 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18965 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
18966 (decomp_table): Add zlib entries.
18967 (zio_read): USe 8 bits for compression function rather than 3.
18968 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
18970 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18972 * grub-core/disk/ahci.c: Add missing license statements.
18973 * grub-core/fs/romfs.c: Likewise.
18974 * grub-core/lib/ia64/setjmp.S: Likewise.
18975 * grub-core/loader/i386/pc/freedos.c: Likewise.
18976 * grub-core/loader/ia64/efi/linux.c: Likewise.
18977 * grub-core/video/colors.c: Likewise.
18978 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
18980 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18984 * grub-core/Makefile.core.def (ata_pthru): Removed.
18985 (ahci): New module.
18987 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
18989 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
18991 (grub_hdparm_do_check_powermode_cmd): Likewise.
18992 (grub_hdparm_do_smart_cmd): Likewise.
18993 (grub_hdparm_set_val_cmd): Likewise.
18994 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
18995 * grub-core/disk/ahci.c: New file.
18996 * grub-core/disk/ata.c: Factor out the low-level part into ...
18997 * grub-core/disk/pata.c: ... here.
18998 * grub-core/disk/ata_pthru.c: Contents moved to ...
18999 * grub-core/disk/pata.c: ... here.
19000 * grub-core/disk/scsi.c (grub_scsi_names): New array.
19001 (grub_scsi_iterate): Use grub_scsi_names.
19002 (grub_scsi_open): Likewise.
19003 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
19004 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
19005 (grub_ata_regs_t): New struct.
19006 (grub_disk_ata_pass_through_parms): Likewise.
19007 (grub_ata_device): Renamed to ...
19008 (grub_ata): ... this.
19009 (grub_ata_dev): New struct.
19010 Removed all low-level inline functions.
19011 * include/grub/scsi.h: Add PATA and AHCI subsystems.
19012 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
19013 iterate hooks and open. All users updated.
19014 * util/grub-install.in: Handle AHCI disk module.
19016 2011-06-23 Szymon Janc <szymon@janc.net.pl>
19018 Add support for DRI and RSTn markers in JPEG files.
19020 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
19021 (JPEG_MARKER_RST0): Likewise.
19022 (JPEG_MARKER_RST1): Likewise.
19023 (JPEG_MARKER_RST2): Likewise.
19024 (JPEG_MARKER_RST3): Likewise.
19025 (JPEG_MARKER_RST4): Likewise.
19026 (JPEG_MARKER_RST5): Likewise.
19027 (JPEG_MARKER_RST6): Likewise.
19028 (JPEG_MARKER_RST7): Likewise.
19029 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
19030 (grub_jpeg_decode_dri): New function.
19031 (grub_jpeg_decode_sos): Move image data related part into
19032 grub_jpeg_decode_data function.
19033 (grub_jpeg_decode_data): New function.
19034 (grub_jpeg_reset): New function.
19035 (grub_jpeg_decode_jpeg): Handle new markers.
19037 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19039 * util/ieee1275/ofpath.c (check_sas): Close fd.
19040 (main): Free of_path.
19041 Reported by: David Volgyes <dvolgyes>.
19043 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19045 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
19046 Reported by: David Volgyes <dvolgyes>.
19048 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19050 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
19052 Reported by: David Volgyes <dvolgyes>.
19054 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19056 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
19058 Reported by: David Volgyes <dvolgyes>.
19060 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19062 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
19063 Prevent memory leak.
19065 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19067 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
19068 (main): Close file.
19069 Reported by: David Volgyes <dvolgyes>.
19071 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19073 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
19074 to continue if allocation is failed.
19076 Reported by: David Volgyes <dvolgyes>.
19078 2011-06-23 David Volgyes <dvolgyes>
19080 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
19083 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19085 Fix spurious warning.
19087 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
19088 (acorn_partition_map_find): Use .bin member.
19090 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19092 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
19093 /dev/root as a valid device.
19095 2011-06-23 Jim Meyering <meyering@redhat.com>
19097 Avoid NULL deref in grub_device_open.
19099 * grub-core/kern/device.c (grub_device_open): Don't dereference
19100 a NULL pointer upon failed grub_env_get.
19102 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19104 Support non-512B sectors and agglomerate reads.
19106 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
19107 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
19108 (disk_io_guid): Removed.
19109 (make_devices): Locate solely by BlockIO.
19110 (grub_efidisk_open): Fill log_sector_size and total_sectors.
19111 (grub_efidisk_read): Use read_blocks.
19112 (grub_efidisk_write): Use write_blocks.
19113 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
19115 (get_safe_sectors): Handle non-512B sectors.
19116 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
19118 (grub_biosdisk_write): Handle non-512B sectors.
19119 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
19120 (grub_scsi_read): Remove special non-512B block handling (now handled
19122 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
19123 and do sanity checks.
19124 (grub_disk_adjust_range): Handle non-512B sectors.
19125 (transform_sector): New function.
19126 (grub_disk_read_small): Likewise.
19127 (grub_disk_read): Rewritten.
19128 (grub_disk_write): Handle non-512B sectors.
19129 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
19131 (open_device): Use log_sector_size.
19132 (grub_util_biosdisk_read): Likewise.
19133 (grub_util_biosdisk_write): Likewise.
19134 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
19136 (pc_partition_map_embed): Likewise.
19137 * include/grub/disk.h (grub_disk): New field log_sector_size.
19138 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
19139 (GRUB_DISK_CACHE_BITS): Increased to 6.
19140 * util/grub-fstest.c (fstest): New command testload.
19141 (argp_parser): Likewise.
19143 2011-06-16 Robert Millan <rmh@gnu.org>
19145 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
19146 `ata' driver on kernel of FreeBSD 9.
19148 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
19149 (get_ataraid_disk_name): New functions.
19150 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
19151 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
19152 get_ataraid_disk_name() and get_ada_disk_name().
19154 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
19156 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
19159 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
19161 * docs/grub.texi (Obtaining and Building GRUB): Substitute
19162 `ftp.gnu.org' for `alpha.gnu.org'.
19164 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19166 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
19167 partitions under /dev/disk/by-id/.
19169 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19171 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
19172 after ten consecutive open failures. Scanning all the way up to
19173 10000 is excessive and can cause serious performance problems in
19174 some configurations.
19175 Fixes Ubuntu bug #787461.
19177 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19179 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
19182 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
19183 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19185 Don't stat devices unless we have to.
19187 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
19188 dir == /dev/mapper.
19189 (grub_guess_root_device): Use already known os_dev if possible.
19190 * grub-core/kern/emu/hostdisk.c
19191 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
19192 if device is known to be a dm one.
19194 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
19196 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
19197 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
19198 Reported by: Pawel Tecza.
19200 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
19202 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
19203 (lsefisystab): Likewise.
19205 (lsefimmap): Likewise.
19206 (hdparm): Enable on qemu-mips.
19207 (setjmp): Add ia64 nodist.
19208 (serial): Simplify tags.
19210 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19212 * Makefile.util.def (grub-ofpathname): Install manual page.
19214 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19216 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
19218 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19220 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
19222 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19224 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
19227 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19229 Use full 64-bit division.
19231 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
19232 (grub_divmod64): ... this.
19233 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
19236 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19238 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
19241 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19243 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
19244 to avoid accidents when debugging with 'sh -x'.
19245 * grub-core/gensyminfo.sh.in: Likewise.
19246 * tests/example_scripted_test.in: Likewise.
19247 * tests/grub_cmd_regexp.in: Likewise.
19248 * tests/grub_script_blanklines.in: Likewise.
19249 * tests/grub_script_dollar.in: Likewise.
19250 * tests/grub_script_expansion.in: Likewise.
19251 * tests/grub_script_final_semicolon.in: Likewise.
19252 * tests/partmap_test.in: Likewise.
19253 * tests/util/grub-shell-tester.in: Likewise.
19254 * tests/util/grub-shell.in: Likewise.
19256 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19258 Move gfxmenu color handling to video, so that gfxterm can use it
19261 * grub-core/gfxmenu/named_colors.c: Move to ...
19262 * grub-core/video/colors.c: ... here. Rename
19263 grub_gui_get_named_color to grub_video_get_named_color.
19264 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
19265 * grub-core/video/colors.c (my_isxdigit): ... here.
19266 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
19268 * grub-core/video/colors.c (parse_hex_color_component): ... here.
19269 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
19271 * grub-core/video/colors.c (grub_video_parse_color): ... here.
19273 * include/grub/gui.h (grub_gui_color_t): Move to ...
19274 * include/grub/video.h (grub_video_rgba_color_t): ... here.
19275 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
19276 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
19277 * include/grub/gui.h (grub_gui_map_color): Move to ...
19278 * include/grub/video.h (grub_video_map_rgba_color): ... here.
19279 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
19281 * include/grub/video.h (grub_video_get_named_color): ... here.
19282 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
19283 * include/grub/video.h (grub_video_parse_color): ... here.
19285 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
19287 (gfxmenu): Remove gfxmenu/named_colors.c.
19288 (video) [videomodules]: Add video/colors.c.
19290 Add a background_color command.
19292 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
19294 (GRUB_MOD_INIT): Register background_color command.
19295 (GRUB_MOD_FINI): Unregister background_color command.
19296 (redraw_screen_rect): Allow blend/replace of text layer to be
19297 controlled independently from whether there is a background bitmap.
19298 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
19301 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19303 Patch BPB in ntldr and chainloader --bpb.
19305 * grub-core/fs/fat.c: Include grub/fat.h.
19306 (grub_fat_bpb): Moved to ...
19307 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
19308 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
19310 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
19312 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
19314 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
19316 (grub_chainloader_cmd): Patch BPB if --bpb is given.
19317 (GRUB_MOD_INIT): Show --bpb.
19318 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
19319 * grub-core/normal/main.c (features): New variable.
19320 (GRUB_MOD_INIT): Set feature_* variables.
19321 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
19323 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
19325 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19327 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
19330 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19332 FreeDOS direct loading support.
19334 * docs/grub.texi (Supported OS): Add FreeDOS.
19335 * grub-core/Makefile.core.def (freedos): New module.
19336 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
19338 (grub_relocator16_boot): Handle %ebx.
19339 * grub-core/lib/i386/relocator16.S: Likewise.
19340 * grub-core/loader/i386/pc/freedos.c: New file.
19342 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19344 Long Linux command line support.
19346 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19347 (maximal_cmdline_size): New variable.
19348 (allocate_pages): Use maximal_cmdline_size.
19349 (grub_cmd_linux): Set and use maximal_cmdline_size.
19350 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19351 (allocate_pages): Use maximal_cmdline_size.
19352 (grub_cmd_linux): Set and use maximal_cmdline_size.
19353 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
19354 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
19357 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19358 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19360 Improve devmapper support
19362 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
19363 (grub_util_is_lvm): New function.
19364 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
19365 than lvm if not dmraid.
19366 Handle mapped md nodes.
19367 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
19368 (grub_util_device_is_mapped): ... this. Make always available. All users
19370 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
19371 (convert_system_partition_to_system_disk): Handle lvm, mpath and
19373 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
19375 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19377 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
19379 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
19380 * grub-core/modinfo.sh.in: New file.
19381 * grub-core/Makefile.core.def (modinfo.sh): New script.
19382 * util/grub-mknetdir.in: Use modinfo.sh.
19383 * util/grub-mkrescue.in: Likewise.
19385 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19387 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
19388 Fix potential usage of Elf32 instead of Elf64 when compiling on
19389 32-bit architecture. Add endianness macros while on it.
19391 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19393 Use mipsel- rather than mips- in directories involving mipsel ports to
19394 allow both endiannesses coexist.
19396 * configure.ac: proparate target_cpu=mipsel rather than resetting to
19397 mips. All conditions adjusted.
19398 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
19400 * util/grub-install.in: Adjust conditions to take renaming into account.
19401 * util/grub-mkimage.c (image_targets): Likewise. New target
19402 mips-qemu_mips-elf for bigendian mips.
19404 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19406 Avoid unnecessary copying on MIPS.
19408 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
19409 early if src == dest.
19410 * util/grub-mkimage.c (generate_image): Arange for src == dest if
19411 compression is none.
19413 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19415 Reduce memory footprint on SGI by putting modules before the kernel
19416 as opposed to after.
19418 * grub-core/Makefile.core.def (kernel): Increase linking address.
19419 (none_decompress): Likewise.
19420 (xz_decompress): Likewise.
19421 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
19423 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
19425 (grub_arch_modules_addr): New function.
19426 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
19427 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
19428 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
19430 * grub-core/kern/mips/startup.S (total_size): Rename to ...
19431 (grub_total_modules_size): ... this. Make global.
19432 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
19433 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
19435 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
19436 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
19437 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
19438 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
19439 * util/grub-mkimage.c (image_target_desc): New flag
19440 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
19441 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
19442 (generate_image): Handle images with modules before kernel.
19444 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19446 Prevent potential loss of memory map by overwrite on qemu-mips.
19448 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19449 Save ram size in $s4.
19450 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
19451 All users changed to grub_arch_memsize.
19452 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
19454 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
19455 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
19456 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
19459 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19461 * .bzrignore: Remove grub-dumpbios.
19463 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19465 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
19466 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
19467 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
19468 existing options which append).
19469 * docs/grub.texi (Simple configuration): Document new options.
19470 Reported by: Ian Jackson. Fixes Debian bug #617538.
19472 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19474 * util/grub-fstest.c (cmd_cat): New function.
19475 (fstest): Handle CMD_CAT.
19476 (options): Add cat.
19477 (argp_parser): Handle cat.
19479 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19481 * Makefile.util.def (grub-bin2h): Don't install.
19482 * docs/man/grub-bin2h.h2m: Remove.
19484 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19486 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
19489 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19491 Reenable qemu-mips port.
19493 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
19494 Fix small arc bug while on it.
19495 * gentpl.py: Handle qemu_mips.
19496 * grub-core/Makefile.am: Likewise.
19497 * grub-core/Makefile.core.def: Likewise.
19498 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
19499 inappropriate includes.
19500 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
19501 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
19502 * grub-core/kern/main.c (grub_modules_get_end)
19503 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
19504 * grub-core/kern/mips/qemu-mips: Moved to ..
19505 * grub-core/kern/mips/qemu_mips: ... this.
19506 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
19507 (grub_machine_init): Call terminfo_init and serial_init.
19508 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
19509 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19511 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
19513 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
19514 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
19515 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
19516 * include/grub/mips/qemu_mips/cmos.h: New file.
19517 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
19518 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
19520 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
19521 Use correct mips-style address.
19522 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
19523 (GRUB_TICKS_PER_SECOND): Removed.
19524 (grub_get_rtc): Likewise.
19525 (grub_cpu_idle): Likewise.
19526 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
19528 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
19529 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
19530 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
19531 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
19532 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
19533 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
19534 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
19535 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
19537 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19541 * Makefile.util.def (libgrubmods.a): Add dvh.c.
19542 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
19544 * configure.ac: New target mips-arc.
19545 * gentpl.py: Likewise.
19546 * grub-core/Makefile.am: Likewise.
19547 * grub-core/Makefile.core.def: Likewise.
19548 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
19549 (none_decompress): Likewise.
19550 (lsdev): New module.
19551 (datetime): Use lib/arc/datetime.c on ARC.
19552 (part_dvh): New module.
19553 * grub-core/commands/arc/lsdev.c: New file.
19554 * grub-core/disk/arc/arcdisk.c: Likewise.
19555 * grub-core/kern/mips/arc/init.c: Likewise.
19556 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
19558 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
19560 (grub_arch_dl_relocate_symbols): Likewise.
19561 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
19562 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
19563 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
19565 * grub-core/lib/arc/datetime.c: New file.
19566 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
19567 pci.h on non-loongson.
19568 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
19569 (grub_linux_boot): Set unused registers to 0.
19570 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
19571 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
19572 * grub-core/mmap/mips/uppermem.c: ...here.
19573 * grub-core/partmap/dvh.c: New file.
19574 * grub-core/term/arc/console.c: Likewise.
19575 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
19576 (grub_terminfo_set_current): Add terminal "arc".
19577 (grub_terminfo_readkey): Support ARC sequences.
19578 * include/grub/arc/arc.h: New file.
19579 * include/grub/arc/console.h: Likewise.
19580 * include/grub/disk.h (grub_disk_dev_id): Add
19581 GRUB_DISK_DEVICE_ARCDISK_ID.
19582 * include/grub/mips/arc/kernel.h: New file.
19583 * include/grub/mips/arc/memory.h: Likewise.
19584 * include/grub/mips/arc/time.h: Likewise.
19585 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
19586 * include/grub/mips/kernel.h (grub_halt): ... here.
19587 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
19589 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
19590 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
19591 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
19592 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
19594 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
19596 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
19597 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
19598 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
19599 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
19600 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
19601 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
19602 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
19603 (grub_phys_addr_t): Moved from here ...
19604 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
19605 (grub_vtop): Moved from here ...
19606 * include/grub/mips/memory.h (grub_vtop): ... here.
19607 (grub_map_memory): Moved from here ...
19608 * include/grub/mips/memory.h (grub_map_memory): ... here.
19609 (grub_unmap_memory): Moved from here ...
19610 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
19611 (grub_machine_mmap_iterate): Moved from here ...
19612 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
19613 (grub_mmap_get_lower): Moved from here ...
19614 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
19615 (grub_mmap_get_upper): Moved from here ...
19616 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
19617 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19619 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19620 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
19622 * include/grub/mips/time.h (grub_get_rtc): ... here.
19623 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19625 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19626 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
19628 * include/grub/mips/time.h (grub_cpu_idle): ... here.
19629 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
19631 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
19632 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
19633 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
19634 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
19635 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
19636 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
19637 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
19638 (GRUB_MACHINE_LINK_ADDR): Likewise.
19639 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
19641 * util/grub-install.in: Run dvhtool on ARC.
19642 * util/grub-mkimage.c (image_targets): Add mips-arc.
19643 (generate_image): Handle ECOFF output for mips-arc.
19645 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19647 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
19650 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19652 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
19653 after enabling port.
19655 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19657 Skip incorrect USB devices.
19659 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
19661 * include/grub/usb.h (grub_usb_err_t): New enum value
19662 GRUB_USB_ERR_BADDEVICE.
19664 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19666 Fuloong video init support.
19668 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
19670 (grub_vga_read_arx): New function.
19671 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
19673 (framebuffer): New members io, mmioptr and mmiobase.
19674 (read_sis_cmd): New function.
19675 (write_sis_cmd): Likewise.
19676 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
19677 rather than 640x400.
19678 * grub-core/video/sis315_init.c: New file.
19680 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19682 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
19684 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
19685 to grub_dl_register_symbol.
19687 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19689 Fix compilation errors.
19691 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
19692 potentially unused.
19693 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
19694 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
19695 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
19696 to loongson machines.
19698 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19700 Several FS mtime support.
19702 * grub-core/fs/affs.c (grub_affs_time): New struct.
19703 (grub_affs_file): New field mtime.
19704 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
19705 type. Removed 'size'. New field 'di'. All users updated.
19706 (grub_affs_mount): Simplify checsum checking.
19707 (grub_affs_iterate_dir): New helper grub_affs_create_node.
19708 (grub_affs_dir): Handle mtime.
19709 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
19710 (grub_cpio_dir): Likewise.
19711 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
19712 (grub_hfs_filerec): New field mtime.
19713 (grub_hfs_dir): Handle mtime.
19714 (grub_hfs_mtime): New function.
19715 (grub_hfs_fs): Register grub_hfs_mtime.
19716 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
19717 (grub_iso9660_dir): New field mtime.
19718 (grub_fshelp_node): New field dirent.
19719 (iso9660_to_unixtime): New function.
19720 (iso9660_to_unixtime2): Likewise.
19721 (grub_iso9660_read_symlink): Use node->dirent.
19722 (grub_iso9660_iterate_dir): Likewise.
19723 (grub_iso9660_dir): Set mtime.
19724 (grub_iso9660_mtime): New function.
19725 (grub_iso9660_fs): Register grub_iso9660_mtime.
19726 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
19727 (grub_jfs_inode): New fields atime, ctime and mtime.
19728 (grub_jfs_dir): Set mtime.
19729 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19730 * grub-core/fs/ntfs.c (list_file): Set mtime.
19731 (grub_ntfs_dir): Likewise.
19732 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
19733 (grub_reiserfs_iterate_dir): Set mtime.
19734 (grub_reiserfs_dir): Likewise.
19735 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
19736 (grub_fshelp_node): Likewise.
19737 (grub_sfs_iterate_dir): Set mtime.
19738 (grub_sfs_dir): Likewise.
19739 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
19740 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
19741 (grub_xfs_inode): New fields atime, mtime, ctime.
19742 (grub_xfs_dir): Set mtime.
19743 * include/grub/datetime.h (grub_datetime2unixtime): New function.
19744 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
19745 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
19747 Support UDF symlinks.
19749 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
19750 (grub_ufs_read_symlink): New function. All users updated.
19752 Check amiga partmap checksum.
19754 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
19755 (grub_amiga_partition): Likewise.
19756 (amiga_partition_map_checksum): New function.
19757 (amiga_partition_map_iterate): Check checksum.
19759 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19763 * Makefile.util.def (libgrubmods.a): Add romfs.
19764 * grub-core/Makefile.core.def (romfs): New module.
19765 * grub-core/fs/romfs.c: New file.
19767 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19769 Squashfs v4 support.
19771 * Makefile.util.def (libgrubmods.a): Add squash4.
19772 * grub-core/Makefile.core.def (squash4): New module.
19773 * grub-core/fs/squash4.c: New file.
19774 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19775 disk_input_start, disk_input.
19776 (get_byte): Handle disk_input.
19777 (grub_zlib_disk_read): New function.
19778 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19780 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19781 2011-05-15 Feiran Zheng <famcool@gmail.com>
19783 * Makefile.util.def (libgrubmods.a): Add minix3.
19784 * grub-core/Makefile.core.def (minix3): New module.
19785 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19786 (GRUB_MINIX_BSIZE): Removed.
19787 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19788 (grub_minix_ino_t): New type.
19789 (grub_minix_le_to_cpu_ino): New macro.
19790 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19791 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19792 (grub_minix_data): New field block_size.
19793 (grub_minix_read_file): Handle 64-bit correctly.
19794 * grub-core/fs/minix3.c: New file.
19796 2011-05-15 Tristan Gingold <gingold@free.fr>
19797 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
19798 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19802 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19803 * configure.ac: Add ia64-efi target.
19804 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19805 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19806 * gentpl.py: Add ia64_efi platform.
19807 Rename x86_efi to efi and Add ia64-efi. All users updated.
19808 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19809 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19810 Remove kern/generic/rtc_get_time_ms.c on EFI.
19811 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19812 kern/ia64/dl_helper.c on ia64-efi.
19813 Add kern/emu/cache.c on emu.
19814 (linux): Use on loader/ia64/efi/linux.c on ia64.
19815 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19816 whether symbol is a function.
19817 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19818 (grub_symbol): New field 'isfunc'.
19819 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19820 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19821 (grub_dl_load_segments): Place all sections into the same region.
19822 [__ia64__]: Create trampolines and got.
19823 [GRUB_MACHINE_EMU]: Call mprotect.
19824 (grub_dl_resolve_symbols): Resolve symbol type as well.
19825 [__ia64__]: Create function descriptors.
19826 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19827 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19828 (grub_get_rtc): New function.
19829 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19830 * grub-core/kern/emu/cache.S: Renamed to ...
19831 * grub-core/kern/emu/cache_s.S: ... this.
19832 [__ia64__]: Add a nop.
19833 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19834 [__ia64__]: New function.
19835 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19836 * grub-core/kern/ia64/dl.c: New file.
19837 * grub-core/kern/ia64/dl_helper.c: Likewise.
19838 * grub-core/kern/ia64/efi/init.c: New file.
19839 * grub-core/kern/ia64/efi/startup.S: Likewise.
19840 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19841 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19842 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19843 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19844 * grub-core/loader/ia64/efi/linux.c: New file.
19845 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
19846 (GRUB_MOD_DEP): Likewise.
19847 (grub_dl) [__ia64__]: New fields got and tramp.
19848 (grub_dl): New field 'base'.
19849 (grub_dl_register_symbol): New argument isfunc. All users updated.
19850 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
19851 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
19852 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
19853 (grub_ia64_dl_get_tramp_got_size): New proto.
19854 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
19855 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
19856 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
19857 * include/grub/efi/api.h: Skip call wrappers on ia64.
19858 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
19859 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
19860 * include/grub/elf.h (ELF_ST_INFO): New definition.
19861 * include/grub/ia64/efi/kernel.h: New file.
19862 * include/grub/ia64/efi/memory.h: Likewise.
19863 * include/grub/ia64/efi/time.h: Likewise.
19864 * include/grub/ia64/kernel.h: Likewise.
19865 * include/grub/ia64/setjmp.h: Likewise (from glibc).
19866 * include/grub/ia64/time.h: New file.
19867 * include/grub/ia64/types.h: Likewise.
19868 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
19869 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
19871 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
19872 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
19873 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
19874 * util/grub-mkimage.c (image_target_desc): New field pe_target.
19876 (EFI64_HEADER_SIZE): New definition. All users updated.
19877 (image_targets): Add ia64-efi.
19878 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
19879 jumpers_addr. All users updated.
19880 Create function descriptors.
19881 (count_funcs): New function.
19882 (unaligned_uint32): New struct.
19883 (MASK20): New definition.
19884 (MASK19): Likewise.
19885 (MASKF21): Likewise.
19886 (add_value_to_slot_20b): New function.
19887 (add_value_to_slot_21_real): Likewise.
19888 (add_value_to_slot_21): Likewise.
19889 (ia64_kernel_trampoline): New struct.
19890 (nopm): New variable.
19892 (make_trampoline): New function.
19893 (relocate_addresses): Handle ia64.
19894 (make_reloc_section): Likewise.
19895 (load_image): Likewise.
19897 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19899 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
19900 warning. Move variables before code while on it.
19902 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19906 * configure.ac: Rename yeeloong platform to loongson. All users updated.
19907 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
19908 * grub-core/boot/mips/loongson/fuloong.S: New file.
19909 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
19910 Explicitly init CS5536.
19911 [FULOONG]: Don't use serial until CS5536 is available.
19912 Set GPIO based on dumps.
19913 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
19914 [FULOONG]: Handle GPIO and memory controller differences.
19915 Parse machine type in $a2.
19916 * grub-core/boot/mips/startup_raw.S: Determine and save the
19918 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
19919 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
19920 init on architecture type.
19921 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
19922 SIS315E. Don't init at_keyboard on fuloong.
19923 (grub_halt): Support Fuloong.
19924 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
19925 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
19926 (loongson_machtypes): New array.
19927 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
19929 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
19930 config. All users updated. Handle CS5536 serial.
19931 * grub-core/term/serial.c (grub_serial_register): Conditionalise
19932 default port on machine type. Register serial as inactive.
19933 * grub-core/video/sis315pro.c: New file.
19934 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
19936 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
19937 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
19938 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
19939 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
19940 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
19941 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
19943 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
19944 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
19946 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
19947 (grub_arch_machine): New extern var.
19948 * include/grub/mips/loongson/serial.h
19949 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
19950 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
19951 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
19952 (GRUB_MACHINE_SERIAL_PORT0): ... this.
19953 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
19954 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
19955 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
19956 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
19957 * include/grub/term.h (grub_term_register_input_inactive): New inline
19959 (grub_term_register_output_inactive): Likewise.
19960 * include/grub/video.h (grub_video_driver_id): New value
19961 GRUB_VIDEO_DRIVER_SIS315PRO.
19962 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
19963 New field "names". All users updated.
19964 New field value IMAGE_FULOONG_FLASH.
19965 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
19967 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
19969 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
19970 and add some clarification.
19972 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19974 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
19975 platforms if kernel is compressed.
19977 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19979 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
19980 unused modules since currently referrence counter isn't reliable and
19981 there isn't much memory to recover there anyway.
19983 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19985 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
19986 rather than resetting it to allow modules to reference themselves
19989 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19991 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
19992 counter on dependencies since grub_dl_unref already handles this.
19994 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19996 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
19997 on error if not already done.
19999 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20001 Fix few potential memory misusage.
20003 * grub-core/font/font.c (load_font_index): Don't free char_index to
20005 (grub_font_load): Zero-fill font at alloc for safety.
20006 Close file on error.
20007 (free_font): Free bmp_idx.
20009 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20011 * docs/grub.texi (Installation): Fix several outdated claims.
20013 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20015 Handle module_license on windows.
20017 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
20019 (insert_string): Make argument const char * instead of char *.
20020 (write_section_data): Handle long section names.
20021 Handle module_license.
20023 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20025 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
20026 handle class-free menuentries.
20027 (grub_normal_add_menu_entry): Add a check to be sure.
20029 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20031 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
20034 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20036 * configure.ac: Bump version to 1.99.
20038 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20040 Give ATA device a bit more time on first try in order to allow disks
20043 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
20044 if dev->present is 1. Reset dev->present on failure.
20045 (grub_ata_device_initialize): Set dev->present to 1.
20046 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
20047 (grub_ata_device): New member 'present'.
20049 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20051 * util/grub-mkimage.c (generate_image): Update hash.
20053 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20055 Flush caches on DMA memory.
20057 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
20058 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
20059 (grub_dma_free): Likewise.
20060 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
20062 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20064 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
20065 to avoid asm treating ld and sd as macros.
20067 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20069 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
20072 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20074 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
20075 grub_decompress_core since later would fail if grub_decompress_core
20078 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20080 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
20081 R_MIPS_JALR since it's used by newer compiler.
20083 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
20085 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
20087 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20089 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
20090 file_path to 0 for surety.
20091 (grub_chainloader_boot): Set exit_data to NULL.
20092 Unset the loader once done.
20093 (grub_cmd_chainloader): Fix confusing error message if file is empty.
20095 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20097 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
20098 unknown key into a dprintf.
20100 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20102 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
20103 on first non-existant partition.
20105 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20107 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
20109 Reported by: Mark Korenberg.
20111 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20113 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
20116 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20118 * util/grub-mkimage.c (main): Explicitely flush and sync the output
20119 before closing to ensure that it will be readable by grub-setup.
20121 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20123 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
20124 (devpath_1): Use MAKE_PIWG_PATH.
20125 (devpath_2): Likewise.
20126 (devpath_3): Likewise.
20127 (devpath_4): Likewise.
20128 (devpath_5): Likewise.
20129 (devpath_6): Likewise.
20131 The appleldr.mod was checked that to be binary identical to previous
20134 2011-05-05 Zach <mikezackles>
20136 Support 2010 Macbooks.
20138 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
20139 (devs): Add devpath_6.
20141 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20143 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
20144 /dev/random. /dev/urandom is good enough for our purposes (salting).
20146 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20148 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
20150 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20152 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
20155 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20157 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
20158 and not 0 on failure.
20160 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20162 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
20163 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
20164 disk; otherwise grub_fs_probe will not fall back to the next
20166 (grub_pxefs_open): Likewise, for consistency.
20167 Reported and tested by: Ezekiel Grave.
20169 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20171 * tests/partmap_test.in: Don't hardcode path to parted.
20172 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
20174 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
20176 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
20177 of `ls' to find out which devices are available.
20179 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20181 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
20182 than source address for efi mmap buffer.
20184 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20186 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
20187 wrong action on non-detecting the magic.
20189 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20191 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
20192 already supplied by another part of the module (fixes compilation on
20195 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20197 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
20198 match the one used by mdadm.
20200 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20202 * po/README: Add instructions for creating po/LINGUAS.
20204 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20206 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
20209 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
20210 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
20211 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
20212 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
20213 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
20214 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
20215 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
20216 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
20217 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
20218 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
20219 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
20220 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
20221 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
20222 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
20223 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
20224 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
20225 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
20226 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
20227 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
20228 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
20229 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
20230 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
20232 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20234 * grub-core/kern/emu/getroot.c
20235 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
20236 test that was incorrectly reintroduced in r3214.
20237 Reported by: Ian Dall. Fixes Savannah bug #33133.
20239 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20241 Fix stack pointer handling in 16-bit relocator.
20243 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
20244 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
20245 Fixes Ubuntu bug #683904.
20247 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20249 * configure.ac: Bump version to 1.99~rc2.
20251 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20253 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
20254 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
20255 * grub-core/lib/x86_64/setjmp.S: Likewise.
20256 * grub-core/lib/mips/setjmp.S: Likewise.
20257 * grub-core/lib/powerpc/setjmp.S: Likewise.
20258 * grub-core/lib/sparc64/setjmp.S: Likewise.
20260 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20262 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
20263 * grub-core/lib/efi/datetime.c: Likewise.
20265 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20267 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
20269 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
20270 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
20271 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
20273 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20275 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
20277 (grub_gfxterm_term_init): Likewise.
20279 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20281 Take into account the decorations the computing menu entry width.
20283 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
20284 (grub_gfxmenu_create_box): Register get_border_width.
20285 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
20287 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
20290 2011-04-18 Endres Puschner <code@e7p.de>
20292 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
20293 Don't skip first class.
20295 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20297 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
20299 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
20301 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20303 Complete 64-bit division support.
20305 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
20306 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
20307 * include/grub/misc.h (grub_divmod64): Rename to ...
20308 (grub_divmod64_full): ... this.
20309 (grub_divmod64): New inline function.
20311 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20313 * util/grub-mkimage.c (generate_image): Add forgotten comma.
20315 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20317 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
20318 performing the necessary test.
20320 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20322 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
20323 (kfreebsd.elf): Likewise.
20324 (pc-chainloader.elf): Likewise.
20325 (ntldr.elf): Likewise.
20327 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20329 Identify RAID by its UUID rather than (guessed) name.
20331 * grub-core/disk/raid.c (ascii2hex): New function.
20332 (grub_raid_open): Accept mduuid/%s specification.
20333 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
20334 (get_mdadm_uuid): ... this.
20335 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
20337 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
20339 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
20342 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20344 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
20346 * util/grub.d/20_linux_xen.in: Likewise.
20348 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20350 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
20351 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
20353 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20354 Build a list of relevant visible mounts using the mnt_id and
20355 parent_mnt_id fields, and then scan that list at the end.
20357 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20359 * docs/grub.texi (normal): New section.
20360 (normal_exit): New section.
20361 (Embedded configuration): Add reference to normal.
20362 (GRUB only offers a rescue shell): Likewise.
20363 * docs/grub-dev.texi (Error Handling): Fix typo.
20365 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20367 * NEWS: Drop obsolete entry about probe-only btrfs support.
20369 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20371 * util/import_gcry.py: Fix typo.
20373 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20375 * NEWS: Add btrfs support.
20377 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20378 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20380 BtrFS support. Written by me (Vladimir) with important bugfixes and
20381 even more important testing by Colin.
20383 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
20384 * grub-core/Makefile.core.def (btrfs): Add crc.c.
20385 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
20386 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
20387 mem_input_off and mem_input. All users updated to accept in-RAM input.
20388 (gzio_seek): New function.
20389 (test_zlib_header): Likewise.
20390 (grub_gzio_read): Likewise.
20391 (grub_zlib_decompress): Likewise.
20392 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
20393 Accept partial and non-virtual mounts.
20394 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
20395 avoid receiving /dev/dm-X as device.
20396 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
20397 Handle bind and partial mounts.
20398 * grub-core/lib/crc.c: New file.
20399 * include/grub/deflate.h: Likewise.
20400 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
20402 * include/grub/lib/crc.h: New file.
20404 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20406 Implement automatic module license checking according to new GNU
20409 * grub-core/kern/dl.c (grub_dl_check_license): New function.
20410 (grub_dl_load_core): Use grub_dl_check_license.
20411 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
20412 (GRUB_MOD_LICENSE): Likewise.
20413 (GRUB_MOD_DUAL_LICENSE): Likewise.
20414 All modules updated.
20416 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20418 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
20419 reserved_first_sector to 1. btrfs reserves plenty of space for boot
20421 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
20423 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20425 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
20427 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20429 * util/grub-fstest.c (read_file): Report GRUB error if file opening
20432 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20434 * grub-core/kern/file.c (grub_file_open): Don't take into account the
20435 parenthesis in the middle of the filename.
20437 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20439 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
20440 rather than trying to put initrd way too high.
20441 Reported by: Ryan Lortie <desrt@desrt.ca>
20443 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20445 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
20446 improperly removed string.
20448 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20450 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
20452 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
20453 (open_device) Likewise.
20454 (grub_util_biosdisk_close): Likewise.
20455 Reported by: Mark Korenberg.
20457 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
20459 * util/grub-mkconfig_lib.in: Add missing quotes.
20461 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
20463 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
20466 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20468 Dynamically count the number of lines for the lower banner.
20470 * grub-core/normal/menu_entry.c (per_term_screen): New member
20472 (print_down): Use num_entries.
20473 (update_screen): Likewise.
20474 (grub_menu_entry_run): Set num_entries.
20475 * grub-core/normal/menu_text.c (menu_viewer_data): New member
20477 (grub_print_message_indented): Move real part to ...
20478 (grub_print_message_indented_real): ... here. Additional argument
20480 (draw_border): Additional argument num_entries.
20481 (print_message): Additional argument dry_run.
20482 (print_entries): Receive menu viewer data.
20483 (grub_menu_init_page): New argment num_entries.
20484 (menu_text_set_chosen_entry): Use num_entries.
20485 (grub_menu_try_text): Likewise.
20486 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
20488 (grub_ucs4_count_lines): New function.
20489 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
20490 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
20491 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
20492 (grub_term_border_height): Likewise.
20493 (grub_term_num_entries): Likewise.
20495 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20497 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
20498 Remove now unused string.
20500 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20502 * docs/grub-dev.texi (Finding your way around): Update for 1.99
20504 (Getting started): GRUB is developed in Bazaar now, not Subversion.
20506 (Comment): Fix typo.
20507 (Getting started): General copy-editing.
20508 (Typical Development Experience): Likewise.
20509 (Error Handling): Likewise.
20510 (Video API): Likewise.
20512 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20514 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
20517 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20519 * util/grub-mkimage.c (main): Handle special naming of yeeloong
20522 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20524 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
20525 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
20528 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20530 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
20531 grub_strcpy since the lines aren't necessarily 0-terminated.
20533 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20535 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
20538 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20540 * grub-core/commands/probe.c (options): Argument to set isn't optional.
20541 (GRUB_MOD_INIT): DEVICE isn't optional.
20543 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20545 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
20546 word on new line if it's too long anyway. Fixes a hang.
20548 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20550 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
20552 * util/grub-setup.c (main): Reuse md device name if available.
20553 * util/raid.c (grub_util_raid_getmembers): Receive device name and
20554 not GRUB name as argument.
20555 Based on patch by: Florian Wagner <fwagner>.
20557 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20559 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20560 Place mbi on low memory for better compatibility.
20562 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20564 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
20566 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20567 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20569 * autogen.sh: Ensure that collate and ctype locale is C.
20570 * conf/Makefile.common: Likewise.
20572 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20574 * grub-core/normal/menu.c: Add missing include.
20576 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20578 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
20580 2011-04-08 Martin Zuther <mzuther@mzuther.de>
20582 * util/grub-mkconfig.in: Ignore emacsen backup.
20584 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20586 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
20588 (grub_util_biosdisk_close): Likewise.
20590 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20592 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
20593 const attribute and use grub_isdigit.
20595 2011-04-06 Andrey <dev_null@ukr.net>
20597 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
20600 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20602 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
20603 useful grub_dprintf's.
20605 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20607 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
20609 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20611 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
20613 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20615 Output errors if theme loading failed.
20617 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
20618 grub_gfxterm_fullscreen on error paths to ...
20619 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
20620 theme loading error.
20622 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20624 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
20625 space for older compilers.
20626 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20628 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20630 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
20631 and report them as not RAID members since they are useless for GRUB.
20632 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20634 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20636 Increase LVM implementation robustness in order not to crash on
20637 configurations like pvmove. Previously code assumed that in some places
20638 only lvs or only pvs are used whereas it seems that they are used
20641 * grub-core/disk/lvm.c (read_node): New function.
20642 (read_lv): Use read_node.
20643 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
20644 Match volumes only at the end when all lvs are found. Take both
20645 pvs (first) and lvs (second) into account.
20646 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
20647 mirror_* into node_*. All users updated.
20648 (grub_lvm_stripe): Merge this ...
20649 (grub_lvm_mirror): ... and this ...
20650 (grub_lvm_node): ... into this. All users updated.
20652 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20654 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
20655 of function to allow further scanning for LVMs.
20657 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20659 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
20660 on failed seek as it breaks open fd reusage.
20662 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20664 * util/grub-install.in: Add a recommendation to use --recheck before
20667 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20669 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
20672 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20674 GRUB developper manual based on existing Internals section and
20675 contributions by the various authors with active copyright assignment.
20677 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
20678 * docs/font_char_metrics.png: New file.
20679 * docs/font_char_metrics.txt: Likewise.
20680 * docs/grub-dev.texi: Likewise.
20681 * docs/grub.texi (Internals): Move from here ...
20682 * docs/grub-dev.texi: ... here.
20684 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20686 Store the loopback device as data on loopback grub_disk structures,
20687 rather than the file it points to. This fixes use of freed memory
20688 if an existing loopback device is replaced.
20690 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
20691 disk->data, not dev->file.
20692 (grub_loopback_read): Adjust file assignment to match.
20693 Fixes Ubuntu bug #742967.
20695 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20697 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
20698 when replacing an existing device.
20700 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
20702 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
20703 memory corruptions.
20705 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
20707 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
20708 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
20709 (grub_jfs_read_inode): Likewise.
20710 (grub_jfs_opendir): Likewise. Remove now useless casts.
20711 (grub_jfs_getent): Likewise.
20712 Make ino a grub_uint32_t rather than int.
20713 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
20714 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
20715 division and module with bit operations.
20716 (grub_jfs_find_file): Make ino a grub_uint32_t.
20717 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
20719 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20721 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
20722 warning. (This was in fact always initialised before use, but GCC
20723 wasn't smart enough to prove that.)
20724 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
20726 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20728 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
20730 (efi_wrap_1): Likewise.
20731 (efi_wrap_2): Likewise.
20732 (efi_wrap_3): Likewise.
20733 (efi_wrap_4): Likewise.
20734 (efi_wrap_5): Likewise.
20735 (efi_wrap_6): Likewise.
20736 (efi_wrap_10): Likewise.
20737 Based on information by: Red Hat/Peter Jones.
20739 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20741 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
20742 set-but-not-used variable.
20744 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20746 * docs/grub.texi (Simple configuration): Be more explicit about
20747 GRUB_DEFAULT, and add an example.
20748 Reported by: Leslie Rhorer.
20750 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20752 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
20755 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20757 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
20758 * util/grub.d/20_linux_xen.in: Likewise.
20760 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20762 * util/grub.d/10_linux.in: Try alternative config filenames where
20763 we parse config file.
20764 * util/grub.d/20_linux_xen.in: Likewise.
20766 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20768 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
20769 * util/grub.d/20_linux_xen.in: Likewise.
20771 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20773 * grub-core/disk/raid.c (insert_array): Add few potentially
20774 useful grub_util_info.
20775 (grub_raid_register): Likewise.
20777 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20779 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20780 Preserve partition number in mdadm code path.
20782 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20784 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20785 few potentially useful grub_util_info.
20787 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20789 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20791 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20793 * docs/grub.texi (default): Use @example rather than nested
20794 itemized lists to avoid breaking gendocs.
20796 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20798 * docs/grub.texi (Future): Update.
20800 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20802 * docs/grub.texi (Environment): New chapter.
20803 (Changes from GRUB Legacy): Link to "Environment block" section for
20804 details of limitations.
20805 (Simple configuration): Likewise. Link to documentation of gfxmode
20806 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20808 (Shell-like scripting): Note that normal variables are stored in the
20810 (gettext): Link to documentation of lang and locale_dir.
20811 (list_env): New section.
20812 (load_env): New section.
20813 (save_env): New section.
20815 (Reporting bugs): Fix typo.
20817 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20819 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20822 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20824 * grub-core/term/at_keyboard.c (set_scancodes)
20825 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20827 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20829 * docs/grub.texi (Menu-specific commands): Remove some semantics
20830 that were true in GRUB Legacy but not in GRUB 2.
20831 (submenu): New section.
20832 (false): New section.
20833 (read): New section.
20834 (true): New section.
20836 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20838 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20840 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20842 * docs/grub.texi (Simple configuration): Explain some of the
20843 current limitations of grub-mkconfig.
20844 Reported by: Leslie Rhorer.
20846 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20848 Old macs search for boot.efi rather than for bootia32.efi.
20850 * util/grub-install.in: Copy bootia32.efi to boot.efi.
20851 * util/grub-mkrescue.in: Likewise.
20852 Suggested by: Peter Jones.
20854 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20856 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
20858 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20860 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
20861 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
20862 (grub_lvm_mirror): New struct.
20863 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
20864 (grub_lvm_iterate): Iterate only visible volumes.
20865 (grub_lvm_read): Factor out to ..
20866 (read_lv): ... this. Support mirrors.
20867 (grub_lvm_read): New wrapper function.
20868 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
20869 stripped or mirrored.
20871 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20873 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
20875 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20877 * docs/grub.texi (loopback): New section.
20879 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20881 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
20884 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20886 * docs/grub.texi (BIOS installation): New section, partly based on
20887 previous text in other sections.
20888 (Installing GRUB using grub-install): Replace BIOS discussion with a
20890 (Images): Likewise.
20892 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20894 * grub-core/kern/emu/hostdisk.c (find_partition_start)
20895 [HAVE_DIOCGDINFO]: Add safety checks.
20897 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20899 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
20900 per default compiled in kernel and prior to 8.0 isn't shipped at all.
20902 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20904 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
20905 real_sb->size is zero (e.g. RAID-0), get the disk size from
20906 real_sb->data_size instead.
20907 Fixes Ubuntu bug #743136.
20909 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20911 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
20912 printf clauses for printing size and start.
20914 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20916 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
20917 Reported and tested by: Timothy Nikkel.
20919 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20921 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
20922 (dirty_region_add_real): ... this.
20923 (dirty_region_add): Don't discard margin refresh when performing
20926 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20928 * grub-core/lib/relocator.c (allocate_regstart)
20929 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
20930 terminals are capabple of malloc-free operation.
20931 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20932 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20934 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
20936 * util/grub-setup.c: Copy the partition table zone if floppy support
20937 is disabled, even if no partition table is found.
20939 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
20940 during POST if an invalid partition table is contained in the PBR
20941 of the active partition when GRUB is installed to a partition.
20943 2011-03-28 Colin Watson <cjwatson@debian.org>
20945 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
20948 2011-03-28 Colin Watson <cjwatson@debian.org>
20950 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
20951 to be specific about what kind of RAID device we're scanning for.
20953 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
20955 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
20956 return freed string.
20958 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20960 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
20962 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20964 Use libgeom on FreeBSD to detect partitions.
20966 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
20967 (grub-mkrelpath): Likewise.
20968 (grub-script-check): Likewise.
20969 (grub-editenv): Likewise.
20970 (grub-mkpasswd-pbkdf2): Likewise.
20971 (grub-fstest): Likewise.
20972 (grub-mkfont): Likewise.
20973 (grub-mkdevicemap): Likewise.
20974 (grub-probe): Likewise.
20975 (grub-setup): Likewise.
20976 (grub-ofpathname): Likewise.
20977 (grub-mklayout): Likewise.
20978 (example_unit_test): Likewise.
20979 (grub-menulst2cfg): Likewise.
20980 * grub-core/Makefile.core.def (grub-emu): Likewise.
20981 (grub-emu-lite): Likewise.
20982 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
20983 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
20984 define HAVE_DIOCGDINFO.
20985 (follow_geom_up) [FreeBSD]: New function.
20986 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
20987 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
20988 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
20989 unconditionally of HAVE_DIOCGDINFO.
20991 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20993 Fix FreeBSD compilation problem.
20995 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
20996 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
20998 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
21000 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
21001 Switch back to page zero before loading a kernel, since some kernel
21002 drivers expect that.
21003 Thanks to: Felix Kuehling.
21005 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21007 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
21008 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
21009 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
21011 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21013 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
21014 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
21016 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21018 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
21019 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
21020 malloc is disabled.
21022 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21024 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
21025 for modules headers when counting the needed allocation size.
21027 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21029 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
21030 if no ASCII character is found to prevent crash.
21032 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
21034 * grub-core/video/bitmap.c (match_extension): Ignore case.
21036 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21038 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
21040 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21042 * grub-core/script/parser.y: Declare "time" as valid argument.
21044 2011-03-23 Peter Jones <pjones@redhat.com>
21046 Fix incorrect assert failure reporting.
21048 * grub-core/tests/example_functional_test.c (example_test): Add
21050 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
21051 (failure_start): ...this. Check that malloc succeeded.
21052 Don't call xvasprintf. Return failure struct.
21053 (failure_append_vtext): New function.
21054 (failure_append_text): Likewise.
21055 (add_failure): Likewise.
21056 (grub_test_assert_helper): Likewise.
21057 * include/grub/test.h (grub_test_assert_helper): New declaration.
21058 (grub_test_assert): Macro rewritten.
21060 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21062 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
21064 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21066 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
21068 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21070 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
21071 into GRUB-style one.
21073 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21075 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
21076 error and not grub_errno.
21077 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
21079 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21081 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
21082 GRUB_USB_SPEED_NONE in case of failure and not the error code.
21084 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21086 * grub-core/efiemu/i386/pc/cfgtables.c
21087 (grub_machine_efiemu_init_tables): Make declaration a prototype.
21088 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
21089 (grub_xnu_unlock): Likewise.
21090 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
21092 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21094 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
21095 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
21096 * grub-core/commands/hashsum.c (aliases): Likewise.
21097 * grub-core/commands/setpci.c (pci_registers): Likewise.
21098 * grub-core/disk/usbms.c (attach_hook): Likewise.
21099 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
21100 (zio_checksum_table): Likewise.
21101 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
21102 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
21103 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
21104 * grub-core/lib/relocator.c (leftovers): Likewise.
21105 (extra_blocks): Likewise.
21106 * grub-core/loader/i386/bsd.c (relocator): Likewise.
21107 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
21108 (modules_last): Likewise.
21109 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
21110 (devices): Likewise.
21111 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
21112 (modules_last): Likewise.
21113 * grub-core/normal/auth.c (users): Likewise.
21114 * grub-core/normal/context.c (initial_menu): Likewise.
21115 (current_menu): Likewise.
21116 * grub-core/normal/crypto.c (crypto_specs): Likewise.
21117 * grub-core/term/serial.c (grub_serial_ports): Likewise.
21118 (grub_serial_terminfo_input_template): Likewise.
21119 (grub_serial_terminfo_output_template): Likewise.
21120 (grub_serial_terminfo_input): Likewise.
21121 (grub_serial_terminfo_output): Likewise.
21122 (registered): Likewise.
21123 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
21125 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21127 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
21128 grub_video_mode_type_t.
21129 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
21130 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
21131 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
21133 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21135 * util/grub-install.in: Correct the x86-64 name as x86_64.
21137 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
21139 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
21140 initial chunk read from the kernel always includes GRUB's multiboot
21141 header, which is now outside the first sector.
21143 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21145 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
21146 cached mmap_size, so that this works correctly when called multiple
21148 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
21150 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21152 * docs/grub.texi (Simple configuration): Tidy up formatting.
21154 2011-03-07 Szymon Janc <szymon@janc.net.pl>
21156 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
21157 Set-but-not-used variable removed.
21159 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21161 Workaround yet another IEEE1275 bug.
21163 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
21164 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
21165 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
21166 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
21168 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21169 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
21171 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21173 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
21176 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
21178 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
21179 empty, since in that case we can only generate either nothing or a
21180 syntactically invalid configuration file.
21181 Reported by: Michal Suchanek. Fixes Debian bug #612898.
21183 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21185 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
21186 (Making a GRUB bootable CD-ROM): Likewise.
21187 (Invoking grub-mkrescue): New section.
21188 Reported by: Yann Dirson. Fixes Debian bug #612585.
21190 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21192 * util/grub-install.in: Remove unnecessary brackets from tr
21194 * util/grub.d/10_hurd.in: Likewise.
21195 * util/grub.d/10_kfreebsd.in: Likewise.
21196 * util/grub.d/10_linux.in: Likewise.
21197 * util/grub.d/20_linux_xen.in: Likewise.
21198 Reported by: Jamie Heilman. Fixes Debian bug #612564.
21200 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
21202 * include/grub/file.h (not_easly_seekable): Rename to ...
21203 (not_easily_seekable): ... this. Update all users.
21205 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
21207 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
21210 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
21212 * util/grub-mkimage.c (generate_image): Refuse to create the images
21213 bigger than the actual flash (512K) in Loongson machines. 512K is also
21214 the biggest chip supported by them.
21216 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21218 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
21220 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
21222 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
21223 super_offset field.
21225 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21227 * util/grub-install.in: Ignore install device on platforms
21228 where it doesn't make sense. Always use UUIDs except on pc, efi and
21230 Reported by: Daniel Kahn Gillmor.
21232 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21234 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
21236 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21238 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
21239 (iterate_real): Don't rely on partition being non-NULL.
21241 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21243 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
21244 supported platforms. Put a compile time assert for this rather than
21245 generate a warning with 32-bit shift.
21247 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21249 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
21250 logical expression more readable.
21252 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21254 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
21255 even if some elements have a name.
21256 Reported by: Alexander GQ Gerasiov.
21258 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21260 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
21261 path unreadable if `grub-probe -t abstraction' fails, for example if
21262 memberlist fails on an LVM volume group.
21263 Reported by: Darius Jahandarie.
21265 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21267 * docs/grub.texi (Simple configuration): Document
21268 GRUB_PRELOAD_MODULES.
21270 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
21272 * .bzrignore: Remove nonexistent grub-pbkdf2.
21274 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
21276 * configure.ac: Bump version to 1.99~rc1.
21278 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
21280 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
21283 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21285 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
21288 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21290 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
21292 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21294 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
21297 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21299 Fix compilation on cygwin.
21301 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
21302 -R .drectve on cygwin.
21303 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
21304 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
21305 (COND_CYGWIN): New condition.
21306 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
21307 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
21308 not @TARGET_OBJ2ELF@.
21309 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
21310 type to determine whether aux is to be used.
21312 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21314 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
21315 realpath'ed device string.
21316 Handle floppy (somewhat).
21317 Issue error in unknown case rather than garbage.
21318 Reported by: Axel Beckert.
21320 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21322 * util/grub.d/00_header.in (load_video): Handle the case when no video
21324 Thanks to: Axel Beckert.
21326 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21328 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
21329 variable. Fixes problem on big endian platforms.
21331 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21333 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
21334 It doesn't work well there.
21336 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21338 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
21340 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
21341 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
21344 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21346 Use alias->path rather than buggy "canon".
21348 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
21349 (ofdisk_hash_add): New argument curcan. All users updated.
21351 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21353 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
21355 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21357 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
21358 loadmask before doing any calculations. Use correct type for offset.
21359 (grub_linux_load64): Likewise.
21361 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21363 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
21365 (console_grub_equivalences_unshift): Likewise.
21366 Reported by: Daniel Dehennin.
21368 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21370 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
21371 (set_env_limn_ro): Likewise.
21372 (GRUB_MOD_INIT): Likewise.
21373 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
21374 ARRAY_SIZE while on it.
21375 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
21376 * grub-core/normal/context.c (grub_env_export): Move from here ...
21377 * grub-core/kern/env.c (grub_env_export): ... here.
21378 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
21380 * grub-core/kern/main.c (grub_main): Export root and prefix.
21381 * include/grub/env.h (grub_env_export): Export.
21382 Reported by: Seth Goldberg.
21384 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21386 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21387 Take into account space used by ELF sections and multiboot palette.
21388 Reported by: Grégoire Sutre.
21390 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21394 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21396 Pass more appropriate video id to Linux.
21398 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
21399 grub_video_get_driver_id and variable gfxpayloadforcelfb to
21401 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
21402 shift params->lfb_size.
21403 * include/grub/i386/linux.h: Make an enume out of have_vga values.
21405 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21407 * util/grub-menulst2cfg.c: Add missing include of misc.h.
21409 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21411 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
21412 separator and pass bootpath/devid even if only one of them is available.
21413 Reported by: Seth Goldberg.
21415 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21417 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
21418 implementations bug on them.
21420 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
21422 (filter_memory_map): Likewise.
21424 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21426 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
21427 Reported by: nebuchadnezzar.
21429 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21431 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
21432 Reported by: nebuchadnezzar.
21434 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21436 Submenu default support.
21438 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
21439 auto_boot. All users updated.
21441 Handle chosen and default with submenus.
21442 (grub_menu_execute_with_fallback): Declared static.
21443 Don't notify failure if autobooted. Upper level does it.
21444 (menuentry_eq): New function.
21445 (get_entry_number): Use menuentry_eq.
21446 (show_menu): New parameter "autobooted". All users updated.
21447 (grub_show_menu): Likewise.
21448 * include/grub/normal.h (grub_show_menu): Likewise.
21449 * include/grub/menu.h (grub_menu_execute_entry): Removed.
21450 (grub_menu_execute_with_fallback): Likewise.
21452 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21454 * util/grub-mklayout.c (usage): Update help text.
21456 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21458 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
21460 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21462 * util/grub-menulst2cfg.c (main): Trim the line.
21464 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21466 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
21467 (grub_machine_init): Don't check amount of low memory as reportedly
21468 INT 12h can be broken and if low memory is too low we wouldn't have
21469 gotten into grub_machine_init anyway.
21471 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21473 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
21474 (grub_machine_mmap_iterate): Take low memory into account
21476 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21478 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
21480 Reported by: TiCPU.
21482 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21484 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
21487 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21489 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
21490 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
21492 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21494 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
21495 openbsd and netbsd types being in part_bsd module.
21497 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21499 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
21500 (_FILE_OFFSET_BITS): Likewise.
21501 Reported by: Seth Goldberg.
21503 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21505 * configure.ac: Check for libdevmapper header.
21507 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21509 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
21511 (fzap_lookup): Likewise.
21512 (dnode_get): Likewise.
21513 (make_mdn): Likewise.
21514 (zfs_mount): Likewise.
21515 (fzap_iterate): Use temporary pointer to avoid aliasing.
21516 (grub_zfs_read): Likewise.
21517 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
21518 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
21519 pointers to avoid aliasing.
21520 (grub_cmd_xnu_kernel64): Likewise.
21521 (grub_xnu_load_driver): Likewise.
21523 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21525 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
21527 (grub_cmd_terminal_output): Likewise.
21528 Reported and tested by: Grégoire Sutre.
21530 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21532 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
21534 Reported and tested by: Grégoire Sutre.
21536 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21538 * configure.ac: Do CPU substitution even if it's specified explicitly.
21539 Reported and tested by: Alain Greppin.
21541 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21543 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
21544 Reported and tested by: Alain Greppin.
21546 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21548 Satisfy some bison versions need for inttypes.h.
21550 * grub-core/lib/posix_wrap/inttypes.h: New file.
21551 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
21552 (int16_t): Likewise.
21553 (int32_t): Likewise.
21554 (int64_t): Likewise.
21555 Reported and tested by: Alain Greppin.
21557 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21559 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
21560 Silence spurious warning.
21561 Reported and tested by: Alain Greppin.
21563 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21565 * docs/grub.texi (Support automatic decompression): Update with xz
21566 decompression support.
21568 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21570 Improve loaders' kernel command line handling.
21572 * grub-core/lib/cmdline.c: New file.
21573 * include/grub/lib/cmdline.h: Likewise.
21574 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
21575 grub_create_loader_cmdline to create kernel command line.
21576 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21577 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
21578 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
21579 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
21580 (linux): Add lib/cmdline.c on common.
21582 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21584 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
21585 inopos might be unaligned.
21587 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21589 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
21590 endian transformations.
21591 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21592 Based on report by: Doug Nazar.
21594 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
21596 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
21597 array->members[i].start_sector.
21598 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
21600 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21602 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
21603 Reported and tested by: Grégoire Sutre.
21605 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21607 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
21608 avoid causing test failures by clearing the screen.
21610 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21612 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
21613 Fix prefix check to handle the case where dir ends with a slash
21614 (most significantly, "/" itself).
21615 Reported by: Michael Vogt.
21617 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21619 Run terminfo_cls on initing terminfo output to clear the screen and
21620 move the cursor to (0,0).
21622 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
21623 Call grub_terminfo_output_init.
21624 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
21625 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
21626 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
21628 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21630 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
21633 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21635 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
21638 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21640 The E820 type 5 is BADRAM, not EXEC_CODE.
21642 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21643 (GRUB_E820_BADRAM): New define.
21644 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
21645 into reserved. Propagate BADRAM.
21646 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21647 (GRUB_E820_BADRAM): New define.
21649 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21651 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
21652 Ignore the memory post-4G.
21653 (grub_relocator_firmware_alloc_region): Additional debug statement.
21655 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21657 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
21659 Reported by: David Pravec.
21661 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21663 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
21666 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21668 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
21670 (grub_reed_solomon_recover): Likewise.
21672 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21674 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
21676 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21678 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
21681 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
21683 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
21684 descriptions of extract_legacy_entries_source and
21685 extract_legacy_entries_configfile.
21686 Reported by: Seung Soo, Ha.
21688 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
21690 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
21691 on devices that do not implement function 0.
21693 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
21695 * grub-core/fs/hfsplus.c: Make parent unsigned.
21696 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
21698 (grub_hfsplus_cmp_extkey): Likewise
21700 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21702 * util/grub-install.in: Correctly use bootloader_id and not
21703 GRUB_DISTRIBUTOR on efibootmgr line.
21705 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21707 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
21709 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
21711 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
21712 Xen and reorder menu item wording to make it clearer that this entry
21713 will launch Xen. Print separate messages when loading Xen and
21716 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21718 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
21719 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
21720 loop in case of incorrect amiga partmap.
21722 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21724 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
21725 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
21728 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21730 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
21732 Reported by: crocket
21734 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21736 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
21738 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
21740 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21742 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
21744 (grub_cmd_xnu_kextdir): Likewise.
21745 (grub_cmd_xnu_splash): Likewise.
21747 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21749 Avoid using Reed-Solomon with 0 redundancy.
21751 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
21752 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
21754 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
21755 (grub_reed_solomon_recover): Likewise.
21757 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21759 Don't use disk subsystem in freebsd_boot.
21761 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
21762 (freebsd_biosdev): Likewise.
21763 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
21764 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
21766 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
21768 Handling of files of unknown size is currently limited. They can't be
21769 used e.g. for initrd or modules. Moreover gzip handling of not
21770 easily seekable files is buggy. Disable unknown file size for now. May
21771 be inefficient but works.
21773 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21774 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21776 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21778 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21781 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21783 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21785 2010-12-25 Shea Levy <shlevy>
21787 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21789 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21791 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21792 Windows Server 2008.
21793 Reported by: Devin Giddings.
21795 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21797 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21798 writing an error message because of async power management.
21799 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21800 (grub_reboot): Likewise.
21802 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21804 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21805 keep unit tests from failing when they shouldn't.
21807 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21809 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21810 previous patch increased the size of the RS code by 20 bytes (at
21811 least with gcc-4.4), so increase this by 20 bytes to match.
21812 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21814 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21816 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21817 scratch area. Make sure to initialise chosen in standalone mode as
21818 well as non-standalone.
21819 Reported by: Robert Hooker and Andy Whitcroft.
21820 Tested by: Andy Whitcroft.
21822 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21824 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21825 constructing a new unescaped string and passing it to grub_xputs in
21826 one go, rather than passing characters to grub_printf one at a time.
21828 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21830 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21831 initialising utf16.
21833 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21835 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21836 comment. Add an extra layer of quotation, requiring the output of
21837 this function to be used in a printf format string.
21838 (gettext_printf): New function.
21839 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21840 Extract translatable strings from here-documents and use a temporary
21841 variable instead, so that xgettext can find them.
21842 * util/grub.d/10_kfreebsd.in: Likewise.
21843 * util/grub.d/10_linux.in: Likewise.
21844 * util/grub.d/20_linux_xen.in: Likewise.
21846 * po/grub.d.sed: New file.
21847 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
21848 arguments. Set c-format flags on all strings extracted from
21849 util/grub.d/ (xgettext refuses to include these itself for strings
21850 it extracted from a shell file, but these really are c-format).
21852 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21854 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
21855 Avoid next pointing to nowhere.
21857 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21859 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
21860 rather than assuming than rootblock is exactly in the middle.
21861 (grub_affs_label): Likewise.
21863 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21865 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
21866 reserved_first_sector to 0.
21867 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
21868 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
21869 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
21871 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21873 Fix handling of UTF-16 UDF labels.
21875 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
21876 (read_string): .. here.
21877 (grub_udf_label): Use read_string.
21879 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
21881 * grub-core/normal/menu_entry.c (run): Execute commands from menu
21882 editor under argument scope.
21883 Reported by: Jordan Uggla
21885 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21887 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
21889 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
21891 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
21892 line, and other keys scroll an entire page (previous handling was
21893 for \r and \n to scroll a page and other keys to scroll two lines).
21895 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21897 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21898 Set ptrdest to correct get_physical_target_address rather than
21899 incorrect get_virtual_current_address.
21901 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
21903 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
21904 correct cat to grub_uint8_t * rather than grub_uint32_t *.
21906 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21908 * .bzrignore: Ignore grub-core/rs_decoder.S.
21910 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21912 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
21913 .mo/.mo.gz opening sequence to ...
21914 (grub_mofile_open_lang): ... here.
21915 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
21916 * util/grub.d/00_header.in (grub_lang): Include country part of
21918 Reported by: Mario Limonciello.
21920 2010-12-09 Robert Millan <rmh@gnu.org>
21922 * NEWS: Document addition of ZFS support.
21924 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
21926 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
21927 rather than `/ 2', as the latter requires -Wa,--divide which would
21928 require bumping our minimum binutils version.
21930 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
21932 * util/grub-script-check.c (main): Print script line number on
21935 2010-12-01 Robert Millan <rmh@gnu.org>
21937 * grub-core/fs/zfs/zfs.c: New file.
21938 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
21939 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
21940 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
21941 * grub-core/fs/zfs/zfsinfo.c: Likewise.
21943 * include/grub/zfs/dmu.h: Likewise.
21944 * include/grub/zfs/dmu_objset.h: Likewise.
21945 * include/grub/zfs/dnode.h: Likewise.
21946 * include/grub/zfs/dsl_dataset.h: Likewise.
21947 * include/grub/zfs/dsl_dir.h: Likewise.
21948 * include/grub/zfs/sa_impl.h: Likewise.
21949 * include/grub/zfs/spa.h: Likewise.
21950 * include/grub/zfs/uberblock_impl.h: Likewise.
21951 * include/grub/zfs/vdev_impl.h: Likewise.
21952 * include/grub/zfs/zap_impl.h: Likewise.
21953 * include/grub/zfs/zap_leaf.h: Likewise.
21954 * include/grub/zfs/zfs.h: Likewise.
21955 * include/grub/zfs/zfs_acl.h: Likewise.
21956 * include/grub/zfs/zfs_znode.h: Likewise.
21957 * include/grub/zfs/zil.h: Likewise.
21958 * include/grub/zfs/zio.h: Likewise.
21959 * include/grub/zfs/zio_checksum.h: Likewise.
21961 * Makefile.util.def: Build ZFS into libgrubmods.
21962 * grub-core/Makefile.core.def: Build zfs.mod.
21964 2010-11-30 Szymon Janc <szymon@janc.net.pl>
21966 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
21968 * grub-core/commands/wildcard.c (match_files): Likewise.
21970 2010-11-30 Robert Millan <rmh@gnu.org>
21972 * grub-core/loader/i386/bsd.c
21973 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
21974 whether kernel is loaded using grub_loader_is_loaded(), rather
21975 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
21976 certain error conditions.
21978 2010-11-30 Robert Millan <rmh@gnu.org>
21980 * grub-core/commands/echo.c: Include `<grub/term.h>'.
21981 (grub_cmd_echo): Call grub_refresh() after printing a message.
21983 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21985 Avoid using tricks for initialising endian variables.
21987 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
21989 (GRUB_MOD_INIT): Don't byte-swap.
21990 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21991 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
21992 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
21993 (grub_swap_bytes32_compile_time): Likewise.
21994 (grub_cpu_to_le32_compile_time): Likewise.
21995 (grub_cpu_to_le16_compile_time): Likewise.
21997 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21999 * util/grub-setup.c (setup): Stop recommending --force. People who
22000 understand the dangers of blocklists are able to find this option
22001 anyway and the ones who don't shouldn't use it anyway.
22003 2010-11-26 Robert Millan <rmh@gnu.org>
22005 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
22008 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
22010 Fix LVM-on-RAID probing.
22012 * util/grub-probe.c (probe): Remember which disk was detected as
22013 RAID (perhaps an LVM physical volume). Use that disk's raidname
22014 rather than that of the top-level disk.
22016 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
22018 Fix cmdline argument quotes for setparams command of menuentry
22021 * grub-core/commands/menuentry.c (setparams_prefix): Use single
22022 quotes for arguments.
22023 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
22024 grub_strchrsub function instead.
22026 * include/grub/misc.h (grub_strchrsub): New function.
22028 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22030 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
22031 effort by skipping "." and ".." entries up-front.
22032 Suggested by: Michael Lazarev.
22034 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22036 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
22037 ldflags to ldadd, to fix link line ordering.
22038 (none_decompress): Likewise.
22040 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22042 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
22044 (grub-emu-lite): Remove kern/emu/cache.S.
22046 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22048 * util/deviceiter.c (compare_devices): If the by-id link for a
22049 device couldn't be resolved, fall back to sorting by the by-id link
22050 rather than segfaulting.
22051 Reported and tested by: Daniel Mierswa.
22053 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22055 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
22056 ldflags, to fix link line ordering.
22058 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22060 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
22061 linkers are picky about this.
22063 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22065 * grub-core/Makefile.am (command.lst): Adjust sed expression
22066 ordering so that extended and priority commands aren't treated as
22069 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22071 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
22072 Remove byte-swapping function calls, which are not valid in
22073 structure initialisers.
22074 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
22076 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
22077 grub_gpt_partition_type_bios_boot.
22079 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22081 Fix test program build on GNU/kFreeBSD.
22083 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
22084 $(LIBNVPAIR)' library dependencies.
22086 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22088 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
22090 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22092 * util/grub-install.in: Remove excessive quoting that broke
22093 installations to RAID devices.
22095 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22097 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
22098 bootloader version instead of 0.
22100 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22102 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
22105 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22107 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
22108 retrieve the metadat sector if size isn't known.
22109 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22111 2010-11-18 Robert Millan <rmh@gnu.org>
22113 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
22114 with grub_memcmp().
22116 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
22118 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
22120 Reported by: Jordan Uggla.
22122 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22124 Make better UTF compliant.
22126 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
22127 sequences as incorrect.
22128 (grub_is_valid_utf8): Likewise.
22129 (grub_utf8_to_ucs4): Likewise.
22130 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
22131 (grub_ucs4_to_utf8_alloc): Likewise.
22132 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
22134 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22136 Make legacy_source behave like source.
22138 * grub-core/commands/legacycfg.c (legacy_file): Don't call
22140 (grub_cmd_legacy_source): Call grub_show_menu if needed.
22142 2010-11-16 Colin Watson <cjwatson@debian.org>
22144 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
22145 (-Wunused implies -Wunused-parameter, but not vice versa).
22147 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
22149 * configure.ac: Make error messages less confusing by testing for
22150 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
22151 accepted, but produces a diagnostic if something else is wrong).
22153 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22155 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
22156 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
22158 (grub_keyboard_controller_init)
22159 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
22160 read the initial state since controller isn't inited yet.
22162 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22164 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
22165 allocate_regbeg may need to create new chunk header.
22167 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22169 Fix quoting in legacy parser.
22171 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
22173 (grub_legacy_parse): Likewise.
22174 Reported by: Jordan Uggla.
22175 Tested by: Jordan Uggla.
22177 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22179 Don't add -lgcc on i386 and x86_64.
22181 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
22182 * conf/Makefile.common (LDADD_KERNEL): Likewise.
22183 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
22185 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22187 * configure.ac: Add -Wno-trampolines when supported.
22189 2010-11-14 Modestas Vainius <modax@debian.org>
22191 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
22194 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22196 Add generic logical block size support for UDF.
22198 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
22199 (GRUB_UDF_BLKSZ): Removed.
22200 (struct grub_udf_data): New field "lbshift" to hold the logical block
22201 size of the file system in log2 format. All users updated.
22202 (sblocklist): Change type to unsigned.
22203 (grub_udf_mount): Change type of "sblklist" to unsigned.
22204 Move AVDP search before VRS recognition, because the latter requires
22205 knowledge of the logical block size, which is detected during the
22207 Detect and validate logical block size during AVDP search, adding
22208 support for block sizes 512, 1024 and 4096.
22209 Make VRS recognition independent of block size.
22211 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22213 Properly handle deleted files on UDF.
22215 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
22216 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
22219 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22221 Support reading files larger than 2 GiB.
22223 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
22224 "offset" to grub_off_t.
22225 (grub_udf_read_file): Likewise for parameter "pos".
22227 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22229 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
22231 (Simple configuration): Refer to Changes from GRUB Legacy about
22232 save_env availability.
22234 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22236 * util/grub-install.in: Ignore empty partition table detection
22237 instead of trying to include part_ module.
22239 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22241 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
22242 LVM on RAID support.
22244 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22246 Properly define WORDS_BIGENDIAN in wrapped environments.
22248 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
22250 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
22252 Reported by: Manoel Rebelo Abranches.
22253 Tested by: Manoel Rebelo Abranches.
22255 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22257 * util/grub-mkconfig.in: Fix quoting.
22259 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22261 Support big ext2 files.
22263 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
22264 (grub_ext2_read_block): Support triple indirect blocks.
22265 (grub_ext2_read_file): Use 64-bit types and read size_high.
22266 (grub_ext2_open): Read size_high.
22267 Reported by: Ximin Luo.
22268 Tested by: Manoel Rebelo Abranches.
22270 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22272 * util/grub-install.in: Handle filenames containing spaces.
22273 Reported by: Jordan Uggla.
22274 Tested by: Jordan Uggla.
22276 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22278 * util/grub-mkconfig.in (grub_script_check): New variable.
22279 Use grub_script_check instead of grub-script-check.
22280 Reported by: Barry Jackson.
22282 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22284 * docs/grub.texi (menu): Correct the order.
22285 Reported by: D. Hugh Redelmeier.
22287 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
22289 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
22292 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22294 * include/grub/elfload.h (grub_elf32_size): New parameter.
22296 Return maximum segments alignment.
22297 (grub_elf64_size): Likewise.
22298 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
22299 Return maximum segments alignment.
22300 (grub_elf64_size): Likewise.
22301 * grub-core/loader/powerpc/ieee1275/linux.c:
22302 (grub_linux_claimmap_iterate): New function. Uses the
22303 "available" property in the "memory" node for memory allocation
22304 for kernel in the PowerPC loader.
22305 (grub_linux_load32): Correctly find linux entry point offset.
22306 (grub_linux_load64): Likewise.
22308 2010-11-07 Robert Millan <rmh@gnu.org>
22310 On mips-yeeloong, build with -march=loongson2f when this flag is
22311 available (GCC >= 4.4).
22312 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
22314 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
22315 or otherwise add -march=mips3.
22317 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
22319 Suppress shell expansion on echo '*' and echo "*" like cases.
22320 Reported by: Jordan Uggla.
22322 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
22323 string arguments before shell expansion.
22324 * tests/grub_cmd_echo.in: New testcases.
22326 2010-11-07 Robert Millan <rmh@gnu.org>
22328 * conf/mips-qemu-mips.rmk: Remove stale file from previous
22331 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
22333 * grub-core/kern/emu/hostdisk.c
22334 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
22336 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22338 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
22339 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
22340 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
22342 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22344 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
22346 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22348 * util/grub-install.in: Replace useless recomendation to pass
22349 --modules with a recomendation to report a bug.
22351 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22353 Properly register serial terminfo.
22354 Reported by: Jordan Uggla
22356 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
22358 (grub_serial_terminfo_output_template): Likewise.
22359 (grub_cmd_serial): Register "serial" with terminfo.
22360 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
22361 grub_serial_terminfo_output.
22363 2010-11-05 Robert Millan <rmh@gnu.org>
22365 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
22368 2010-11-05 Robert Millan <rmh@gnu.org>
22370 On Yeeloong, pass machine type information to Linux.
22372 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
22373 (LOONGSON_MACHTYPE): New macro, set to
22374 "machtype=lemote-yeeloong-2f-8.9inches".
22375 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
22376 additional argument to Linux.
22378 2010-11-04 Robert Millan <rmh@gnu.org>
22380 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
22381 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
22382 (its SATA disks are detected as slaveless IDE master drives on
22384 Reported by Carsten Aulbert.
22386 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
22388 * util/bin2h.c (main): Fix spelling error in generated output.
22390 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
22392 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
22394 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22396 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
22397 vga= option is supplied.
22399 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22401 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
22402 * util/grub.d/10_kfreebsd.in: Likewise.
22403 * util/grub.d/10_linux.in: Likewise.
22404 * util/grub.d/20_linux_xen.in: Likewise.
22406 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22408 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
22409 argument as an argument to no-argument option.
22411 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22413 * util/grub.d/10_linux.in: Add missing load_video with explicit
22414 GRUB_GFXPAYLOAD_LINUX.
22416 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22418 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
22420 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22422 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
22423 elements with invlid index.
22424 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22425 * grub-core/disk/raid.c (insert_array): Automatically reallocate
22427 * include/grub/raid.h (grub_raid_member): New struct.
22428 (grub_raid_array): Transform devices and start_sector into usage of
22429 grub_raid_member. All users updated
22430 (allocated_devs): New member.
22432 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22434 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
22437 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
22439 NetBSD build fix for getline function conflict from gnulib.
22441 * Makefile.util.def (libgrubkern.a): New library for grub kernel
22442 components that depend on gnulib headers.
22443 (libgrubmods.a): Renamed from earlier libgrub.a.
22444 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
22446 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22448 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
22449 install rather than creating a broken install.
22451 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22453 * util/grub-setup.c (argp): Remove misleading example of installing to
22456 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22458 * util/grub-setup.c (setup): Clarify the error message.
22460 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22462 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
22464 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22466 * grub-core/kern/emu/misc.c
22467 (grub_make_system_path_relative_to_its_root)
22468 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
22470 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22472 * grub-core/kern/emu/misc.c
22473 (grub_make_system_path_relative_to_its_root): Revert r2882.
22475 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
22477 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
22478 useless field head. All users updated.
22479 (free_subchunk): Correct handling of IN_REGION subchunk.
22481 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
22483 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
22484 (Supported kernels): Likewise.
22486 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22488 Make mktemp invocations portable.
22490 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
22491 exit if mktemp fails.
22492 * tests/grub_script_blockarg.in: Likewise.
22493 * tests/partmap_test.in: Likewise.
22494 * tests/util/grub-shell-tester.in: Likewise.
22495 * tests/util/grub-shell.in: Likewise.
22496 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22497 * Makefile.am: Likewise, and chain shell commands with `&&'
22499 * util/grub-mkrescue.in: Use the same explicit template as above, and
22500 exit if mktemp fails.
22502 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
22504 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
22505 Linux kernel, reported by Dennis Schridde.
22507 2010-10-17 Szymon Janc <szymon@janc.net.pl>
22509 * grub-core/normal/auth.c (grub_auth_check_authentication):
22510 Set-but-not-used variable removed.
22512 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22514 * docs/grub.texi (GNU/Linux): Document APM unavailability with
22515 32-bit linux protocol.
22517 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22519 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
22520 cursor shape for sanity.
22522 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22524 * docs/grub.texi (Installation): Document buggy BIOS install.
22526 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22528 * docs/grub.texi (Installation): Indent.
22530 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22532 * util/grub-setup.c (setup): New parameter allow_floppy.
22533 (arguments): New member allow_floppy.
22534 (argp_parser): Handle --allow-floppy.
22535 (main): Pass allow_floppy.
22536 * util/grub-install.in: New option --allow-floppy passed though to
22539 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22541 * util/grub-install.in: Handle partitionless disks.
22543 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22545 * util/grub-setup.c (setup): Don't clean blocklists before readability
22548 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22550 * docs/grub.texi (Installation): Document embedding zone. Remove
22551 obsolete grub-install example.
22553 2010-10-16 Szymon Janc <szymon@janc.net.pl>
22555 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
22556 Set-but-not-used variable ifdef'ed.
22557 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
22558 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
22560 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
22561 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
22562 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
22563 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
22564 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
22565 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22566 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
22567 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
22568 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
22569 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
22570 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
22573 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22575 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
22576 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
22579 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22581 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
22582 synonym to _S5_. Needed for some DSDTs.
22584 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22586 Userspace ACPI parser debugging.
22588 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
22589 headers and add relevant defines. Don't include standard headers.
22590 (main) [GRUB_DSDT_TEST]: New function.
22591 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
22592 Don't declare functions.
22594 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22596 Remove dead grub_efi_mm_fini.
22598 * grub-core/kern/efi/mm.c (allocated_page): Removed.
22599 (ALLOCATED_PAGES_SIZE): Likewise.
22600 (MAX_ALLOCATED_PAGES): Likewise.
22601 (allocated_pages): Likewise.
22602 (grub_efi_allocate_pages): Don't record allocated pages.
22603 (grub_efi_free_pages): Likewise.
22604 (grub_efi_mm_init): Likewise.
22605 (grub_efi_mm_fini): Removed.
22607 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22609 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
22610 (grub_efi_mm_init): Take into account the memory map size increase.
22612 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22614 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
22615 (serial_hw_put): Wait based on real time rather than port reads. Don't
22617 * include/grub/serial.h (grub_serial_port): New field broken.
22619 2010-10-16 Robert Millan <rmh@gnu.org>
22621 * grub-core/kern/emu/misc.c
22622 (grub_make_system_path_relative_to_its_root): Fix premature return
22623 when processing non-root ZFS filesystems.
22624 Reported by Sergio Talens-Oliag.
22626 2010-10-15 Robert Millan <rmh@gnu.org>
22628 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
22629 guarantee compressed ones are processed first.
22631 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22633 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
22634 grub_efiemu_autocore.
22636 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22638 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
22640 (grub_console_getkey): Use correct jae opcode rather than ja.
22642 2010-10-12 Robert Millan <rmh@gnu.org>
22644 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
22645 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
22646 variable. All references updated.
22648 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
22650 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
22652 Correctly distinguish mdraid flavours.
22654 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
22655 (insert_array): New argument raid.
22656 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
22657 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
22658 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
22660 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
22662 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
22663 handling of special keys.
22665 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22667 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
22668 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
22670 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22672 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
22673 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
22675 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
22676 Use right endpoint when querying descriptor.
22678 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22680 Clear out 0x80 color bit on EFI.
22682 Reported by: decoder and meta tech.
22684 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
22685 (grub_console_setcolorstate): Clear out 0x80 bit.
22686 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
22687 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
22688 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
22690 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22692 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
22695 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22697 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
22698 mo_file after freeing.
22700 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22702 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
22704 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22706 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
22709 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22711 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
22714 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22716 Put terminfo into core on ieee1275 and yeeloong (needed for console).
22718 * gentpl.py: New groups terminfoinkernel and terminfomodule.
22719 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
22720 and terminfo.h when needed.
22721 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
22722 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
22723 (terminfo): Enable only on terminfokernel.
22724 (extcmd): Likewise.
22725 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
22726 * include/grub/lib/arg.h: Likewise.
22727 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
22728 incorrect usage of ->.
22730 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22732 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
22733 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
22735 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22737 Fix coreboot compilation.
22739 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22740 Take VBE info into account even if only text is supported.
22741 (fill_vbe_info): Take into account the case when only VGA text
22743 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
22744 on coreboot, multiboot and qemu.
22746 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22748 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
22750 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
22752 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22754 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
22757 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22759 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
22760 if they were BSD-style.
22762 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22764 * grub-core/boot/i386/pc/lnxboot.S: Replace
22765 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
22766 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
22768 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22770 Write embedding zone using Reed-Solomon.
22772 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22773 * grub-core/Makefile.am (rs_decoder.S): New target.
22774 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22775 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22776 (multiboot): Move to RS part.
22777 (post_reed_solomon): New label.
22778 (grub_boot_drive): Move to non-RS part since it's modified in memory
22780 Include rs_decoder.S.
22781 * grub-core/lib/reed_solomon.c: New file.
22782 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22784 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22785 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22786 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22787 * include/grub/partition.h (grub_partition_map): Change prototype of
22788 embed to allow returning additional sectors.
22789 * include/grub/reed_solomon.h: New file.
22790 * util/grub-setup.c (setup): Handle Reed-Solomon.
22792 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
22794 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22795 i386 and x86-64 definedness tests.
22797 2010-09-27 Yves Blusseau <blusseau@zetam.org>
22799 Fix generation of kernel_syms.lst
22801 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22804 2010-09-26 Robert Millan <rmh@gnu.org>
22806 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22808 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22809 the pool is an array of devices, iterate through it and return the
22810 first device that passes a stat() test (instead of blindly returning
22813 2010-09-26 Robert Millan <rmh@gnu.org>
22815 Build fixes for GNU/kFreeBSD.
22817 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22818 to programs that require ZFS conversion.
22819 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22820 kernels that don't have FLOPPY_MAJOR.
22822 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22824 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22826 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22828 Fix grub-emu build.
22830 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22831 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22832 mdraid09 and mdraid1x.
22834 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
22836 Re-enable grub-extras.
22838 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22839 avoid confusing Automake. Run autogen only twice, once for the top
22840 level and once for grub-core. Add Makefile.util.def and
22841 Makefile.core.def from extra modules to the appropriate autogen
22842 invocations. If Makefile.common exists in an extra module, include
22843 it in both Makefile.util.am and grub-core/Makefile.core.am;
22844 similarly, include any Makefile.util.common file in Makefile.util.am
22845 and any Makefile.core.common file in grub-core/Makefile.core.am.
22846 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
22847 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
22848 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
22849 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
22851 * gentpl.py (gvar_add): Turn GVARS into a set.
22852 (global_variable_initializers): Sort global variables on output.
22853 (vars_init): New function.
22854 (first_time): Likewise.
22855 (library): Ensure that non-global variable initialisations are
22856 emitted before the first time we emit code for a library block.
22857 Append to variables rather than setting them. Only emit
22858 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
22859 each conditional path.
22860 (program): installdir() emits an Autogen macro, so must be passed to
22861 var_add rather than gvar_add.
22863 (script): Likewise.
22864 (rules): New function, centralising handling for different target
22865 types. Set up Guile association lists for first_time and vars_init,
22866 and send most output to a diversion so that variable initialisations
22867 can be emitted first.
22868 (module_rules): Use new rules function.
22869 (kernel_rules): Likewise.
22870 (image_rules): Likewise.
22871 (library_rules): Likewise.
22872 (program_rules): Likewise.
22873 (script_rules): Likewise.
22874 (data_rules): Likewise.
22876 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
22878 * .bzrignore: Add contrib and grub-core/contrib. Remove
22879 grub-core/Makefile.gcry.am.
22881 2010-09-24 Yves Blusseau <blusseau@zetam.org>
22883 * grub-core/lib/LzFind.c: Add missing include.
22884 * grub-core/lib/LzmaEnc.c: Likewise.
22885 * grub-core/script/lexer.c: Likewise.
22886 * grub-core/script/yylex.l: Likewise.
22887 * util/grub-macho2img.c: Likewise.
22888 * util/grub-menulst2cfg.c: Likewise.
22889 * util/grub-mklayout.c: Likewise.
22890 * util/grub-mkpasswd-pbkdf2.c
22891 * util/grub-mkrelpath.c: Likewise.
22892 * util/resolve.c: Likewise.
22894 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
22896 * Makefile.util.def (example_unit_test): Add
22897 grub-core/gnulib/libgnu.a.
22899 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
22901 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
22903 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
22905 Support xz compression on yeeloong.
22907 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
22908 * configure.ac: Check for LZMA.
22909 * grub-core/Makefile.core.def (xz_decompress): New target.
22910 (none_decompress): Likewise.
22911 * grub-core/boot/decompressor/minilib.c: New file.
22912 * grub-core/boot/decompressor/none.c: Likewise.
22913 * grub-core/boot/decompressor/xz.c: Likewise.
22914 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
22915 * grub-core/kern/mips/cache_flush.S: Likewise.
22916 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
22917 * grub-core/kern/mips/startup.S: Move first stage to ...
22918 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
22920 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
22921 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
22922 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
22923 Allocate statically.
22924 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
22925 Allocate statically or use scratch. Don't check CRC32.
22926 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
22927 Allocate statically. Don't check CRC32.
22928 * include/grub/decompressor.h: New file.
22929 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
22931 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
22932 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
22933 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
22934 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
22935 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
22936 * util/grub-mkimage.c (grub_compression_t): New type.
22937 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
22938 (image_target_desc): New field default_compression.
22939 (image_targets): Adjust yeeloong targets.
22940 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
22941 (compress_kernel): New parameter comp.
22942 (generate_image): Likewise. Handle new compression case.
22943 (options): New option --compression
22945 (main): Handle new option.
22947 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
22949 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
22951 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
22953 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22954 typo in __i386__ conditional.
22956 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22958 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
22961 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22963 Implement EFI and ACPI multiboot2 extensions.
22965 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
22966 new tags as supported.
22967 (acpiv2_size): New function.
22968 (grub_multiboot_get_mbi_size): Take new tags into account.
22969 (grub_multiboot_make_mbi): Add new tags.
22970 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
22972 2010-09-21 Aleš Nesrsta <starous@volny.cz>
22974 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
22975 Added missing configuration of USB device.
22977 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22979 * grub-core/normal/menu_entry.c (run): Make sure we always return
22982 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22984 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
22985 NumberOfPages is UINT64 according to the UEFI specification, not
22986 UINTN. Fix printf format.
22988 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22990 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
22991 `err' to grub_usb_err_t.
22992 Reported and tested by: KESHAV P.R.
22994 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22996 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
22997 tpart non-const, so that we can assign to it. (Since this is a
22998 typedef, the constness refers to the pointer rather than what it
23001 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23003 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
23004 $(top_srcdir)/grub-core/gnulib as well as
23005 $(top_builddir)/grub-core/gnulib.
23006 Reported by: KESHAV P.R.
23008 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23010 * util/grub-install.in: Fix the bootloader ID option to be
23011 consistently --bootloader-id, not --bootloader_id.
23012 Reported by: KESHAV P.R.
23014 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23016 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
23017 check hash checksum." consistently translatable.
23019 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23021 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
23024 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23026 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
23027 (GRUB_MOD_INIT): Register sha1sum command.
23028 (GRUB_MOD_FINI): Unregister sha1sum command.
23030 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23032 Keep boot and grub directory names in sync with utils scripts
23034 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
23035 * config.h.in: Add previous macros.
23036 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
23037 * util/grub-install.in: Use $bootdir and $grubdir variables.
23039 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23041 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
23042 convert partition names to disk names if the new `convert' parameter
23044 (grub_util_biosdisk_get_grub_dev): If opening the disk device
23045 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
23046 disk in its own right. This can happen with Xen disk images.
23048 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23050 * util/grub-editenv.c: Update strings to avoid warnings when generating
23052 * util/grub-setup.c: Likewise.
23054 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23056 * configure.ac: Change version to 1.99~beta0.
23058 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23060 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
23062 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
23064 * include/multiboot.h: Resynced with specification.
23065 * include/multiboot2.h: Likewise.
23067 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23069 Fix po directory handling.
23071 * configure.ac: Create po/Makefile.in rather than po/Makefile.
23072 * grub-core/gnulib/Makefile.am: Import gettext module.
23073 * m4/gnulib-cache.m4: Likewise.
23074 * m4/gnulib-comp.m4: Likewise.
23075 * m4/gettext.m4: New file, from gnulib.
23076 * m4/glibc2.m4: Likewise.
23077 * m4/iconv.m4: Likewise.
23078 * m4/intdiv0.m4: Likewise.
23079 * m4/intl.m4: Likewise.
23080 * m4/intldir.m4: Likewise.
23081 * m4/intlmacosx.m4: Likewise.
23082 * m4/intmax.m4: Likewise.
23083 * m4/inttypes-pri.m4: Likewise.
23084 * m4/lcmessage.m4: Likewise.
23085 * m4/lib-ld.m4: Likewise.
23086 * m4/lib-link.m4: Likewise.
23087 * m4/lib-prefix.m4: Likewise.
23088 * m4/lock.m4: Likewise.
23089 * m4/nls.m4: Likewise.
23090 * m4/po.m4: Likewise.
23091 * m4/printf-posix.m4: Likewise.
23092 * m4/progtest.m4: Likewise.
23093 * m4/threadlib.m4: Likewise.
23094 * m4/uintmax_t.m4: Likewise.
23095 * m4/visibility.m4: Likewise.
23096 * po/Makefile.am: Remove.
23097 * po/Makefile.in.in: New file, from gettext.
23098 ($(DOMAIN).pot-update): Support POTFILES-shell.
23099 * po/Makevars: New file.
23100 * po/POTFILES-shell: Rename to ...
23101 * po/POTFILES-shell.in: ... this. Update.
23102 * po/POTFILES: Rename to ...
23103 * po/POTFILES.in: ... this. Update.
23104 * po/Rules-quot: New file, from gettext.
23105 * po/boldquot.sed: Likewise.
23106 * po/en@boldquot.header: Likewise.
23107 * po/en@quot.header: Likewise.
23108 * po/insert-header.sin: Likewise.
23109 * po/quot.sed: Likewise.
23110 * po/remove-potcdate.sin: Likewise.
23112 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23114 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
23116 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23118 * util/grub.d/20_linux_xen.in: Use submenus.
23120 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23124 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
23125 parameter submenu. All users updated.
23126 * grub-core/normal/main.c (free_menu): Rename to ...
23127 (grub_normal_free_menu): ... this. Made global.
23128 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
23130 * grub-core/normal/menu_entry.c (screen): New field submenu.
23131 (make_screen): Set submenu.
23132 (run): Open new context if requested.
23133 * include/grub/menu.h (grub_menu_entry): New field submenu.
23134 * include/grub/normal.h (grub_normal_free_menu): New proto.
23136 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23138 Menu entries extractor.
23140 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
23142 (GRUB_MOD_INIT): Register new variants.
23143 (GRUB_MOD_FINI): Unregister new variants.
23144 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
23145 into grub_cmd_legacy_source.
23146 (grub_cmd_legacy_source): Implement extractor variants.
23147 (GRUB_MOD_INIT): Register new variants.
23148 (GRUB_MOD_FINI): Unregister new variants.
23149 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
23151 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
23152 search as an extractor.
23153 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
23154 test as an extractor.
23155 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
23157 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
23158 (grub_env_new_context): New function.
23159 (grub_env_context_open): Likewise.
23160 (grub_env_extractor_open): Likewise.
23161 (grub_env_extractor_close): Likewise.
23162 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
23163 grub_extractor_level.
23164 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
23165 * include/grub/env.h (grub_env_extractor_open): New proto.
23166 (grub_env_extractor_close): Likewise.
23167 * include/grub/normal.h (grub_extractor_level): New external variable.
23169 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23171 Make cutmem accept a region specification.
23172 Suggested by: Samuel Thibault
23174 * grub-core/mmap/mmap.c (parsemem): New function.
23175 (grub_cmd_cutmem): Handle new arguments.
23177 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23179 New command cutmem.
23181 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
23182 (GRUB_MOD_INIT): Register new command.
23183 (GRUB_MOD_FINI): Unregister new command.
23185 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23187 Support some annoying BSD and Minix subpartitions.
23189 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
23190 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
23191 Properly handle concatenation.
23192 * grub-core/kern/device.c (grub_device_iterate): Likewise.
23193 * grub-core/normal/completion.c (iterate_partition): Likewise.
23194 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
23195 contain partition. All users updated.
23196 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
23198 (grub_openbsdlabel_partition_map): Likewise.
23199 (bsdlabel_partition_map_iterate): Rename to ..
23200 (iterate_real): ... this. New arguments sector, freebsd and pmap.
23201 (bsdlabel_partition_map_iterate): New function.
23202 (netopenbsdlabel_partition_map_iterate): Likewise.
23203 (netbsdlabel_partition_map_iterate): Likewise.
23204 (openbsdlabel_partition_map_iterate): Likewise.
23205 (GRUB_MOD_INIT): Register new partmaps.
23206 (GRUB_MOD_FINI): Unregister new partmaps.
23207 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
23208 (grub_partition_msdos_iterate): ... this. All users updated.
23209 Don't support embedding other than in a minix partition.
23210 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
23212 * include/grub/partition.h (grub_partition): New field msdostype.
23213 * util/grub-install.in: Handle openbsd and netbsd types being in
23216 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23218 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
23220 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
23221 * grub-core/Makefile.core.def (mdraid): Renamed to ...
23222 (mdraid09): ... this.
23223 (mdraid1x): New module.
23224 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
23225 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
23227 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23229 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
23232 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23234 * grub-core/commands/efi/lsefimmap.c: Correct header.
23237 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23239 * util/grub-editenv.c (argp_parser): Don't pass translated strings
23240 as printf format strings; the translations might contain '%' which
23241 could cause a crash.
23243 * util/grub-fstest.c (argp_parser): Likewise.
23244 * util/grub-setup.c (argp_parser): Likewise.
23247 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23249 Use argp in grub-fstest.
23251 * util/grub-fstest.c: Don't include getopt.h.
23253 (root): New variable.
23254 (args_count): Likewise.
23256 (num_disks): Likewise.
23257 (images): Likewise.
23259 (debug_str): Likewise.
23261 (options): Transformed to argp.
23263 (main): Split argument parsing into ...
23264 (argp_parser): ... this. Changed to argp format.
23265 (argp): New variable.
23266 (main): Use argp_parse.
23268 2010-09-20 Tristan Gingold <gingold@free.fr>
23269 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
23270 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23272 * grub-core/commands/efi/lsefimmap.c: New file.
23273 * grub-core/Makefile.core.def (lsefimmap): New module.
23274 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
23276 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23278 Pause the execution (10s max) if any errors are displayed so the user
23279 has a chance to see them.
23281 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
23282 (grub_print_error): Increment grub_err_printed_errors.
23283 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
23284 execution if any errors were displayed.
23285 (show_menu): Remove old code for pause.
23286 * grub-core/normal/menu_entry.c (run): Likewise.
23287 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
23289 (grub_normal_get_char_counter): Likewise.
23290 * include/grub/err.h (grub_err_printed_errors): New external variable.
23291 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
23293 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23295 Support multiboot VBE info.
23297 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
23298 Take VBE info into account.
23299 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
23300 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23301 Call fill_vbe_info when appropriate.
23302 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
23303 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
23305 (grub_multiboot_get_mbi_size): Take new tags into account.
23306 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
23307 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23308 Call fill_vbe_tag when appropriate.
23309 (grub_multiboot_make_mbi): Properly align tags.
23310 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
23312 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
23314 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
23316 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23318 Suport manual terminal geometry specification.
23320 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
23321 Save state in grub_ofconsole_terminfo_output.
23322 (grub_ofconsole_term): Use grub_terminfo_getwh.
23323 (grub_ofconsole_getwh): Removed.
23324 * grub-core/term/serial.c (grub_serial_getwh): Removed.
23325 (grub_serial_term): Use grub_terminfo_getwh.
23326 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
23327 (options): New struct.
23328 (OPTION_*): New enum.
23329 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
23330 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
23332 (grub_terminfo_getwh): New proto.
23333 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
23335 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23337 Handle legacy "terminal" command.
23339 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
23341 (legacy_commands): Add terminal and title.
23342 (grub_legacy_parse): Handle terminal. Simplify title handling.
23344 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23346 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
23347 parameters overflow.
23349 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23351 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
23354 * docs/grub.texi (Shell-like scripting): Document `!'.
23355 (Network): Simplify using new i386-pc-pxe format. Mention
23360 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23362 * Makefile.am (SUBDIRS): Restore "."; it's important to force
23363 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
23366 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23368 * grub-core/commands/efi/lsefisystab.c: Correct header.
23369 * grub-core/commands/efi/lssal.c: Likewise.
23370 * grub-core/commands/testload.c: Likewise.
23372 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23374 * util/grub-mkrescue.in: Add explicit root argument to --set to
23375 prevent the UUID being interpreted as an argument to --set (matches
23376 previous change to prepare_grub_to_access_device).
23378 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23380 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
23381 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
23382 the verbosity of later #ifs.
23383 (find_partition_start): Define this function on FreeBSD too.
23384 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
23386 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
23389 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23391 * util/grub-editenv.c: Use argp instead of getopt.
23393 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23395 * util/grub-setup.c: Use argp instead of getopt.
23397 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23399 Use gnulib-tool to create gnulib source files.
23401 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
23402 grub-core/gnulib directories
23403 * .bzignore: Add **/.deps and autogenerated gnulib files
23404 * configure.ac: Assign auxiliary directory to build-aux, add invocation
23405 of gnulib macros, add grub-core/gnulib/Makefile
23406 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
23407 include m4 directory to aclocal.
23408 * Makefile.util.def: Remove direct compilation of gnulib source files
23409 and use the new grub-core/gnulib/libgnu.a.
23410 * build-aux/config.rpath: move config.rpath from top directory to
23412 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
23414 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
23415 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
23416 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
23418 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
23421 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23423 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
23424 grub-core/genmod.sh and grub-core/gensyminfo.sh
23426 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
23428 Add a test for echo command options.
23430 * tests/grub_cmd_echo.in: New test.
23431 * Makefile.util.def: Rules for new test.
23433 2010-09-20 Szymon Janc <szymon@janc.net.pl>
23435 Remove crc.mod and move crc command to hashsum.mod.
23436 Remove lib/crc.c - users updated to use gcrypt implementation.
23438 * grub-core/commands/crc.c: Removed.
23439 * grub-core/Makefile.core.def (crc): Module removed.
23440 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
23441 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
23442 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
23443 * grub-core/lib/crc.c: Removed.
23444 * include/grub/lib/crc.h: Removed.
23445 * Makefile.util.def (crc): Remove lib/crc.c
23446 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
23447 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
23448 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
23449 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
23450 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
23451 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
23453 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23455 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
23457 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23459 Split config.h for util and core.
23461 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
23462 (ADDR32): Likewise.
23463 (DATA32): Likewise.
23464 (BSS_START_SYMBOL): Likewise.
23465 (END_SYMBOL): Likewise.
23466 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
23467 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
23468 * config.h.in: New file.
23469 * configure.ac: Use config-util.h as config define file.
23470 Rename MACHINE into GRUB_MACHINE. All users updated.
23471 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
23473 (NESTED_FUNC_ATTR): Likewise.
23474 Substitue new variables.
23475 (COND_HAVE_ASM_USCORE): New conditional.
23476 * grub-core/Makefile.am (ASM_PREFIX): New variable.
23477 (kernel_syms.lst): Use ASM_PREFIX.
23478 * grub-core/kern/emu/console.c: Include config-util.h.
23479 * grub-core/kern/emu/misc.c: Likewise.
23480 * grub-core/kern/emu/mm.c: Likewise.
23481 * include/grub/emu/misc.h: Likewise.
23482 * include/grub/libgcc.h: Likewise.
23484 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23486 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
23488 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
23489 Fix GRUB_TERM_KEY_* constants usage.
23490 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
23492 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23494 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
23496 * grub-core/bus/usb/uhci.c: Remove empty define.
23497 (grub_uhci_check_transfer): Add missing cast.
23498 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
23500 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
23502 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
23504 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23506 * grub-core/Makefile.core.def (legacycfg): Add
23507 lib/i386/pc/vesa_modes_table.c on emu.
23509 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23511 Reduce number of temporary files generated by build system.
23513 * grub-core/gencmdlist.sh: Removed.
23514 * grub-core/genfslist.sh: Removed.
23515 * grub-core/genhandlerlist.sh: Removed.
23516 * grub-core/genmodsrc.sh: Removed.
23517 * grub-core/genpartmaplist.sh: Removed.
23518 * grub-core/genparttoollist.sh: Removed.
23519 * grub-core/gentermiinallist.sh: Removed.
23520 * grub-core/genvideolist.sh: Removed.
23522 * grub-core/genmod.sh.in: New file.
23523 * grub-core/gensyminfo.sh.in: New file.
23525 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
23526 * conf/Makefile.extra-dist: Update with new files.
23527 * gentpl.py: Remove rules related to unnecessary temporary files.
23528 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
23530 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
23532 * grub-core/bus/usb/uhci.c: Remove empty #define.
23533 * grub-core/genmoddep.awk: Updated with new syminfo format.
23534 * util/bash-completion.d/Makefile.am: Add config.log to
23537 2010-09-19 Yves Blusseau <blusseau@zetam.org>
23539 * Makefile.util.def: Add forgotten $(LIBINTL) library.
23541 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23543 * util/grub-mkconfig.in: Check the config script for syntax errors
23546 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
23547 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23549 * Makefile.util.def (grub-install): Use util/grub-install.in on all
23551 * util/grub-install.in: Add EFI and IEEE1275 support.
23552 * util/i386/efi/grub-install.in: Removed.
23553 * util/ieee1275/grub-install.in: Likewise.
23555 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23557 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
23558 (grub_cmd_cmosclean): Likewise.
23559 (GRUB_MOD_INIT): Register command cmosclean.
23560 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
23561 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
23563 2010-09-18 Carles Pina i Estany <carles@pina.cat>
23564 2010-09-18 Aleš Nesrsta <starous@volny.cz>
23565 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23567 Add keyboard layouts support.
23569 * Makefile.util.def (grub-mklayout): New file.
23570 (grub-kbdcomp): New script.
23571 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
23572 Add keyboard_layouts.h.
23573 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
23574 commands/boot.c on yeeloong.
23575 (keylayouts): New module.
23576 * grub-core/bus/usb/ohci.c
23577 * grub-core/bus/usb/uhci.c
23578 * grub-core/bus/usb/usbhub.c (rescan): New variable.
23579 (grub_usb_add_hub): Poll interrupt pipe for device handling.
23580 (attach_root_port): Likewise.
23581 (poll_nonroot_hub): Likewise.
23582 (grub_usb_poll_devices): Likewise.
23583 (detach_device): Close transfer.
23584 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
23586 (grub_usb_bulk_setup_readwrite): Likewise.
23587 (grub_usb_bulk_finish_readwrite): Likewise.
23588 * grub-core/commands/keylayouts.c: New file.
23589 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
23590 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
23592 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
23593 support scancode 2.
23594 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
23595 * include/grub/keyboard_layouts.h: New file.
23596 * util/grub-mklayout.c: New file.
23597 * util/grub-kbdcomp.in: Likewise.
23599 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23601 Unify memory types.
23603 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
23604 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
23606 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
23607 (grub_upper_mem): Likewise.
23608 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
23609 * include/grub/memory.h (grub_memory_type_t): New enum.
23612 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23614 * grub-core/Makefile.core.def (lsapm): New module.
23615 * grub-core/commands/i386/pc/lsapm.c: New file.
23616 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
23617 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
23619 * include/grub/i386/pc/apm.h: New file.
23620 * include/multiboot.h (multiboot_apm_info): New struct.
23622 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23624 GRUB-legacy configuration file support.
23626 * Makefile.util.def (grub-menulst2cfg): New util.
23627 * docs/man/grub-menulst2cfg.h2m: New file.
23628 * grub-core/Makefile.core.def (legacycfg): New module.
23629 * grub-core/commands/legacycfg.c: New file.
23630 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
23631 (grub_normal_add_menu_entry): ... this.
23632 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
23633 (grub_normal_set_password): ...this.
23634 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
23635 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
23636 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
23637 * grub-core/lib/legacy_parse.c: New file.
23638 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
23639 * include/grub/i386/pc/vesa_modes_table.h: New file.
23640 * include/grub/legacy_parse.h: Likewise.
23641 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
23642 * util/grub-menulst2cfg.c: New file.
23644 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23646 * grub-core/kern/emu/hostdisk.c
23647 (convert_system_partition_to_system_disk): Initialise node.
23649 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23651 * grub-core/kern/emu/hostdisk.c
23652 (convert_system_partition_to_system_disk): Fix devmapper memory pool
23654 Reported and based on patch by: Modestas Vainius.
23656 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23658 Fix DM-RAID probing with recent versions of device-mapper udev
23661 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
23662 canonicalise device paths under /dev/mapper/.
23663 (convert_system_partition_to_system_disk): Compare the
23664 uncanonicalised path to /dev/mapper/ rather than the canonicalised
23665 path, since device nodes under /dev/mapper/ are often symlinks.
23667 2010-09-17 Yves Blusseau <blusseau@zetam.org>
23669 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
23671 2010-09-16 Yves Blusseau <blusseau@zetam.org>
23673 * configure.ac: Avoid some annoying error messages if freetype-config
23674 program is not found.
23676 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23678 Support RAID on virtio devices, and others.
23680 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
23682 [__MINGW32__] (grub_find_device): ... this.
23683 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
23684 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
23685 reasonable default if dir is NULL.
23686 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
23688 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
23689 (grub_guess_root_device): Update callers.
23690 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
23692 * util/raid.c (grub_util_getdiskname): Remove.
23693 (grub_util_raid_getmembers): Use grub_find_device rather than
23694 grub_util_getdiskname.
23696 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23698 * docs/grub.texi (serial): Remove obsolete comment about GRUB
23699 needing to be compiled with serial support.
23700 (ls): Indicate that multiple files are accepted.
23701 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
23702 indicate that multiple files are accepted.
23704 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23706 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
23707 libgrub_a_init.c, and util/bash-completion.d/grub.
23709 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23711 * util/grub-setup.c (setup): Fix incorrect container semantics.
23713 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23715 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
23717 Reported by: J. Nick Terry
23719 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23721 Move embedding routines to partmap sources files.
23723 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
23724 [GRUB_UTIL]: New variable.
23725 (gpt_partition_map_iterate): Set part.parent.
23726 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
23727 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
23728 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
23730 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
23731 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
23732 (grub_partition_map) [GRUB_UTIL]: New field embed.
23733 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
23734 (setup): Use ->embed.
23736 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23738 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
23740 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
23741 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
23743 2010-09-15 Yves Blusseau <blusseau@zetam.org>
23745 Add function to get completions from usage.
23747 * util/bash-completion.d/grub-completion.bash.in: Add function to get
23748 completions from usage. Use LC_ALL=C to get options properly.
23750 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23752 * grub-core/gnulib/basename-lgpl.c: Imported.
23753 * grub-core/gnulib/basename.c: Likewise.
23754 * grub-core/gnulib/dirname-lgpl.c: Likewise.
23755 * grub-core/gnulib/dirname.c: Likewise.
23756 * grub-core/gnulib/dirname.h: Likewise.
23757 * grub-core/gnulib/stripslash.c: Likewise.
23759 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23761 * grub-core/gnulib/error.c: Resynced.
23762 * grub-core/gnulib/getopt.c: Likewise.
23763 * grub-core/gnulib/getopt_int.h: Likewise.
23764 * grub-core/gnulib/regex.h: Likewise.
23765 * grub-core/gnulib/regex_internal.c: Likewise.
23766 * grub-core/gnulib/regex_internal.h: Likewise.
23768 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23770 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
23771 CRC calculations and validity checks.
23772 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23775 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23777 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23779 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23781 Fix incorrect echo options handling.
23782 Reported by: Yves Blusseau.
23784 * include/grub/command.h (grub_command_flags_t): New flags
23785 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23786 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23787 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23789 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23791 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23793 (GRUB_COMMAND_FLAG_MENU): Likewise.
23794 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23795 (GRUB_COMMAND_FLAG_TITLE): Removed.
23796 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23797 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23798 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23799 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23800 (grub_command_flags_t): New enum. All users updated.
23802 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23804 Fix solaris compilation.
23806 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23807 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23808 (grub-emu-list): Likewise.
23810 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23812 Remove deprecated root command.
23814 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23817 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23819 * util/i386/pc/grub-setup.c: Merge this ...
23820 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23821 * util/grub-setup.c: ... into this.
23822 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23825 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23827 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23830 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23832 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23835 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23837 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23838 explicit root argument to set to prevent UUID to be interpreted as
23841 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23843 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23845 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23847 Don't export grub_gate_a20.
23849 * grub-core/kern/i386/pc/init.c: Remove leftovers.
23850 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
23852 (grub_gate_a20): ... this. All users updated.
23853 * include/grub/i386/pc/init.h: Removed. All users updated.
23855 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23857 Create euro.pf2 which supports most European languages.
23859 * Makefile.am (grubdata_DATA): Add euro.pf2.
23860 (euro.pf2): New target.
23861 (CLEANFILES): Add euro.pf2.
23863 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23865 * configure.ac: Disable emu-usb by default to prevent inadvertent
23868 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23870 Disable usbserial on grub-emu since our libusb code isn't good enough
23873 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
23874 (usbserial_pl2303): Likewise.
23875 (usbserial_ftdi): Likewise.
23877 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23879 * include/grub/disk.h (grub_disk): Remove has_partitions.
23881 * disk/loopback.c (grub_loopback): Remove has_partitions.
23883 (options): Remove partitions. All users updated.
23884 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
23885 * util/i386/pc/grub-setup.c (setup): copy partition table only when
23886 actual partition table is found.
23888 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23890 Remove readability checks (too many false negatives).
23892 * util/grub-install.in: Remove readability checks.
23893 * util/grub-mkconfig.in: Likewise.
23894 * util/grub.d/10_hurd.in: Likewise.
23895 * util/grub.d/10_kfreebsd.in: Likewise.
23896 * util/grub.d/10_linux.in: Likewise.
23897 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
23900 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23902 Enable acpi shutdown on all ACPI platforms.
23904 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
23905 on coreboo, multiboot and EFI.
23906 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
23907 (grub_acpi_halt): Likewise.
23908 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
23909 (grub_cmd_halt): Don't call grub_acpi_halt directly.
23910 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
23911 * grub-core/lib/i386/halt.c (grub_halt)
23912 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
23914 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23916 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
23919 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23921 * grub-core/video/efi_gop.c: Fix over-80-chars line.
23922 * grub-core/video/efi_uga.c: Likewise.
23924 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23926 Filter devaliases and never open same device twice.
23928 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
23929 (last_ihandle): Likewise.
23930 (ofdisk_hash_ent): New member shortest.
23931 (ofdisk_hash_add): Add canonical path too.
23932 (scan): New function.
23933 (grub_ofdisk_iterate): Iterate over hashed entries.
23934 (compute_dev_path): Don't add :0.
23935 (grub_ofdisk_open): Don't really open the disk.
23936 (grub_ofdisk_close): Avoid closing unrelated disk.
23937 (grub_ofdisk_read): Implement reopen logic.
23938 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
23940 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
23943 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23947 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
23948 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
23949 right address. Add sparc64_ieee1275_ldflags.
23950 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
23951 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
23952 to grub_host_to_target_addr
23953 (load_image): Likewise.
23955 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23957 * grub-core/normal/completion.c (complete_file): Handle device
23959 Fix based on patch by Doug Nazar.
23961 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23963 grub-mknetdir script.
23965 * Makefile.util.def (grub-mknetdir): New module.
23966 * tests/util/grub-shell.in: Support boot=net
23967 * util/grub-mknetdir.in: New file.
23969 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23971 videoinfo on non-vbe.
23973 * grub-core/Makefile.core.def (vbeinfo): Removed.
23974 (vbetest): Removed.
23975 (videoinfo): New module.
23976 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
23977 * grub-core/commands/i386/pc/vbetest.c: Removed.
23978 * grub-core/commands/videoinfo.c: New file.
23979 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
23981 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
23983 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
23984 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
23985 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
23986 mode_number. New parameter mode. All users updated.
23987 (grub_video_gop_iterate): New function.
23988 (grub_video_efi_gop): New member iterate.
23989 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
23990 (grub_vbe_set_video_mode): Remove setting useless fields.
23991 (vbe2videoinfo): New function.
23992 (grub_video_vbe_iterate): Likewise.
23993 (grub_video_vbe_setup): Use vbe2videoinfo.
23994 (grub_video_vbe_print_adapter_specific_info): New function.
23995 (grub_video_vbe_adapter): New fields iterate and
23996 print_adapter_specific_info.
23997 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
23999 (grub_video_mode_info): New field mode_number.
24000 (grub_video_adapter): New fields iterate and
24001 print_adapter_specific_info.
24003 2010-09-13 Tristan Gingold <gingold@free.fr>
24004 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
24005 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24007 * grub-core/commands/efi/lsefisystab.c: New file.
24008 * grub-core/commands/efi/lssal.c: Likewise.
24009 * grub-core/Makefile.core.def (lsacpi): New module.
24010 (lsefisystab): Likewise.
24011 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
24012 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
24013 (grub_efi_sal_system_table): New struct.
24014 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
24015 (grub_efi_sal_system_table_memory_descriptor): Likewise.
24016 (grub_efi_sal_system_table_platform_features): Likewise.
24017 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
24018 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
24019 (grub_efi_sal_system_table_ap_wakeup): Likewise.
24020 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
24022 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24024 Support explicit user claim that a device is BIOS-visible.
24026 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
24027 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
24028 * grub-core/kern/emu/hostdisk.c
24029 (convert_system_partition_to_system_disk): Support mdX.
24030 (find_system_device): New parameter add. All users updated.
24031 (grub_util_biosdisk_is_present): New function.
24032 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
24035 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24037 Search hints support.
24039 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
24042 2010-09-13 Yves Blusseau <blusseau@zetam.org>
24044 Bash completion script for util commands
24046 * Makefile.am: Add util/bash-completion.d directory
24047 * configure.ac: Likewise.
24048 * util/bash-completion.d/Makefile.am: New file.
24049 * util/bash-completion.d/grub-completion.bash.in: Likewise.
24051 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24053 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
24054 (print_backlog): set backlog_ucs4 and backlog_glyphs.
24055 Reported by: Yves Blusseau.
24057 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24059 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
24060 partition size and offset.
24062 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24064 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
24066 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24068 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
24070 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24072 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
24073 (grub_xvasprintf): Likewise.
24075 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24077 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
24079 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24081 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
24082 args ending with NULL.
24084 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24086 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
24089 2010-09-11 Szymon Janc <szymon@janc.net.pl>
24091 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
24093 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24095 Shutdown using ACPI.
24097 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
24098 * grub-core/commands/acpihalt.c: New file.
24099 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
24100 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
24101 (grub_acpi_halt): New proto.
24102 (GRUB_ACPI_SLP_EN): New const.
24103 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
24104 (GRUB_ACPI_OPCODE_*): New enum.
24105 (GRUB_ACPI_EXTOPCODE_*): Likewise.
24107 2010-09-11 Tristan Gingold <gingold@free.fr>
24108 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
24109 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24111 * commands/lsacpi.c: New file.
24112 * grub-core/Makefile.core.def (lsacpi): New module.
24113 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
24114 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
24115 (grub_acpi_madt_entry_header): New struct.
24116 (grub_acpi_madt): Likewise.
24117 (grub_acpi_madt_entry_interrupt_override): Likewise.
24118 (grub_acpi_madt_entry_sapic): Likewise.
24119 (grub_acpi_madt_entry_lsapic): Likewise.
24120 (grub_acpi_madt_entry_platform_int_source): Likewise.
24121 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
24122 (PRIuGRUB_UINT32_T): Likewise.
24123 (PRIxGRUB_UINT64_T): Likewise.
24125 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24127 Implement loading palette on ieee1275_fb.
24129 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
24130 (have_setcolors): Likewise.
24131 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
24132 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
24133 (grub_video_ieee1275_set_palette): Implement.
24135 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24136 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
24138 * util/grub-install.in (grub_partition): New variable.
24139 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
24140 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
24141 Fixes a bug reported by Yves Blusseau.
24143 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24147 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
24148 =grub_cpu_flush_cache on all mips and not only yeeloong.
24149 * configure.ac (COND_mips): New conditional.
24150 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
24152 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
24153 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
24154 [GRUB_LINKER_HAVE_INIT]: New function.
24155 (grub_emu_post_init): Likewise.
24156 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
24157 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
24158 * include/grub/cache.h (_mips): Include mips/cache.h.
24159 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
24160 LVM and RAID prototypes.
24161 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
24162 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
24165 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24167 * util/grub-install.in: Don't try to verify core.img until after
24168 running grub-mkimage to create it.
24170 2010-09-10 Robert Millan <rmh@gnu.org>
24172 * util/grub.d/10_hurd.in: Add misc readability checks.
24173 * util/grub.d/10_kfreebsd.in: Likewise.
24174 * util/grub.d/10_linux.in: Likewise.
24176 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24178 * util/grub-install.in: ${imgext} won't be defined here until the
24179 install branch is merged. For the meantime, only verify core.img on
24180 i386-pc and sparc64-ieee1275 platforms.
24182 2010-09-10 Robert Millan <rmh@gnu.org>
24184 Solaris support in grub_find_zpool_from_dir(). Thanks
24185 Seth Goldberg for referring to getextmntent() facility.
24187 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
24189 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
24191 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
24192 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
24193 method for finding zpool name.
24195 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24197 grub-fstest needs the host and hostfs modules while other utilities
24198 actively require those modules to be absent, so grub-fstest needs
24199 its own initialisation and finalisation code.
24201 * Makefile.am (grub_fstest.pp): New target.
24202 (grub_fstest_init.lst): Likewise.
24203 (grub_fstest_init.c): Likewise.
24204 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
24206 2010-09-10 Robert Millan <rmh@gnu.org>
24208 * configure.ac: Check for `struct statfs.f_fstypename' and
24209 `struct statfs.f_mntfromname'.
24211 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
24212 kFreeBSD-specific code.
24214 2010-09-10 Robert Millan <rmh@gnu.org>
24216 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
24217 on ZFS. Now non-main filesystems are supported as / too.
24219 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
24221 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
24222 and grub-core/disk/host.c to ...
24223 (grub-fstest): ... here. Having the host disk implementation
24224 present confuses grub-probe and other utility programs.
24226 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
24227 when writing to a file, not when writing to stdout.
24229 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
24231 * tests/partmap_test.in: New test for partitions.
24232 * Makefile.util.def: Rules for new test.
24234 2010-09-09 Robert Millan <rmh@gnu.org>
24236 * util/grub-probe.c (probe): Fix a pair of unhandled error
24239 2010-09-09 Robert Millan <rmh@gnu.org>
24241 Basic Btrfs support (detection and UUID).
24243 * grub-core/fs/btrfs.c: New file.
24244 * Makefile.util.def (library): Register btrfs.c.
24245 * grub-core/Makefile.core.def: Likewise.
24247 2010-09-08 Robert Millan <rmh@gnu.org>
24249 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
24250 with (optional) parameters to specify device and relative path.
24251 * util/grub-install.in: Use is_path_readable_by_grub() to
24252 verify readability of a few critical files.
24253 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
24254 verify readability of grub.cfg.new.
24256 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24258 Split minix.mod into minix.mod and minix2.mod.
24260 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
24261 * grub-core/Makefile.core.def (minix2): New module.
24262 * grub-core/fs/minix.c: Use definitions instead of runtime version
24264 * grub-core/fs/minix2.c: New file.
24266 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24268 Add new --boot-directory option to replace --root-directory
24270 * util/grub-install.in: Add new --boot-directory option
24271 * util/grub-reboot.in: Likewise.
24272 * util/grub-set-default.in: Likewise.
24274 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24276 * util/grub-mkconfig.in: Use new variable.
24278 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24280 * configure.ac: Define some useful variables.
24282 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24284 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24285 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
24286 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
24287 Use terminfo and don't use cursor-on/cursor-off unless it's known
24289 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
24290 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
24292 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
24294 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
24295 starts with "(,", fill the drive containing the loaded image in
24296 between those two characters, but expect that a full partition
24297 specification including partition map names will follow.
24299 2010-09-08 Robert Millan <rmh@gnu.org>
24301 * configure.ac: Remove `--enable-grub-fstest' option.
24302 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
24304 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
24305 `grub-fstest' instead of `grub-probe' for readability verification.
24306 * util/grub-probe.c (probe): Remove readability verification kludge.
24308 2010-09-08 Robert Millan <rmh@gnu.org>
24310 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
24311 initializing `GRUB_FS'.
24313 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
24315 Not command (!) support to GRUB script.
24317 * tests/grub_script_not.in: New test.
24318 * Makefile.util.def: Rules for new test.
24320 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
24321 ! command as a special case.
24322 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
24324 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24326 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
24329 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24331 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
24333 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24335 * docs/grub.texi (Shell-like scripting): Documentation for break,
24336 continue, shift and return commands.
24338 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
24340 Rename CD-ROM to cd on BIOS.
24342 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
24344 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
24346 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24348 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
24349 * util/grub-probe.c (main): Likewise.
24350 * util/i386/pc/grub-setup.c (main): Likewise.
24351 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24352 Reported and debugged by: alexxy
24354 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24356 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
24359 2010-09-05 Jo Shields <directhex@apebox.org>
24361 * util/grub.d/30_os-prober.in: Add missing classes.
24363 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24365 * docs/grub.texi (Theme file format): Document new position format.
24367 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24369 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
24370 a table. Use @code instead of @verbatim.
24372 2010-09-05 Colin D Bennett <colin@gibibit.com>
24374 Gfxmenu documentation.
24376 * docs/grub.texi (Theme file format): New chapter.
24378 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24380 * grub-core/Makefile.core.def (xzio): New module.
24381 * grub-core/io/xzio.c: New file.
24382 * grub-core/lib/xzembed/xz.h: New file (from xembed).
24383 * grub-core/lib/xzembed/xz_config.h: Likewise.
24384 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
24385 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
24386 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
24387 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
24388 * grub-core/lib/xzembed/xz_private.h: Likewise.
24389 * grub-core/lib/xzembed/xz_stream.h: Likewise.
24390 * include/grub/file.h (grub_file_filter_id): New compression filter
24391 GRUB_FILE_FILTER_XZIO.
24393 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24395 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
24396 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
24399 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24401 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
24402 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
24404 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24406 Uncompressed checksum support.
24408 * grub-core/commands/hashsum.c (options): Add option --uncompress.
24409 (check_list): New parameter uncompress.
24410 (grub_cmd_hashsum): Handle --uncompress.
24412 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24414 Reintroduce testload.
24416 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
24418 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
24419 (GRUB_MOD_INIT): New function.
24420 (GRUB_MOD_FINI): Likewise.
24421 * grub-core/Makefile.core.def (testload): New module.
24423 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24425 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
24426 (uint8_t): New type.
24427 (uint16_t): Likewise.
24428 (uint32_t): Likewise.
24429 (uint64_t): Likewise.
24431 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24433 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
24435 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24437 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
24439 (grub_gzfile_open): Removed. All users updated.
24440 (GRUB_MOD_INIT): New function.
24441 (GRUB_MOD_FINI): Likewise.
24442 * grub-core/kern/file.c (grub_file_filters_all): New variable.
24443 (grub_file_filters_enabled): Likewise.
24444 (grub_file_open): Handle filters.
24445 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
24446 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
24447 * include/grub/file.h (grub_file_filter_id_t): New type.
24448 (grub_file_filter_t): Likewise.
24449 (grub_file_filters_all): New extern variable.
24450 (grub_file_filters_enabled): Likewise.
24451 (grub_file_filter_register): New inline function.
24452 (grub_file_filter_unregister): Likewise.
24453 (grub_file_filter_disable): Likewise.
24454 (grub_file_filter_disable_compression): Likewise.
24455 * include/grub/gzio.h: Removed.
24457 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24459 Filename expansion support for wildcards in GRUB script.
24461 * tests/grub_script_expansion.in: New test.
24462 * Makefile.util.def: Rule for new test.
24464 * grub-core/commands/wildcard.c: New file, implements filename
24465 expansion support for GRUB script.
24466 * grub-core/Makefile.core.def: Rule update for regexp.mod.
24467 * grub-core/script/argv.c: Cosmetic changes.
24468 * grub-core/script/execute.c (grub_script_arglist_to_argv):
24469 Refactored to perform wildcard expansion on arguments.
24470 * include/grub/script_sh.h (grub_script_wildcard_translator): New
24473 * tests/util/grub-shell.in: Fix quoting for read input.
24475 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24477 Support for updating environment variables with matched substrings
24480 * tests/grub_cmd_regexp.in: New test.
24481 * Makefile.util.def: Rule for new test.
24483 * grub-core/commands/regexp.c: New option -s to update environment
24484 variables with regexp matches.
24486 2010-09-04 Szymon Janc <szymon@janc.net.pl>
24488 * include/grub/file.h (grub_file): New member not_easly_seekable.
24489 (grub_file_seekable): New inline function.
24490 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
24492 (grub_gzio_open): Set not_easly_seekable.
24493 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
24494 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
24496 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24498 Support for options to appear multiple times on cmdline.
24500 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
24501 * grub-core/commands/extcmd.c: Support for repeatable option.
24502 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
24503 repeatable option support.
24505 Refactor menuentry into a regular command.
24507 * grub-core/commands/menuentry.c: New file, menuentry command
24509 * grub-core/Makefile.core.def: Rule update for normal.mod.
24510 * grub-core/normal/main.c: Moved menuentry creation to
24511 grub-core/commands/menuentry.c.
24512 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
24513 (grub_menu_execute_entry_real): Removed.
24514 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
24516 (grub_script_execute_menuentry): Removed.
24517 * grub-core/script/parser.y (menuentry): Removed.
24518 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
24519 * grub-core/script/yylex.l (menuentry): Removed.
24520 * include/grub/menu.h (grub_menu_init): New prototype.
24521 (grub_menu_fini): New prototype.
24522 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
24523 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
24524 (grub_script_execute_sourcecode): New prototype.
24526 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24528 "return" command for GRUB script functions.
24530 * tests/grub_script_return.in: New test.
24531 * Makefile.util.def: Rules for new test.
24533 * grub-core/script/execute.c (grub_script_return): New function.
24534 * grub-core/script/main.c: Register/unregister return commaond.
24535 * include/grub/script_sh.h (grub_script_return): New prototype.
24537 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24539 "setparams" command to update positional parameters.
24541 * tests/grub_script_setparams.in: New test.
24542 * Makefile.util.def: Rules for new test.
24544 * grub-core/script/argv.c (grub_script_argv_make): New function.
24545 * grub-core/script/execute.c (replace_scope): New function.
24546 (grub_script_setparams): New function.
24547 * grub-core/script/lexer.c: Remove unused variables.
24548 * grub-core/script/main.c: Register/unregister setparams command.
24549 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
24550 (grub_script_setparams): New prototype.
24552 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24554 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
24557 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24559 Support for passing block of commands as an argument to extcmds.
24561 * Makefile.util.def: Rules for new test.
24562 * tests/grub_script_blockarg.in: New test.
24563 * grub-core/tests/test_blockarg.c: New file, block argument
24564 command used in the test.
24566 * include/grub/extcmd.h (grub_extcmd_context): New struct.
24567 (grub_register_extcmd_prio): New function prototype.
24568 (grub_extcmd_dispatcher): New function prototype.
24569 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
24571 * include/grub/script_sh.h (struct grub_script): New members
24572 `children', `next_siblings' and `refcnt' for block arguments and
24573 reference counting.
24574 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
24575 (grub_script_arg): New member `script' for block argument.
24576 (grub_script_argv): New member `script' for block argument.
24577 (grub_parser_param): New member `scripts' for block argument.
24578 (grub_script_mem_free): New extern function prototype.
24579 (grub_script_ref): New function prototype.
24580 (grub_script_unref): New function prototype.
24582 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
24583 extcmd form to support block arguments.
24584 * grub-core/script/argv.c: Block arguments support.
24585 * grub-core/script/execute.c: Likewise.
24586 * grub-core/script/lexer.c: Likewise.
24587 * grub-core/script/main.c: Likewise.
24588 * grub-core/script/script.c: Likewise.
24589 * grub-core/script/parser.y: Likewise. New `block' and `block0'
24592 * grub-core/commands/acpi.c: Update extcmd implementations with
24593 grub_extcmd_context_t.
24594 * grub-core/commands/cat.c: Likewise.
24595 * grub-core/commands/echo.c: Likewise.
24596 * grub-core/commands/extcmd.c: Likewise.
24597 * grub-core/commands/hashsum.c: Likewise.
24598 * grub-core/commands/hdparm.c: Likewise.
24599 * grub-core/commands/help.c: Likewise.
24600 * grub-core/commands/hexdump.c: Likewise.
24601 * grub-core/commands/i386/cpuid.c: Likewise.
24602 * grub-core/commands/i386/pc/drivemap.c: Likewise.
24603 * grub-core/commands/i386/pc/halt.c: Likewise.
24604 * grub-core/commands/i386/pc/sendkey.c: Likewise.
24605 * grub-core/commands/iorw.c: Likewise.
24606 * grub-core/commands/keystatus.c: Likewise.
24607 * grub-core/commands/loadenv.c: Likewise.
24608 * grub-core/commands/ls.c: Likewise.
24609 * grub-core/commands/lspci.c: Likewise.
24610 * grub-core/commands/memrw.c: Likewise.
24611 * grub-core/commands/probe.c: Likewise.
24612 * grub-core/commands/search_wrap.c: Likewise.
24613 * grub-core/commands/setpci.c: Likewise.
24614 * grub-core/commands/sleep.c: Likewise.
24615 * grub-core/disk/loopback.c: Likewise.
24616 * grub-core/hello/hello.c: Likewise.
24617 * grub-core/loader/i386/bsd.c: Likewise.
24618 * grub-core/loader/xnu.c: Likewise.
24619 * grub-core/term/gfxterm.c: Likewise.
24620 * grub-core/term/serial.c: Likewise.
24621 * grub-core/tests/lib/functional_test.c: Likewise.
24623 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24625 Multi-line quoted strings support.
24627 * grub-core/script/lexer.c (append_newline): Removed.
24628 (grub_script_lexer_yywrap): Refactored.
24629 (grub_script_lexer_init): Refactored.
24630 * grub-core/script/yylex.l (yywrap): New function.
24631 (grub_lexer_resplit): New function.
24632 (grub_lexer_unput): New function.
24633 * include/grub/script_sh.h (grub_lexer_param): New members, unput
24635 * tests/grub_script_echo1.in: Added few more testcases.
24637 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
24639 * grub-core/kern/misc.c: Don't add abort alias in utils.
24640 Reported by: echoline.
24642 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
24644 Add missing files into "make dist" tarball for other platforms.
24646 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
24647 * conf/Makefile.common (dist_noinst_DATA): New variable.
24648 * conf/Makefile.extra-dist: Added missing make dist files.
24649 * grub-core/Makefile.core.def: Likewise.
24651 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24653 Compress grub_prefix.
24655 * grub-core/boot/i386/pc/lnxboot.S: Use
24656 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
24657 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
24658 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
24659 GRUB_MACHINE_PREFIX_END. All users updated.
24660 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
24661 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
24663 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
24664 * util/grub-mkimage.c (image_target_desc): Change data_end to
24665 prefix_end. All users updated.
24667 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24669 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
24671 (grub_openbsd_boot): Likewise.
24672 (grub_netbsd_boot): Likewise.
24673 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
24674 (grub_xnu_boot): Likewise.
24676 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24678 * configure.ac: Clean LIBS variable after tests.
24680 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24682 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
24684 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24686 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
24687 echo if libdevmapper will be used.
24689 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
24691 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
24692 constant for the same file.
24694 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24696 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
24698 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24700 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
24703 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24705 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
24706 required by the boot protocol.
24708 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
24709 ebp and edi members.
24710 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
24711 state.ebp and state.edi.
24712 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
24713 %ebp and %edi according to grub_relocator32_ebp and
24714 grub_relocator32_edi respectively.
24715 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
24718 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24720 Add i386-pc-pxe image target.
24722 * util/grub-mkimage.c (image_target_desc): New enum value
24724 (image_targets): New target i386-pc-pxe.
24725 (generate_image): Handle i386-pc-pxe image.
24727 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24731 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
24732 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
24734 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
24735 (grub_pxe_pxenv): Correct type.
24737 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24739 * NEWS: Document most of the important changes since 1.98.
24741 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24743 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
24744 generated manual page) a little.
24746 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24748 * docs/grub.texi: Add myself as an author.
24750 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24752 * Makefile.util.def (libgrub.a): Add missing sunpc.
24753 Reported by: Seth Goldberg.
24755 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24757 Interrupt wrapping and code simplifications.
24759 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
24760 x86_noieee1275 which are functionaly equivalent in this case.
24761 (grub-install): Make source on each platform explicit. Enable on
24763 * gentpl.py (x86_efi_pc): Removed group.
24764 (x86_noefi): Likewise.
24765 (i386_noefi): Likewise.
24766 (x86_noieee1275): Likewise.
24767 (i386_noieee1275): Likewise.
24768 (i386_noefi_noieee1275): Likewise.
24769 (i386_pc_qemu_coreboot): Likewise.
24770 (i386_coreboot_multiboot): Likewise.
24771 (i386_pc_coreboot_multiboot_qemu): Likewise.
24772 (x86_noefi_mips): Likewise.
24773 (noieee1275): Likewise.
24774 (ieee1275_mips): Likewise.
24775 (noemu_noieee1275): Likewise.
24778 (videoinkernel): Likewise.
24779 (videomodules): Likewise.
24780 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
24781 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24782 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24783 include/grub/loader.h, include/grub/msdos_partition.h,
24784 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24785 include/grub/machine/console.h, include/grub/machine/vga.h,
24786 include/grub/machine/vbe.h, include/grub/machine/init.h,
24787 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24788 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
24789 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
24790 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24791 * grub-core/Makefile.core.def (kernel): Explicit the source for
24792 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24793 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24794 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24795 Use videoinkernel tag.
24796 (usb): Enable on all usb.
24797 (usbserial_common): Likewise.
24798 (usbserial_pl2303): Likewise.
24799 (usbserial_ftdi): Likewise.
24800 (uhci): Enable on all x86.
24801 (ohci): Enable on all pci.
24802 (cmostest): Enable on all CMOS.
24803 (acpi): Include commands/acpi.c on all platforms.
24804 (halt): Add relevant lib/*/halt.c.
24805 (hdparm): Enable on all pci.
24807 (usbtest): Enable on all usb.
24808 (ata): Enable on all pci.
24809 (ata_pthru): Likewise.
24810 (usbms): Enable on all usb.
24811 (usb_keyboard): Likewise.
24812 (font): Use tag videomodules.
24814 (datetime): Use tag cmos. Enable on all noemu.
24815 (mmap): Use tags common and x86.
24816 (gfxterm): Use tag videomodules.
24817 (bitmap): Likewise.
24818 (bitmap_scale): Likewise.
24819 (video_fb): Likewise.
24821 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24822 adjust padding accordingly. All users updated.
24823 (grub_ohci_transaction): Fix bad format specification.
24824 (GRUB_MOD_INIT): Add asserts for struct size.
24825 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24826 (grub_alloc_td): Likewise.
24827 (grub_free_queue): Likewise.
24828 (grub_uhci_transfer): Likewise.
24829 (grub_uhci_transaction): Fix bad format specification.
24830 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24831 (grub_usb_bulk_readwrite): Likewise.
24832 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24833 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24835 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24837 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24838 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24839 Transformed into C.
24840 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24841 Moved from here ...
24842 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24843 ... here. Transformed into C. Made static.
24844 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24845 Moved from here ...
24846 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
24847 ... here. Transformed into C. Made static.
24848 * grub-core/kern/i386/pc/startup.S
24849 (grub_biosdisk_check_int13_extensions): Moved from here ...
24850 * grub-core/disk/i386/pc/biosdisk.c
24851 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
24853 * grub-core/kern/i386/pc/startup.S
24854 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
24855 * grub-core/disk/i386/pc/biosdisk.c
24856 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
24857 Transformed into C. Made static.
24858 * grub-core/kern/i386/pc/startup.S
24859 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
24860 * grub-core/disk/i386/pc/biosdisk.c
24861 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
24862 Transformed into C. Made static.
24863 * grub-core/kern/i386/pc/startup.S
24864 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
24865 * grub-core/disk/i386/pc/biosdisk.c
24866 (grub_biosdisk_get_diskinfo_standard): ... here.
24867 Transformed into C. Made static.
24868 * grub-core/kern/i386/pc/startup.S
24869 (grub_biosdisk_get_num_floppies): Moved from here ...
24870 * grub-core/disk/i386/pc/biosdisk.c
24871 (grub_biosdisk_get_num_floppies): ... here.
24872 Transformed into C. Made static.
24873 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
24875 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
24876 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
24877 Transformed into C. Made static.
24878 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
24879 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
24880 Transformed into C. Made static.
24881 * grub-core/kern/i386/ieee1275/init.c: Removed.
24882 * grub-core/kern/i386/misc.S: Likewise.
24883 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
24884 Splitted from here ...
24885 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
24886 Transformed into C. Made static. All users updated.
24887 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
24888 Transformed into C. Made static. All users updated.
24889 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
24891 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
24892 Transformed into C. Made static. All users updated.
24893 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
24895 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
24896 Transformed into C. Made static. All users updated.
24897 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
24898 Removed (replaced by C version).
24899 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
24901 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
24902 Transformed into C. Made static.
24903 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
24905 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
24906 ... here. Transformed into C.
24907 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
24909 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
24910 ... here. Transformed into C.
24911 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
24913 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
24914 ... here. Transformed into C. Made static.
24915 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
24917 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
24918 ... here. Transformed into C.
24919 * grub-core/kern/i386/pc/startup.S
24920 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
24921 * grub-core/video/i386/pc/vbe.c
24922 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
24923 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
24925 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
24926 ... here. Transformed into C.
24927 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
24929 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
24930 ... here. Transformed into C.
24931 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
24933 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
24934 ... here. Transformed into C.
24935 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
24937 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
24938 ... here. Transformed into C.
24939 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
24941 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
24942 ... here. Transformed into C. Made static.
24943 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
24945 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
24946 ... here. Transformed into C. Made static.
24947 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
24949 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
24950 ... here. Transformed into C. Made static.
24951 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
24952 pxe_rm_entry as third argument.
24953 (grub_bios_interrupt): New function.
24954 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
24955 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
24956 of calling grub_stop.
24957 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
24958 * grub-core/lib/efi/halt.c (grub_halt): ...here.
24959 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
24960 * grub-core/lib/emu/halt.c (grub_halt): ... here.
24961 * grub-core/lib/i386/halt.c: Moved from here ...
24962 * grub-core/lib/i386/halt.c: ... here.
24963 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
24964 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
24965 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
24967 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
24968 * include/grub/i386/coreboot/init.h: Removed.
24969 * include/grub/i386/multiboot/init.h: Likewise.
24970 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
24971 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
24972 * include/grub/i386/pc/int.h: New file.
24973 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
24974 (grub_pxe_scan): Removed.
24975 (grub_pxe_call): Update prototype.
24976 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
24978 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
24979 * include/grub/i386/qemu/init.h: Removed.
24980 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
24982 (grub_halt): Likewise.
24983 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
24984 (grub_reboot): Likewise.
24985 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
24986 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
24987 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
24989 2010-08-30 Robert Millan <rmh@gnu.org>
24991 * NEWS: Document addition of ZFS support in `grub-install' and
24994 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
24996 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
24999 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25001 Remove leftover embedding of font objects.
25003 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
25004 * util/grub-install.in (font): Removed.
25005 * util/grub-mkimage.c (generate_image): Remove font support. All users
25008 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25010 Remove leftover embedding of font objects.
25012 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
25013 * util/grub-install.in (font): Removed.
25014 * util/grub-mkimage.c (generate_image): Remove font support. All users
25017 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25019 * docs/grub.texi (Network): Fix reference to pxe_blksize.
25020 Reported by: Ian Turner
25022 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25024 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
25025 timeout to avoid indefinite boot stalling.
25027 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25029 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
25030 (grub_env_write_color_highlight): Likewise.
25032 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25034 * grub-core/normal/term.c (print_more): Return to normal and not
25035 to standard state after printing "---MORE---".
25037 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25039 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
25040 Mask out the bit 0x80 since it has other meaning that specifiing color.
25042 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25044 New relocator. Allows for more kernel support and more straightforward
25047 * Makefile.am (BOOTTARGET): New variable.
25048 (QEMU32): Likewise.
25049 (linux.init.x86_64): New target.
25050 (linux.init.i386): Likewise.
25051 (multiboot.elf): Likewise.
25052 (kfreebsd.elf): Likewise.
25053 (kfreebsd.aout): Likewise.
25054 (pc-chainloader.elf): Likewise.
25055 (pc-chainloader.bin): Likewise.
25056 (ntldr.elf): Likewise.
25057 (ntldr.bin): Likewise.
25058 (multiboot2.elf): Likewise.
25059 (kfreebsd.init.x86_64): Likewise.
25060 (kfreebsd.init.i386): Likewise.
25061 (knetbsd.init.i386): Likewise.
25062 (kopenbsd.init.i386): Likewise.
25063 (knetbsd.init.x86_64): Likewise.
25064 (kopenbsd.init.x86_64): Likewise.
25065 (linux-initramfs.i386): Likewise.
25066 (linux-initramfs.x86_64): Likewise.
25067 (kfreebsd-mfsroot.i386.img): Likewise.
25068 (knetbsd.image.i386): Likewise.
25069 (kopenbsd.image.i386): Likewise.
25070 (kopenbsd.image.x86_64): Likewise.
25071 (knetbsd.miniroot-image.i386.img): Likewise.
25072 (kfreebsd-mfsroot.x86_64.img): Likewise.
25073 (knetbsd.image.x86_64): Likewise.
25074 (knetbsd.miniroot-image.x86_64.img): Likewise.
25075 (kfreebsd-mfsroot.i386.gz): Likewise.
25076 (bootcheck-kfreebsd-i386): Likewise.
25077 (kfreebsd-mfsroot.x86_64.gz): Likewise.
25078 (bootcheck-kfreebsd-x86_64): Likewise.
25079 (knetbsd.miniroot-image.i386.gz): Likewise.
25080 (bootcheck-knetbsd-i386): Likewise.
25081 (bootcheck-kopenbsd-i386): Likewise.
25082 (bootcheck-kopenbsd-x86_64): Likewise.
25083 (knetbsd.miniroot-image.x86_64.gz): Likewise.
25084 (bootcheck-knetbsd-x86_64): Likewise.
25085 (bootcheck-linux-i386): Likewise.
25086 (bootcheck-linux-x86_64): Likewise.
25087 (bootcheck-linux16-i386): Likewise.
25088 (bootcheck-linux16-x86_64): Likewise.
25089 (bootcheck-multiboot): Likewise.
25090 (bootcheck-multiboot2): Likewise.
25091 (bootcheck-kfreebsd-aout): Likewise.
25092 (bootcheck-pc-chainloader): Likewise.
25093 (bootcheck-ntldr): Likewise.
25094 (CLEANFILES): Add new targets.
25095 (BOOTCHECKS): New variable.
25096 (.PHONY): Add bootchecks.
25097 (SUCCESSFUL_BOOT_STRING): New variable.
25098 (BOOTCHECK_TIMEOUT): Likewise.
25099 (bootcheck): New target
25100 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
25101 * configure.ac: Correct efiemu excuse.
25102 * docs/grub.texi (Supported kernels): New chapter.
25103 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
25104 include/grub/mm_private.h. Simplify inclusion of
25105 include/grub/boot.h, include/grub/loader.h
25106 and include/grub/msdos_partition.h
25107 (KERNEL_HEADER_FILES) [i386_coreboot]:
25108 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
25109 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
25110 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
25111 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
25112 include/grub/machine/loader.h.
25113 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
25114 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
25116 (pci.mod): Enable on i386-multiboot.
25117 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
25118 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
25120 (relocator.mod): Rewritten.
25121 (aout.mod): Enable on all x86.
25122 (bsd.mod): Likewise.
25123 (ntldr.mod): New module.
25124 (linux.mod): Use loader/i386/linux.c on all x86.
25125 (xnu.mod): Enable on all x86.
25126 (vga_text.mod): disable on EFI and QEMU.
25127 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
25128 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
25129 * grub-core/efiemu/loadcore.c: Likewise.
25130 * grub-core/efiemu/main.c: Likewise.
25131 (grub_efiemu_exit_boot_services): Removed.
25132 (grub_efiemu_finish_boot_services): Likewise.
25133 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
25135 * grub-core/efiemu/i386/nocfgtables.c: New file.
25136 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
25137 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
25138 (grub_efi_finish_boot_services): Moved from here ...
25139 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
25140 Fille finish memory map and related data.
25141 (finish_mmap_buf): New variable.
25142 (grub_efi_uintn_t finish_mmap_size): Likewise.
25143 (grub_efi_uintn_t finish_key): Likewise.
25144 (grub_efi_uintn_t finish_desc_size): Likewise.
25145 (grub_efi_uint32_t finish_desc_version): Likewise.
25146 (grub_efi_is_finished): Likewise.
25147 (grub_efi_get_memory_map): Use saved memory map if EFI is already
25149 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
25150 (grub_elf64_phdr_iterate): Likewise.
25151 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
25152 (grub_os_area_size): Likewise.
25153 (grub_machine_init): Don't reserve os area.
25154 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
25155 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
25156 * grub-core/kern/i386/loader.S: Removed.
25157 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
25158 (grub_os_area_size): Likewise.
25159 (grub_machine_init): Don't reserve os area.
25160 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
25161 Don't call grub_dl_unload_all.
25162 Don't include loader.S.
25163 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
25164 Declare the memory after _end as available.
25165 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
25166 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
25167 (GRUB_MM_ALLOC_MAGIC): Moved from here...
25168 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
25169 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
25170 * include/grub/mm_private.h (grub_mm_header): ... here.
25171 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
25172 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
25173 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
25174 (grub_mm_region): ..here. Removed addr. Added pre_size.
25176 * grub-core/kern/mm.c (base): Renamed to ...
25177 (grub_mm_base): ... this. Made global.
25178 (grub_real_malloc): Alloc from end of region.
25179 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
25180 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
25181 * grub-core/kern/powerpc/cache_flush.S: ... here.
25182 * grub-core/lib/efi/relocator.c: New file.
25183 * grub-core/lib/i386/relocator.c: Rewritten.
25184 * grub-core/lib/i386/relocator16.S: New file.
25185 * grub-core/lib/i386/relocator32.S: Likewise.
25186 * grub-core/lib/i386/relocator64.S: Likewise.
25187 * grub-core/lib/i386/relocator_asm.S: Rewritten.
25188 * grub-core/lib/i386/relocator_common.S: New file.
25189 * grub-core/lib/ieee1275/relocator.c: Likewise.
25190 * grub-core/lib/mips/relocator.c: Rewritten.
25191 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
25192 stylistic adjustments.
25193 * grub-core/lib/powerpc/relocator.c: New file.
25194 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
25195 * grub-core/lib/relocator.c: Rewritten.
25196 * grub-core/lib/x86_64/relocator_asm.S: New file.
25197 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
25198 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
25199 (bsd_tag): New struct.
25200 (tags): New variable.
25201 (tags_last): Likewise.
25202 (netbsd_module): New struct.
25203 (netbsd_mods): New variable.
25204 (netbsd_mods_last): Likewise.
25205 (openbsd_opts): New parameter "serial".
25206 (OPENBSD_SERIAL_ARG): New definition.
25207 (netbsd_opts): New parameter "serial".
25208 (NETBSD_SERIAL_ARG): New definition.
25209 (grub_freebsd_add_meta): Reorganised into ...
25210 (grub_bsd_add_meta): ...this. All users updated.
25211 (grub_freebsd_add_mmap): Reorganised into ...
25212 (generate_e820_mmap): ...this...
25213 (grub_bsd_add_mmap): ...and this. All users updated.
25214 (grub_freebsd_list_modules): Use tags.
25215 (grub_netbsd_add_meta_module): New function.
25216 (grub_netbsd_list_modules): Likewise.
25217 (grub_freebsd_boot): Use relocator and finish EFI.
25218 (grub_openbsd_boot): Likewise.
25219 (grub_netbsd_setup_video): New function.
25220 (grub_netbsd_add_modules): Likewise.
25221 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
25223 (grub_bsd_unload): Unload tags.
25224 (grub_bsd_load_aout): Use relocator.
25225 (grub_bsd_elf32_size_hook): New function.
25226 (grub_bsd_elf32_hook): Use relocator.
25227 (grub_bsd_elf64_size_hook): New function.
25228 (grub_bsd_elf64_hook): Use relocator.
25229 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
25230 (grub_bsd_load): Zero-out openbsd_ramdisk.
25231 (grub_bsd_load): Use relocator.
25232 (grub_cmd_openbsd): Support serial.
25233 (grub_cmd_netbsd): Support modules.
25234 (grub_cmd_freebsd_module): Use relocator.
25235 (grub_netbsd_module_load): New function.
25236 (grub_cmd_netbsd_module): Likewise.
25237 (grub_cmd_openbsd_ramdisk): Likewise.
25238 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
25240 (GRUB_MOD_FINI): Unregister new commands.
25241 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
25242 (grub_freebsd_load_elfmodule_obj): Use relocator.
25243 (grub_freebsd_load_elfmodule): Likewise.
25244 (grub_freebsd_load_elf_meta): Likewise.
25245 (grub_netbsd_load_elf_meta): New function.
25246 (grub_openbsd_find_ramdisk): Likewise.
25247 * grub-core/loader/i386/bsd_helper.S: Removed.
25248 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
25249 * grub-core/loader/i386/bsd_trampoline.S: Removed.
25250 * grub-core/loader/i386/efi/linux.c: Likewise.
25251 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
25252 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
25253 (DEFAULT_VIDEO_MODE): Likewise.
25254 (real_mode_target): New variable.
25255 (prot_mode_target): Likewise.
25256 (initrd_mem_target): Likewise.
25257 (relocator): Likewise.
25258 (efi_mmap_buf): Likewise.
25259 (efi_mmap_size): Likewise.
25260 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
25261 (free_pages): Use relocator.
25262 (allocate_pages): Account for efi_mmap and use relocator. Return error.
25263 (grub_linux_setup_video): Return error.
25264 (grub_linux_trampoline_start): Removed.
25265 (grub_linux_trampoline_end): Likewise.
25266 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
25267 andd video parameters depending on firmware.
25268 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
25269 [GRUB_MACHINE_EFI]: Pass EFI parameters.
25270 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
25271 (grub_cmd_initrd): Use relocator.
25272 * grub-core/loader/i386/linux_trampoline.S: Removed.
25273 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
25274 (elf_sec_entsize): Likewise.
25275 (elf_sec_shstrndx): Likewise.
25276 (elf_sections): Likewise.
25277 (grub_multiboot_load): Use relocator.
25278 (grub_multiboot_get_mbi_size): Account for sections.
25279 (grub_multiboot_make_mbi): Use relocator and support sections.
25280 (grub_multiboot_add_elfsyms): New function.
25281 (grub_multiboot_free_mbi): Free sections.
25282 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
25283 (grub_linux_real_target): Likewise.
25284 (grub_linux_real_chunk): Likewise.
25285 (grub_linux16_prot_size): Likewise.
25286 (grub_linux16_boot): Use relocator.
25287 (grub_linux_unload): Unload relocator.
25288 (grub_cmd_linux): Use relocator.
25289 (grub_cmd_initrd): Likewise.
25290 * grub-core/loader/i386/pc/ntldr.c: New file.
25291 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
25292 Don't try to guess CPU frequency.
25293 (grub_xnu_set_video): Stretch bitmap.
25294 (grub_xnu_boot): Use relocator.
25295 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
25296 (grub_linux_unload): Free relocator.
25297 (grub_linux_load32): Use relocator.
25298 (grub_linux_load64): Likewise.
25299 (grub_cmd_initrd): Likewise.
25300 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
25301 (grub_multiboot_unload): Unload relocator.
25302 (grub_cmd_multiboot): Use relocator.
25303 (grub_cmd_module): Likewise.
25304 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
25305 Use relocator and support sections.
25306 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
25307 (elf_sec_entsize): Likewise.
25308 (elf_sec_shstrndx): Likewise.
25309 (elf_sections): Likewise.
25310 (grub_multiboot_load): Use relocator.
25311 (grub_multiboot_get_mbi_size): Account for sections.
25312 (grub_multiboot_make_mbi): Use relocator and support sections.
25313 (grub_multiboot_add_elfsyms): New function.
25314 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
25315 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
25316 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
25317 Prototype changed. All users updated.
25318 (grub_xnu_align_heap): Simplified.
25319 (grub_xnu_writetree_toheap): Likewise.
25320 (grub_xnu_unload): Unload relocator.
25321 (grub_cmd_xnu_kernel): Use relocator.
25322 (grub_cmd_xnu_kernel64): Likewise.
25323 (grub_xnu_register_memory): Simplified.
25324 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
25325 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
25327 (grub_console_checkkey): Likewise.
25328 (grub_console_getkey): Likewise.
25329 (grub_console_getwh): Likewise.
25330 (grub_console_getxy): Likewise.
25331 (grub_console_gotoxy): Likewise.
25332 (grub_console_cls): Likewise.
25333 (grub_console_setcolorstate): Likewise.
25334 (grub_console_setcursor): Likewise.
25335 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
25336 * grub-core/tests/boot/kbsd.init-i386.S: New file.
25337 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
25338 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
25339 * grub-core/tests/boot/kernel-8086.S: Likewise.
25340 * grub-core/tests/boot/kernel-i386.S: Likewise.
25341 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
25342 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
25343 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
25344 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
25345 * grub-core/tests/boot/knetbsd.cfg: Likewise.
25346 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
25347 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
25348 * grub-core/tests/boot/linux.cfg: Likewise.
25349 * grub-core/tests/boot/linux.init-i386.S: Likewise.
25350 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
25351 * grub-core/tests/boot/linux16.cfg: Likewise.
25352 * grub-core/tests/boot/multiboot.cfg: Likewise.
25353 * grub-core/tests/boot/multiboot2.cfg: Likewise.
25354 * grub-core/tests/boot/ntldr.cfg: Likewise.
25355 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
25356 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
25357 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
25359 * include/grub/dl.h (grub_dl_unload_all): Removed.
25360 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
25361 (grub_efi_finish_boot_services): Change prototype.
25362 (grub_efi_is_finished): New variable.
25363 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
25365 (grub_efiemu_finish_boot_services): Removed.
25366 (grub_machine_efiemu_init_tables): New prototype.
25367 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
25368 (grub_elf64_phdr_iterate): Likewise.
25369 * include/grub/i386/bsd.h: Include relocator.h.
25370 (freebsd_tag_header): New struct.
25371 (grub_openbsd_bios_mmap): Removed.
25372 (grub_unix_real_boot): Removed.
25373 (grub_freebsd_load_elfmodule32): Changed prototype.
25374 (grub_freebsd_load_elfmodule_obj64): Likewise.
25375 (grub_freebsd_load_elf_meta32): Likewise.
25376 (grub_freebsd_load_elf_meta64): Likewise.
25377 (grub_freebsd_add_meta): Removed.
25378 (grub_netbsd_load_elf_meta32): New prototype.
25379 (grub_netbsd_load_elf_meta64): Likewise.
25380 (grub_bsd_add_meta): Likewise.
25381 (grub_openbsd_ramdisk_descriptor): New struct.
25382 (grub_openbsd_find_ramdisk32): New prototype.
25383 (grub_openbsd_find_ramdisk64): Likewise.
25384 * include/grub/i386/coreboot/loader.h: Removed.
25385 * include/grub/i386/efi/loader.h: Likewise.
25386 * include/grub/i386/ieee1275/loader.h: Likewise.
25387 * include/grub/i386/linux.h (linux_kernel_header): Change void *
25389 * include/grub/i386/loader.h: Removed.
25390 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
25392 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
25393 (grub_phys_addr_t): New type.
25394 (grub_vtop): New inline function.
25395 (grub_map_memory): Likewise.
25396 (grub_unmap_memory): Likewise.
25397 * include/grub/i386/multiboot/loader.h: Removed.
25398 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
25399 (NETBSD_BTINFO_CONSOLE): New definition.
25400 (NETBSD_BTINFO_SYMTAB): Likewise.
25401 (NETBSD_BTINFO_MODULES): Likewise.
25402 (NETBSD_BTINFO_FRAMEBUF): Likewise.
25403 (grub_netbsd_bootinfo): New struct.
25404 (grub_netbsd_btinfo_common): Use explicit bitsize.
25405 (grub_netbsd_btinfo_mmap_entry): Removed.
25406 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
25407 (grub_netbsd_btinfo_bootdisk): New struct.
25408 (grub_netbsd_btinfo_symtab): Likewise.
25409 (grub_netbsd_btinfo_serial): Likewise.
25410 (grub_netbsd_btinfo_modules): Likewise.
25411 (grub_netbsd_btinfo_framebuf): Likewise.
25412 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
25413 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
25415 (grub_openbsd_bootargs): Use explicit bitsize.
25416 (grub_openbsd_bootarg_console): New struct.
25417 (GRUB_OPENBSD_COM_MAJOR): New definition.
25418 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
25419 * include/grub/i386/pc/efiemu.h: Removed.
25420 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
25421 * include/grub/i386/qemu/loader.h: Removed.
25422 * include/grub/i386/relocator.h: Rewritten.
25423 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
25424 * include/grub/mips/memory.h: New file.
25425 * include/grub/mips/multiboot.h: Rewritten.
25426 * include/grub/mips/relocator.h: Rewritten.
25427 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
25428 (grub_vtop): New function.
25429 (grub_map_memory): Likewise.
25430 (grub_unmap_memory): Likewise.
25431 * include/grub/misc.h (ALIGN_DOWN): New definition.
25432 * include/grub/mm.h (grub_mm_check_real): New proto.
25433 (GRUB_MM_CHECK): New definition.
25434 * include/grub/mm_private.h: New file.
25435 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
25436 (grub_multiboot_get_mbi_size): Removed.
25437 (grub_multiboot_make_mbi): Change prottype.
25438 (grub_multiboot_set_accepts_video): New proto.
25439 (grub_multiboot_add_elfsyms): Likewise.
25440 (grub_multiboot_payload_eip): New variable.
25441 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
25443 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
25445 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
25446 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
25447 * include/grub/powerpc/ieee1275/loader.h: Removed.
25448 * include/grub/powerpc/memory.h: New file.
25449 * include/grub/powerpc/relocator.h: Likewise.
25450 * include/grub/relocator.h: Likewise.
25451 * include/grub/relocator_private.h: Likewise.
25452 * include/grub/sparc64/ieee1275/loader.h: Removed.
25453 * include/grub/x86_64/memory.h: New file.
25454 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
25455 (grub_xnu_heap_malloc): Likewise.
25456 (grub_xnu_heap_real_start): Removed.
25457 (grub_xnu_heap_start): Likewise.
25458 (grub_xnu_relocator): New variable.
25459 (grub_xnu_heap_target_start): Likewise.
25460 * tests/util/grub-shell.in: Support non-pc.
25461 * util/grub-mkimage.c (image_targets): Fix multiboot target.
25463 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25465 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
25467 (grub_bidi_logical_to_visual): Check that malloc succeded.
25468 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
25470 (grub_xputs_normal): Likewise.
25472 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25474 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
25477 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25479 * grub-core/efiemu/runtime/efiemu.sh: Removed.
25481 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25483 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
25485 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25487 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
25490 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
25492 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
25494 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25496 * grub-core/normal/term.c (print_more): Fix a memory leak.
25497 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
25498 (grub_xputs_normal): Likewise.
25500 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25502 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
25503 the begining of the string
25505 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25507 * grub-core/script/script.c (grub_script_parse): Free parsed on
25510 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25512 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
25515 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25517 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
25520 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25522 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
25523 (scroll_up): Fix a memory leak.
25525 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25527 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
25530 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
25532 Handle USB pendrives exposed as floppies.
25534 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
25536 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25537 Check for partitions on all devices.
25539 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
25541 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
25542 (readkey): Likewise.
25544 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
25546 Multiple variable names support to "export" command.
25548 * normal/context.c (grub_cmd_export): "export" command supports
25549 multiple variable names.
25551 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
25553 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
25554 --target=drive output to Mach device name.
25556 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25558 New Automake based build system for GRUB.
25560 * ABOUT-NLS: New file.
25561 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
25562 in Makefile.util.def file.
25563 * Makefile.util.def: New file. Autogen build definitions file for
25565 * conf/Makefile.common: New file. Common variables for GRUB host
25566 utils and target modules.
25567 * conf/Makefile.extra-dist: New file. Extra files for make dist.
25568 * docs/Makefile.am: New file. Automake file for docs.
25569 * gentpl.py: New file. Python script to generate Autogen
25571 * grub-core/Makefile.am: New file. GRUB target modules' rules
25572 that doesn't fit in Makefile.core.def file.
25573 * grub-core/Makefile.core.def: New file. Autogen build
25574 definitions file for GRUB target modules.
25575 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
25576 specific setjmp.S file.
25577 * po/Makefile.am: New file.
25579 * .bzrignore: New ignores.
25580 * INSTALL: New requirements, without Ruby.
25581 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
25582 * autogen.sh: Updated to invoke autogen as necessary.
25583 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
25584 and defines for Automake conditionals.
25585 * geninit.sh: Refactoring.
25587 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
25589 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
25592 * include/grub/test.h: Fix functional test modules' naming.
25593 * grub-core/tests/example_functional_test.c: Fix test module name.
25595 * util/misc.c: Hosted versions' of grub functions for libgrub.a
25596 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
25597 * util/grub-editenv.c: Likewise.
25598 * util/grub-fstest.c: Likewise.
25599 * util/grub-mkdevicemap.c: Likewise.
25600 * util/grub-mkfont.c: Likewise.
25601 * util/grub-mkimage.c: Likewise.
25602 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25603 * util/grub-probe.c: Likewise.
25604 * util/grub-script-check.c: Likewise.
25605 * util/i386/pc/grub-setup.c: Likewise.
25606 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25608 * tests/util/grub-shell.in: Fix override directory path.
25609 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
25610 * util/import_gcry.py: Create Makefile.gcry.def file instead.
25612 * util/lvm.c: Update #includes.
25613 * util/raid.c: Likewise.
25614 * util/resolve.c: Likewise.
25615 * grub-core/bus/emu/pci.c: Likewise.
25616 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
25617 * grub-core/lib/posix_wrap/string.h: Likewise.
25618 * grub-core/kern/emu/main.c: Likewise.
25620 * grub-core/gensymlist.sh: New file. Script for generating kernel
25622 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
25624 * grub-core/gentrigtables.c: Fix unused variable warnings.
25626 * Makefile.in: Removed.
25627 * conf/any-emu.rmk: Removed.
25628 * conf/common.rmk: Removed.
25629 * conf/i386-coreboot.rmk: Removed.
25630 * conf/i386-efi.rmk: Removed.
25631 * conf/i386-ieee1275.rmk: Removed.
25632 * conf/i386-multiboot.rmk: Removed.
25633 * conf/i386-pc.rmk: Removed.
25634 * conf/i386-qemu.rmk: Removed.
25635 * conf/i386.rmk: Removed.
25636 * conf/mips-yeeloong.rmk: Removed.
25637 * conf/mips.rmk: Removed.
25638 * conf/powerpc-ieee1275.rmk: Removed.
25639 * conf/sparc64-ieee1275.rmk: Removed.
25640 * conf/tests.rmk: Removed.
25641 * conf/x86-efi.rmk: Removed.
25642 * conf/x86_64-efi.rmk: Removed.
25643 * gendistlist.sh: Removed.
25644 * geninitheader.sh: Removed.
25645 * genkernsyms.sh.in: Removed.
25646 * genmk.rb: Removed.
25647 * gensymlist.sh.in: Removed.
25648 * mkinstalldirs: Removed.
25650 * grub-core/boot: ... to here.
25652 * grub-core/bus: ... to here.
25653 * commands: Moved ...
25654 * grub-core/commands: ... to here.
25656 * grub-core/disk: ... to here.
25657 * efiemu: Moved ...
25658 * grub-core/efiemu: ... to here.
25660 * grub-core/font: ... to here.
25662 * grub-core/fs: ... to here.
25663 * gencmdlist.sh: Moved ...
25664 * grub-core/gencmdlist.sh: ... to here.
25665 * genemuinit.sh: Moved ...
25666 * grub-core/genemuinit.sh: ... to here.
25667 * genemuinitheader.sh: Moved ...
25668 * grub-core/genemuinitheader.sh: ... to here.
25669 * genfslist.sh: Moved ...
25670 * grub-core/genfslist.sh: ... to here.
25671 * genhandlerlist.sh: Moved ...
25672 * grub-core/genhandlerlist.sh: ... to here.
25673 * genmoddep.awk: Moved ...
25674 * grub-core/genmoddep.awk: ... to here.
25675 * genmodsrc.sh: Moved ...
25676 * grub-core/genmodsrc.sh: ... to here.
25677 * genpartmaplist.sh: Moved ...
25678 * grub-core/genpartmaplist.sh: ... to here.
25679 * genparttoollist.sh: Moved ...
25680 * grub-core/genparttoollist.sh: ... to here.
25681 * genterminallist.sh: Moved ...
25682 * grub-core/genterminallist.sh: ... to here.
25683 * gentrigtables.c: Moved ...
25684 * grub-core/gentrigtables.c: ... to here.
25685 * genvideolist.sh: Moved ...
25686 * grub-core/genvideolist.sh: ... to here.
25687 * gettext: Moved ...
25688 * grub-core/gettext: ... to here.
25689 * gfxmenu: Moved ...
25690 * grub-core/gfxmenu: ... to here.
25691 * gnulib: Moved ...
25692 * grub-core/gnulib: ... to here.
25694 * grub-core/hello: ... to here.
25696 * grub-core/hook: ... to here.
25698 * grub-core/io: ... to here.
25700 * grub-core/kern: ... to here.
25702 * grub-core/lib: ... to here.
25703 * loader: Moved ...
25704 * grub-core/loader: ... to here.
25706 * grub-core/mmap: ... to here.
25707 * normal: Moved ...
25708 * grub-core/normal: ... to here.
25709 * partmap: Moved ...
25710 * grub-core/partmap: ... to here.
25711 * parttool: Moved ...
25712 * grub-core/parttool: ... to here.
25713 * script: Moved ...
25714 * grub-core/script: ... to here.
25716 * grub-core/term: ... to here
25717 * tests/example_functional_test.c: Moved ...
25718 * grub-core/tests/example_functional_test.c: ... to here.
25719 * tests/lib/functional_test.c: Moved ...
25720 * grub-core/tests/lib/functional_test.c: ... to here.
25721 * tests/lib/test.c: Moved ...
25722 * grub-core/tests/lib/test.c: ... to here.
25724 * grub-core/video: ... to here.
25726 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25728 Replace --enable-grub-emu-modules with grub-emu-lite.
25730 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
25733 * include/grub/emu/misc.h (grub_emu_init): New prototype.
25734 * kern/emu/full.c: New file. For grub-emu specific initialization.
25735 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
25736 * kern/emu/main.c: Call initialization function grub_emu_init.
25738 * Makefile.in: Include grub-emu-lite in install.
25739 * commands/parttool.c: Use grub_no_autoload to differentiate
25740 between grub-emu and grub-emu-lite.
25741 * include/grub/misc.h: New variable grub_no_autoload.
25743 * conf/any-emu.rmk: New rules for grub-emu-lite.
25744 * configure.ac: Remove --enable-grub-emu-modules.
25745 * genmk.rb: Cleanup unnecessary rules.
25746 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
25748 * normal/main.c: Don't load list files on grub-emu-lite.
25749 * util/misc.c (grub_arch_sync_caches): Removed.
25751 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
25753 * kern/mips/startup.S (grub_prefix): Update comment to refer to
25754 grub-mkimage rather than grub-mkelfimage.
25755 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
25757 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
25759 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
25760 a key after CapsLock or NumLock. It's just a qemu bug.
25762 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25764 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
25765 needed by libusb wrapper.
25767 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25769 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
25771 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25773 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25774 --nounzip is passed.
25776 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25778 USB hotunplugging and USB serial support.
25780 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25781 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25782 (grub_uhci_transfer): Respect timeout and set *actual.
25783 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25784 non-standard length.
25785 (grub_usb_device_attach): Autoload modules.
25786 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25787 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25788 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25790 (grub_usb_add_hub): Fill nports and children.
25791 (attach_root_port): Receive hub instead of controller.
25792 All users updated. Fill hub->devices.
25793 (grub_usb_root_hub): Allocate hub->devices.
25794 (detach_device): New function.
25795 (poll_nonroot_hub): Fill children and detach devices.
25796 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25797 actual arguments. All users updated.
25798 (grub_usb_bulk_read_extended): New function.
25799 * bus/usb/serial/common.c: New file.
25800 * bus/usb/serial/ftdi.c: Likewise.
25801 * bus/usb/serial/pl2303.c: Likewise.
25802 * commands/terminal.c (handle_command): Support wildcard.
25803 * commands/usbtest.c: Output "Unknown" instead of empty string.
25804 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25805 (usbserial_common_mod_SOURCES): New variable.
25806 (usbserial_common_mod_CFLAGS): Likewise.
25807 (usbserial_common_mod_LDFLAGS): Likewise.
25808 (pkglib_MODULES): Add usbserial_pl2303.mod.
25809 (usbserial_pl2303_mod_SOURCES): New variable.
25810 (usbserial_pl2303_mod_CFLAGS): Likewise.
25811 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25812 (pkglib_MODULES): Add usbserial_ftdi.mod.
25813 (usbserial_ftdi_mod_SOURCES): New variable.
25814 (usbserial_ftdi_mod_CFLAGS): Likewise.
25815 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25816 (pkglib_MODULES): Add serial.mod.
25817 (serial_mod_SOURCES): New variable.
25818 (serial_mod_CFLAGS): Likewise.
25819 (serial_mod_LDFLAGS): Likewise.
25820 * conf/i386-pc.rmk: Likewise.
25821 * conf/mips-yeeloong.rmk: Likewise.
25822 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25823 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25824 * disk/usbms.c (first_available_slot): New variable.
25825 (grub_usbms_attach): Don't reuse free slots due to potential cache
25827 * include/grub/serial.h: Moved to ..
25828 * include/grub/ns8250.h: ...this.
25829 * include/grub/serial.h: New file.
25830 * include/grub/term.h (grub_term_poll_usb): New variable.
25831 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25832 readkey. All users updated.
25833 (grub_terminfo_output_state): Pass term to put.
25834 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25835 (grub_usb_controller_dev): Add timeout and actual arguments to
25836 transfer. All users updated.
25837 (grub_usb_interface): New field detach_data.
25838 (grub_usb_device): New fields children and nports.
25839 (grub_usb_ep_type_t): New type.
25840 (grub_usb_get_ep_type): New function.
25841 (grub_usb_bulk_read_extended): Likewise.
25842 * include/grub/usbdesc.h (grub_usb_desc): New type.
25843 * include/grub/usbserial.h: New file.
25844 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25845 * kern/term.c (grub_term_poll_usb): New variable.
25846 (grub_getkey): Call grub_term_poll_usb if set.
25847 (grub_checkkey): Likewise.
25848 (grub_getkeystatus): Likewise.
25849 * term/serial.c: Moved controller-specific parts to ...
25850 * term/ns8250.c: ... here.
25851 * term/serial.c: Mostly rewritten.
25852 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
25855 2010-08-20 Robert Millan <rmh@gnu.org>
25857 Make kFreeBSD code more generic to support ext2fs as root, ufs as
25858 a separate module and maybe other interesting combinations.
25860 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
25861 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
25862 (kfreebsd_entry): Add generic filesystem module load routine.
25863 Map GRUB `ext2' to kFreeBSD `ext2fs'.
25865 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25867 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
25868 "numcenter" (I misunderstood the purpose of this entry).
25869 * docs/grub.texi (sendkey): Likewise.
25871 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25873 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
25874 status flag options; simply omitting the option is equivalent and
25875 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
25876 (keysym_table): Rename "num5numlock" to "numlock".
25877 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
25878 can uniformly say that only the last of multiple `sendkey'
25879 invocations has any effect.
25880 * docs/grub.texi (sendkey): New section.
25882 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
25884 * commands/i386/pc/sendkey.c (options): Fix three typos.
25886 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
25888 Implement sendkey support.
25890 * commands/i386/pc/sendkey.c: New file.
25891 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
25892 (sendkey_mod_SOURCES): New variable.
25893 (sendkey_mod_CFLAGS): Likewise.
25894 (sendkey_mod_LDFLAGS): Likewise.
25896 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25898 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
25899 fix warnings from Autoconf.
25901 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25903 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
25904 to avoid false positives with some assemblers that output things
25905 like "someprefix_func" as part of their output.
25907 2010-08-15 Robert Millan <rmh@gnu.org>
25909 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
25911 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
25912 grub_get_libzfs_handle() errors.
25914 2010-08-14 Robert Millan <rmh@gnu.org>
25916 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
25917 filesystem is not ZFS.
25919 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25921 Fix for misspelled color names defaulting to black/black (bug
25922 reported by Doug Nazar)
25924 * include/grub/normal.h (grub_parse_color_name_pair): Add return
25925 status to prototype.
25926 * normal/color.c (grub_parse_color_name_pair): Return failure
25928 (grub_env_write_color_normal): Ignore bad color names.
25929 (grub_env_write_color_highlight): Likewise.
25930 * normal/main.c (GRUB_MOD_INIT): Set default color names.
25932 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25934 "shift" command support to GRUB script.
25936 * include/grub/script_sh.h (grub_script_shift): New prototype.
25937 * script/execute.c (grub_script_shift): New function.
25938 * script/main.c (grub_script_init): Register shift command.
25939 (grub_script_fini): Unregister shift command.
25940 * util/grub-script-check.c (grub_script_cmd_shift): New function.
25942 * tests/grub_script_shift.in: New testcase.
25943 * conf/tests.rmk: Rules for new testcase.
25945 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25947 "continue" command support to GRUB script.
25949 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
25950 (grub_script_break): Continue support.
25951 * script/main.c (grub_script_init): Register continue command.
25952 (grub_script_fini): Unregister continue command.
25954 * tests/grub_script_continue.in: New testcase.
25955 * conf/tests.rmk: Rules for new testcase.
25957 2010-08-12 BVK Chaitanya <bvk@dbook>
25959 "break" command support to GRUB script.
25961 * conf/common.rmk: Rule updates to grub-script-check.
25962 * include/grub/misc.h (grub_min): New function.
25963 * include/grub/script_sh.h (grub_script_init): New prototype.
25964 (grub_script_fini): New prototype.
25965 (grub_script_break): New prototype.
25966 * script/main.c (grub_script_init): New function.
25967 (grub_script_fini): New function.
25968 * script/execute.c (grub_script_break): New function.
25969 * normal/main.c: Calls to grub_script_{init,fini}.
25970 * util/grub-script-check.c (grub_script_break): New function.
25972 * tests/grub_script_break.in: New testcase.
25973 * conf/tests.rmk: Rules for new test case.
25975 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25977 Function parameters support to GRUB script.
25979 * script/yylex.l (VARIABLE): Regular expression update.
25980 * script/function.c (grub_script_function_call): Moved ...
25981 * script/execute.c (grub_script_function_call): ... to here.
25982 (grub_script_execute_arglist_to_argv): Removed.
25983 (grub_script_arglist_to_argv): New function.
25984 * script/argv.c: New file.
25985 (grub_script_argv_free): New function.
25986 (grub_script_argv_next): Likewise.
25987 (grub_script_argv_append): Likewise.
25988 (grub_script_argv_split_append): Likewise.
25989 * include/grub/script_sh.h (grub_script_argv): New struct.
25990 (grub_script_argv_free): New function.
25991 (grub_script_argv_next): Likewise.
25992 (grub_script_argv_append): Likewise.
25993 (grub_script_argv_split_append): Likewise.
25995 * conf/common.rmk (normal.mod): New source script/argv.c.
25997 * tests/grub_script_echo1.in: More tests.
25998 * tests/grub_script_vars1.in: Likewise.
25999 * tests/grub_script_functions.in: New test case.
26000 * conf/tests.rmk: Rules for new testcase.
26002 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26004 Remove grub_script_cmdblock struct.
26006 * include/grub/script_sh.h: Remove grub_script_cmdblock.
26007 * script/parser.y: Likewise.
26008 * script/execute.c: Rename cmdblock suffix to cmdlist.
26009 * script/script.c: Likewise.
26010 * util/grub-script-check.c: Likewise.
26012 2010-08-11 Yves Blusseau <blusseau@zetam.org>
26014 * .bzrignore: add grub-macho2img
26016 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
26018 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
26020 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
26022 Remove the dump of sm712 initialisation sequence.
26024 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
26025 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
26026 (GRUB_VGA_IO_MISC_WRITE): Likewise.
26027 (GRUB_VGA_CR_*): Added many registers.
26028 (GRUB_VGA_SR_*): Likewise.
26029 (GRUB_VGA_GR_*): Likewise.
26030 (grub_vga_write_arx): New function.
26031 (grub_video_hw_config): New struct.
26032 (grub_vga_set_geometry): New function.
26033 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
26034 GRUB_PCI_CLASS_SUBCLASS_VGA.
26035 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
26036 * video/sm712.c (grub_sm712_write_reg): New function
26037 (grub_sm712_read_reg): Likewise.
26038 (grub_sm712_sr_write): Likewise.
26039 (grub_sm712_gr_write): Likewise.
26040 (grub_sm712_cr_write): Likewise.
26041 (grub_sm712_write_arx): Likewise.
26042 (grub_sm712_cr_shadow_write): Likewise.
26043 (grub_sm712_write_dda_lookup): Likewise.
26044 (grub_video_sm712_setup): Initialise the video rather then
26045 blindly replay the dump.
26046 (main) [TEST]: Add a routine to be able to compile as standalone for
26048 * video/sm712_init.c (sm712_init): Removed.
26049 (sm712_sr_seq1): New array.
26050 (sm712_sr_seq2): Likewise.
26052 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26054 * include/grub/vga.h: Add missing grub/pci.h include.
26056 2010-08-10 Yves Blusseau <blusseau@zetam.org>
26058 * util/grub-macho2img.c (main): fix typo
26060 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26062 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
26063 (grub_vga_gr_read): Likewise.
26064 (grub_vga_cr_write): Likewise.
26065 (grub_vga_cr_read): Likewise.
26066 (grub_vga_sr_write): Likewise.
26067 (grub_vga_sr_read): Likewise.
26068 (grub_vga_palette_read): Likewise.
26069 (grub_vga_palette_write): Likewise.
26070 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
26071 (grub_sm712_sr_read): New function.
26072 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
26073 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
26075 2010-08-09 Robert Millan <rmh@gnu.org>
26077 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
26078 out unused variables on non-ZFS build.
26080 2010-08-08 Robert Millan <rmh@gnu.org>
26082 Fix path generation for sub-filesystems in ZFS.
26084 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
26087 2010-08-08 Robert Millan <rmh@gnu.org>
26089 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
26091 2010-08-08 Robert Millan <rmh@gnu.org>
26093 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
26094 exist, issue a proper error message (rely on `ls' for translated
26097 2010-08-08 Robert Millan <rmh@gnu.org>
26099 Fix grub-probe invocation.
26101 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
26103 2010-08-04 Robert Millan <rmh@gnu.org>
26105 * configure.ac: Remove checks for getfsstat() and getmntany().
26106 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
26107 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
26108 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
26109 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
26110 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
26112 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
26113 via find_mount_point_from_dir() and getfsstat() / getmntany().
26115 2010-08-04 Robert Millan <rmh@gnu.org>
26117 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26118 (grub_find_zpool_from_mount_point): Merge into ...
26119 (grub_find_zpool_from_dir): ... this.
26120 * kern/emu/misc.c: Likewise.
26123 (grub_make_system_path_relative_to_its_root): Replace
26124 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
26125 with grub_find_zpool_from_dir().
26126 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
26128 2010-08-04 Robert Millan <rmh@gnu.org>
26130 Support OpenSolaris in ZFS device resolution.
26132 * configure.ac: Check for getmntany().
26133 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
26134 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
26137 2010-08-03 Robert Millan <rmh@gnu.org>
26139 Fix grub-emu build.
26141 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
26142 * include/grub/emu/misc.h: ... here.
26144 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
26145 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
26147 * util/misc.c: Remove `<grub/util/libzfs.h>'.
26148 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
26149 (grub_get_libzfs_handle): Move to ...
26150 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
26151 (grub_get_libzfs_handle): ... here.
26153 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
26155 * script/execute.c (grub_script_execute_cmdline): Check for NULL
26156 as command name case.
26158 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
26160 * disk/raid.c (insert_array): Select unique numbers for named arrays
26161 as well, for use as keys in the disk cache.
26163 2010-08-01 Robert Millan <rmh@gnu.org>
26165 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
26166 kFreeBSD device name, except on ZFS where the filesystem label is
26168 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
26169 `/boot/zfs/zpool.cache'.
26170 Set mountfrom kernel variable using ${kfreebsd_device}.
26172 2010-08-01 Robert Millan <rmh@gnu.org>
26174 Make it even harder to use uninitialized `libzfs_handle' (and
26175 make the interface a bit simpler).
26177 * include/grub/util/misc.h (grub_util_init_libzfs)
26178 (libzfs_handle): Remove.
26179 (grub_get_libzfs_handle): New prototype.
26181 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
26183 (grub_util_init_libzfs): Remove.
26184 (grub_get_libzfs_handle): New function.
26186 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
26187 grub_get_libzfs_handle() to obtain a libzfs handle instead of
26188 accessing `libzfs_handle' directly.
26190 2010-08-01 Robert Millan <rmh@gnu.org>
26192 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26193 (grub_find_zpool_from_mount_point): New function prototypes.
26195 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26196 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26198 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26199 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26200 `static' attribute.
26202 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26203 finding zpool from mount point into ...
26204 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26206 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26207 requested path is part of a ZFS pool, use
26208 grub_find_zpool_from_mount_point() to detect its filesystem name,
26209 and generate a path with `/fsname@path' syntax.
26211 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26213 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
26214 (void) rather than () so that this is a proper prototype.
26216 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26218 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
26220 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26222 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
26223 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
26225 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26227 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
26229 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26231 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
26233 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26235 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
26236 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
26237 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
26238 disable gfxpayload.
26239 (Shell-like scripting): Add real content.
26240 (Serial terminal): Suggest `terminal_input serial; terminal_output
26241 serial' rather than putting the two commands on separate lines,
26242 since console input will be inoperative after the first command.
26243 (menuentry): Document --class, --users, and --hotkey options.
26244 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
26245 Vladimir Serbinenko).
26247 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26248 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26250 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
26252 2010-08-01 Robert Millan <rmh@gnu.org>
26254 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26255 (grub_find_zpool_from_mount_point): New function prototypes.
26257 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26258 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26260 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26261 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26262 `static' attribute.
26264 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26265 finding zpool from mount point into ...
26266 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26268 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26269 requested path is part of a ZFS pool, use
26270 grub_find_zpool_from_mount_point() to detect its filesystem name,
26271 and generate a path with `/fsname@path' syntax.
26273 2010-08-01 Robert Millan <rmh@gnu.org>
26275 Prevent accidental use of uninitialized libzfs_handle.
26277 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
26278 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
26279 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
26281 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26283 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
26284 util/grub.d/10_linux.in). Fixes Debian bug #591093.
26286 2010-08-01 Robert Millan <rmh@gnu.org>
26288 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
26290 2010-07-31 Robert Millan <rmh@gnu.org>
26292 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
26294 2010-07-31 Robert Millan <rmh@gnu.org>
26296 * kern/emu/misc.c: Add missing license header.
26298 2010-07-31 Robert Millan <rmh@gnu.org>
26300 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
26302 * include/grub/util/libnvpair.h: Include `<config.h>'.
26303 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
26304 declaring libnvpair prototypes ourselves.
26305 * include/grub/util/libzfs.h: Include `<config.h>'.
26306 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
26307 declaring libzfs prototypes ourselves.
26309 (libzfs_handle): Moved to ...
26310 * include/grub/util/misc.h (libzfs_handle): ... here.
26311 Include `<grub/util/libzfs.h>'.
26313 2010-07-30 Robert Millan <rmh@gnu.org>
26315 * include/grub/emu/misc.h: Add missing license header.
26317 2010-07-30 Robert Millan <rmh@gnu.org>
26319 Enable `grub-probe -t device' resolution on ZFS.
26321 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
26322 * include/grub/util/libnvpair.h: New file.
26323 * include/grub/util/libzfs.h: New file.
26325 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
26326 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
26327 `<grub/util/libnvpair.h>'.
26328 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
26330 (find_mount_point_from_dir): New static function.
26331 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
26333 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
26334 find_root_device_from_libzfs() before ressorting to find_root_device().
26336 * include/grub/util/misc.h (grub_util_init_libzfs): New function
26338 * util/misc.c: Include `<grub/util/libzfs.h>'.
26339 (grub_util_init_libzfs): New function.
26340 [HAVE_LIBZFS] (libzfs_handle): New global variable.
26341 [HAVE_LIBZFS] (fini_libzfs): New static function.
26342 (grub_util_init_libzfs): New function.
26343 * util/grub-probe.c (main): Call grub_util_init_libzfs().
26345 2010-07-30 Robert Millan <rmh@gnu.org>
26347 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
26348 (xmalloc, xrealloc, xstrdup, xasprintf): Add
26349 `warn_unused_result' attribute.
26350 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
26351 (grub_xasprintf, grub_xvasprintf): Likewise.
26352 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
26354 2010-07-29 Robert Millan <rmh@gnu.org>
26356 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
26357 (probe): Handle `PRINT_FS_LABEL'.
26358 (main): Handle `-t fs_label'.
26360 2010-07-29 Robert Millan <rmh@gnu.org>
26362 * configure.ac: Remove grub-mkisofs checks.
26364 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
26366 * util/ieee1275/grub-install.in: Don't use empty grub_device.
26367 Reported by: Lennart Sorensen.
26369 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26371 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
26372 prior to terminal_input/terminal_output separation. It's been over 1.5
26373 years and those versions weren't widely deployed.
26375 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
26377 * disk/raid.c (insert_array): Don't count named arrays when looking
26378 for unused array numbers.
26379 Reported and tested by: Michael Guntsche.
26381 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26383 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
26384 implementation of this so that grub-emu links again, with a note
26385 that this should support hotplugging in the future.
26387 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26389 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26391 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26393 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
26395 (grub_loopback_close): Remove empty function.
26396 (grub_loopback_dev): Remove close method.
26398 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26400 Disable EFI cursor when the EFI console becomes inactive.
26402 * term/efi/console.c (grub_efi_console_init): New function.
26403 (grub_efi_console_fini): New function.
26404 (grub_console_term_output): Register init and fini methods.
26406 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26408 * tests/util/grub-shell-tester.in: Remove bashism and declare as
26411 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26413 * disk/loopback.c (grub_loopback): Replace filename with file.
26414 (delete_loopback): Handle new semantics.
26415 (grub_cmd_loopback): Likewise.
26416 (grub_loopback_iterate): Likewise.
26417 (grub_loopback_close): Likewise.
26419 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26421 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
26423 Reported by: Tito Keitel.
26425 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26427 * docs/grub.texi (Naming convention): Document new naming convention.
26429 2010-07-20 Vadim Solomin <vadic052@gmail.com>
26430 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26432 Generate device.map in something closer to the old ordering.
26434 * util/deviceiter.c (struct device): New declaration.
26435 (compare_file_names): Rename to ...
26436 (compare_devices): ... this. Sort by kernel name in preference to
26437 the stable by-id name, but keep the latter as a fallback comparison.
26438 Update header comment.
26439 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
26440 of `struct device' rather than of plain file names.
26442 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
26444 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
26447 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26449 * commands/acpi.c (setup_common_tables): Use sizeof instead of
26451 (setv1table): Likewise.
26453 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26455 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
26456 removing the homehost if present.
26457 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
26458 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
26459 removing the homehost if present.
26460 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
26462 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
26464 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
26465 parameter. Set its pointer target to 0.
26466 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
26467 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
26468 `data_offset' value from the superblock for 1.x metadata.
26469 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
26470 data on the device.
26471 (insert_array): Record the start sector of data on the device.
26472 (grub_raid_register): Pass start_sector parameters to
26473 grub_raid_list->detect and insert_array.
26474 * include/grub/raid.h (struct grub_raid_array): Add start_sector
26476 (struct grub_raid): Add start_sector parameter to `detect'.
26478 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
26479 __attribute__ ((packed)), leaving a comment.
26480 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
26481 (grub_mdraid_detect_09): ... here and ...
26482 (grub_mdraid_detect_1x): ... here.
26484 2010-07-20 Peter Henn <peter.henn@web.de>
26486 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
26487 chunk size and disk size, which are already given as sector counts
26488 as distinct from the 0.90 units. Fetch the correct device number
26489 from the role table instead of using the table index.
26491 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
26493 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
26494 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
26495 (WriteMostly1): New macro.
26496 Set array->name to NULL for metadata format 0.90. Add support for
26497 metadata 1.x. Fix some comments.
26498 * disk/raid.c (): Add support for name based RAID arrays. Fix a
26500 * util/getroot.c (grub_util_get_grub_dev): Add support for
26501 /dev/md/name style devices.
26503 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26505 * .bzrignore: Ignore 20_linux_xen.
26507 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
26509 * util/import_unicode.py: Remove unnecessary imports.
26511 2010-07-17 Aleš Nesrsta <starous@volny.cz>
26513 Hotplugging and USB hub support.
26515 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
26516 (grub_ohci): Likewise.
26517 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
26518 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
26519 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
26520 (GRUB_OHCI_CTRL_EDS): Likewise.
26521 (GRUB_OHCI_BULK_EDS): Likewise.
26522 (GRUB_OHCI_TDS): Likewise.
26523 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
26524 (grub_ohci_ed_phys2virt): New function.
26525 (grub_ohci_virt_to_phys): Likewise.
26526 (grub_ohci_td_phys2virt): Likewise.
26527 (grub_ohci_td_virt2phys): Likewise.
26528 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
26530 (grub_ohci_find_ed): New function.
26531 (grub_ohci_alloc_td): Likewise.
26532 (grub_ohci_free_td): Likewise.
26533 (grub_ohci_free_tds): Likewise.
26534 (grub_ohci_transfer): Use previously allocated memory.
26535 (grub_ohci_portstatus): Reset status changed bit.
26536 (grub_ohci_detect_dev): Supply status changed.
26537 (grub_ohci_fini_hw): Free memory.
26538 (grub_ohci_restore_hw): Reallocate memory.
26539 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
26540 Reset status change.
26541 (grub_uhci_detect_dev): Supply status_change.
26542 * bus/usb/usb.c (attach_hooks): New var.
26543 (grub_usb_device_attach): New function.
26544 (grub_usb_register_attach_hook_class): Likewise.
26545 (grub_usb_unregister_attach_hook_class): Likewise.
26546 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
26547 (grub_usb_add_hub): Reset connection changed bit.
26548 (attach_root_port): New function.
26549 (grub_usb_root_hub): Likewise.
26550 (poll_nonroot_hub): Likewise.
26551 (grub_usb_poll_devices): Likewise.
26552 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
26553 * disk/usbms.c (grub_usbms_open): Use device hooks.
26554 (grub_usbms_iterate) :Poll devices.
26555 (grub_usbms_finddevs): Split into ...
26556 (grub_usbms_attach): ... this ...
26557 (grub_usbms_attach): ... and this.
26558 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
26560 (grub_usb_interface): New fields attached and detach_hook.
26561 (grub_usb_attach_hook_class): New type.
26562 (grub_usb_attach_desc): New struct.
26563 (grub_usb_register_attach_hook_class): New function.
26564 (grub_usb_unregister_attach_hook_class): Likewise.
26565 (grub_usb_poll_devices): Likewise.
26566 (grub_usb_device_attach): Likewise.
26567 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
26568 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
26570 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26572 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
26573 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
26574 delta determination style. Works with most NetBSD partitions too.
26576 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26578 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
26579 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
26581 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26583 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
26585 2010-07-14 Anton Blanchard <anton@samba.org>
26587 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
26590 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26592 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
26594 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26596 * kern/partition.c (grub_partition_check_containment): New function to
26597 check that a partition is physically contained in a parent. Since
26598 offsets are relative (and non-negative), this reduces to checking that
26599 the partition ends before its parent.
26600 (grub_partition_map_probe): Discard out-of-range sub-partitions.
26601 (grub_partition_iterate): Likewise.
26602 * include/grub/partition.h (grub_partition_map): Slightly more detailed
26604 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
26605 partitions that start before their parent, and add debug printfs.
26607 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26609 * Makefile.in (.SUFFIX): Spell correctly, as ...
26610 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
26611 bare module name without `.mod', e.g. `test') tried to invoke a
26614 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26616 * README: Point to the Info manual.
26618 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
26620 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
26621 2nd superblock position from partition size.
26623 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
26625 * Makefile.in (MAINTAINER_CLEANFILES): Remove
26626 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
26627 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
26630 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26632 Restructure SCSI .id handling.
26633 Reported and tested by: Aleš Nesrsta.
26635 * disk/ata.c (grub_atapi_close): Removed. All users updated.
26636 (grub_atapi_dev): Changed .name to "ata". New field .id.
26637 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
26638 (grub_usbms_dev): New field .id.
26639 * disk/scsi.c (grub_scsi_iterate): Generate name.
26640 (grub_scsi_open): Parse name.
26641 * include/grub/scsi.h (grub_make_scsi_id): New function.
26642 (grub_scsi_dev): Change iterate and open to number instead of naming
26643 busses. All users updated.
26644 (grub_scsi): Remove name. Add .bus.
26646 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26648 * commands/help.c (grub_cmd_help): Fix a typo.
26650 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26652 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
26653 Reported and tested by: Colin Watson.
26655 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26657 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
26660 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
26662 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
26664 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
26666 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
26669 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26671 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
26672 and disk/raid6_recover.c.
26673 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26674 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26676 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26678 * term/gfxterm.c (repaint_schedulded): Rename to ...
26679 (repaint_scheduled): ... this. Update all callers.
26680 (repaint_was_schedulded): Rename to ...
26681 (repaint_was_scheduled): ... this. Update all callers.
26683 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26685 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
26686 which we expect to be handled by upper layers.
26688 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
26690 * bus/usb/usbhub.c: #include time.h header.
26692 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26694 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
26695 entry_name also for entries without stat blocks (e.g. ".."); fixes
26696 corruption of the first entry in a directory.
26698 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26700 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
26701 after setting gfxterm as the active terminal. GRUB_BACKGROUND
26702 doesn't work otherwise.
26704 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26706 * docs/grub.texi (Features): Update list of supported file systems.
26707 (GNU/Linux): Update for GRUB 2.
26708 (Serial terminal): Remove mention of --disable-serial, which was a
26709 GRUB Legacy configure option. Update instructions to use
26710 `terminal_input' and `terminal_output' rather than `terminal'.
26711 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
26712 configuration' and `Installing GRUB using grub-install'.
26713 (Menu entry editor): Update for GRUB 2.
26714 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
26715 Document new -a, -u, and -v options.
26716 (initrd): New section.
26717 (initrd16): New section.
26718 (linux): New section.
26719 (linux16): New section.
26720 (search): The `var' argument to `--set' is optional.
26721 (GRUB only offers a rescue shell): Go into a little more detail on
26724 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26726 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
26728 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26730 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
26731 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
26733 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26735 * util/i386/pc/grub-setup.c (setup): Rename prefix to
26736 install_prefix, in line with install_dos_part and install_bsd_part.
26737 Add new prefix variable, which is copied to install_prefix after
26738 comparing core.img in memory with the one read from disk in the
26739 no-embedding case, and use that rather than overwriting
26740 install_prefix immediately when installing to a partition.
26741 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
26744 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26746 * configure.ac: Avoid == in test command, it's not portable.
26747 * util/grub.d/30_os-prober.in: Likewise.
26749 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
26751 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
26753 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26755 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
26756 multiple (top-level) partmaps.
26758 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26760 * util/i386/efi/grub-install.in: Don't use empty grub_device.
26761 Reported by: Tino Keitel.
26763 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26765 Bidi and diacritics support.
26767 * Makefile.in (widthspec.bin): New target.
26768 (widthspec.h): Likewise.
26769 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
26770 * autogen.sh: Generate unidata.c.
26771 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26772 * commands/ls.c (grub_ls_list_devices): Likewise.
26773 (grub_ls_list_files): Likewise.
26774 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26775 (grub_mini_cmd_lsmod): Likewise.
26776 * commands/read.c: Likewise.
26777 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26778 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26779 * lib/arg.c (grub_arg_show_help): Likewise.
26780 * lib/crypto.c (grub_password_get): Likewise.
26781 * normal/auth.c (grub_username_get): Likewise.
26782 * normal/misc.c (grub_normal_print_device_info): Likewise.
26783 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26784 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26785 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26786 (normal/charset.c_DEPENDENCIES): New variable.
26787 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26788 (pkglib_MODULES): Remove charset.mod.
26789 (charset_mod_SOURCES): Removed.
26790 (charset_mod_CFLAGS): Likewise.
26791 (charset_mod_LDFLAGS): Likewise.
26792 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26793 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26795 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26796 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26797 (kernel_img_HEADERS): Add terminfo.h.
26798 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26799 Fill ->font. Reverse ascii bitmaps.
26800 (grub_font_get_xheight): New function.
26801 * font/font.c (grub_font_get_string_width): Moved from here ...
26802 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26803 * font/font.c (grub_font_draw_string): Moved from here ...
26804 * gfxmenu/font.c (grub_font_draw_string): ... here.
26805 * font/font.c (grub_font_dup_glyph): New function.
26806 (grub_font_blit_glyph): Likewise.
26807 (grub_font_blit_glyph_mirror): Likewise.
26808 (blit_comb): Likewise.
26809 (grub_font_construct_dry_run): Likewise.
26810 (grub_font_get_constructed_device_width): Likewise.
26811 (grub_font_construct_glyph): Likewise.
26812 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26813 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26814 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26815 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26816 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26817 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26818 (grub_font_get_xheight): New proto.
26819 (grub_font_get_constructed_device_width): Likewise.
26820 (grub_font_construct_glyph): Likewise.
26821 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26822 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26823 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26824 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26825 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26826 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26827 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26828 (grub_console_getcharwidth): Likewise.
26829 * include/grub/misc.h (grub_xputs): New proto.
26830 (grub_puts): Inlined.
26831 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26832 (grub_normal_get_line_counter): Removed.
26833 (grub_install_newline_hook): Likewise.
26834 (grub_normal_get_char_counter): New proto.
26835 (grub_normal_reset_more): Likewise.
26836 (grub_xputs_normal): Likewise.
26837 * include/grub/powerpc/ieee1275/console.h: Removed.
26838 * include/grub/sparc64/ieee1275/console.h: Likewise.
26839 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26840 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26841 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26842 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26843 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26844 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26845 (grub_term_input): Pass reference to self. All users updated.
26846 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
26847 Pass reference to self. New fields normal_color, highlight_color and
26848 data. All users updated.
26849 (grub_putchar): Removed.
26850 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
26851 (grub_unicode_estimate_width): New function.
26852 (grub_term_getcharwidth): Add defaults.
26853 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
26854 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
26855 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
26856 (grub_cls): Remove EXPORT_FUNC.
26857 (grub_setcolorstate): Inline.
26858 (grub_newline_hook): Removed.
26859 * include/grub/terminfo.h: Rewritten. All users updated.
26860 * include/grub/unicode.h: New file.
26861 * include/grub/video.h (grub_video_signed_rect): New type.
26862 * kern/emu/console.c (grub_console_highlight_color): Removed.
26863 (grub_console_normal_color): Likewise.
26864 (grub_console_standard_color): Made static.
26865 (grub_ncurses_putchar): Remove mapping.
26866 (grub_ncurses_getcharwidth): Removed.
26867 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26868 (grub_ncurses_setcolor): Removed.
26869 (grub_ncurses_getcolor): Likewise.
26870 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
26871 (grub_console_putchar): ... this.
26872 (grub_console_putchar): Handle argument difference.
26873 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
26874 console_init_early and console_init_lately.
26875 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
26876 * kern/misc.c (grub_puts): Removed.
26877 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
26878 (grub_vsnprintf_real): Remove str = NULL support.
26879 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
26880 * normal/charset.c (grub_utf8_to_ucs4): ... here.
26881 * kern/term.c (grub_putcode): Renamed to ...
26882 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
26883 (grub_putchar): Removed.
26884 (grub_xputs_dumb): New function.
26885 (grub_xputs): New variable.
26886 * lib/charset.c: Move from here ...
26887 * normal/charset.c: ... to here.
26888 (grub_ucs4_to_utf8): New function.
26889 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
26890 (join_types): New variable.
26891 (unpack_join): New function.
26892 (bidi_types): New variable.
26893 (unpack_bidi): New function.
26894 (get_bidi_type): Likewise.
26895 (get_join_type): Likewise.
26896 (is_mirrored): Likewise.
26897 (grub_unicode_get_comb_type): Likewise.
26898 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
26899 (is_type_after): Likewise.
26900 (grub_unicode_aglomerate_comb): Likewise.
26901 (bidi_line_wrap): Likewise.
26902 (grub_bidi_line_logical_to_visual): Likewise.
26903 (grub_bidi_logical_to_visual): Likewise.
26904 (grub_unicode_mirror_code): Likewise.
26905 (grub_unicode_shape_code): Likewise.
26906 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
26907 Don't use grub_putchar.
26908 * normal/main.c (grub_normal_init_page): Use grub_putcode.
26909 (grub_normal_reader_init): Likewise.
26910 (grub_xputs_saved): New variable.
26911 (GRUB_MOD_INIT): Set grub_xputs.
26912 (GRUB_MOD_FINI): Restore grub_xputs.
26913 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
26914 (menu_init): Avoid printing gfxmenu error.
26915 (show_menu): Use grub_normal_get_char_counter.
26916 * normal/menu_entry.c (update_screen): Fix out-of-array.
26917 (complete): Avoid NULL dereferencing.
26918 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
26919 * normal/menu_text.c (print_spaces): Removed.
26920 (grub_print_ucs4): Likewise.
26921 (grub_print_message_indented): Use grub_print_ucs4.
26922 (print_message): Use grub_putcode.
26923 (print_entry): Hanlde diacritics.
26924 * normal/term.c (term_state): New type.
26925 (grub_more_lines): Removed.
26926 (term_states): New variable.
26927 (grub_normal_line_counter): Renamed to ..
26928 (grub_normal_char_counter): ...this. All users updated.
26929 (grub_normal_get_line_counter): Renamed to ...
26930 (grub_normal_get_char_counter): ... this.
26931 (grub_normal_reset_more): New function.
26932 (process_newline): Removed.
26933 (print_more): New function.
26934 (grub_install_newline_hook): Removed.
26935 (map_code): New function.
26936 (grub_puts_terminal): Use grub_print_ucs4.
26937 (putglyph): New function.
26938 (putcode_real): Likewise.
26939 (grub_putcode): Use putcode_real.
26940 (get_maxwidth): New function.
26941 (get_startwidth): Likewise.
26942 (print_ucs4_terminal): Likewise.
26943 (find_term_state): Likewise.
26944 (put_glyphs_terminal): Likewise.
26945 (print_backlog): Likewise.
26946 (print_ucs4_real): Likewise.
26947 (grub_print_ucs4): Likewise.
26948 (grub_xputs_normal): Likewise.
26949 * term/efi/console.c (grub_console_putchar): Output diacritics.
26950 (grub_console_getcharwidth): Removed.
26951 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26952 * term/gfxterm.c (clear_char): Free chars.
26953 (scroll_up): Avoid leaking memory.
26954 (grub_gfxterm_putchar): Support diacritics.
26955 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26956 * term/i386/pc/console.c (grub_console_term_output): Declare as
26957 GRUB_TERM_CODE_TYPE_VGA.
26958 * term/i386/pc/vga.c (grub_vga_term): Declare as
26959 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
26960 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
26961 GRUB_TERM_CODE_TYPE_VGA.
26962 * term/i386/vga_common.c (map_char): Removed.
26963 (grub_console_putchar): Likewise.
26964 (grub_console_getcharwidth): Likewise.
26965 * term/ieee1275/ofconsole.c: Simplify using terminfo.
26966 (colors): Reordered to match terminfo.
26967 (grub_ofconsole_normal_color): Removed.
26968 (grub_ofconsole_writeesc): Likewise.
26969 (grub_ofconsole_highlight_color): Likewise.
26970 (grub_ofconsole_getcharwidth): Likewise.
26971 (grub_ofconsole_setcolorstate): Likewise.
26972 (grub_ofconsole_setcolor): Likewise.
26973 (grub_ofconsole_getcolor): Likewise.
26974 (grub_ofconsole_readkey): Renamed to ...
26975 (readkey): ... this. Remove escape sequence handling. Return -1 on no
26977 (grub_ofconsole_checkkey): Removed.
26978 (grub_ofconsole_getkey): Likewise.
26979 (grub_ofconsole_getxy): Likewise.
26980 (grub_ofconsole_gotoxy): Likewise.
26981 (grub_ofconsole_cls): Likewise.
26982 (grub_ofconsole_refresh): Likewise.
26983 (grub_ofconsole_terminfo_input): New struct.
26984 (grub_ofconsole_terminfo_output): Likewise.
26985 (grub_ofconsole_term_input): Use terminfo.
26986 (grub_ofconsole_term_output): Likewise.
26987 (grub_console_init): Split into ...
26988 (grub_console_init_early): ...this and ...
26989 (grub_console_init_lately): ...this. Use terminfo.
26990 (grub_ofconsole_putchar): Renamed to ...
26991 (put): ... this. Remove mapping.
26992 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26993 * term/serial.c: Simplify using terminfo.
26996 (keep_track): Likewise.
26997 (registered): Likewise.
26998 (input_buf): Likewise.
26999 (npending): Likewise.
27000 (serial_translate_key_sequence): Likewise.
27001 (fill_input_buf): Likewise.
27002 (grub_serial_checkkey): Likewise.
27003 (grub_serial_getkey): Likewise.
27004 (grub_serial_getxy): Likewise.
27005 (grub_serial_gotoxy): Likewise.
27006 (grub_serial_putchar): Likewise.
27007 (grub_serial_cls): Likewise.
27008 (grub_serial_setcolorstate): Likewise.
27009 (grub_serial_setcursor): Likewise.
27010 (serial_hw_init): Use serial_hw_fetch.
27011 (grub_serial_terminfo_input): New variable.
27012 (grub_serial_terminfo_output): Likewise.
27013 (grub_serial_term_input): Use terminfo.
27014 (grub_serial_term_output): Likewise.
27015 * term/terminfo.c (putstr): Use put.
27016 (grub_terminfo_all_free): New function
27017 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
27018 (grub_terminfo_output_register): New function.
27019 (grub_terminfo_output_unregister): Likewise.
27020 (grub_terminfo_getxy): Likewise.
27021 (grub_terminfo_readkey): Likewise.
27022 (grub_terminfo_checkkey): Likewise.
27023 (grub_terminfo_getkey): Likewise.
27024 (grub_terminfo_input_init): Likewise.
27025 (print_terminfo): Likewise.
27026 (grub_cmd_terminfo): Handle encoding.
27027 (grub_terminfo_gotoxy): Track position.
27028 (grub_terminfo_cls): Likewise.
27029 (grub_terminfo_putchar): Likewise.
27030 (grub_terminfo_setcolorstate): Handle colors
27031 (grub_terminfo_cursor_on): This ...
27032 (grub_terminfo_cursor_off): ... and this merged into ...
27033 (grub_terminfo_setcursor): ... this.
27034 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
27035 * unicode/ArabicShaping.txt: New file (imported from Unicode).
27036 * unicode/BidiMirroring.txt: Likewise.
27037 * unicode/UnicodeData.txt: Likewise.
27038 * unicode/COPYING: Likewise.
27039 * util/grub-editenv.c (grub_putchar): Removed.
27040 (grub_xputs_real): New function.
27041 (grub_xputs): New variable.
27042 * util/grub-fstest.c (grub_putchar): Removed.
27043 (grub_xputs_real): New function.
27044 (grub_xputs): New variable.
27045 * util/grub-mkdevicemap.c (grub_putchar): Removed.
27046 (grub_xputs_real): New function.
27047 (grub_xputs): New variable.
27048 * util/grub-probe.c (grub_putchar): Removed.
27049 (grub_xputs_real): New function.
27050 (grub_xputs): New variable.
27051 * util/grub-script-check.c (grub_putchar): Removed.
27052 (grub_xputs_real): New function.
27053 (grub_xputs): New variable.
27054 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
27055 (grub_xputs_real): New function.
27056 (grub_xputs): New variable.
27057 * util/import_unicode.py: New file.
27058 * util/grub-mkfont.c (ft_errmsgs): New array.
27059 (grub_glyph_info): Make bitmap a pointer.
27060 (file_formats): New type WIDTH_SPEC.
27061 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
27062 (options): Add width-spec.
27064 (add_char): Renamed to ...
27065 (add_glyph): ... this.
27066 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
27067 (glyph_replace): New type.
27068 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
27069 (add_char): New function.
27070 (add_subst): Likewise.
27071 (process_cursive): Likewise.
27072 (add_font): Handle GSUB.
27073 (write_font_width_spec): New function.
27074 (main): Sort glyphs.
27075 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
27076 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
27077 * kern/term.c (grub_cls): Moved from here...
27078 * normal/term.c (grub_cls): ... here.
27080 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27082 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
27083 suitable for using within the format argument of printf when
27084 converting grub_size_t.
27085 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
27086 "x" to convert grub_size_t arguments.
27088 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27090 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
27092 (list_get_minimal_size): Take selection box into account.
27094 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27096 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
27099 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27101 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
27102 devices when iterating over /dev/disk/by-id; they will be handled
27103 later if appropriate, which they aren't always (e.g. LVM).
27105 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27107 * include/grub/misc.h (grub_reboot): Declare as noreturn.
27108 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
27110 (grub_halt): Likewise.
27111 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
27113 (grub_halt): Don't return, even if all of shut-down, power-off, and
27116 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27118 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
27119 arguments, not three.
27121 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27123 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
27124 * util/grub.d/10_linux.in: Use it to check for LVM, so that
27125 LVM-on-RAID is handled correctly.
27127 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27129 * docs/grub.texi (Changes from GRUB Legacy): New section.
27130 (Future): Fix typo.
27132 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27134 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
27135 grub.d/README accidentally ends up executable for one reason or
27136 another. Ignore it.
27138 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27140 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
27141 (gpt_partition_map_iterate): Support non-512B sectors.
27143 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27145 * kern/efi/init.c (grub_efi_init): Disable watchdog.
27146 Tested by: Seth Goldberg.
27148 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27150 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
27151 Properly align mbi.
27152 Reported by: Seth Goldberg.
27154 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27156 * util/grub-mkrescue.in: Avoid module duplication.
27158 2010-07-01 Sean Finney <seanius@seanius.net>
27160 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
27162 2010-07-01 Sean Finney <seanius@seanius.net>
27164 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
27166 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27168 * disk/lvm.c (grub_lvm_checkvalue): New function.
27169 (grub_lvm_check_flag): Likewise.
27171 2010-07-01 Robert Millan <rmh@gnu.org>
27173 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
27174 Support 'p' as partition separator on kernel of FreeBSD (used
27176 (grub_util_biosdisk_get_grub_dev): Likewise.
27178 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27180 Yeeloong firmware port.
27182 * boot/mips/yeeloong/fwstart.S: New file.
27183 * bus/cs5536.c (gpiodump): New const.
27184 (set_io_space): New function.
27185 (set_iod): Likewise.
27186 (set_p2d): Likewise.
27187 (grub_cs5536_init_geode): Likewise.
27188 * commands/mips/yeeloong/lsspd.c: New file.
27189 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
27190 (serial_mod_SOURCES): New variable.
27191 (serial_mod_CFLAGS): Likewise.
27192 (serial_mod_LDFLAGS): Likewise.
27193 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
27194 term/terminfo.c and term/tparm.c.
27195 (pkglib_IMAGES): Add fwstart.img.
27196 (fwstart_img_SOURCES): New variable.
27197 (fwstart_img_CFLAGS): Likewise.
27198 (fwstart_img_ASFLAGS): Likewise.
27199 (fwstart_img_LDFLAGS): Likewise.
27200 (fwstart_img_FORMAT): Likewise.
27201 (pkglib_MODULES): Add lsspd.mod.
27202 (lsspd_mod_SOURCES): New variable.
27203 (lsspd_mod_CFLAGS): Likewise.
27204 (lsspd_mod_LDFLAGS): Likewise.
27205 (pkglib_MODULES): Add halt.mod.
27206 (halt_mod_SOURCES): New variable.
27207 (halt_mod_CFLAGS): Likewise.
27208 (halt_mod_LDFLAGS): Likewise.
27209 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
27210 (serial_mod_SOURCES): Removed.
27211 (serial_mod_CFLAGS): Likewise.
27212 (serial_mod_LDFLAGS): Likewise.
27213 * disk/ata.c (check_device): New function.
27214 (grub_ata_device_initialize): Use check_device.
27215 (grub_ata_iterate): Recheck devices.
27216 (grub_ata_open): Likewise.
27217 (grub_atapi_iterate): Likewise.
27218 (grub_atapi_open): Likewise.
27219 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
27220 (GRUB_ATA_CH1_PORT1): Likewise.
27221 (GRUB_ATA_CH0_PORT2): Likewise.
27222 (GRUB_ATA_CH1_PORT2): Likewise.
27223 * include/grub/mips/loongson.h: New file.
27224 * include/grub/mips/yeeloong/ec.h: Likewise.
27225 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
27226 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
27227 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
27228 * include/grub/misc.h (grub_halt): Declare as noreturn.
27229 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
27230 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
27231 (UART_ENABLE_FIFO_TRIGGER1): New definition.
27232 (UART_ENABLE_DTRRTS): Likewise.
27233 (UART_ENABLE_MODEM): Removed.
27234 (UART_ENABLE_OUT2): New const.
27235 * include/grub/term.h (grub_term_register_input_active): New function.
27236 (grub_term_register_output_active): Likewise.
27237 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
27239 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
27240 (init_pci): New function.
27241 (grub_machine_init): Execute platform init when firmware. Init serial.
27242 (grub_halt): Implement.
27243 (grub_exit): Likewise.
27244 (grub_reboot): Likewise.
27245 * term/serial.c (serial_hw_init): Update macros.
27246 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
27247 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
27248 (image_targets): New target mipsel-yeeloong-flash.
27249 (generate_image): Support IMAGE_YEELOONG_FLASH.
27250 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
27251 (grub_video_sm712_setup): Init card.
27252 (grub_video_sm712_set_palette): Removed.
27253 * video/sm712_init.c: New file.
27255 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
27257 * Makefile.in (install-local): Temporarily prepend $(builddir) to
27258 PATH when running help2man and then run it on the unadorned
27259 executable names, rather than passing $(builddir)/* paths to
27260 help2man. This avoids the build directory ending up in generated
27263 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27265 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
27266 to avoid accidents when debugging with 'sh -x'.
27267 * util/grub-mkrescue.in: Likewise.
27268 * util/grub.d/00_header.in: Likewise.
27269 * util/grub.d/10_hurd.in: Likewise.
27270 * util/grub.d/10_kfreebsd.in: Likewise.
27271 * util/grub.d/10_linux.in: Likewise.
27272 * util/grub.d/10_netbsd.in: Likewise.
27273 * util/grub.d/10_windows.in: Likewise.
27274 * util/grub.d/20_linux_xen.in: Likewise.
27275 * util/grub.d/30_os-prober.in: Likewise.
27276 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27278 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27280 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
27281 last character in the buffer.
27282 Reported by: Vladimir Serbinenko.
27284 2010-06-29 Robert Millan <rmh@gnu.org>
27286 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
27287 (Command-line and menu entry commands): Document `badram' command.
27289 2010-06-28 Robert Millan <rmh@gnu.org>
27291 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
27292 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
27293 command using ${GRUB_BADRAM} as parameter.
27295 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27297 * docs/grub.texi (Device map): New section.
27298 (Themes): New section (stub).
27299 * Makefile.in (docs/grub.info): The info documentation now builds
27300 without errors. Make sure it stays that way.
27302 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27304 Use normal parser for menu entries.
27305 Reported by: Thomas Frauendorfer
27307 * include/grub/parser.h (grub_parser_execute): Don't export.
27308 * normal/menu.c (grub_menu_execute_entry_real): New function.
27309 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
27311 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27313 * docs/grub.texi (Embedded configuration): New section (replacing
27314 old "Preset Menu" stub).
27315 (Images): New section.
27316 (configfile): Note that any menu entries defined in `file' are shown
27319 2010-06-28 Josh Triplett <josh@joshtriplett.org>
27321 * mmap/i386/pc/mmap_helper.S: Set CF on return.
27323 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27325 * util/grub-install.in: Add --debug-image= option.
27327 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27329 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
27332 * util/deviceiter.c (check_device): Rename to ...
27333 (check_device_readable_unique): ... this. Update all callers.
27334 Maintain and check a list of which devices (by canonicalized name)
27335 have already been seen.
27336 (clear_seen_devices): New function.
27337 (compare_file_names) [__linux__]: New function.
27338 (grub_util_iterate_devices): Clear the list of seen devices on exit
27339 and (just in case) on entry.
27340 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
27341 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
27342 seen-devices list, superseded by general code in check_device.
27344 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27346 * commands/cat.c (options): New variable.
27347 (grub_cmd_cat): Parse options. If the --dos option is given, print
27348 DOS-style "\r\n" line endings as simple newlines (Debian bug
27350 (GRUB_MOD_INIT): Use extcmd.
27351 (GRUB_MOD_FINI): Likewise.
27352 * docs/grub.texi (cat): Document --dos.
27354 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27356 XEN with Linux grub-mkconfig support.
27358 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
27359 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
27360 GRUB_CMDLINE_XEN_DEFAULT.
27361 * util/grub.d/20_linux_xen.in: New file.
27363 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27365 Initialise VGA video on qemu ourselves.
27367 * boot/i386/qemu/boot.S: Don't call 0xc000.
27368 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
27369 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
27370 (kernel_img_HEADERS): Add pci.h.
27371 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
27372 * configure.ac: Force unifont on qemu and yeeloong.
27373 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
27374 (grub_vga_palette_write): Use correct register.
27375 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
27376 Call grub_qemu_init_cirrus.
27377 * kern/i386/qemu/init.c: New file.
27378 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
27380 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
27382 2010-06-26 Pavel Roskin <proski@gnu.org>
27384 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
27387 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27389 * docs/grub.texi (Simple configuration): Explain that
27390 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
27391 set to `true' to disable their respective recovery entries, not
27394 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27396 Make the `source' command slightly faster.
27398 * normal/main.c (grub_normal_execute): Don't re-read list files when
27401 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27403 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
27404 field position and mask size to red fields from mode_info, not
27406 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
27407 Remove redundant tag->common.framebuffer_type assignment.
27408 Reported by: Seth Goldberg.
27410 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27412 Sync up other versions of the Linux loader with Robert Millan's
27413 change of 2010-01-09, "Make loader output a bit more user-friendly".
27415 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
27417 (grub_cmd_linux): Likewise.
27418 (grub_cmd_initrd): Likewise.
27419 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
27420 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
27422 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
27424 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
27425 larger than MEMORY_MAP_SIZE.
27427 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
27429 Fix parallel build.
27431 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
27433 * script/parser.y: #include grub_script.tab.h header.
27435 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27437 Support >3GiB and <16MiB RAM in i386-qemu.
27439 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
27440 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
27441 (grub_lower_mem): Removed.
27442 (grub_upper_mem): Likewise.
27443 (mem_size): Made static.
27444 (above_4g): New variable.
27445 (grub_machine_mmap_init): Detect small mem_size and above_4g.
27446 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
27449 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27451 Cirrus 5446 and Bochs video cards support.
27453 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
27455 (video_cirrus_mod_SOURCES): New variable.
27456 (video_cirrus_mod_CFLAGS): Likewise.
27457 (video_cirrus_mod_LDFLAGS): Likewise.
27458 (video_bochs_mod_SOURCES): Likewise.
27459 (video_bochs_mod_CFLAGS): Likewise.
27460 (video_bochs_mod_LDFLAGS): Likewise.
27461 * include/grub/vga.h: New file.
27462 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
27463 (grub_video_fb_set_page_t): New type.
27464 (grub_video_fb_setup): New prototype.
27465 (grub_video_fb_swap_buffers): Likewise.
27466 (grub_video_fb_get_info_and_fini): Likewise.
27467 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
27468 (CRTC_DATA_PORT): Likewise.
27469 (CRTC_CURSOR): Likewise.
27470 (CRTC_CURSOR_ADDR_HIGH): Likewise.
27471 (CRTC_CURSOR_ADDR_LOW): Likewise.
27472 (CRTC_CURSOR_DISABLE): Likewise.
27473 (update_cursor): Use grub_vga_cr_write.
27474 (grub_vga_text_setcursor): Likewise.
27475 * video/bochs.c: New file.
27476 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
27477 (palette): Likewise.
27478 (palette_size): Likewise.
27479 (framebuffer): New variable.
27480 (grub_video_fb_init): Use 'framebuffer'.
27481 (grub_video_fb_fini): Likewise.
27482 (grub_video_fb_get_info): Likewise.
27483 (grub_video_fb_get_palette): Likewise.
27484 (grub_video_fb_set_palette): Likewise.
27485 (grub_video_fb_set_viewport): Likewise.
27486 (grub_video_fb_get_viewport): Likewise.
27487 (grub_video_fb_map_color): Likewise.
27488 (grub_video_fb_map_rgb): Likewise.
27489 (grub_video_fb_map_rgba): Likewise.
27490 (grub_video_fb_unmap_color): Likewise.
27491 (grub_video_fb_unmap_color_int): Likewise.
27492 (grub_video_fb_fill_rect): Likewise.
27493 (grub_video_fb_blit_bitmap): Likewise.
27494 (grub_video_fb_blit_render_target): Likewise.
27495 (grub_video_fb_scroll): Likewise.
27496 (grub_video_fb_create_render_target): Likewise.
27497 (grub_video_fb_doublebuf_blit_init): Likewise.
27498 (grub_video_fb_set_active_render_target): Handle doublebuffering.
27499 (doublebuf_pageflipping_update_screen): New function.
27500 (doublebuf_pageflipping_init): Likewise.
27501 (grub_video_fb_setup): Likewise.
27502 (grub_video_fb_swap_buffers): Likewise.
27503 (grub_video_fb_get_info_and_fini): Likewise.
27504 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
27506 (doublebuf_pageflipping_commit): Restructured into ...
27507 (doublebuf_pageflipping_set_page): ... this.
27508 (doublebuf_pageflipping_update_screen): Removed.
27509 (doublebuf_pageflipping_init): Likewise.
27510 (double_buffering_init): Likewise.
27511 (grub_video_vbe_setup): Use grub_video_fb_setup.
27512 (grub_video_vbe_swap_buffers): Removed.
27513 (grub_video_vbe_set_active_render_target): Likewise.
27514 (grub_video_vbe_get_active_render_target): Likewise.
27515 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
27516 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
27517 grub_video_fb_set_active_render_target and
27518 grub_video_fb_get_active_render_target.
27519 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
27520 (SEQUENCER_DATA_PORT): Likewise.
27521 (MAP_MASK_REGISTER): Likewise.
27522 (CRTC_ADDR_PORT): Likewise.
27523 (CRTC_DATA_PORT): Likewise.
27524 (START_ADDR_HIGH_REGISTER): Likewise.
27525 (START_ADDR_LOW_REGISTER): Likewise.
27526 (GRAPHICS_ADDR_PORT): Likewise.
27527 (GRAPHICS_DATA_PORT): Likewise.
27528 (READ_MAP_REGISTER): Likewise.
27529 (INPUT_STATUS1_REGISTER): Likewise.
27530 (INPUT_STATUS1_VERTR_BIT): Likewise.
27531 (get_map_mask): Use grub_vga_sr_read.
27532 (set_map_mask): Use grub_vga_sr_write.
27533 (set_read_map): Use grub_vga_gr_write.
27534 (set_start_address): Use grub_vga_cr_write.
27535 * video/sm712.c (framebuffer): Remove leftover fields.
27537 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
27539 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
27540 setting GRUB_VIDEO_BACKEND. Make it available as a user override
27541 instead. Replace the gfxterm backend check with a check that
27542 ${GRUB_PREFIX}/video.lst is non-empty.
27543 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
27545 (load_video): New generated function. Call it before loading
27546 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
27547 * util/grub.d/10_linux.in (linux_entry): Call load_video.
27548 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
27549 * docs/grub.texi (Simple configuration): Document
27550 GRUB_VIDEO_BACKEND.
27552 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27554 Use video functions in linux and xnu loaders.
27556 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
27557 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
27558 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
27559 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
27560 loader/i386/pc/linux.c.
27561 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
27562 (find_line_len): Removed.
27563 (find_framebuf): Likewise.
27564 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
27565 * loader/i386/efi/xnu.c: Removed.
27566 * loader/i386/pc/xnu.c: Moved from here...
27567 * loader/i386/xnu.c: ...here.
27569 Enable priorities in video drivers.
27571 * include/grub/video.h (grub_video_adapter_prio_t): New type.
27572 (grub_video_adapter): New field prio.
27573 (grub_video_register): Respect prio when inserting.
27574 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
27575 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
27576 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
27577 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
27578 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
27579 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
27580 * video/sm712.c (grub_video_sm712_adapter): Likewise.
27584 * include/grub/video.h (grub_video_driver_id_t): New value
27585 GRUB_VIDEO_DRIVER_SDL.
27586 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
27588 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27590 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
27591 argument to printf.
27592 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27594 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27596 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
27597 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27599 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27601 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
27602 directly, and recommend grub-install instead.
27603 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27605 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27607 Fix i386-pc prefix handling with nested partitions (Debian bug
27608 #585068). Note that the case where the core image is booted using
27609 multiboot and relocated from its original location still requires
27612 * kern/i386/pc/init.c (make_install_device): If the prefix starts
27613 with "(,", fill the boot drive in between those two characters, but
27614 expect that a full partition specification including partition map
27616 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
27617 specified, write a prefix without the drive name but including a
27618 full partition specification.
27620 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
27622 * util/grub-mkconfig.in: Ignore non-option arguments, for
27623 compatibility with older versions (before 2010-06-12) which did the
27624 same. In particular, this makes it easier to ship an update-grub
27625 wrapper which is compatible with that used with GRUB Legacy (Debian
27628 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27630 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
27631 for manual page generation.
27633 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27635 * po/POTFILES: Remove leftover commands/handler.c.
27637 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27639 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
27640 left this script non-functional.
27642 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27644 * docs/man/grub-emu.h2m: New file.
27646 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
27648 * docs/grub.texi (Commands): Document reduced command set in rescue
27650 (cpuid): New section.
27652 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
27654 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
27655 new partition naming style.
27656 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
27658 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
27660 Add "-o grub.iso" like cmdline options support.
27662 * util/grub-install.in: Improve cmdline option parsing.
27663 * util/grub-mkconfig.in: Likewise.
27664 * util/grub-mkrescue.in: Likewise.
27665 * util/grub-reboot.in: Likewise.
27666 * util/grub-set-default.in: Likewise.
27667 * util/i386/efi/grub-install.in: Likewise.
27668 * util/ieee1275/grub-install.in: Likewise.
27669 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27671 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27673 * .bzrignore: Ignore 41_custom.
27675 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27677 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
27679 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27681 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
27682 prototype declarations.
27684 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
27685 generating fs, partmap, and video lists.
27686 * include/grub/fs.h (grub_fs_register): Omit prototype if
27687 GRUB_LST_GENERATOR is defined.
27688 * include/grub/partition.h (grub_partition_map_register): Likewise.
27689 * include/grub/video.h (grub_video_register): Likewise.
27691 2010-06-12 Javier Martín <lordhabbit@gmail.com>
27693 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
27695 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27697 * util/grub-mkrescue.in: Support --xorriso argument.
27699 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27701 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
27702 Suggested by: Thomas Schmitt.
27704 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27706 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
27707 Suggested by: Thomas Schmitt.
27709 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27711 custom.cfg support.
27713 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
27714 * util/grub.d/41_custom.in: New file.
27716 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27718 * util/grub-mkrescue.in (make_image): Remove sh module, which has
27719 been merged back into normal.
27721 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27723 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
27724 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
27726 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27728 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
27729 when generating manual pages.
27730 * docs/man/grub-bin2h.h2m: New file.
27731 * docs/man/grub-editenv.h2m: New file.
27732 * docs/man/grub-fstest.h2m: New file.
27733 * docs/man/grub-install.h2m: New file.
27734 * docs/man/grub-macho2img.h2m: New file.
27735 * docs/man/grub-mkconfig.h2m: New file.
27736 * docs/man/grub-mkdevicemap.h2m: New file.
27737 * docs/man/grub-mkfont.h2m: New file.
27738 * docs/man/grub-mkimage.h2m: New file.
27739 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
27740 * docs/man/grub-mkrelpath.h2m: New file.
27741 * docs/man/grub-mkrescue.h2m: New file.
27742 * docs/man/grub-ofpathname.h2m: New file.
27743 * docs/man/grub-pe2elf.h2m: New file.
27744 * docs/man/grub-probe.h2m: New file.
27745 * docs/man/grub-reboot.h2m: New file.
27746 * docs/man/grub-script-check.h2m: New file.
27747 * docs/man/grub-set-default.h2m: New file.
27748 * docs/man/grub-setup.h2m: New file.
27750 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
27752 Use FOR_* macros instead of *_iterate whenever possible.
27754 * commands/handler.c: Removed.
27755 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
27756 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
27757 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27758 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
27759 (grub_probe_SOURCES): Remove kern/parser.c.
27760 (util/grub-script-check.c_DEPENDENCIES): Removed.
27761 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
27762 and grub_script_check_init.c.
27763 (grub_script_check_init.lst): Removed.
27764 (grub_script_check_init.h): Likewise.
27765 (grub_script_check_init.c): Likewise.
27766 (pkglib_MODULES): Remove handler.mod and sh.mod.
27767 (handler_mod_SOURCES): Removed.
27768 (handler_mod_CFLAGS): Likewise.
27769 (handler_mod_LDFLAGS): Likewise.
27770 (normal_mod_SOURCES): Remove normal/handler.c.
27771 Add script/main.c, script/script.c, script/execute.c,
27772 script/function.c, script/lexer.c, grub_script.tab.c
27773 and grub_script.yy.c.
27774 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27775 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27776 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27777 (grub_setup_SOURCES): Remove kern/parser.c.
27778 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27779 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27780 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27781 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27782 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27783 (grub_setup_SOURCES): Remove kern/parser.c.
27784 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27785 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27786 * include/grub/command.h (grub_command_iterate): Removed.
27787 (FOR_COMMANDS): New macro.
27788 * include/grub/dl.h (grub_dl): New member next.
27789 (grub_dl_iterate): Removed.
27790 (grub_dl_head): New variable declaration.
27791 (FOR_DL_MODULES): New macro.
27792 * include/grub/fs.h: Include list.h.
27793 (grub_fs): Make next first element.
27794 (grub_fs_list): New variable declaration.
27795 (grub_fs_register): Make inline.
27796 (grub_fs_unregister): Likewise.
27797 (grub_fs_iterate): Removed.
27798 (FOR_FILESYSTEMS): New macro.
27799 * include/grub/handler.h: Removed.
27800 * include/grub/list.h (grub_list_hook_t): Removed.
27801 (grub_list_test_t): Likewise.
27802 (grub_list_pop): Likewise.
27803 (grub_list_iterate): Likewise.
27804 (grub_list_insert): Likewise.
27805 (FOR_LIST_ELEMENTS): New macro.
27806 * include/grub/parser.h (grub_parser_class): Removed.
27807 (grub_parser_register): Likewise.
27808 (grub_parser_unregister): Likewise.
27809 (grub_parser_get_current): Likewise.
27810 (grub_parser_set_current): Likewise.
27811 (grub_register_rescue_parser): Likewise.
27812 (grub_rescue_parse_line): New function.
27813 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27814 * include/grub/script_sh.h (grub_script_function_list): New variable
27816 (FOR_SCRIPT_FUNCTIONS): New macro.
27817 (grub_script_function_iterate): Removed.
27818 (grub_normal_parse_line): New prototype.
27819 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27820 (FOR_DISABLED_TERM_INPUTS): Likewise.
27821 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27822 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27823 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27825 (grub_video_register): Inline.
27826 (grub_video_unregister): Likewise.
27827 (grub_video_adapter_list): New variable declaration.
27828 (grub_video_iterate): Removed.
27829 (FOR_VIDEO_ADAPTERS): New macro.
27830 * kern/dl.c (grub_dl_list): Removed. All users updated.
27831 (grub_dl_iterate): Removed.
27832 * kern/fs.c (grub_fs_list): Make global.
27833 (grub_fs_register): Removed.
27834 (grub_fs_unregister): Likewise.
27835 (grub_fs_iterate): Likewise.
27836 * kern/handler.c: Removed.
27837 * kern/list.c (grub_list_pop): Removed.
27838 (grub_list_iterate): Likewise.
27839 (grub_list_insert): Likewise.
27840 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27841 (grub_prio_list_insert): Don't use grub_list_insert.
27842 * kern/main.c (grub_register_rescue_parser): Don't call
27843 grub_register_rescue_parser.
27844 * kern/parser.c (grub_parser_class): Removed.
27845 (grub_parser_execute): Use grub_rescue_parse_line.
27846 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
27847 (grub_rescue_parser): Removed.
27848 (grub_register_rescue_parser): Likewise.
27849 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
27850 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
27851 (grub_auth_check_authentication): Likewise.
27852 * normal/completion.c (iterate_command): Removed.
27853 (grub_normal_do_completion): Use FOR_COMMANDS.
27854 * normal/handler.c: Removed.
27855 * normal/main.c (read_config_file): Remove parser changing.
27856 (grub_normal_execute): Don't call read_handler_list.
27857 (grub_normal_read_line_real): Statically allocate prompt.
27858 (grub_cmdline_run): Use grub_normal_parse_line.
27859 (GRUB_MOD_FINI): Don't call free_handler_list.
27860 * normal/menu_entry.c (run): Likewise.
27861 * script/function.c (grub_script_function_list): Make global.
27862 (grub_script_function_iterate): Removed.
27863 * script/main.c (grub_normal_parse_line): Make global.
27864 (grub_sh_parser): Removed.
27865 (GRUB_MOD_INIT): Likewise.
27866 (GRUB_MOD_FINI): Likewise.
27867 * tests/lib/functional_test.c (grub_functional_test): Use
27869 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
27870 (grub_test_run): Use FOR_LIST_ELEMENTS.
27871 * tests/lib/unit_test.c (main): Likewise.
27872 * util/deviceiter.c (grub_util_iterate_devices): Don't use
27874 * util/grub-fstest.c (grub_term_input_class): Removed.
27875 (grub_term_output_class): Likewise.
27876 * util/grub-probe.c: Likewise.
27877 * util/i386/pc/grub-setup.c: Likewise.
27878 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27879 * util/grub-script-check.c (main): Don't call grub_init_all and
27881 * video/video.c (grub_video_adapter_list): Make global.
27882 (grub_video_register): Removed.
27883 (grub_video_unregister): Likewise.
27884 (grub_video_iterate): Likewise.
27886 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
27888 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
27889 reported by Henrique Ferreiro.
27891 2010-06-09 Robert Millan <rmh@gnu.org>
27893 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
27894 ones, when both are available.
27896 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27898 Make --version uniform and avoid hard-coded program name.
27900 * util/grub-mkimage.c (main): Use `program_name' instead of
27902 * util/i386/pc/grub-setup.c (main): Likewise.
27903 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
27904 * util/grub-install.in: Save the basename of $0 in $self, and use the
27905 latter in informational messages. Use the same format for --version
27906 as the binary programs.
27907 * util/grub-mkconfig.in: Likewise.
27908 * util/grub-mkrescue.in: Likewise.
27909 * util/grub-reboot.in: Likewise.
27910 * util/grub-set-default.in: Likewise.
27911 * util/i386/efi/grub-install.in: Likewise.
27912 * util/ieee1275/grub-install.in: Likewise.
27913 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27915 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27917 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
27918 embedding area. Use <= instead of == when checking for non-emptiness.
27920 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27922 * configure.ac: Add `.' to the directories searched for unifont.
27924 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27926 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
27929 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27931 * docs/grub.texi (History): Expand to cover GRUB 2.
27932 (Serial terminal): Refer to `terminal_input' and `terminal_output'
27933 commands, not `terminal'.
27934 (serial): Likewise.
27935 (terminal_input): New section.
27936 (terminal_output): New section.
27937 (uppermem): New section (stub).
27938 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
27940 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27942 * docs/grub.texi (Security): Menu entries are unrestricted by
27943 default, not restricted to superusers as I had previously thought.
27944 Reword to account for this.
27946 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27948 * kern/emu/misc.c (device_mapper_null_log): New function.
27949 (grub_device_mapper_supported): New function.
27950 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
27952 * kern/emu/hostdisk.c (find_partition_start): Check whether
27953 device-mapper is supported before trying to use it.
27954 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
27956 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27958 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
27959 (File name syntax): Likewise.
27960 (help): --all is no longer supported in GRUB 2. Be more precise
27961 about pattern matching.
27963 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27965 * normal/completion.c (grub_normal_do_completion): When completing
27966 arguments to "set" and the current word contains an equals sign,
27967 skip to after the equals sign before starting completion.
27969 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27971 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
27973 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27975 * docs/grub.texi (Network): New section.
27976 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
27977 `(nd)' as in GRUB Legacy.
27978 (pxe_unload): New section.
27980 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27982 * docs/grub.texi (Troubleshooting): `echo' is not usually available
27983 in the rescue shell, so recommend using `set' instead. Thanks,
27986 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27988 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
27989 (password): New section.
27990 (password_pbkdf2): New section.
27991 (search): New section.
27992 (Security): New section.
27993 (Troubleshooting): New section, currently very incomplete.
27994 (Invoking grub-mkpasswd-pbkdf2): New section.
27995 (Internals): New section, currently very incomplete.
27997 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27999 * util/grub.d/00_header.in: Add some more quoting (of
28000 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
28002 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
28004 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28006 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
28007 to `count', fixing variable shadowing that broke the -c option.
28009 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
28011 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
28012 in case they contain spaces.
28014 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
28016 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
28017 "part_" to partmap module names, in line with grub-install.
28018 Reported by: Jindřich Makovička (Debian bug #584426).
28020 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
28022 * util/grub-mkimage.c: Make target-related error messages slightly
28023 more helpful; -O talks about "format". Explicitly point to the use
28024 of -O if no target is specified.
28025 Reported by: Didier Raboud (Debian bug #584415).
28027 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
28029 * INSTALL: Document several build requirements for optional features
28030 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
28032 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
28034 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
28035 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
28036 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
28038 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28040 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
28041 Thanks to Jordan Uggla for spotting this.
28043 2010-06-02 Aleš Nesrsta <starous@volny.cz>
28045 Finally make USB usable.
28047 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
28048 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
28049 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
28050 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
28051 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
28052 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
28053 (GRUB_OHCI_FSMPS): Likewise.
28054 (GRUB_OHCI_PERIODIC_START): Likewise.
28055 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
28056 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
28057 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
28058 (GRUB_OHCI_SET_PORT_RESET): Likewise.
28059 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
28060 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
28061 (grub_ohci_transaction): Likewise.
28062 (grub_ohci_transfer): Improve condition detection algorithms.
28063 Handle toggle property. Program the transactions correctly.
28064 Improve error handling. Various important fixups.
28065 (grub_ohci_portstatus): Put register writes in right order.
28066 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
28067 (grub_uhci_transfer): Don't show "failed" message on success.
28068 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
28070 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
28071 determine its size.
28072 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
28073 before initialization is completed. Use IN direction for empty
28074 transfers. Use last_trans and compute toggle.
28075 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
28076 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
28077 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
28078 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
28079 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
28080 (grub_usb_device): Increase toggle to 256.
28081 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
28082 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
28083 GRUB_USBMS_SUBCLASS_SFF8070.
28084 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
28085 (grub_scsi_inquiry): New member page and alloc_length.
28086 (grub_scsi_request_sense): New structure.
28087 (grub_scsi_request_sense_data): Likewise.
28088 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
28090 * disk/scsi.c (grub_scsi_request_sense): New function.
28091 (grub_scsi_test_unit_ready): Likewise.
28092 (grub_scsi_inquiry): Fill new fields.
28093 (grub_scsi_read_capacity): Likewise.
28094 (grub_scsi_read10): Add request sense at the end.
28095 (grub_scsi_read12): Likewise.
28096 (grub_scsi_write10): Likewise.
28097 (grub_scsi_write12): Likewise.
28098 (grub_scsi_open): Add Test Unit Ready.
28099 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
28100 Support additional subclasses. Con't clear halt yet. Activate the
28101 proper config. Calculate LUNs correctly.
28102 (grub_usbms_transfer): Various important fixups.
28104 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28106 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
28107 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
28108 (grub_ohci_fini_hw): New function.
28109 (grub_ohci_restore_hw): Likewise.
28110 (GRUB_MOD_INIT(ohci)): Register preboot hook.
28111 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
28112 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
28114 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28116 Dedicated DMA allocations.
28118 * bus/pci.c (grub_memalign_dma32): New function
28119 (grub_dma_free): Likewise.
28120 (grub_dma_get_virt): Likewise.
28121 (grub_dma_get_phys): Likewise.
28122 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
28123 (grub_ohci_pci_iter): Use dma32_alloc.
28124 (grub_ohci_transfer): Likewise.
28125 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
28126 (grub_usb_bulk_readwrite): Likewise.
28127 * include/grub/pci.h: Add declarations.
28129 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28133 * bus/cs5536.c: New file.
28134 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
28135 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
28136 (cs5536_mod_SOURCES): New variable.
28137 (cs5536_mod_CFLAGS): Likewise.
28138 (cs5536_mod_LDFLAGS): Likewise.
28139 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
28141 (kernel_img_SOURCES): Add bus/cs5536.c.
28142 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
28144 (usb_mod_SOURCES): New variable.
28145 (usb_mod_CFLAGS): New variable.
28146 (usb_mod_LDFLAGS): New variable.
28147 (usbtest_mod_SOURCES): New variable.
28148 (usbtest_mod_CFLAGS): New variable.
28149 (usbtest_mod_LDFLAGS): New variable.
28150 (ohci_mod_SOURCES): New variable.
28151 (ohci_mod_CFLAGS): New variable.
28152 (ohci_mod_LDFLAGS): New variable.
28153 (usbms_mod_SOURCES): New variable.
28154 (usbms_mod_CFLAGS): New variable.
28155 (usbms_mod_LDFLAGS): New variable.
28156 (usb_keyboard_mod_SOURCES): New variable.
28157 (usb_keyboard_mod_CFLAGS): New variable.
28158 (usb_keyboard_mod_LDFLAGS): New variable.
28159 * include/grub/smbus.h: New file.
28160 * include/grub/cs5536.h: New file.
28162 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28164 * util/grub.d/00_header.in: Add safety check to make sure that
28165 ${locale_dir} exists before trying to probe it.
28167 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28169 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
28170 per the GNU Coding Standards; this is now too obscure to be worth
28173 (chainloader): Remove cross-reference to `SCO UnixWare'.
28175 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28177 * docs/grub.texi (Chain-loading): New section.
28178 (DOS/Windows): New section, borrowed from GRUB Legacy with details
28179 adjusted for GRUB 2.
28180 (SCO UnixWare): Likewise.
28182 (chainloader): Add reference to `Block list syntax'.
28183 (drivemap): New section.
28184 (parttool): New section.
28186 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28188 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
28190 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
28191 (Installing GRUB using grub-install): Remove reference to the grub
28192 shell; mention `grub-mkimage' and `grub-setup' instead.
28193 (Invoking grub-install): Likewise.
28194 (Interface): Add reference to `Menu entry editor'.
28195 (serial): Remove `--device' option.
28197 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28199 * docs/grub.texi (Configuration): New section, documenting
28200 configuration file generation using grub-mkconfig. I've left a slot
28201 for documenting the full shell scripting format but have not yet
28202 started on writing that up.
28203 (Invoking grub-mkconfig): New section.
28205 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28207 * docs/grub.texi (direntry): Remove grub-terminfo reference.
28208 (GNU GRUB manual): Likewise.
28209 (General commands): Update description of `terminfo' for GRUB 2.
28211 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28213 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
28214 (GRUB_MOD_INIT): Fix capitalisation.
28215 * docs/grub.texi (Command-line and menu entry commands): Document
28216 gettext and gptsync commands.
28218 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28220 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
28221 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
28223 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
28225 Add btrfs probing support, currently only in the single-device case.
28227 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
28229 (grub_guess_root_device): Call find_root_device_from_mountinfo
28230 before looking in /dev.
28232 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28234 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
28235 GRUB_DISK_SIZE_UNKNOWN.
28236 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
28238 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
28240 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
28241 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
28242 corrupted or not synced properly.
28244 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28246 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
28247 Reported by: Seth Goldberg.
28249 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28251 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
28253 Reported by: Seth Goldberg.
28255 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28257 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
28258 Reported by: Seth Goldberg.
28260 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28262 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
28263 64-bit address as signed on MIPS.
28265 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28267 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
28268 to the empty string.
28270 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
28272 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
28274 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
28275 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
28276 * kern/misc.c (__enable_execute_stack): Disable on
28279 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28281 Make grub-probe work with symbolic links under /dev/mapper as well
28282 as with real block devices. The Linux world seems to be (at best)
28283 in transition here, and GRUB shouldn't get caught in the middle.
28285 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
28288 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28290 * util/grub-script-check.c (main): Ensure defined behaviour on empty
28291 input files (in which case exit zero).
28293 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28295 * kern/emu/misc.c (canonicalize_file_name): realpath can still
28296 return NULL for various reasons even if it has a maximum-length
28297 buffer: for example, there might be a symlink loop, or the path
28298 might exceed PATH_MAX. If this happens, return NULL.
28300 2010-05-27 Robert Millan <rmh@gnu.org>
28302 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
28303 partmap module to handle cross-partmap setups.
28304 Reported by Orestes Mas. Gràcies!
28306 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28308 * util/grub-mkrescue.in: Initialise override_dir rather than
28309 assuming that it's unset or empty in the environment.
28311 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
28313 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
28314 variable index into p_index to suppress a warning with -Wshadow.
28316 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
28318 * INSTALL: Added flex >= 2.5.35 requirement.
28320 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28322 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
28324 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28328 * commands/i386/cmostest.c: New file.
28329 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
28330 (cmostest_mod_SOURCES): New variable.
28331 (cmostest_mod_CFLAGS): Likewise.
28332 (cmostest_mod_LDFLAGS): Likewise.
28333 * conf/i386-pc.rmk: Likewise.
28334 * docs/grub.texi (Vendor power-on keys): New section.
28335 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
28336 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
28337 and GRUB_BUTTON_CMOS_ADDRESS.
28338 * util/grub.d/00_header.in: Handle powering-on by separate button.
28340 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28342 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
28343 Removed drawing_scrollbar argument. All users updated
28345 Reported by Jo Shields
28347 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28349 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
28350 buffer since gfxterm handles double repaint.
28352 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28354 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
28355 * term/gfxterm.c (real_scroll): Likewise.
28357 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28359 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
28360 before calling BIOS.
28362 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28364 * include/grub/i18n.h: Always enable grub_gettext.
28366 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28368 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
28369 partition naming style.
28371 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
28373 * util/grub-mkconfig.in: Fix handling of -o so that it works when
28374 not the first option.
28376 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28378 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
28380 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28382 * util/misc.c: Move inclusion of <limits.h> to ...
28383 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
28385 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
28387 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
28388 Fix merge error in NetBSD code.
28389 (find_partition_start) [__NetBSD__]: Likewise.
28391 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
28393 Fix grub-mkrescue usage unit testing.
28395 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
28397 2010-05-18 Christian Franke <franke@computer.org>
28399 * util/grub.d/10_windows.in: Use path names instead of
28400 drive letters to prevent warning from Cygwin 1.7.
28401 Add drivemap command to menuentry if needed.
28403 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
28405 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
28406 gnumach and gnumach.gz.
28408 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28410 * include/grub/i18n.h (gettext): Inline instead of using #define.
28411 (grub_gettext): Likewise.
28414 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28416 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
28417 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
28418 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
28419 (main): Add a slash after pkglibdirroot.
28421 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28423 * util/grub-install.in: Add missing "in" keyword.
28425 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28427 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
28428 Reported by: Seth Goldberg.
28430 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28432 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
28434 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28436 * configure.ac: Check for Linux device-mapper support.
28438 * util/hostdisk.c (device_is_mapped): New function.
28439 (find_partition_start): New function, partly broken out from
28440 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
28441 device-mapper support added.
28442 (linux_find_partition): Use find_partition_start.
28443 (convert_system_partition_to_system_disk): Add `st' argument.
28444 Support Linux /dev/mapper/* devices if device-mapper support is
28445 available; only DM-RAID devices are understood at present.
28446 (find_system_device): Add `st' argument. Pass it to
28447 convert_system_partition_to_system_disk.
28448 (grub_util_biosdisk_get_grub_dev): Pass stat result to
28449 find_system_device and convert_system_partition_to_system_disk. Use
28450 find_partition_start.
28452 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
28453 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
28454 * util/deviceiter.c [__linux__]: Define MINOR.
28455 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
28456 * util/mkdevicemap.c (grub_putchar): New function.
28457 (grub_getkey): New function.
28458 (grub_refresh): New function.
28459 (main): Set debug=all if -v -v is used.
28461 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28463 Fix build with non-GNU libcs.
28465 * util/misc.c (canonicalize_file_name): Move to ...
28466 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
28467 grub_make_system_path_relative_to_its_root.
28469 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28471 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
28472 we handle finding grub-mkimage. Default to finding grub-mkimage in
28473 ${bindir} with program_transform_name applied, and provide a
28474 --grub-mkimage option to override this.
28476 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28478 Remove grub-mkisofs.
28480 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
28481 (grub_mkisofs_SOURCES): Removed.
28482 (grub_mkisofs_CFLAGS): Removed.
28483 * util/mkisofs/defaults.h: Removed.
28484 * util/mkisofs/eltorito.c: Likewise.
28485 * util/mkisofs/exclude.h: Likewise.
28486 * util/mkisofs/hash.c: Likewise.
28487 * util/mkisofs/include/: Likewise.
28488 * util/mkisofs/include/fctldefs.h: Likewise.
28489 * util/mkisofs/include/mconfig.h: Likewise.
28490 * util/mkisofs/include/prototyp.h: Likewise.
28491 * util/mkisofs/include/statdefs.h: Likewise.
28492 * util/mkisofs/iso9660.h: Likewise.
28493 * util/mkisofs/joliet.c: Likewise.
28494 * util/mkisofs/match.c: Likewise.
28495 * util/mkisofs/match.h: Likewise.
28496 * util/mkisofs/mkisofs.c: Likewise.
28497 * util/mkisofs/mkisofs.h: Likewise.
28498 * util/mkisofs/msdos_partition.h: Likewise.
28499 * util/mkisofs/multi.c: Likewise.
28500 * util/mkisofs/name.c: Likewise.
28501 * util/mkisofs/rock.c: Likewise.
28502 * util/mkisofs/tree.c: Likewise.
28503 * util/mkisofs/write.c: Likewise.
28505 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28507 Unify grub-mkimage accross platforms.
28509 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
28510 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
28511 (grub_mkelfimage_SOURCES): Removed.
28512 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
28513 (util/grub-mkimage.c_DEPENDENCIES): .. this.
28514 (bin_UTILITIES): Add grub-mkimage.
28515 (grub_mkimage_SOURCES): New variable.
28516 (kernel_img_HEADERS): Remove machine/kernel.h.
28517 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
28518 (pkglib_PROGRAMS): Add kernel.img.
28519 (kernel_img_HEADERS): Add machine/kernel.h.
28520 (kernel_img_FORMAT): Removed.
28521 (bin_UTILITIES): Remove grub-mkimage.
28522 (grub_mkimage_SOURCES): Removed.
28523 (grub_mkimage_CFLAGS): Likewise.
28524 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28525 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
28526 (pkglib_PROGRAMS): Add kernel.img.
28527 (bin_UTILITIES): Remove grub-mkimage.
28528 (grub_mkimage_SOURCES): Removed.
28529 (grub_mkimage_CFLAGS): Likewise.
28530 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28531 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
28532 (pkglib_PROGRAMS): Add kernel.img.
28533 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
28534 (pkglib_PROGRAMS): Add kernel.img.
28535 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
28536 (grub_mkimage_SOURCES): Removed.
28537 (grub_mkimage_CFLAGS): Likewise.
28538 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28539 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
28540 (pkglib_PROGRAMS): Add kernel.img.
28541 (bin_UTILITIES): Remove grub-mkimage.
28542 (grub_mkimage_SOURCES): Removed.
28543 (grub_mkimage_CFLAGS): Likewise.
28544 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28545 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
28546 (grub_mkimage_SOURCES): Removed.
28547 (grub_mkimage_CFLAGS): Likewise.
28548 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28549 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
28550 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
28551 (grub_pe32_optional_header): ... this.
28552 (grub_pe64_optional_header): ... and this. All users updated.
28553 (GRUB_PE32_PE32_MAGIC): Split into ..
28554 (GRUB_PE32_PE32_MAGIC): .. this.
28555 (GRUB_PE32_PE64_MAGIC): .. and this.
28556 (GRUB_PE32_SIGNATURE_SIZE): New definition.
28557 * include/grub/elf.h (PT_GNU_STACK): New definition.
28558 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
28559 * include/grub/i386/efi/kernel.h: Likewise.
28560 * include/grub/i386/kernel.h: Likewise.
28561 * include/grub/i386/pc/kernel.h: Likewise.
28562 * include/grub/i386/qemu/boot.h: Likewise.
28563 * include/grub/mips/kernel.h: Likewise.
28564 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28565 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28566 * include/grub/powerpc/kernel.h: Likewise.
28567 * include/grub/sparc64/ieee1275/boot.h: Likewise.
28568 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28569 * include/grub/sparc64/kernel.h: Likewise.
28570 * include/grub/x86_64/efi/kernel.h: Likewise.
28571 * include/grub/x86_64/kernel.h: Likewise.
28572 * include/grub/offsets.h: New file.
28573 * include/grub/kernel.h (grub_module_info): Split into ...
28574 (grub_module_info32): ... this.
28575 (grub_module_info64): ... and this.
28576 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
28577 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
28578 (grub_boot_blocklist): Moved from here ...
28579 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
28580 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
28581 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
28582 * include/grub/types.h (grub_target_to_host16): Removed.
28583 (grub_target_to_host32): Likewise.
28584 (grub_target_to_host64): Likewise.
28585 (grub_host_to_target16): Likewise.
28586 (grub_host_to_target32): Likewise.
28587 (grub_host_to_target64): Likewise.
28588 (grub_host_to_target_addr): Likewise.
28590 Support grub-mkrescue for efi, coreboot and qemu.
28592 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
28593 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
28594 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
28595 * util/grub-mkrawimage.c: Moved from here ...
28596 * util/grub-mkimage.c: ... here. All users updated.
28597 (ALIGN_ADDR): Use image_target.
28598 (TARGET_NO_FIELD): New const.
28599 (image_target_desc): New type.
28600 (image_targets): New array.
28601 (grub_target_to_host64): Use image_target.
28602 (grub_target_to_host32): Likewise.
28603 (grub_target_to_host16): Likewise.
28604 (grub_host_to_target64): Likewise.
28605 (grub_host_to_target32): Likewise.
28606 (grub_host_to_target16): Likewise.
28607 (grub_host_to_target_addr): Likewise.
28608 (generate_image): Handle multiimage.
28609 (main): Require -O parameter. All users updated.
28610 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
28611 util/efi/grub-mkimage.c
28612 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
28613 New option --rom-directory.
28615 * util/i386/efi/grub-mkimage.c: Removed.
28616 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
28617 (grub_target_to_host32): Likewise.
28618 (grub_target_to_host64): Likewise.
28619 (grub_host_to_target16): Likewise.
28620 (grub_host_to_target32): Likewise.
28621 (grub_host_to_target64): Likewise.
28622 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
28623 (grub_target_to_host32): Likewise.
28624 (grub_target_to_host64): Likewise.
28625 (grub_host_to_target16): Likewise.
28626 (grub_host_to_target32): Likewise.
28627 (grub_host_to_target64): Likewise.
28629 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
28631 Source tree is reorganized for emu build.
28633 * include/grub/util/console.h: Move from here...
28634 * include/grub/emu/console.h: ...to here.
28635 * include/grub/util/getroot.h: Move from here...
28636 * include/grub/emu/getroot.h: ...to here.
28637 * include/grub/util/hostdisk.h: Move from here...
28638 * include/grub/emu/hostdisk.h: ...to here.
28639 * util/console.c: Move from here...
28640 * kern/emu/console.c: ...to here.
28641 * util/getroot.c: Move from here...
28642 * kern/emu/getroot.c: ...to here.
28643 * util/grub-emu.c: Move from here...
28644 * kern/emu/main.c: ...to here.
28645 * util/hostdisk.c: Move from here...
28646 * kern/emu/hostdisk.c: ...to here.
28647 * util/hostfs.c: Move from here...
28648 * kern/emu/hostfs.c: ...to here.
28649 * util/mm.c: Move from here...
28650 * kern/emu/mm.c: ...to here.
28651 * util/pci.c: Move from here...
28652 * bus/emu/pci.c: ...to here.
28653 * util/sdl.c: Move from here...
28654 * video/emu/sdl.c: ...to here.
28655 * util/time.c: Move from here...
28656 * kern/emu/time.c: ...to here.
28657 * util/usb.c: Move from here...
28658 * bus/usb/emu/usb.c: ...to here.
28660 * include/grub/emu/misc.h: New header for grub-emu functions.
28661 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
28663 * conf/any-emu.rmk: Rule updates for above renames.
28664 * conf/common.rmk: Likewise.
28665 * conf/i386-pc.rmk: Likewise.
28666 * conf/i386-qemu.rmk: Likewise.
28667 * conf/mips.rmk: Likewise.
28668 * conf/sparc64-ieee1275.rmk: Likewise.
28669 * conf/x86-efi.rmk: Likewise.
28671 * disk/lvm.h: #include updates for above renames.
28672 * util/grub-mkrelpath.c: Likewise.
28673 * util/grub-probe.c: Likewise.
28674 * util/i386/pc/grub-setup.c: Likewise.
28675 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28676 * kern/emu/console.c: Likewise.
28677 * kern/emu/getroot.c: Likewise.
28678 * kern/emu/hostdisk.c: Likewise.
28679 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
28681 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
28682 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
28683 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
28684 * util/misc.c: Remove grub-emu functions.
28686 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
28689 Reported by: Thorsten Grützmacher.
28691 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
28693 (circprog_set_property): Register and unregister timeout hook.
28694 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
28695 (label_destroy): Free template. and unregister hook.
28696 (label_set_state): New function.
28697 (label_set_property): Handle templates and hooks.
28698 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
28700 (progress_bar_set_property): Register and unregister timeout hook.
28701 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
28702 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
28703 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
28704 (update_timeout_visit): Removed.
28705 (update_timeouts): New function.
28706 (redraw_timeouts): Likewise.
28707 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
28708 (grub_gfxmenu_clear_timeout): Likewise.
28709 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
28710 (grub_gfxmenu_timeout_notify): Likewise.
28711 (grub_gfxmenu_timeout_notifications): New external variable.
28712 (grub_gfxmenu_timeout_register): New function.
28713 (grub_gfxmenu_timeout_unregister): Likewise.
28715 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
28717 Transform (broken) vga terminal into (working) vga video driver.
28719 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
28720 video/i386/pc/vga.c.
28721 * include/grub/video.h (grub_video_driver_id):
28722 Add GRUB_VIDEO_DRIVER_VGA.
28723 * term/i386/pc/vga.c: Renamed to ...
28724 * video/i386/pc/vga.c: ...this
28725 (DEBUG_VGA): Removed.
28726 (CHAR_WIDTH): Likewise.
28727 (CHAR_HEIGHT): Likewise.
28728 (TEXT_WIDTH): Likewise.
28729 (TEXT_HEIGHT): Likewise.
28730 (DEFAULT_FG_COLOR): Likewise.
28731 (DEFAULT_BG_COLOR): Likewise.
28732 (colored_char): Likewise.
28735 (cursor_state): Likewise.
28736 (fg_color): Likewise.
28737 (bg_color): Likewise.
28738 (text_buf): Likewise.
28741 (framebuffer): New variable.
28742 (set_read_map): Disabled.
28743 (setup): New variable.
28744 (is_target): Likewise.
28745 (grub_vga_mod_init): Likewise.
28746 (grub_vga_mod_fini): Likewise.
28747 (check_vga_mem): Likewise.
28748 (write_char): Likewise.
28749 (write_cursor): Likewise.
28750 (scroll_up): Likewise.
28751 (grub_vga_putchar): Likewise.
28752 (grub_vga_getcharwidth): Likewise.
28753 (grub_vga_getwh): Likewise.
28754 (grub_vga_getxy): Likewise.
28755 (grub_vga_gotoxy): Likewise.
28756 (grub_vga_cls): Likewise.
28757 (grub_vga_setcolorstate): Likewise.
28758 (grub_vga_setcursor): Likewise.
28759 (grub_video_vga_init): New function.
28760 (grub_video_vga_setup): Likewise.
28761 (grub_video_vga_fini): Likewise.
28762 (update_target): Likewise.
28763 (grub_video_vga_blit_bitmap): Likewise.
28764 (grub_video_vga_blit_render_target): Likewise.
28765 (grub_video_vga_set_active_render_target): Likewise.
28766 (grub_video_vga_get_active_render_target): Likewise.
28767 (grub_video_vga_swap_buffers): Likewise.
28768 (grub_video_vga_set_palette): Likewise.
28769 (grub_video_vga_get_info_and_fini): Likewise.
28770 (grub_vga_term): Removed.
28771 (grub_video_vga_adapter): New variable.
28772 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28773 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28775 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28777 * video/readers/jpeg.c: Indented.
28779 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28781 Various jpeg cleanups.
28783 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28784 (grub_jpeg_decode_quan_table): Use sizeof.
28785 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28787 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
28789 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28790 tables. Ignore non-last ac bit.
28791 (grub_jpeg_decode_quan_table): Likewise.
28793 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28795 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28796 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28797 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28798 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28799 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28800 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28802 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28804 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28807 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28809 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28811 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28813 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28816 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28818 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28821 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28823 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28826 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28828 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28830 2010-05-01 Christian Franke <franke@computer.org>
28832 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28833 Remove broken Cygwin path conversion.
28834 * util/misc.c: [__CYGWIN__] Add include and define.
28835 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28837 (make_system_path_relative_to_its_root): Simplify loop, replace early
28839 [__CYGWIN__] Add conversion to win32 path.
28840 Include "/" case in trailing slash removal.
28842 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28844 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28845 Reported by: Seth Goldberg
28847 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28849 * commands/help.c (grub_cmd_help): Fix a typo.
28850 Reported by: Seth Goldberg
28852 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28854 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
28856 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
28857 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
28858 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
28859 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
28860 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
28861 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
28862 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28863 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28864 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28865 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28866 * normal/context.c (GRUB_MOD_INIT): Likewise.
28867 * normal/main.c (GRUB_MOD_INIT): Likewise.
28868 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28869 * term/serial.c (GRUB_MOD_INIT): Likewise.
28870 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28872 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28874 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
28877 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28879 * commands/iorw.c: New file.
28880 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
28881 (iorw_mod_SOURCES): New variable.
28882 (iorw_mod_CFLAGS): Likewise.
28883 (iorw_mod_LDFLAGS): Likewise.
28885 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28889 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
28890 * normal/main.c (hotkey_aliases): New variable.
28891 (grub_normal_add_menu_entry): Parse "--hotkey".
28892 * normal/menu_text.c (run_menu): Handle hotkeys.
28894 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28896 * kern/i386/coreboot/init.c (grub_machine_init): Call
28897 grub_machine_mmap_init on qemu.
28899 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28901 * boot/i386/qemu/boot.S: Add a missing .code16.
28903 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28905 Use LBIO on coreboot.
28907 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
28908 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
28909 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
28911 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
28912 grub_machine_mmap_init on coreboot.
28913 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
28914 GRUB_LINUXBIOS_MEMBER_LINK.
28915 (grub_machine_mmap_iterate): Fix declaration.
28916 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
28918 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28920 Split coreboot and multiboot ports.
28922 * conf/i386-multiboot.rmk: New file.
28923 * configure.ac: Add multiboot port.
28924 * include/grub/i386/multiboot/boot.h: New file.
28925 * include/grub/i386/multiboot/console.h: Likewise.
28926 * include/grub/i386/multiboot/init.h: Likewise.
28927 * include/grub/i386/multiboot/kernel.h: Likewise.
28928 * include/grub/i386/multiboot/loader.h: Likewise.
28929 * include/grub/i386/multiboot/memory.h: Likewise.
28930 * include/grub/i386/multiboot/serial.h: Likewise.
28931 * include/grub/i386/multiboot/time.h: Likewise.
28932 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
28933 * loader/multiboot.c: Likewise.
28934 * loader/multiboot_mbi2.c: Likewise.
28935 * util/grub-mkrescue.in: Generate multiboot rescue.
28937 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28939 * kern/parser.c (grub_parser_execute): Cope with read-only config.
28941 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28943 Merge handling of input and output terminals. Fix a hang.
28945 * commands/terminal.c (abstract_terminal): New struct.
28946 (handle_command): New function. Based on grub_cmd_terminal_input.
28947 (grub_cmd_terminal_input): Use handle_command.
28948 (grub_cmd_terminal_output): Use handle_command.
28950 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
28952 Fix comment handling.
28954 * tests/grub_script_comments.in: New testcase.
28955 * conf/tests.rmk: Rules for new testcase.
28956 * script/yylex.l: Updated flex rules.
28958 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
28960 * docs/grub.texi (play): Document that zero pitches produce rests.
28961 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
28964 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
28966 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
28969 2010-04-26 Christian Franke <franke@computer.org>
28971 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
28972 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
28973 (grub_get_prefix): Remove function.
28974 * util/grub-emu.c (main): Replace grub_get_prefix () call by
28975 make_system_path_relative_to_its_root ().
28976 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
28978 2010-04-24 Christian Franke <franke@computer.org>
28980 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
28981 (kernel_img_LDFLAGS): Remove -static-libgcc.
28983 2010-04-24 Christian Franke <franke@computer.org>
28985 * configure.ac: Do not CHECK_BSS_START_SYMBOL
28986 and CHECK_END_SYMBOL if grub-emu is built.
28987 Unset TARGET_OBJ2ELF if grub-emu is built
28988 without module support.
28990 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
28994 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
28995 (grub_fstest_SOURCES): Likewise.
28996 (pkglib_MODULES): Add nilfs2.mod.
28997 (nilfs2_mod_SOURCES): New variable.
28998 (nilfs2_mod_CFLAGS): Likewise.
28999 (nilfs2_mod_LDFLAGS): Likewise.
29000 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
29001 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
29002 * fs/nilfs2.c: New file.
29004 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
29006 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
29009 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
29011 Add grub-mkconfig support for NetBSD.
29013 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
29014 * util/grub-mkconfig.in: export new NetBSD specific variables.
29015 * po/POTFILES-shell: added 10_netbsd.in.
29016 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
29018 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
29020 Fix emu build with grub-emu-pci and grub-emu-modules.
29022 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
29024 * include/grub/libpciaccess.h: New file.
29025 * conf/any-emu.rmk: Update kernel headers for emu build.
29027 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
29029 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
29031 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
29033 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
29035 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29037 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
29038 Retrieve chosen/bootpath if bootpath isn't hardcoded.
29039 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
29040 util/ieee1275/ofpath.c.
29041 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
29042 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
29043 * include/grub/sparc64/ieee1275/boot.h
29044 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
29045 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
29046 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
29047 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
29049 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
29050 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
29051 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
29054 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
29056 * util/grub-mkconfig.in: Corrected two == equality tests.
29057 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
29058 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
29059 expect a number appended to it.
29060 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
29061 expects a number appended to it.
29063 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29065 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
29067 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29069 * util/hostdisk.c (make_device_name): Change to new partition naming.
29071 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
29073 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
29075 2010-04-17 Christian Franke <franke@computer.org>
29077 * Makefile.in: Add missing localedir setting.
29079 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
29081 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
29082 mistake in r2156. Noticed by Anthony Fok.
29084 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
29086 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
29088 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
29090 Fix a spurious, uninitialized variable warning.
29092 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
29093 Initialize variable, shdr.
29094 (grub_freebsd_load_elfmodule): Likewise.
29095 (grub_freebsd_load_elf_meta): Likewise.
29097 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
29099 Fix for escaped dollar in double quoted strings.
29101 * script/yylex.l: Updated flex rules.
29102 * conf/tests.rmk: Rule for new testcase.
29103 * tests/grub_script_dollar.in: New testcase.
29105 2010-04-13 Carles Pina i Estany <carles@pina.cat>
29106 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
29108 Enclose all translated strings in grub.cfg in single quotes, and
29109 escape them appropriately (Ubuntu bug #552921).
29111 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
29112 * util/grub.d/10_hurd.in: Use it.
29113 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
29114 * util/grub.d/10_linux.in (linux_entry): Likewise.
29116 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29118 Fix cygwin compilation.
29120 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
29121 * include/grub/misc.h (__register_frame_info)
29122 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
29123 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29124 * kern/misc.c (__register_frame_info)
29125 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
29126 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29128 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29130 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
29132 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29134 Unify libgcc processing.
29136 * Makefile.in (kernel_img_LDFLAGS): New variable.
29137 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
29138 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
29140 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
29141 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
29142 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
29143 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
29144 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
29145 overwriting. Remove -lgcc and -static-libgcc
29146 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
29147 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29148 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29149 (kernel_img_LDFLAGS): Append instead of overwriting.
29150 Remove -lgcc and -static-libgcc
29151 * conf/sparc64-ieee1275.rmk: Likewise.
29152 * include/grub/powerpc/libgcc.h: Move to ...
29153 * include/grub/libgcc.h: .. this.
29154 * include/grub/libgcc.h: Don't export most of the function on x86.
29155 (__bswapsi2): New export.
29156 (__bswapdi2): Likewise.
29157 * include/grub/mips/libgcc.h: Removed.
29158 * include/grub/sparc64/libgcc.h: Likewise.
29160 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29162 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
29163 disk_info_msg (conflicts with gettexting into languages with cases).
29165 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
29167 Add grub-probe support for NetBSD.
29169 * util/getroot.c (find_root_device): Convert block device to
29170 character device on NetBSD.
29171 * util/probe.c (probe): Require character device on NetBSD.
29172 * util/hostdisk.c: NetBSD specific headers.
29173 (configure_device_driver): new function to tune device driver
29174 parameters (currently only for NetBSD floppy driver).
29175 (grub_util_biosdisk_open): NetBSD specific code (get disk size
29176 via disklabel ioctl).
29177 (open_device): call configure_device_driver on NetBSD.
29178 (convert_system_partition_to_system_disk): NetBSD specific code.
29179 (device_is_wholedisk): Likewise.
29180 (grub_util_biosdisk_get_grub_dev): Likewise.
29181 (make_device_name): Fixed a typo in bsd_part_str.
29182 * configure.ac: check for opendisk() and getrawpartition() on
29183 NetBSD and set LIBUTIL.
29184 * Makefile.in: add LIBUTIL to LIBS.
29186 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29190 * util/grub-script-check.c: Better help message.
29192 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29196 * configure.ac: Flex version check.
29197 * conf/common.rmk: Add -Wno-error to sh.mod.
29198 * script/yylex.l: Remove all #pragma.
29200 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29202 * include/grub/util/misc.h (canonicalise_file_name): Add missing
29204 Reported by: Seth Goldberg.
29206 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29208 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
29209 Rename "module" to "module2".
29210 Reported by: Seth Goldberg.
29212 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29214 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
29216 Reported by: Seth Goldberg.
29218 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29220 * lib/posix_wrap/locale.h: Add missing file.
29221 Reported by: Seth Goldberg.
29223 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29225 grub-emu module load support.
29227 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
29228 NO_DYNAMIC_MODULES switched to this.
29229 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
29230 (CFLAGS): Likewise.
29231 * conf/any-emu.rmk: Generate symlist.
29232 (kernel_img_HEADERS): Add util/datetime.h.
29233 (kernel_img_HEADERS) [sdl]: Add sdl.h.
29234 (kernel_img_HEADERS) [libusb]: Add libusb.h.
29235 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
29236 kern/$(target_cpu)/cache.S.
29237 * configure.ac (grub-emu-modules): New option.
29238 * genmk.rb: Handle multiple source lists.
29239 * include/grub/sdl.h: New file.
29240 * include/grub/libusb.h: Likewise.
29241 * util/grub-emu.c (main): Hanle (host) root.
29242 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
29243 GRUB_ERR_UNKNOWN_DEVICE.
29244 * util/misc.c: Move mm functions to ...
29245 * util/mm.c: ... here. All users updated.
29247 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29249 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
29250 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
29252 (maintainer-clean): Remove libgcrypt-grub.
29254 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29256 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
29258 2010-04-09 EFI Coder <eficoder@hotmail.com>
29260 * normal/menu_text.c (print_message): Clean up the message and show
29261 the Fn information when on EFI
29262 * term/efi/console.c (grub_console_checkkey): Add F4 support.
29264 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29266 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
29268 * normal/crypto.c (read_crypto_list): Likewise.
29269 * normal/dyncmd.c (read_command_list): Likewise.
29270 * normal/term.c (read_terminal_list): Likewise.
29271 * normal/main.c (read_lists): Use explicit prefix.
29272 (read_lists_hook): Use read_lists.
29273 (grub_normal_execute): Likewise.
29275 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29277 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
29278 Reported by: Thomas Schmitt.
29279 Add -no-emul-boot to grub-mkisofs parameters.
29281 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29283 * font/font.c: Indented.
29285 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29287 Elif support to GRUB script (by Deepak Vankadaru).
29289 * tests/grub_script_if.in: New testcase.
29290 * conf/tests.rmk: Rule for new testcase.
29291 * script/parser.y: Grammar rules for elif.
29293 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29295 While and until loops support to GRUB script.
29297 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
29298 (grub_script_create_cmdwhile): New function prototype.
29299 (grub_script_execute_cmdwhile): New function prototype.
29300 * script/execute.c (grub_script_execute_cmdwhile): New function.
29301 * script/parser.y (command): New commands.
29302 (whilecmd): New grammar rule.
29303 (untilcmd): New grammar rule.
29304 * script/script.c (grub_script_create_cmdwhile): New function.
29305 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
29308 * tests/grub_script_while1.in: New testcase.
29309 * conf/tests.rmk: Rule for new testcase.
29311 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29313 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
29316 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
29318 GRUB_BACKGROUND support.
29320 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
29321 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
29323 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29325 Load fonts and modules for gfxmenu in grub-mkconfig.
29326 Idea by: Mario Vazquez
29328 * util/grub.d/00_header.in: Load pf2 and image modules.
29330 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29332 grub-mkconfig multiple terminal support.
29334 * util/grub-mkconfig.in: Handle multiple terminals correctly.
29335 * util/grub.d/00_header.in: Likewise.
29337 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29339 * Makefile.in: Specify files explicitly instead of using $< and $@ since
29340 we use cd $(srcdir).
29342 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
29344 * util/grub.d/10_linux.in: Only use the first word of
29345 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
29346 spaces in GRUB_DISTRIBUTOR.
29347 * util/grub.d/10_kfreebsd.in: Likewise.
29348 * util/grub.d/10_hurd.in: Likewise.
29350 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
29352 Fix unit testing framework for Qemu 0.12.
29354 * tests/util/grub-shell.in: Remove -serial stdio option.
29356 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
29358 POSIX header file wrappers.
29360 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
29362 * lib/posix_wrap/ctype.h: Likewise.
29363 * lib/posix_wrap/errno.h: Likewise.
29364 * lib/posix_wrap/langinfo.h: Likewise.
29365 * lib/posix_wrap/limits.h: Likewise.
29366 * lib/posix_wrap/localcharset.h: Likewise.
29367 * lib/posix_wrap/stdint.h: Likewise.
29368 * lib/posix_wrap/stdio.h: Likewise.
29369 * lib/posix_wrap/stdlib.h: Likewise.
29370 * lib/posix_wrap/string.h: Likewise.
29371 * lib/posix_wrap/sys/types.h: Likewise.
29372 * lib/posix_wrap/unistd.h: Likewise.
29373 * lib/posix_wrap/wchar.h: Likewise.
29374 * lib/posix_wrap/wctype.h: Likewise.
29375 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
29376 (grub_script.yy.h): Likewise.
29377 * script/yylex.l: Remove POSIX emulation #defines.
29378 * Makefile.in (POSIX_CFLAGS): New variable.
29379 (GNULIB_UTIL_CFLAGS): Likewise.
29383 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
29384 (regexp_mod_SOURCES): New variable.
29385 (regexp_mod_CFLAGS): Likewise.
29386 (regexp_mod_LDFLAGS): Likewise.
29387 * commands/regexp.c: New file.
29388 * gnulib/regcomp.c: New file. Imported from gnulib.
29389 * gnulib/regex.c: Likewise.
29390 * gnulib/regex_internal.c: Likewise.
29391 * gnulib/regex_internal.h: Likewise.
29392 * gnulib/regexec.c: Likewise.
29393 * gnulib/regex.h: Likewise.
29395 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29397 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
29398 unsupported video mode types.
29400 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29402 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
29404 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29406 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
29407 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
29409 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
29411 Remove unused grub_vga_get_font.
29413 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
29414 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
29416 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29418 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
29419 * include/grub/misc.h: Likewise.
29421 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29423 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
29424 for which failure is fatal.
29426 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29428 * util/grub-install.in: Use mkdir -p to create grub directory.
29429 * util/i386/efi/grub-install.in: Likewise.
29430 * util/ieee1275/grub-install.in: Likewise.
29432 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29434 * Makefile.in (LEX): new variable.
29436 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29438 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
29439 `=' and added double quotes on operands of this equality test.
29441 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29443 * Makefile.in (uninstall): Remove a leftover debug echo.
29444 Reported by: Grégoire Sutre
29446 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29448 MIPS multiboot2 support.
29450 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
29451 (multiboot2_mod_SOURCES): New variable.
29452 (multiboot2_mod_CFLAGS): Likewise.
29453 (multiboot2_mod_LDFLAGS): Likewise.
29454 (multiboot2_mod_ASFLAGS): Likewise.
29455 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
29457 (MULTIBOOT_ENTRY_REGISTER): Likewise.
29458 (MULTIBOOT_MBI_REGISTER): Likewise.
29459 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
29460 (MULTIBOOT_ELF32_MACHINE): Likewise.
29461 (MULTIBOOT_ELF64_MACHINE): Likewise.
29462 * include/grub/mips/multiboot.h: New file.
29463 * include/grub/video.h (grub_video_driver_id): New type
29464 GRUB_VIDEO_DRIVER_SM712.
29465 (grub_video_get_info_and_fini): Export.
29466 (grub_video_get_palette): Likewise.
29467 (grub_video_get_driver_id): Likewise.
29468 * include/multiboot2.h: Resynced with spec.
29469 * loader/i386/multiboot.c: Moved from here ...
29470 * loader/multiboot.c: ... here. All users updated.
29471 (grub_multiboot_boot): Use platform-specific macros.
29472 * loader/i386/multiboot_elfxx.c: Moved from here ...
29473 * loader/multiboot_elfxx.c: ... here. All users updated.
29474 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
29475 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
29476 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
29478 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
29480 Import gnulib argp module.
29482 * gnulib/argp-ba.c: New file.
29483 * gnulib/argp-eexst.c: Likewise.
29484 * gnulib/argp-fmtstream.c: Likewise.
29485 * gnulib/argp-fmtstream.h: Likewise.
29486 * gnulib/argp-fs-xinl.c: Likewise.
29487 * gnulib/argp-help.c: Likewise.
29488 * gnulib/argp-namefrob.h: Likewise.
29489 * gnulib/argp-parse.c: Likewise.
29490 * gnulib/argp-pin.c: Likewise.
29491 * gnulib/argp-pv.c: Likewise.
29492 * gnulib/argp-pvh.c: Likewise.
29493 * gnulib/argp-version-etc.c: Likewise.
29494 * gnulib/argp-version-etc.h: Likewise.
29495 * gnulib/argp-xinl.c: Likewise.
29496 * gnulib/argp.h: Likewise.
29498 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29500 * kern/device.c (grub_device_iterate): Clear errors after failed
29503 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29505 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
29506 returned by firmware.
29508 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
29510 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
29511 compilation on coreboot and qemu
29513 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29515 * include/multiboot2.h: Resync with spec.
29517 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29519 Multiboot2 tag support
29521 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
29522 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
29523 Remove loader/multiboot_loader.c.
29524 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
29525 (grub_multiboot2_real_boot): Likewise.
29526 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
29527 (grub_get_multiboot_mmap_count): New proto.
29528 (grub_fill_multiboot_mmap): Likewise.
29529 (grub_multiboot_set_video_mode): Likewise.
29530 (grub_multiboot_set_console): Likewise.
29531 (grub_multiboot_load): Likewise.
29532 (grub_multiboot_load_elf): Likewise.
29533 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
29534 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
29535 * include/multiboot.h: Resynced with specification.
29536 * include/multiboot2.h: Resynced with specification.
29537 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
29538 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
29539 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
29540 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
29542 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
29543 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
29544 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
29546 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
29548 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
29549 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
29551 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
29552 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
29553 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
29555 * loader/i386/multiboot_mbi2.c: New file.
29557 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29559 Resync with gnulib.
29561 * Makefile.in (GNULIB_CFLAGS): New variable.
29562 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
29563 (grub_script_check_CFLAGS): New variable.
29564 * gnulib/alloca.h: Resync with gnulib.
29565 * gnulib/error.c: Likewise.
29566 * gnulib/error.h: Likewise.
29567 * gnulib/fnmatch.c: Likewise.
29568 * gnulib/fnmatch_loop.c: Likewise.
29569 * gnulib/getdelim.c: Likewise.
29570 * gnulib/getline.c: Likewise.
29571 * gnulib/getopt.c: Likewise.
29572 * gnulib/getopt1.c: Likewise.
29573 * gnulib/getopt_int.h: Likewise.
29574 * gnulib/gettext.h: Likewise.
29575 * gnulib/progname.c: Likewise.
29576 * gnulib/progname.h: Likewise.
29578 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
29580 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
29581 which is the case with --disabled-nls.
29583 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
29584 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
29585 * util/misc.c: Likewise.
29586 * util/mkisofs/mkisofs.c: Likewise.
29587 * util/mkisofs/mkisofs.h: Likewise.
29589 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29591 Simplify Apple CC support.
29593 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
29594 Add 0 byte at the end not to have a symbol with empty target.
29595 * mmap/i386/pc/mmap_helper.S: Likewise.
29596 * genmk.rb: Ignore errors 2030 and 2050.
29597 * kern/i386/pc/startup.S: Use LOCAL when possible.
29599 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
29601 Testcase and the fix for final semicolon on cmdline.
29603 * tests/grub_script_final_semicolon.in: New testcase.
29604 * conf/tests.rmk: Rules for the new testcase.
29605 * script/parser.y: Grammar fix.
29607 2010-03-26 BVK Chaitanya <bvk@localhost>
29609 Blank lines testcase for GRUB script.
29611 * tests/grub_script_blanklines.in: New testcase.
29612 * conf/tests.rmk: Rules for the new testcase.
29614 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29616 Don't use __FILE__.
29618 * genmk.rb: Add -DGRUB_FILE to all C targets.
29619 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
29620 * include/grub/list.h: Likewise.
29621 * include/grub/misc.h: Likewise.
29622 * include/grub/mm.h: Likewise.
29623 * include/grub/test.h: Likewise.
29624 * kern/mm.c: Likewise.
29625 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29627 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29629 Sunpc partitions support.
29631 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
29632 (grub_fstest_SOURCES): Likewise.
29633 (pkglib_MODULES): Add part_sunpc.mod.
29634 (part_sunpc_mod_SOURCES): New variable.
29635 (part_sunpc_mod_CFLAGS): Likewise.
29636 (part_sunpc_mod_LDFLAGS): Likewise.
29637 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
29638 * partmap/sunpc.c: New file.
29640 2010-03-26 BVK Chaitanya <bvk@localhost>
29642 For loop support to GRUB script.
29644 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
29645 (grub_script_create_cmdfor): New function prototype.
29646 (grub_script_execute_cmdfor): New function prototype.
29647 * script/execute.c (grub_script_execute_cmdfor): New function.
29648 * script/parser.y (command): New for command.
29649 (forcmd): New grammar rule.
29650 * script/script.c (grub_script_create_cmdfor): New function.
29651 * util/grub-script-check.c (grub_script_execute_cmdfor): New
29653 * tests/grub_script_for1.in: New testcase.
29654 * conf/tests.rmk: Rules for new testcase.
29656 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29660 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
29661 'partition' is NULL, grub_partition_get_start already does that.
29662 * commands/loadenv.c (check_blocklists): Likewise.
29663 (write_blocklists): Likewise.
29664 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
29665 (grub_fstest_SOURCES): Likewise.
29666 (pkglib_MODULES): Add part_bsd.mod.
29667 (part_bsd_mod_SOURCES): New variable.
29668 (part_bsd_mod_CFLAGS): Likewise.
29669 (part_bsd_mod_LDFLAGS): Likewise.
29670 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
29671 (grub_emu_SOURCES): Likewise.
29672 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29673 * include/grub/bsdlabel.h: New file.
29674 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
29676 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
29677 (grub_partition_map_list): New variable.
29678 (grub_partition_map_register): Inline.
29679 (grub_partition_map_unregister): Likewise.
29680 (FOR_PARTITION_MAPS): New macro.
29681 (grub_partition_map_iterate): Removed.
29682 (grub_partition_get_start): Handle nested partitions.
29683 * include/grub/msdos_partition.h: Remove bsd-related entries.
29684 (grub_pc_partition): Remove.
29685 * kern/disk.c (grub_disk_close): Free partition data.
29686 (grub_disk_adjust_range): Handle nested partitions.
29687 * kern/partition.c (grub_partition_map_probe): New function.
29688 (grub_partition_probe): Parse name to number, handle subpartitions.
29689 (get_partmap): New function.
29690 (grub_partition_iterate): Handle subpartitions.
29691 (grub_partition_get_name): Likewise.
29692 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
29693 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
29694 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
29695 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
29697 (acorn_partition_map_probe): Remove.
29698 (acorn_partition_map_get_name): Likewise.
29699 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
29701 Set 'index' to 0 since there can be only one partition entry per sector.
29702 (amiga_partition_map_probe): Remove.
29703 (amiga_partition_map_get_name): Likewise.
29704 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
29706 Set 'offset' and 'index' to real positions of partitions.
29707 (apple_partition_map_probe): Remove.
29708 (apple_partition_map_get_name): Likewise.
29709 * partmap/bsdlabel.c: New file.
29710 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
29712 Allocate 'data' so it can be correctly freed.
29713 Set 'index' to offset inside sector.
29714 (gpt_partition_map_probe): Remove.
29715 (gpt_partition_map_get_name): Likewise.
29716 * partmap/msdos.c (grub_partition_parse): Remove.
29717 (pc_partition_map_iterate): Don't force raw access.
29719 Make 'ext_offset' a local variable.
29720 (pc_partition_map_probe): Remove.
29721 (pc_partition_map_get_name): Remove.
29722 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
29724 (sun_partition_map_probe): Remove.
29725 (sun_partition_map_get_name): Likewise.
29726 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
29727 (grub_pcpart_type): Likewise.
29728 * util/hostdisk.c (open_device): Handle new numbering scheme.
29729 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
29730 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
29731 * util/grub-probe.c (probe_partmap): Handle nested paritions.
29732 * util/grub-install.in: Insert all subpartition modules.
29733 * util/ieee1275/grub-install.in: Likewise.
29735 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
29737 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
29740 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
29742 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
29744 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
29746 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
29747 match where 'make install' puts them.
29748 * util/i386/efi/grub-install.in: Likewise.
29750 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
29752 * .bzrignore: Add gentrigtables, grub-script-check,
29753 grub_script_check_init.c, grub_script_check_init.h, and
29756 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
29758 * kern/parser.c: Indented.
29760 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29762 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
29764 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29766 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
29767 alpha_mask_size == 0 case.
29769 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
29771 GRUB shell lexer and parser improvements.
29773 * conf/any-emu.rmk: Build rule updates.
29774 * conf/common.rmk: Likewise.
29775 * conf/i386-coreboot.rmk: Likewise.
29776 * conf/i386-efi.rmk: Likewise.
29777 * conf/i386-ieee1275.rmk: Likewise.
29778 * conf/i386-pc.rmk: Likewise.
29779 * conf/powerpc-ieee1275.rmk: Likewise.
29780 * conf/x86_64-efi.rmk: Likewise.
29782 * configure.ac: Configure check for flex.
29784 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29786 (grub_lexer_param): Struct member updates.
29787 (grub_parser_param): Likewise.
29788 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29789 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29790 (grub_script_lexer_init): Prototype update.
29791 (grub_script_lexer_record_start): Likewise.
29792 (grub_script_lexer_record_stop): Likewise.
29793 (grub_script_lexer_yywrap): New function prototype.
29794 (grub_script_lexer_fini): Likewise.
29795 (grub_script_execute_argument_to_string): Removed by...
29796 (grub_script_execute_argument_to_argv): ...better version.
29798 * script/execute.c (ROUND_UPTO): New macro.
29799 (grub_script_execute_cmdline): Out of memory fixes.
29800 (grub_script_execute_menuentry): Likewise.
29801 (grub_script_execute_argument_to_string): Removed. Update all
29803 (grub_script_execute_argument_to_argv): ...better version.
29804 * script/function.c (grub_script_function_create): Use
29805 grub_script_execute_argument_to_argv instead of
29806 grub_script_execute_argument_to_string.
29808 * script/lexer.c (check_varstate): Removed.
29809 (check_textstate): Removed.
29810 (grub_script_lexer_record_start): Likewise.
29811 (grub_script_lexer_record_stop): Likewise.
29812 (recordchar): Replaced with...
29813 (grub_script_lexer_record): ...new function.
29814 (nextchar): Removed.
29815 (grub_script_lexer_init): Rewritten.
29816 (grub_script_yylex): Rewritten.
29817 (append_newline): New function.
29818 (grub_script_lexer_yywrap): New function.
29819 (grub_script_lexer_fini): New function.
29820 (grub_script_yyerror): Sets error flag.
29822 * script/yylex.l: New file.
29823 (grub_lexer_yyfree): Wrapper for flex yyffre.
29824 (grub_lexer_yyalloc): Likewise.
29825 (grub_lexer_yyrealloc): Likewise.
29826 * script/parser.y: Refactored.
29828 * script/script.c (grub_script_arg_add): Out of memory fixes.
29829 (grub_script_add_arglist): Likewise.
29830 (grub_script_create_cmdline): Likewise.
29831 (grub_script_create_cmdmenu): Likewise.
29832 (grub_script_add_cmd): Likewise.
29833 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29834 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29837 * tests/grub_script_echo1.in: New testcase.
29838 * tests/grub_script_vars1.in: New testcase.
29839 * tests/grub_script_echo_keywords.in: New testcase.
29841 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29843 Remove some redundancy in build system.
29845 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
29846 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
29847 (TARGET_LDFLAGS): Add -nostdlib.
29848 (TARGET_IMG_LDFLAGS): Likewise.
29849 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
29850 anything since mmap isn't available.
29851 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
29853 (pkglib_MODULES): Remove reboot.mod.
29854 (reboot_mod_SOURCES): Removed.
29855 (reboot_mod_CFLAGS): Likewise.
29856 (reboot_mod_LDFLAGS): Likewise.
29857 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
29858 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
29859 (DEFSYMFILES): Add kernel_syms.lst.
29860 (kernel_img_HEADERS): Add common headers.
29861 (symlist.c): New target.
29862 (kernel_syms.lst): Likewise.
29863 (pkglib_MODULES): Add memdisk.mod.
29864 (memdisk_mod_SOURCES): New variable.
29865 (memdisk_mod_CFLAGS): Likewise.
29866 (memdisk_mod_LDFLAGS): Likewise.
29867 (pkglib_MODULES): Add reboot.mod.
29868 (reboot_mod_SOURCES): New variable.
29869 (reboot_mod_CFLAGS): Likewise.
29870 (reboot_mod_LDFLAGS): Likewise.
29871 (pkglib_MODULES): Add date.mod.
29872 (date_mod_SOURCES): New variable.
29873 (date_mod_CFLAGS): Likewise.
29874 (date_mod_LDFLAGS): Likewise.
29875 (pkglib_MODULES): Add datehook.mod.
29876 (datehook_mod_SOURCES): New variable.
29877 (datehook_mod_CFLAGS): Likewise.
29878 (datehook_mod_LDFLAGS): Likewise.
29879 (pkglib_MODULES): Add lsmmap.mod.
29880 (lsmmap_mod_SOURCES): New variable.
29881 (lsmmap_mod_CFLAGS): Likewise.
29882 (lsmmap_mod_LDFLAGS): Likewise.
29883 (pkglib_MODULES): Add boot.mod.
29884 (boot_mod_SOURCES): New variable.
29885 (boot_mod_CFLAGS): Likewise.
29886 (boot_mod_LDFLAGS): Likewise.
29887 * conf/i386-coreboot.rmk: Removed redundant parts.
29888 * conf/i386-ieee1275.rmk: Likewise.
29889 * conf/i386-pc.rmk: Likewise.
29890 * conf/mips-yeeloong.rmk: Likewise.
29891 * conf/mips.rmk: Likewise.
29892 * conf/powerpc-ieee1275.rmk: Likewise.
29893 * conf/sparc64-ieee1275.rmk: Likewise.
29894 * conf/x86_64-efi.rmk: Likewise.
29895 * conf/i386-coreboot.rmk: Moved qemu parts ..
29896 * conf/i386-qemu.rmk: ... here
29897 * conf/i386-efi.rmk: Moved common parts to...
29898 * conf/x86-efi.rmk: ... here.
29899 * conf/i386.rmk: Added modules common to all x86 variants.
29900 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
29901 * disk/memdisk.c: Remove grub/machine/kernel.h.
29902 * gensymlist.sh.in: Include symbol.h.
29903 * hook/datehook.c: Correct module name.
29904 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
29905 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
29906 * include/grub/i386/efi/serial.h: New file.
29907 * include/grub/x86_64/efi/serial.h: Likewise.
29908 * util/time.c: Likewise.
29909 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
29911 2010-03-14 Colin King <colin.king@ubuntu.com>
29912 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29914 Shrink the pre-partition-table part of boot.img by eight bytes.
29916 * boot/i386/pc/boot.S (ERR): New macro.
29917 (chs_mode): Use ERR.
29918 (geometry_error): Likewise.
29919 (hd_probe_error): Remove. This is only used once, so we wrwite
29921 (read_error): Instead of printing read_error_string, just set up
29922 %si and fall through to ...
29923 (error_message): ... this new function, also used by ERR.
29925 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29927 Speed up consecutive hostdisk operations on the same device.
29929 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
29930 (grub_util_biosdisk_open): Initialise disk->data.
29931 (struct linux_partition_cache): New structure.
29932 (linux_find_partition): Cache partition start positions; these are
29933 expensive to compute on every read and write.
29934 (open_device): Cache open file descriptor in disk->data, so that we
29935 don't have to reopen it and flush the buffer cache for consecutive
29936 operations on the same device.
29937 (grub_util_biosdisk_close): New function.
29938 (grub_util_biosdisk_dev): Set `close' member.
29940 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
29941 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
29942 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
29943 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
29944 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
29946 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29948 Compile parts of grub-emu as modules.
29950 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
29951 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
29952 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
29953 (all-local): Add $(GRUB_EMU).
29954 (install-local): Install $(GRUB_EMU).
29955 (uninstall): Uninstall $(GRUB_EMU).
29956 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
29957 * kern/dl.c: Likewise.
29958 * commands/sleep.c: Not include machine/time.h.
29959 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
29960 (COMMON_CFLAGS): Likewise.
29961 (sbin_UTILITIES): Remove grub-emu.
29962 (grub_emu_SOURCES): Removed.
29963 (kernel_img_RELOCATABLE): New variable.
29964 (pkglib_PROGRAMS): Add kernel.img.
29965 (kernel_img_SOURCES): New variable
29966 (kernel_img_CFLAGS): Likewise.
29967 (kernel_img_LDFLAGS): Likewise.
29968 (TARGET_NO_STRIP): Likewise.
29969 (TARGET_NO_DYNAMIC_MODULES): Likewise.
29970 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
29971 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
29972 (grub-emu): New target.
29973 (GRUB_EMU): New variable.
29974 * configure.ac: Whitelist -emu as possible x86_64 architecture.
29975 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
29976 * loader/xnu.c: Likewise.
29977 * include/grub/pci.h: Likewise.
29978 * genemuinit.sh: New file.
29979 * genemuinitheader.sh: Likewise.
29980 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
29981 Support TARGET_NO_DYNAMIC_MODULES.
29982 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
29983 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
29984 * disk/loopback.c: Likewise.
29985 * font/font_cmd.c: Likewise.
29986 * partmap/acorn.c: Likewise.
29987 * partmap/amiga.c: Likewise.
29988 * partmap/apple.c: Likewise.
29989 * partmap/gpt.c: Likewise.
29990 * partmap/msdos.c: Likewise.
29991 * partmap/sun.c: Likewise.
29992 * parttool/msdospart.c: Likewise.
29993 * term/gfxterm.c: Likewise.
29994 * video/bitmap.c: Likewise.
29995 * video/readers/jpeg.c: Likewise.
29996 * video/readers/png.c: Likewise.
29997 * video/readers/tga.c: Likewise.
29998 * video/video.c: Likewise.
29999 * util/grub-emu.c (read_command_list): Removed.
30000 (main): Don't call util_init_nls.
30001 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
30002 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
30004 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30006 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
30007 date.mod, datehook.mod.
30008 (datetime_mod_SOURCES): New variable.
30009 (datetime_mod_CFLAGS): Likewise.
30010 (datetime_mod_LDFLAGS): Likewise.
30011 (date_mod_SOURCES): Likewise.
30012 (date_mod_CFLAGS): Likewise.
30013 (date_mod_LDFLAGS): Likewise.
30014 (datehook_mod_SOURCES): Likewise.
30015 (datehook_mod_CFLAGS): Likewise.
30016 (datehook_mod_LDFLAGS): Likewise.
30017 * conf/sparc64-ieee1275.rmk: Likewise.
30018 * lib/ieee1275/datetime.c: New file.
30020 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30022 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
30023 (ieee1275_fb_mod_SOURCES): New variable.
30024 (ieee1275_fb_mod_CFLAGS): Likewise.
30025 (ieee1275_fb_mod_LDFLAGS): Likewise.
30026 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
30028 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
30029 (HEAP_MAX_ADDR): Likewise.
30030 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
30032 Correct stop condition.
30033 (grub_ieee1275_devices_iterate): New function.
30034 * video/ieee1275.c: New file.
30036 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30038 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
30040 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
30042 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
30043 SCRATCH_PAD_DISKBOOT as scratch.
30044 (bootit): Pass Openfirmware pointer in %o4.
30045 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
30047 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
30048 with util/grub-mkrawimage.c.
30049 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
30050 * include/grub/aout.h (AOUT_MID_SUN): New definition.
30051 (grub_aout_get_type) [GRUB_UTIL]: Removed.
30052 (grub_aout_load) [GRUB_UTIL]: Likewise.
30053 * include/grub/kernel.h (grub_modules_get_end): New proto.
30054 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
30055 (SCRATCH_PAD_BOOT): New definition.
30056 (SCRATCH_PAD_DISKBOOT): Likewise.
30057 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
30058 * include/grub/sparc64/ieee1275/ieee1275.h
30059 (grub_ieee1275_original_stack): New variable
30060 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
30062 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
30063 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
30064 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
30065 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
30066 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
30067 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
30068 (grub_platform_image_format_t): New type.
30069 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
30070 * kern/main.c (grub_modules_get_end)
30071 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
30072 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
30073 (codestart): Switch stacks.
30074 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
30076 (grub_heap_init): Use grub_modules_get_end.
30077 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
30079 * util/grub-mkrawimage.c (generate_image): Support sparc64.
30081 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
30083 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
30085 * util/grub-mkrescue.in: Base ISO UUID on UTC.
30087 2010-03-08 Matt Kraai <kraai@ftbfs.org>
30089 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
30092 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
30094 * genmoddep.awk: Output all missing symbols and not only first.
30096 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30098 * NEWS: Put the date of 1.98 release.
30100 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30102 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
30105 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30107 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
30108 completition in the middle of string.
30110 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30112 * util/grub-mkrescue.in: Use mktemp with explicit template.
30114 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30116 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
30118 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30120 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
30123 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30125 Fix FreeBSD compilation.
30127 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
30128 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
30130 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30132 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
30134 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30136 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
30138 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30140 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
30142 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
30144 Support relative image path in theme file.
30146 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
30147 (image_set_property): Handle theme_dir and relative path.
30149 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30151 * configure.ac: Alias amd64 to x86_64.
30153 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30155 * NEWS: mention multiboot on EFI.
30157 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30159 * kern/main.c (grub_load_modules): Handle errors from init functions of
30162 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30164 * normal/autofs.c (autoload_fs_module): Handle errors.
30166 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30168 Disable linux.mod on qemu-mips since it's not functional and leads
30169 to compilation failure.
30171 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
30172 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
30173 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
30174 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
30175 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
30176 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
30177 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
30178 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
30179 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
30180 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
30181 Reported by: BVK Chaitanya
30183 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
30185 * INSTALL: Add gettext as a dependency and add qemu to a new section
30186 "Prerequisites for make-check".
30188 2010-03-04 Christian Franke <franke@computer.org>
30190 * util/grub-pe2elf.c: Add missing include "progname.h".
30192 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30194 * normal/crypto.c (read_crypto_list): Fix a typo.
30195 Reported by: Seth Goldberg.
30197 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30199 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
30200 Reported by: Seth Goldberg.
30202 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30204 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
30207 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30209 * genmk.rb: Remove terminal*.lst in make clean.
30210 Reported by: Seth Goldberg.
30212 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30214 * util/i386/efi/grub-install.in: Copy gettext files.
30216 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30218 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
30220 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30222 Wait for user entry basing on presence of output rather than on errors.
30224 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
30225 (grub_install_newline_hook): Likewise.
30226 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
30227 * normal/menu.c (show_menu): Check line_counter to determine presence
30229 * normal/term.c (grub_normal_line_counter): New variable.
30230 (grub_normal_get_line_counter): New function.
30231 (grub_install_newline_hook): Likewise.
30233 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30235 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
30237 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30239 * configure.ac: Update version to 1.98.
30241 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
30243 * util/grub.d/10_linux.in (linux_entry): Don't default to
30244 gfxpayload=keep if Linux doesn't support video handover.
30246 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
30248 Don't compile video modules on yeeloong since video subsystem is part
30251 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
30252 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
30253 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
30254 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
30255 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
30256 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
30257 * include/grub/bitmap_scale.h: Likewise.
30258 * include/grub/bufio.h: Likewise.
30259 * include/grub/font.h: Likewise.
30260 * include/grub/gfxterm.h: Likewise.
30261 * include/grub/video.h: Likewise.
30262 * include/grub/vbe.h: Don't include video_fb.h.
30263 * video/i386/pc/vbe.c: Include video_fb.h.
30264 * commands/i386/pc/vbetest.c: Include video.h.
30266 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
30268 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
30269 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
30270 default entry if GRUB_SAVEDEFAULT=true. This allows using
30271 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
30272 saving a new default on every boot.
30274 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30276 * normal/crypto.c (read_crypto_list): Fix a memory leak.
30277 * normal/term.c (read_terminal_list): Likewise.
30278 * normal/main.c (grub_normal_init_page): Likewise.
30279 (grub_normal_read_line_real): Likewise.
30281 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30283 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
30285 Reported by: Seth Goldberg.
30287 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
30289 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
30290 duplicate declaration of `start'.
30292 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30294 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
30296 Reported by: Georgy Buranov
30298 2010-02-20 Carles Pina i Estany <carles@pina.cat>
30300 * util/grub-mkrawimage.c (usage): Change string formatting to
30303 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
30305 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
30308 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30310 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
30311 Reported by: Michael Suchanek.
30313 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
30315 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
30316 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
30318 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
30320 Remove any reference to non-free fonts.
30322 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
30323 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
30324 uses non-free components.
30325 * font/font.c (grub_font_get_name): Remove example name.
30326 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
30327 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
30328 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
30329 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
30331 2010-02-16 Georgy Buranov <gburanov@gmail.com>
30333 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
30335 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30337 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
30339 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
30341 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
30343 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30345 * gensymlist.sh.in: Use TARGET_CC instead of CC.
30347 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30349 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
30350 * docs/grub.texi (Command-line and menu entry commands): Document play
30353 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30355 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
30356 parse arguments as inline tempo and notes. Move code for playing notes
30358 (play): ... new function.
30360 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30362 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
30363 grub_uint16_t instead of short.
30364 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
30365 disk from little endian to cpu endianness.
30367 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30369 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
30370 GRUB_TICKS_PER_SECOND instead of 120.
30372 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30374 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
30375 escape sequence after \e.
30377 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30379 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
30380 non-ASCII characters.
30382 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30384 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
30385 set root in single quotes to prevent \, from being unescaped.
30387 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30389 Prevent unknown commands from stopping menuentry execution.
30391 * script/execute.c (grub_script_execute_cmdline): Print error after
30394 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30396 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
30397 Reported by: Pavel Pisa.
30399 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30401 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
30403 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30405 Merge grub_ieee1275_map_physical into grub_map and rename to
30408 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
30409 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
30411 * kern/ieee1275/openfw.c (grub_map): Rename to ...
30412 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
30414 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
30416 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30418 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
30419 opening and not after.
30421 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30423 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
30426 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30428 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
30429 (alloc_phys): Use ALIGN_UP instead of align_addr.
30431 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30433 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
30435 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30437 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
30439 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30441 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
30444 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30446 Fix over-4GiB seek on sparc64.
30448 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
30449 Replace pos_i and pos_lo with pos. All users updated.
30450 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30452 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30454 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
30457 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30459 * util/grub-mkrawimage.c (main): Call set_program_name.
30461 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30463 Properly align 64-bit targets.
30465 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
30466 (generate_image): Use ALIGN_ADDR.
30468 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30470 Properly create cross-endian images.
30472 * include/grub/types.h (grub_host_to_target_addr): New macro
30473 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
30475 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30477 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
30479 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30481 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
30483 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
30484 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
30485 (grub_linux_boot): Divide by 64K when on VESA.
30487 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30489 Support GRUB_GFXPAYLOAD_LINUX.
30491 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
30492 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
30494 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30496 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
30497 to show messages instead of discarding them.
30498 Process errors after executing command and not before. Keep old method
30501 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
30503 * configure.ac: Check for ft2build.h.
30505 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30507 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
30509 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30511 * genkernsyms.sh.in: Use TARGET_CC.
30513 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
30517 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30519 * include/grub/multiboot2.h: Remove leftover file.
30520 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
30521 * include/grub/partition.h [GRUB_UTIL]: Likewise.
30523 2010-02-07 Yves Blusseau <blusseau@zetam.org>
30525 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
30527 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30529 Fix warnings in grub-emu when compiling with maximum warning options.
30531 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
30532 (grub_arch_modules_addr): Return 0 and not NULL.
30533 * util/misc.c (ENABLE_RELOCATABLE): New definition.
30534 (xstrdup): Use newstr instead of dup.
30535 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
30536 of disk to dsk to avoid shadowing.
30537 (find_free_slot): Fix prototype.
30538 * util/getroot.c (grub_util_is_dmraid): Make static.
30539 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
30540 Add missing prototype.
30541 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
30543 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30545 * loader/i386/linux.c (grub_linux_setup_video): Handle error
30548 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30550 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
30553 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30555 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
30556 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
30557 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
30558 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
30559 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
30560 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
30562 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30564 * include/grub/err.h (grub_err_printf): Don't export.
30566 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30568 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
30570 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30572 * include/grub/i18n.h (grub_gettext_dummy): Removed.
30573 * kern/misc.c (grub_gettext_dummy): Make static.
30575 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30577 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
30579 * kern/term.c (grub_putchar): Likewise.
30581 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30583 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
30584 buggy hook call and memory leak.
30586 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30588 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
30590 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30592 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
30594 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30596 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
30598 Return grub_errno on allocation error.
30600 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30602 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
30604 2010-02-06 Yves Blusseau <blusseau@zetam.org>
30606 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
30607 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
30609 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30611 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
30613 (grub_pxefs_open): Likewise.
30615 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30617 * util/grub.d/10_hurd.in: Add --class information to menuentries.
30618 * util/grub.d/10_kfreebsd.in: Likewise.
30619 * util/grub.d/10_linux.in: Likewise.
30621 2010-02-06 Colin D Bennett <colin@gibibit.com>
30623 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
30624 (gfxmenu_mod_SOURCES): New variable.
30625 (gfxmenu_mod_CFLAGS): Likewise.
30626 (gfxmenu_mod_LDFLAGS): Likewise.
30627 * include/grub/term.h (grub_term_set_current_output): Declare
30629 * docs/gfxmenu-theme-example.txt: New file.
30630 * gfxmenu/gfxmenu.c: Likewise.
30631 * gfxmenu/gui_box.c: Likewise.
30632 * gfxmenu/gui_canvas.c: Likewise.
30633 * gfxmenu/gui_circular_progress.c: Likewise.
30634 * gfxmenu/gui_image.c: Likewise.
30635 * gfxmenu/gui_label.c: Likewise.
30636 * gfxmenu/gui_list.c: Likewise.
30637 * gfxmenu/gui_progress_bar.c: Likewise.
30638 * gfxmenu/gui_string_util.c: Likewise.
30639 * gfxmenu/gui_util.c: Likewise.
30640 * gfxmenu/icon_manager.c: Likewise.
30641 * gfxmenu/model.c: Likewise.
30642 * gfxmenu/named_colors.c: Likewise.
30643 * gfxmenu/theme_loader.c: Likewise.
30644 * gfxmenu/view.c: Likewise.
30645 * gfxmenu/widget-box.c: Likewise.
30646 * include/grub/gfxmenu_model.h: Likewise.
30647 * include/grub/gfxmenu_view.h: Likewise.
30648 * include/grub/gfxwidgets.h: Likewise.
30649 * include/grub/gui.h: Likewise.
30650 * include/grub/gui_string_util.h: Likewise.
30651 * include/grub/icon_manager.h: Likewise.
30653 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30655 Agglomerate scrolling in gfxterm.
30657 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
30658 (grub_virtual_screen_setup): Initialise 'total_screen'.
30659 (write_char): Split to ...
30660 (paint_char): ... this ...
30661 (write_char): ... and this.
30662 (paint_char): Handle delayed scrolling.
30663 (draw_cursor): Likewise.
30664 (scroll_up): Split to ...
30665 (real_scroll): ... this ...
30666 (scroll_up): ... and this.
30667 (real_scroll): Handle multi-line scroll and draw below-the-bottom
30669 (grub_gfxterm_refresh): Call real_scroll.
30671 2010-02-06 Colin D Bennett <colin@gibibit.com>
30673 * include/grub/misc.h (grub_iscntrl): New inline function.
30674 (grub_isalnum): Likewise.
30675 (grub_strtol): Likewise.
30677 2010-02-06 Colin D Bennett <colin@gibibit.com>
30679 * normal/menu_text.c (get_entry_number): Move from here ...
30680 * normal/menu.c (get_entry_number): ... moved here.
30681 * include/grub/menu.h (grub_menu_get_default_entry_index):
30683 * normal/menu.c (grub_menu_get_default_entry_index): New function.
30684 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
30685 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
30686 (grub_menu_viewer_should_return): Likewise.
30687 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
30688 * normal/menu_text.c (run_menu): Enable menu switching.
30689 * normal/menu_viewer.c (should_return): New variable.
30690 (menu_viewer_changed): Likewise.
30691 (grub_menu_viewer_show_menu): Handle menu viewer changes.
30692 (grub_menu_viewer_should_return): New function.
30693 (menuviewer_write_hook): Likewise.
30694 (grub_menu_viewer_init): Likewise.
30696 2010-02-06 Colin D Bennet <colin@gibibit.com>
30697 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30699 Support for gfxterm in a window.
30701 * include/grub/gfxterm.h: New file.
30702 * include/grub/video.h (struct grub_video_rect): New declaration.
30703 (grub_video_rect_t): Likewise.
30704 * term/gfxterm.c (struct grub_gfxterm_window): New type.
30705 (refcount): New variable.
30706 (render_target): Likewise.
30707 (window): Likewise.
30708 (repaint_callback): Likewise.
30709 (grub_virtual_screen_setup): Use 'render_target'.
30710 (init_window): New function.
30711 (grub_gfxterm_init_window): Likewise.
30712 (grub_gfxterm_init): Check reference counter.
30714 (destroy_window): New function.
30715 (grub_gfxterm_destroy_window): Likewise.
30716 (grub_gfxterm_fini): Check reference counter.
30717 Use destroy_window.
30718 (redraw_screen_rect): Restore viewport.
30719 Use 'render_target' and 'window'.
30720 Call 'repaint_callback'.
30721 (write_char): Use 'render_target'.
30722 (draw_cursor): Likewise.
30723 (scroll_up): Restore viewport.
30724 Use 'render_target' and 'window'.
30725 Call 'repaint_callback'.
30726 (grub_gfxterm_cls): Likewise.
30727 (grub_gfxterm_refresh): Use 'window'.
30728 (grub_gfxterm_set_repaint_callback): New function.
30729 (grub_gfxterm_background_image_cmd): Use 'window'.
30730 (grub_gfxterm_get_term): New function.
30731 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
30733 2010-02-06 Colin D Bennett <colin@gibibit.com>
30735 Bitmap scaling support.
30737 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
30738 (bitmap_scale_mod_SOURCES): New variable.
30739 (bitmap_scale_mod_CFLAGS): Likewise.
30740 (bitmap_scale_mod_LDFLAGS): Likewise.
30741 * include/grub/bitmap_scale.h: New file.
30742 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
30743 (background_image_cmd_options): New variable.
30744 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
30745 (cmd): Rename and change type to ...
30746 (background_image_cmd_handle): ... this. All users updated.
30747 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
30748 * video/bitmap_scale.c: New file.
30750 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30754 * Makefile.in (LIBSDL): New variable.
30755 (enable_grub_emu_sdl): Likewise.
30756 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
30757 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
30758 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
30759 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
30760 * util/sdl.c: New file.
30762 2010-02-06 Colin D Bennett <colin@gibibit.com>
30763 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30765 Double buffering support.
30767 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
30768 * include/grub/video.h: Update comment.
30769 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
30771 (grub_video_fb_doublebuf_blit_init): New prototype.
30772 * term/gfxterm.c (scroll_up): Support double buffering.
30773 (grub_gfxterm_refresh): Likewise.
30774 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30775 (grub_video_fb_doublebuf_blit_init): Likewise.
30776 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30777 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30778 'displayed_page', 'render_page' and 'update_screen'.
30779 (grub_video_vbe_fini): Free offscreen buffer.
30780 (doublebuf_pageflipping_commit): New function.
30781 (doublebuf_pageflipping_update_screen): Likewise.
30782 (doublebuf_pageflipping_init): Likewise.
30783 (double_buffering_init): Likewise.
30784 (grub_video_vbe_setup): Enable doublebuffering.
30785 (grub_video_vbe_swap_buffers): Implement.
30786 (grub_video_vbe_set_active_render_target): Handle double buffering.
30787 (grub_video_vbe_get_active_render_target): Likewise.
30788 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30789 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30790 (grub_video_vbe_enable_double_buffering): Likewise.
30791 (grub_video_vbe_swap_buffers): Use update_screen.
30792 (grub_video_set_mode): Use double buffering.
30794 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30796 * maintainance/gentrigtables.py: Remove.
30797 * lib/trig.c: Likewise.
30799 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30801 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30803 (trigtables.c): New rule.
30804 (gentrigtables): Likewise.
30805 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30807 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30809 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30812 2010-02-06 Colin D Bennet <colin@gibibit.com>
30814 Trigonometry support.
30816 * include/grub/trig.h: New file.
30817 * lib/trig.c: Likewise.
30818 * maintainance/gentrigtables.py: Likewise.
30819 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30820 (trig_mod_SOURCES): New variable.
30821 (trig_mod_CFLAGS): Likewise.
30822 (trig_mod_LDFLAGS): Likewise.
30824 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30826 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30829 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30831 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30834 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30836 * util/hostdisk.c (open_device): Don't use partition device when reading
30837 before the partition.
30838 (grub_util_biosdisk_read): Don't read from partition and before the
30839 partition in single operation.
30840 (grub_util_biosdisk_write): Don't write to partition and before the
30841 partition in single operation.
30843 2010-02-03 Torsten Landschoff <torsten@debian.org>
30845 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30848 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30850 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
30852 (grub_biosdisk_write): Refuse to write to CDROM.
30854 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30856 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
30858 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30860 * font/font.c (find_glyph): Check that bmp_idx is available before
30862 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
30863 with (font == NULL).
30865 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
30867 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
30869 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
30871 * include/grub/script_sh.h (sourcecode): Add const qualifier.
30872 * util/grub-script-check.c (getline): Fix empty lines case.
30874 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
30876 * Makefile.in (check): Exit with fail status when one of the tests
30878 * tests/example_functional_test.c (example_test): Fix reversed assert.
30879 * tests/example_unit_test.c (example_test): Likewise.
30881 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
30883 * util/grub.d/10_linux.in: This script does not use any of the
30884 contents of gettext.sh, only the external command `gettext', so stop
30885 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
30886 the same prefix as GRUB.)
30887 * util/grub.d/10_kfreebsd.in: Likewise.
30889 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30891 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
30894 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30896 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30899 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30901 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
30902 having a 4KiB and not 32KiB buffer size.
30904 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30906 * util/hostfs.c: Include `<errno.h>'.
30907 (grub_hostfs_read): Handle errors from fseeko() and fread().
30909 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30911 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
30912 loop when using read hooks on files whose size isn't sector-aligned.
30914 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30916 Remove unused parameter.
30918 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
30919 (grub_iso9660_open): Remove initialization of `data->length'.
30921 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30923 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
30924 memleak conditions.
30926 2010-01-27 Carles Pina i Estany <carles@pina.cat>
30928 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
30929 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
30931 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30933 * util/bin2h.c (usage): Fix warning (space after backslash).
30935 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30937 * font/font.c: Include `grub/fontformat.h.
30938 Remove font file format constants.
30939 (grub_font_load): Use the new macros.
30940 * include/grub/fontformat.h: New file.
30941 * util/grub-mkfont.c: Include `grub/fontformat.c'.
30942 (write_font_pf2): Use the new macros.
30944 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30946 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
30949 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30951 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
30953 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
30954 (_start): Macroify `0x7F'.
30956 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
30957 (make_install_device): Use "(pxe)" as fallback prefix when booting
30960 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
30962 * configure.ac: Reset LIBS after check for libgcc symbols.
30964 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
30966 * util/hostdisk.c (open_device): Add trailing newline to debug
30969 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
30971 * configure.ac: Check for `limits.h'.
30972 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
30974 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
30976 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
30977 capitalize error strings.
30979 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
30981 * util/grub.d/10_hurd.in: Add a recovery mode.
30983 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
30985 * configure.ac: Check for libgcc symbols with -nostdlib.
30987 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
30989 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
30991 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30993 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
30994 stack since heap may be unavailable at that point.
30995 (grub_ofconsole_gotoxy): Likewise.
30997 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30999 * configure.ac: Check for _restgpr_14_x.
31000 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
31001 and _savegpr_* prototypes.
31003 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
31005 Use generic grub_reboot() for i386-efi.
31007 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
31008 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
31009 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
31011 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31013 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
31014 presence of "prefix" variable as it breaks when normal.mod is
31017 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31019 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
31020 stack since heap is unavailable at that point.
31022 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31024 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
31025 (grub_freebsd_bootinfo): Rewritten.
31026 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
31028 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31030 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
31032 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
31034 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
31037 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
31039 * util/misc.c (make_system_path_relative_to_its_root): Change the work
31040 around for handling "/" to the correct fix. Fix a memory leak. Use
31041 xstrdup instead of strdup.
31043 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31045 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
31047 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31049 Optimise glyph lookup by Basic Multilingual Plane lookup array.
31051 * font/font.c (struct grub_font): New member 'bmp_idx'.
31052 (font_init): Initialise 'bmp_idx'.
31053 (load_font_index): Fill 'bmp_idx'.
31054 (find_glyph): Make inline. Use bmp_idx for BMP characters.
31056 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31058 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
31061 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31063 Move context handling out of the kernel.
31065 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
31066 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
31067 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
31068 * conf/i386-efi.rmk: Likewise.
31069 * conf/i386-ieee1275.rmk: Likewise.
31070 * conf/i386-pc.rmk: Likewise.
31071 * conf/powerpc-ieee1275.rmk: Likewise.
31072 * conf/sparc64-ieee1275.rmk: Likewise.
31073 * conf/x86_64-efi.rmk: Likewise.
31074 * include/grub/env.h: Include grub/menu.h.
31075 (grub_env_var_type): Removed.
31076 (grub_env_var): Replaced field 'type' with 'global'.
31077 (grub_env_find): New prototype.
31078 (grub_env_context_open): Remove EXPORT_FUNC.
31079 (grub_env_context_close): Likewise.
31080 (grub_env_export): Likewise.
31081 (grub_env_set_data_slot): Removed.
31082 (grub_env_get_data_slot): Likewise.
31083 (grub_env_unset_data_slot): Likewise.
31084 (grub_env_unset_menu): New prototype.
31085 (grub_env_set_menu): Likewise.
31086 (grub_env_get_menu): Likewise.
31087 * include/grub/env_private.h: New file.
31088 * include/grub/normal.h (grub_context_init): New prototype.
31089 (grub_context_fini): Likewise.
31090 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
31091 * normal/context.c (grub_cmd_export): ... to here.
31092 * kern/env.c: Include env_private.h.
31093 (HASHSZ): Moved to include/grub/env_private.h.
31094 (grub_env_context): Likewise.
31095 (grub_env_sorted_var): Likewise.
31096 (current_context): Renamed from this ...
31097 (grub_current_context): ...to this. 'static' removed. All users updated.
31098 (grub_env_find): Removed 'static'.
31099 (grub_env_context_open): Moved to normal/context.c.
31100 (grub_env_context_close): Likewise.
31101 (grub_env_export): Likewise.
31102 (mangle_data_slot_name): Removed.
31103 (grub_env_set_data_slot): Likewise.
31104 (grub_env_get_data_slot): Likewise.
31105 (grub_env_unset_data_slot): Likewise.
31106 * kern/main.c (grub_set_root_dev): Don't export root.
31107 It will be done later.
31108 (grub_main): Don't export prefix.
31109 It will be done later.
31110 * normal/context.c: New file.
31111 * normal/main.c (free_menu): Use grub_env_unset_menu.
31112 (grub_normal_add_menu_entry): Use grub_env_get_menu.
31113 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
31114 (GRUB_MOD_INIT(normal)): Call grub_context_init.
31115 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
31117 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31121 * commands/setpci.c: New file.
31122 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
31123 (setpci_mod_SOURCES): New variable.
31124 (setpci_mod_CFLAGS): Likewise.
31125 (setpci_mod_LDFLAGS): Likewise.
31127 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31129 Byte-addressable PCI configuration space.
31131 * bus/pci.c (grub_pci_make_address): Use byte address instead of
31133 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
31134 GRUB_PCI_REG_CACHELINE.
31135 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
31136 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
31137 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
31138 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
31139 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
31140 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
31141 grub_pci_make_address.
31142 (lock_rom_area): Likewise.
31143 * commands/lspci.c (grub_lspci_iter): Use macroses
31144 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
31145 of grub_pci_make_address.
31146 * disk/ata.c (grub_ata_pciinit): Likewise.
31147 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
31148 (GRUB_PCI_REG_VENDOR): Likewise.
31149 (GRUB_PCI_REG_DEVICE): Likewise.
31150 (GRUB_PCI_REG_COMMAND): Likewise.
31151 (GRUB_PCI_REG_STATUS): Likewise.
31152 (GRUB_PCI_REG_REVISION): Likewise.
31153 (GRUB_PCI_REG_CLASS): Likewise.
31154 (GRUB_PCI_REG_CACHELINE): Likewise.
31155 (GRUB_PCI_REG_LAT_TIMER): Likewise.
31156 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
31157 (GRUB_PCI_REG_BIST): Likewise.
31158 (GRUB_PCI_REG_ADDRESSES): Likewise.
31159 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31160 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31161 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31162 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31163 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31164 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31165 (GRUB_PCI_REG_CIS_POINTER): Likewise.
31166 (GRUB_PCI_REG_SUBVENDOR): Likewise.
31167 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
31168 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
31169 (GRUB_PCI_REG_CAP_POINTER): Likewise.
31170 (GRUB_PCI_REG_IRQ_LINE): Likewise.
31171 (GRUB_PCI_REG_IRQ_PIN): Likewise.
31172 (GRUB_PCI_REG_MIN_GNT): Likewise.
31173 (GRUB_PCI_REG_MAX_LAT): Likewise.
31174 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
31175 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
31176 * video/efi_uga.c (find_framebuf): Likewise.
31177 * video/sm712.c (grub_video_sm712_setup): Likewise.
31178 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
31181 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31183 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
31184 can be reliably determined to be supported.
31186 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31188 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
31189 that VESA is supported.
31190 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
31193 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31195 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
31197 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31199 * util/misc.c (make_system_path_relative_to_its_root): Work around
31200 special-casing of "/", as previous incarnation of this routine did.
31202 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31204 Fix any-emu compilation.
31206 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
31207 * grub_bin2h_SOURCES: New variable.
31209 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31211 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
31213 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31215 * util/grub.d/00_header.in: Fix handling of locale_dir.
31217 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31219 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
31220 as possible unifont location (Gentoo).
31221 Reported by: Alexander Brüning
31223 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31225 Don't try to generate lists for kernel.img.
31227 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
31228 (pkglib_MODULES): Remove kernel.img.
31229 (kernel_img_EXPORTS): Removed.
31230 (kernel_img_RELOCATABLE): New variable.
31231 * conf/x86_64-efi.rmk: Likewise.
31232 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
31234 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31236 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
31237 grub_xasprintf or grub_snprintf.
31238 (grub_vsprintf): Likewise.
31239 (grub_snprintf): New proto.
31240 (grub_vsnprintf): Likewise.
31241 (grub_xasprintf): Likewise.
31242 (grub_xvasprintf): Likewise.
31243 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
31244 (grub_sprintf): Removed.
31245 (grub_vsnprintf): New function.
31246 (grub_snprintf): Likewise.
31247 (grub_xvasprintf): Likewise.
31248 (grub_xasprintf): Likewise.
31249 (grub_vsprintf): Renamed to ...
31250 (grub_vsnprintf_real): ...this. New argument max_len.
31252 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
31254 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
31255 fix grub-script-check warning.
31257 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31259 * include/grub/font.h (grub_font_load): Fix prototype.
31261 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31263 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
31265 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31267 * include/grub/x86_64/at_keyboard.h: New file.
31269 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31271 * loader/mips/linux.c: Include missing grub/i18n.h.
31273 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31275 * normal/menu.c (notify_execution_failure): Clarify error message.
31277 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31279 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
31280 return value (and revert all return statements). Update users.
31282 2010-01-20 Dan Merillat <debian@dan.merillat.org>
31284 * kern/device.c (grub_device_iterate): Allocate new part_ent
31285 structure based on sizeof (*p) rather than sizeof (p->next), to
31286 account for structure padding.
31288 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
31289 disk is NULL, which might happen for LVM physical volumes with no
31292 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31294 * loader/mips/linux.c (grub_cmd_initrd)
31295 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
31297 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31299 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
31300 (grub_video_video_init, grub_video_bitmap_init)
31301 (grub_font_manager_init, grub_term_gfxterm_init)
31302 (grub_at_keyboard_init): New extern declarations.
31303 (grub_machine_init): Initialize gfxterm and at_keyboard.
31305 * kern/main.c (grub_main): Revert grub_printf delay kludge.
31307 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
31308 `gfxterm.mod' into core image.
31310 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31311 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31312 (kernel_img_FORMAT): Copy to ...
31314 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31315 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31316 (kernel_img_FORMAT): ... here, and ...
31318 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31319 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31320 (kernel_img_FORMAT): ... here.
31322 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
31323 and input (at_keyboard) terminals in kernel.
31324 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
31326 (pkglib_MODULES): Remove `pci.mod'.
31327 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
31328 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
31329 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
31330 (at_keyboard_mod_LDFLAGS): Remove variables.
31332 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
31334 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
31336 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
31338 * include/grub/mips/libgcc.h: Only export symbols for functions
31339 that libgcc provides.
31341 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
31345 * bus/bonito.c: New file.
31346 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
31347 GRUB_PCI_NUM_DEVICES.
31348 * term/i386/pc/serial.c: Move to ...
31349 * term/serial.c: ... here. All users updated.
31350 * util/i386/pc/grub-mkimage.c: Move to ...
31351 * util/grub-mkrawimage.c: ... here. All users updated.
31352 * term/i386/pc/at_keyboard.c: Move to ...
31353 * term/at_keyboard.c: ... here. All users updated.
31354 * conf/mips-qemu-mips.rmk: New file.
31355 * conf/mips-yeeloong.rmk: Likewise.
31356 * conf/mips.rmk: Likewise.
31357 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
31359 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
31361 (grub_ata_pciinit): Support CS5536.
31362 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
31363 * font/font_cmd.c (loadfont_command): Open file before passing it to
31365 (pseudo_file_read): New function.
31366 (pseudo_file_close): Likewise.
31367 (pseudo_fs): New structure.
31368 (load_font_module): New function.
31369 (GRUB_MOD_INIT(font_manager)): Load embedded font.
31370 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
31371 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
31372 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
31373 * include/grub/i386/at_keyboard.h: Split into ...
31374 * include/grub/at_keyboard.h: ... this ...
31375 * include/grub/i386/at_keyboard.h: ... and this.
31376 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
31378 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
31380 (grub_elf64_size): Likewise.
31381 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
31383 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
31384 * include/grub/i386/coreboot/serial.h: Rewritten.
31385 * include/grub/i386/ieee1275/serial.h: Include
31386 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
31387 * include/grub/i386/pc/serial.h: Moved from here ...
31388 * include/grub/serial.h: ... to here. All users updated.
31389 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
31390 (GRUB_PCI_NUM_BUS): Likewise.
31391 (GRUB_PCI_NUM_DEVICES): Likewise.
31392 (grub_pci_device_map_range): Add missing volatile keyword.
31393 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
31394 * include/grub/mips/at_keyboard.h: New file.
31395 * include/grub/mips/cache.h: Likewise.
31396 * include/grub/mips/io.h: Likewise.
31397 * include/grub/mips/kernel.h: Likewise.
31398 * include/grub/mips/libgcc.h: Likewise.
31399 * include/grub/mips/pci.h: Likewise.
31400 * include/grub/mips/qemu-mips/boot.h: Likewise.
31401 * include/grub/mips/qemu-mips/kernel.h: Likewise.
31402 * include/grub/mips/qemu-mips/loader.h: Likewise.
31403 * include/grub/mips/qemu-mips/memory.h: Likewise.
31404 * include/grub/mips/qemu-mips/serial.h: Likewise.
31405 * include/grub/mips/qemu-mips/time.h: Likewise.
31406 * include/grub/mips/relocator.h: Likewise.
31407 * include/grub/mips/time.h: Likewise.
31408 * include/grub/mips/types.h: Likewise.
31409 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
31410 * include/grub/mips/yeeloong/boot.h: Likewise.
31411 * include/grub/mips/yeeloong/kernel.h: Likewise.
31412 * include/grub/mips/yeeloong/loader.h: Likewise.
31413 * include/grub/mips/yeeloong/memory.h: Likewise.
31414 * include/grub/mips/yeeloong/pci.h: Likewise.
31415 * include/grub/mips/yeeloong/serial.h: Likewise.
31416 * include/grub/mips/yeeloong/time.h: Likewise.
31417 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
31418 * kern/elf.c (grub_elf32_size): New parameter. All users
31420 (grub_elf64_size): Likewise.
31421 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
31422 Load modules before saying "Welcome to GRUB!".
31423 Call grub_refresh after saying "Welcome to GRUB!".
31424 * kern/mips/cache.S: New file.
31425 * kern/mips/cache_flush.S: Likewise.
31426 * kern/mips/dl.c: Likewise.
31427 * kern/mips/init.c: Likewise.
31428 * kern/mips/qemu-mips/init.c: Likewise.
31429 * kern/mips/startup.S: Likewise.
31430 * kern/mips/yeeloong/init.c: Likewise.
31431 * kern/term.c (grub_putcode): Handle NULL terminal.
31432 (grub_getcharwidth): Likewise.
31433 (grub_getkey): Likewise.
31434 (grub_checkkey): Likewise.
31435 (grub_getkeystatus): Likewise.
31436 (grub_getxy): Likewise.
31437 (grub_getwh): Likewise.
31438 (grub_gotoxy): Likewise.
31439 (grub_cls): Likewise.
31440 (grub_setcolorstate): Likewise.
31441 (grub_setcolor): Likewise.
31442 (grub_getcolor): Likewise.
31443 (grub_refresh): Likewise.
31444 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
31445 (write_jump): Add hatch nop.
31446 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
31447 * lib/mips/setjmp.S: New file.
31448 * loader/mips/linux.c: Likewise.
31449 * term/i386/pc/at_keyboard.c: Move from here ...
31450 * term/at_keyboard.c: ... to here.
31451 * term/i386/pc/serial.c: Moved from here ...
31452 * term/serial.c: ... to here. All users updated.
31453 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
31454 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
31455 (serial_translate_key_sequence): Avoid deadlock.
31456 (grub_serial_getkey): Handle backspace.
31457 (grub_serial_putchar): Fix newline handling.
31458 * util/i386/pc/grub-mkimage.c: Move from here ...
31459 * util/grub-mkrawimage.c: ... to here. All users updated.
31460 (generate_image): New parameters 'font_path' and 'format'.
31461 Support embedding font.
31462 Use grub_host_to_target* instead of grub_cpu_to_le*.
31463 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
31464 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
31465 (options): New option "--font".
31467 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
31468 (main): Handle "--font".
31469 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
31470 (grub_virtual_screen_setup): Set bg_color_display.
31471 (redraw_screen_rect): Use bg_color_display instead of incorrect
31473 (grub_gfxterm_cls): Likewise.
31474 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
31475 Support embedding config file.
31476 (add_segments): Likewise.
31477 (options): New option "--config".
31478 (main): Handle "--config".
31479 * video/sm712.c: New file.
31481 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31483 Fix parallel builds.
31485 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
31486 font.c depend on ascii.h).
31488 2010-01-12 Carles Pina i Estany <carles@pina.cat>
31490 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
31492 2010-01-11 Carles Pina i Estany <carles@pina.cat>
31494 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
31495 By default: disabled.
31496 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
31499 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31501 * font/font.c: Update copyright years.
31502 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
31504 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31506 * font/font.c: Include `ascii.h'.
31507 (ASCII_BITMAP_SIZE): New macro.
31508 (ascii_font_glyph): Define.
31509 (ascii_glyph_lookup): New function.
31510 (grub_font_get_string_width): Change comment. If glyph not found, use
31511 ascii_glyph_lookup.
31512 (grub_font_get_glyph_with_fallback): If glyph not available returns
31513 ascii_glyph_lookup.
31514 * util/grub-mkfont.c (file_formats): New enum.
31515 (options): Add `ascii-bitmaps' new option.
31516 (usage): Add `asii-bitmaps' new option.
31517 (write_font_ascii_bitmap): New function.
31518 (write_font): Rename to ...
31519 (write_font_p2): ... this. Remove print_glyphs call.
31520 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
31521 used. Call print_glyphs.
31522 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
31524 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31526 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
31527 (grub_bin2h_SOURCES): New variable.
31528 * util/bin2h.c: New file.
31530 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31532 * include/multiboot.h: Resynced with spec.
31533 * include/multiboot2.h: Likewise.
31534 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
31535 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
31537 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31539 * include/grub/term.h (grub_term_register_input,
31540 grub_term_register_output): Check return of terminal init()
31541 routines, and abort if errors are raised.
31543 * commands/terminal.c: Update copyright year.
31545 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31547 * commands/terminal.c (grub_cmd_terminal_input)
31548 (grub_cmd_terminal_output): Check return of terminal init()
31549 routines, and abort if errors are raised.
31551 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31553 * include/grub/i386/bsd.h: Fix include pathes.
31555 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31557 Add missing *BSD copyright headers.
31559 * include/grub/aout.h: Add BSD licence.
31560 * include/grub/i386/bsd.h: Parts under different licences moved to ...
31561 * include/grub/i386/freebsd_linker.h: ... here,
31562 * include/grub/i386/freebsd_reboot.h: ... here,
31563 * include/grub/i386/netbsd_bootinfo.h: ... here,
31564 * include/grub/i386/netbsd_reboot.h: ... here,
31565 * include/grub/i386/openbsd_bootarg.h: ... here,
31566 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
31567 licence to each file.
31569 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31571 * acinclude.m4: Remove `nop' assembly instruction; it's not
31572 implemented by all architectures.
31574 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31576 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
31577 ELILO. This is no longer necessary.
31579 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
31581 Added new tool, grub-scrit-check to verify grub.cfg syntax.
31583 * util/grub-script-check.c: grub-script-check tool.
31584 * conf/common.rmk: Make rules for grub-script-check.
31586 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31588 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
31589 spotting it back in 2008. Shame on me for forgetting he did.
31591 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
31593 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31595 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
31596 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
31597 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
31598 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
31599 (GRUB_VIDEO_TYPE_EFI): Rename to ...
31600 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
31602 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
31604 * include/grub/test.h: Add license header.
31605 * tests/example_functional_test.c: Likewise.
31606 * tests/example_unit_test.c: Likewise.
31607 * tests/lib/functional_test.c: Likewise.
31608 * tests/lib/test.c: Likewise.
31609 * tests/lib/unit_test.c: Likewise.
31611 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
31613 Use flag-based instead of hook-based video mode selection and "auto"
31616 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
31617 (grub_video_set_mode): Changed prototype. All users updated.
31618 (grub_video_check_mode_flag): New inline function.
31619 * video/video.c (parse_modespec): New function.
31620 (grub_video_set_mode): Parse flags and keywords.
31622 2010-01-17 Carles Pina i Estany <carles@pina.cat>
31624 * util/misc.c (grub_util_info): Fix the order of the parameters in a
31627 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
31629 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
31631 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31633 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
31635 * util/grub-emu.c (usage): Likewise.
31636 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
31637 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31638 * util/i386/pc/grub-mkimage.c (usage): Likewise.
31639 * util/i386/pc/grub-setup.c (usage): Likewise.
31641 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31643 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
31645 (grub_util_info): Likewise.
31646 (grub_util_error): Likewise.
31647 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
31648 and/or new lines in `grub_util_warna', `grub_util_info',
31649 `grub_util_error' calls.
31650 * util/getroot.c: Likewise.
31651 * util/grub-editenv.c: Likewise.
31652 * util/grub-emu.c: Likewise.
31653 * util/grub-fstest.c: Likewise.
31654 * util/grub-mkdevicemap.c: Likewise.
31655 * util/grub-mkfont.c: Likewise.
31656 * util/grub-mkpasswd-pbkdf2.c: Likewise.
31657 * util/grub-mkrelpath.c: Likewise.
31658 * util/grub-pe2elf.c: Likewise.
31659 * util/grub-probe.c: Likewise.
31660 * util/hostdisk.c: Likewise.
31661 * util/i386/efi/grub-mkimage.c: Likewise.
31662 * util/i386/pc/grub-mkimage.c: Likewise.
31663 * util/i386/pc/grub-setup.c: Likewise.
31664 * util/ieee1275/ofpath.c: Likewise.
31665 * util/mkisofs/eltorito.c: Likewise.
31666 * util/mkisofs/rock.c: Likewise.
31667 * util/mkisofs/write.c: Likewise.
31668 * util/raid.c: Likewise.
31669 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31670 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31672 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31674 Enable multiboot on non-pc.
31676 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
31677 multiboot.mod and multiboot2.mod to ...
31678 * conf/i386.rmk (pkglib_MODULES): ... here.
31679 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
31681 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
31682 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
31684 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
31685 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
31687 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
31688 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
31690 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
31691 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
31693 (ata_mod_SOURCES): Removed.
31694 (ata_mod_CFLAGS): Likewise.
31695 (ata_mod_LDFLAGS): Likewise.
31696 (relocator_mod_SOURCES): Removed.
31697 (relocator_mod_CFLAGS): Likewise.
31698 (relocator_mod_ASFLAGS): Likewise.
31699 (relocator_mod_LDFLAGS): Likewise.
31701 * include/grub/x86_64/multiboot.h: New file.
31702 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
31705 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31707 Video multiboot support.
31709 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
31711 * include/multiboot.h: Resynced with multiboot specification.
31712 * include/multiboot2.h: Likewise.
31713 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
31714 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
31715 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
31716 (HAS_VGA_TEXT): Likewise.
31717 (accepts_video): New variable.
31718 (grub_multiboot_set_accepts_video): New function.
31719 (grub_multiboot_get_mbi_size): Account for video structures.
31720 (set_video_mode): New function.
31721 (retrieve_video_parameters): Likewise.
31722 (grub_multiboot_make_mbi): Fill video fields.
31724 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31728 * include/grub/video.h (grub_video_driver_id): New type.
31729 (grub_video_adapter): New member 'id'. All users updated.
31730 (grub_video_get_driver_id): New proto.
31731 * video/video.c (grub_video_get_driver_id): New function.
31733 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31735 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
31738 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31740 * normal/cmdline.c (print_completion): Gettextizze.
31742 2001-01-14 Carles Pina i Estany <carles@pina.cat>
31744 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
31746 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31748 * gettext/gettext.c (grub_gettext_translate): Push and pop
31750 (grub_gettext_delete_list): Change comment style.
31751 * kern/err.c (grub_error): Gettextizze.
31752 (grub_fatal): Gettextizze.
31754 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31756 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
31757 (grub_linux16_real_boot): ... this.
31758 * kern/i386/loader.S: Likewise.
31759 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
31760 (grub_linux16_boot): New function. Switches to text mode and calls
31761 grub_linux16_real_boot().
31763 * loader/i386/bsd.c: Include `<grub/video.h>'.
31764 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
31765 text mode before calling grub_unix_real_boot().
31767 * loader/i386/multiboot.c: Include `<grub/video.h>'.
31768 (grub_multiboot_boot): Switch to text mode before calling
31769 grub_relocator32_boot().
31771 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31772 (grub_chainloader_boot): Switch to text mode before calling
31773 grub_chainloader_real_boot().
31775 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31776 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31778 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31781 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31782 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31784 * util/grub.d/00_header.in: Define a "savedefault" function for use
31786 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31788 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31789 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31791 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31792 saved_entry if boot_once is unset.
31793 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31794 previous saved entry (i.e. grub-reboot).
31796 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31798 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31800 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31802 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31804 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31806 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31808 * util/grub-reboot.in: Fix --version output.
31809 * util/grub-set-default.in: Likewise.
31811 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31813 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31816 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31818 * util/grub.d/00_header.in: Quote the value assigned to `default',
31819 in case it contains spaces.
31821 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31823 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31824 `save_default_entry' call from the macosx case to the linux case.
31826 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
31827 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
31829 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31830 in `chosen' environment variable.
31831 * normal/menu_text.c (get_entry_number): Check if the variable
31832 matches the title of a menu entry.
31833 (run_menu): Pass menu to get_entry_number.
31835 * util/grub-reboot.in: New file.
31836 * util/grub-set-default.in: New file.
31837 * conf/common.rmk (grub-reboot): New utility.
31838 (grub-set-default): New utility.
31840 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31841 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31842 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31843 move it to `saved_entry' for the next boot. Load environment on
31845 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
31846 * util/grub.d/10_hurd.in: Likewise.
31847 * util/grub.d/10_linux.in (linux_entry): Likewise.
31848 * util/grub.d/10_windows.in: Likewise.
31849 * util/grub.d/30_os-prober.in: Likewise.
31851 * util/grub-install.in: Create environment block.
31852 * util/i386/efi/grub-install.in: Likewise.
31853 * util/ieee1275/grub-install.in: Likewise.
31854 * util/sparc64/ieee1275/grub-install.in: Likewise.
31856 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
31858 Unit testing framework for GRUB.
31860 * Makefile.in: Test framework build rules for 'make check'.
31861 * conf/tests.rmk: Build rules for individual tests and framework.
31863 * include/grub/test.h: Header file for whitebox tests.
31864 * tests/lib/functional_test.c: Framework support for whitebox
31866 * tests/lib/test.c: Common whitebox testing code for unit and
31868 * tests/lib/unit_test.c: Framework support for whitebox unit
31871 * tests/util/grub-shell-tester.in: Support utility for grub-script
31873 * tests/util/grub-shell.in: Utility to execute grub-script
31874 commands in a Qemu instance.
31876 * tests/example_functional_test.c: Example whitebox functional
31878 * tests/example_grub_script_test.in: Example grub-script test.
31879 * tests/example_scripted_test.in: Example scripted test.
31880 * tests/example_unit_test.c: Example whitebox unit test.
31882 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
31884 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
31885 Add loader/i386/multiboot_mbi.c.
31886 (multiboot2_mod_SOURCES): Likewise.
31887 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
31888 (multiboot2_mod_SOURCES): Likewise.
31889 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
31890 (grub_multiboot_make_mbi): Likewise.
31891 (grub_multiboot_free_mbi): Likewise.
31892 (grub_multiboot_init_mbi): Likewise.
31893 (grub_multiboot_add_module): Likewise.
31894 (grub_multiboot_set_bootdev): Likewise.
31895 * loader/i386/multiboot.c (mbi): Removed.
31896 (mbi_dest): Likewise.
31897 (alloc_mbi): New variable.
31898 (grub_multiboot_payload_size): Removed. All users updated.
31899 (grub_multiboot_pure_size): New variable.
31900 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
31901 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
31902 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
31903 (grub_fill_multiboot_mmap): Likewise.
31904 (grub_multiboot_get_bootdev): Likewise.
31905 (grub_multiboot): Use multiboot_mbi functions.
31906 * loader/i386/multiboot_mbi.c: New file.
31908 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31910 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
31911 it would result in module crash.
31913 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31915 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
31916 (grub_ofconsole_getwh): Split to ...
31917 (grub_ofconsole_getwh): ... this.
31918 (grub_ofconsole_dimensions): ...and this.
31919 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
31921 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
31923 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
31925 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31927 * loader/i386/pc/multiboot2.c: Removed stalled file.
31929 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31931 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
31932 Reported by: Grégoire Sutre
31934 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
31936 * util/misc.c (canonicalize_file_name): New function.
31937 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
31938 instead of realpath().
31940 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
31942 * util/grub-install.in (usage): Clarify meaning of --root-directory,
31943 and make it clearer that it's optional. Based on confusion
31946 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31948 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
31949 in premature implicit newline.
31951 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31953 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
31954 which resulted in garbled command line at the end of screen.
31956 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31958 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
31959 initialization with similar approach as with other Linux loaders.
31961 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31963 Fix i386-ieee1275 build.
31965 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
31966 and grub_term_height() for video_{width,height} initialization.
31968 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31970 Fix grub-emu build.
31972 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
31974 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31975 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31977 Support for multiple terminals.
31979 * Makefile.in (pkglib_DATA): terminal.lst.
31980 (terminal.lst): New target.
31981 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
31982 (GRUB_MOD_INIT(handler)): Likewise.
31983 (GRUB_MOD_FINI(handler)): Likewise.
31984 * commands/help.c (grub_cmd_help): Handle multiple terminals.
31985 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
31986 * commands/sleep.c (do_print): Use grub_term_restore_pos.
31987 (grub_cmd_sleep): Use grub_term_save_pos.
31988 * commands/terminal.c: New file.
31989 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
31990 commands/terminal.c and lib/charset.c.
31991 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
31992 (pkglib_MODULES): Add terminal.mod.
31993 (terminal_mod_SOURCES): New variable.
31994 (terminal_mod_CFLAGS): Likewise.
31995 (terminal_mod_LDFLAGS): Likewise.
31996 * genhandlerlist.sh: Don't handle terminals.
31997 * genmk.rb: Generate terminal-*.lst.
31998 * genterminallist.sh: New file.
31999 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
32000 (grub_is_valid_utf8): Likewise.
32001 (grub_utf8_to_ucs4_alloc): Likewise.
32002 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
32003 (grub_menu_register_viewer): Changed argument.
32004 (grub_menu_try_text): New proto.
32005 (grub_gfxmenu_try_hook): New declaration.
32006 * include/grub/normal.h (grub_normal_exit_level): New declaration.
32007 (grub_menu_init_page): Additional argument term.
32008 (grub_normal_init_page): Likewise.
32009 (grub_cmdline_get): Arguments simplified.
32010 (grub_utf8_to_ucs4_alloc): Removed.
32011 (grub_print_ucs4): Additional argument term.
32012 (grub_getstringwidth): Likewise.
32013 (grub_print_message_indented): Likewise.
32014 (grub_menu_text_register_instances): New proto.
32015 (grub_show_menu): Likewise.
32016 (read_terminal_list): Likewise.
32017 (grub_set_more): Likewise.
32018 * include/grub/parser.h: Include handler.h.
32019 * include/grub/reader.h: Rewritten.
32020 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
32021 (GRUB_TERM_WIDTH): Changed to function.
32022 (GRUB_TERM_HEIGHT): Likewise.
32023 (GRUB_TERM_BORDER_WIDTH): Likewise.
32024 (GRUB_TERM_BORDER_HEIGHT): Likewise.
32025 (GRUB_TERM_NUM_ENTRIES): Likewise.
32026 (GRUB_TERM_ENTRY_WIDTH): Likewise.
32027 (GRUB_TERM_CURSOR_X): Likewise.
32028 (grub_term_input_class): Likewise.
32029 (grub_term_output_class): Likewise.
32030 (grub_term_outputs_disabled): New declaration.
32031 (grub_term_inputs_disabled): Likewise.
32032 (grub_term_outputs): Likewise.
32033 (grub_term_inputs): Likewise.
32034 (grub_term_register_input): Rewritten.
32035 (grub_term_register_output): Likewise.
32036 (grub_term_unregister_input): Likewise.
32037 (grub_term_unregister_output): Likewise.
32038 (FOR_ACTIVE_TERM_INPUTS): New macro.
32039 (FOR_DISABLED_TERM_INPUTS): Likewise.
32040 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
32041 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
32042 * include/grub/terminfo.h: Add oterm argument to all protypes.
32043 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
32044 Use grub_rescue_run.
32045 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
32047 * kern/reader.c: Removed. All users updated.
32048 * kern/rescue_reader.c (grub_rescue_init): Removed.
32049 (grub_rescue_reader): Likewise.
32050 (grub_register_rescue_reader): Likewise.
32051 (grub_rescue_run): New function based on kern/reader.c.
32052 * kern/term.c: Adapted for multiterm.
32053 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
32054 (grub_is_valid_utf8): Likewise.
32055 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
32056 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
32058 * loader/i386/linux.c (grub_linux_boot): Likewise.
32059 * normal/auth.c (grub_username_get): New function.
32060 (grub_auth_check_authentication): Use grub_username_get.
32061 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
32062 * normal/color.c: Adapt for multiterm.
32063 * normal/main.c (read_config_file): Don't use grub_reader_loop.
32064 (grub_normal_init_page): Additional argument term.
32065 (read_lists): Call read_terminal_lists.
32066 (grub_enter_normal_mode): Call grub_cmdline_run.
32067 Handle grub_normal_exit_level.
32068 (grub_cmd_normal): Make reentrant.
32069 (grub_cmd_normal_exit): New function.
32070 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
32071 * normal/menu.c: Adapt for multiterm.
32072 * normal/menu_entry.c: Likewise.
32073 * normal/menu_text.c: Likewise.
32074 * normal/menu_viewer.c: Removed. All users updated.
32075 * normal/term.c: New file.
32076 * util/console.c: Change order of includes to workaround a bug in
32078 * term/terminfo.c: New argument oterm on all exported functions.
32080 * util/grub-editenv.c (grub_term_input_class): Removed.
32081 (grub_term_output_class): Likewise.
32083 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
32085 Make loader output a bit more user-friendly.
32087 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
32088 is being loaded. Likewise for the Hurd.
32090 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
32091 that kernel of FreeBSD ${version} is being loaded.
32093 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
32095 (grub_cmd_initrd): Likewise.
32096 * util/grub.d/10_linux.in (linux_entry): Print message indicating
32097 that Linux ${version} is being loaded. Likewise for initrd.
32099 2010-01-09 Carles Pina i Estany <carles@pina.cat>
32101 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
32103 2010-01-08 Carles Pina i Estany <carles@pina.cat>
32105 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
32106 (GRUB_MOD_INIT): Gettextizze.
32107 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
32108 (GRUB_MOD_INIT): Gettextizze.
32109 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
32110 (grub_cmd_linux): Capitalise Linux.
32111 (GRUB_MOD_INIT): Gettextizze.
32112 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
32113 (grub_cmd_linux): Capitalise Linux.
32114 (GRUB_MOD_INIT): Gettextizze.
32115 * loader/i386/linux.c: Include `<grub/i18n.h>'.
32116 (grub_cmd_linux): Capitalise Linux.
32117 (GRUB_MOD_INIT): Gettextizze.
32118 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
32119 (GRUB_MOD_INIT): Gettextizze.
32120 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
32121 (grub_cmd_linux): Capitalise Linux.
32122 (GRUB_MOD_INIT): Gettextizze.
32123 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
32124 (grub_cpu_xnu_init): Gettextizze.
32125 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
32126 (GRUB_MOD_INIT): Gettextizze.
32127 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
32128 (GRUB_MOD_INIT): Gettextizze.
32129 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
32130 (grub_linux_load64): Capitalise Linux.
32131 (GRUB_MOD_INIT): Gettextizze.
32132 * loader/xnu.c: Include `<grub/i18n.h>'.
32133 (GRUB_MOD_INIT): Gettextizze.
32134 * po/POTFILES: Add `loader/efi/appleloader.c',
32135 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
32136 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
32137 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
32138 `loader/i386/xnu.c', `loader/multiboot_loader.c',
32139 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
32140 and `loader/xnu.c'.
32142 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32144 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
32146 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32148 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
32149 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
32150 * util/mkisofs/mkisofs.c (main): Readjust --version output.
32152 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32154 Reset Multiboot 2 support. New loader implements the draft in
32155 /branches/multiboot2 and shares as much code as possible with the
32156 production Multiboot 1 implementation.
32158 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
32159 * loader/multiboot2.c: Likewise.
32160 * loader/i386/multiboot_helper.S: Likewise.
32161 * include/multiboot2.h: Replace with latest version from the draft
32162 in /branches/multiboot2.
32164 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
32165 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
32166 and `loader/multiboot2.c'.
32167 (pkglib_MODULES): Add `multiboot2.mod'.
32168 (multiboot2_mod_SOURCES): New variable.
32169 (multiboot2_mod_LDFLAGS): Likewise.
32170 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
32172 * conf/i386-pc.rmk: Likewise.
32174 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
32175 (multiboot_mod_SOURCES): Remove variable.
32176 (multiboot_mod_LDFLAGS): Likewise.
32177 (multiboot_mod_CFLAGS): Likewise.
32179 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
32180 `<multiboot2.h>' instead of `<multiboot.h>'.
32181 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
32182 (MULTIBOOT_HEADER_MAGIC): New macros.
32184 * loader/multiboot_loader.c (module_version_status): Remove variable.
32185 (find_multi_boot2_header): Remove function.
32186 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
32187 logic. Always check for the Multiboot version we're compiling for.
32188 (grub_cmd_module_loader): Likewise.
32189 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
32190 command instead of `multiboot'.
32192 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32194 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
32195 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
32198 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32199 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32201 Fix breakage introduced with previous commit.
32203 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
32205 * normal/handler.c (read_handler_list): Revert part of previous commit
32206 affecting this file.
32207 * normal/main.c (read_lists): Move read_handler_list() call back to ...
32208 (grub_normal_execute): ... here.
32210 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32212 Merge prefix-redefinition-fix branch.
32214 * normal/autofs.c (read_fs_list): Make function capable of being
32215 run multiple times, gracefuly replacing the previous data
32217 * normal/dyncmd.c (read_command_list): Likewise.
32218 * normal/handler.c (read_handler_list): Likewise.
32219 * normal/main.c (read_lists): New function. Calls all the
32220 list reading functions.
32221 (grub_normal_execute): Use read_lists() instead of calling all
32222 list reading functions explicitly. Register read_lists() as a
32223 variable hook attached to ${prefix}.
32225 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32227 Merge crypto branch.
32229 * Makefile.in (pkglib_DATA): Add crypto.lst.
32230 (crypto.lst): New target.
32231 * commands/hashsum.c: New file.
32232 * commands/password.c (check_password): Use grub_crypto_memcmp.
32233 * commands/password_pbkdf2.c: New file.
32234 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
32235 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
32236 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
32237 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
32238 -I$(srcdir)/lib/libgcrypt_wrap.
32239 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
32240 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
32241 password_pbkdf2.mod.
32242 (crypto_mod_SOURCES): New variable.
32243 (crypto_mod_CFLAGS): Likewise.
32244 (crypto_mod_LDFLAGS): Likewise.
32245 (hashsum_mod_SOURCES): New variable.
32246 (hashsum_mod_CFLAGS): Likewise.
32247 (hashsum_mod_LDFLAGS): Likewise.
32248 (pbkdf2_mod_SOURCES): New variable.
32249 (pbkdf2_mod_CFLAGS): Likewise.
32250 (pbkdf2_mod_LDFLAGS): Likewise.
32251 (password_pbkdf2_mod_SOURCES): New variable.
32252 (password_pbkdf2_mod_CFLAGS): Likewise.
32253 (password_pbkdf2_mod_LDFLAGS): Likewise.
32254 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
32255 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
32256 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
32257 Include conf/gcry.rmk.
32258 * include/grub/auth.h: Rewritten.
32259 * include/grub/crypto.h: New file.
32260 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
32261 * include/grub/normal.h (read_crypto_list): New prototype.
32262 * lib/crypto.c: New file.
32263 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
32264 * lib/pbkdf2.c: Likewise.
32265 * normal/auth.c (grub_auth_strcmp): Removed.
32266 (grub_iswordseparator): Likewise.
32267 (grub_auth_strword): Likewise.
32268 (is_authenticated): Use grub_strword.
32269 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
32270 and grub_strword. Pass entered password to authentication callback.
32271 * normal/crypto.c: New file.
32272 * normal/main.c: Call read_crypto_list.
32273 * util/grub-mkpasswd-pbkdf2.c: New file.
32274 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
32276 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
32278 Fix descent and ascent calculation.
32280 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
32281 (options): New option "asce".
32283 (add_char): Ignore invalid glyphs for descent calculation.
32284 Calculate ascent from actual content.
32285 (print_glyphs): Use 'asce'.
32286 (write_font): Likewise. Allow ascent override.
32287 (main): Handle "asce" option.
32289 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32291 * kern/err.c: Include `<grub/i18n.h>'.
32292 (grub_print_error): Add full stop. Gettextizze.
32293 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
32294 (grub_bsd_load_elf): Capitalise ELF.
32295 (grub_cmd_freebsd_loadenv): Add `s' in error string.
32296 (grub_cmd_freebsd_module): Likewise.
32297 (grub_cmd_freebsd_module_elf): Likewise.
32298 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
32300 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32302 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
32303 * commands/search_file.c (HELP_MESSAGE): New macro.
32304 * commands/search_label.c (HELP_MESSAGE): Likewise.
32305 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
32306 * po/POTFILES: Add `commands/search_file.c',
32307 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
32308 `commands/search.c'.
32310 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32312 * config.rpath: Update from Gnulib.
32314 2010-01-05 Yves Blusseau <blusseau@zetam.org>
32316 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
32318 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
32320 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
32322 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32324 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
32325 arguments to fread so that we get a return value in bytes, rather
32326 than something that will normally be rounded down to 0.
32327 Adjust error handling to avoid producing garbage when size_t is not
32328 the same size as long long.
32330 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32332 * util/mkisofs/write.c (padblock_write): Check return value of
32335 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32337 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
32340 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
32342 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32344 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
32345 instead of manual alignment.
32346 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
32347 verbose). Avoid attempts to read past end of the device
32348 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
32349 but GRUB_DISK_CACHE_SIZE may exceed that).
32351 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32353 * commands/crc.c (grub_cmd_crc): Abort on read errors.
32354 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
32357 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32359 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
32361 (grub_efi_piwg_device_path): New structure
32362 (grub_efi_piwg_device_path_t): New type.
32363 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
32364 (devpath_1): Transform to a structure. All users updated.
32365 (devpath_2): Likewise.
32366 (devpath_3): Likewise.
32367 (devpath_4): Likewise.
32368 (devpath_5): Likewise.
32370 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32372 * loader/efi/appleloader.c: Restored. Update all users.
32374 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32376 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
32378 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
32379 (struct boot_blocklist): Move from here ...
32380 * include/grub/i386/pc/boot.h [ASM_FILE]
32381 (struct grub_boot_blocklist): ... to here. Update all users.
32382 (setup): Only initialize `start' member of `first_block'
32383 structure. Add assert() calls to verify the other members.
32385 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
32386 (generate_image): Fix broken blocklist length initialization.
32387 Add assert() call to verify blocklist `segment' field.
32389 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32391 * loader/efi/appleloader.c: Remove. Update all users.
32393 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32395 * boot/i386/pc/boot.S: Update copyright year.
32396 * boot/i386/pc/cdboot.S: Likewise.
32397 * boot/i386/pc/diskboot.S: Likewise.
32398 * boot/i386/pc/lnxboot.S: Likewise.
32399 * boot/i386/pc/pxeboot.S: Likewise.
32400 * bus/pci.c: Likewise.
32401 * commands/cmp.c: Likewise.
32402 * commands/help.c: Likewise.
32403 * commands/hexdump.c: Likewise.
32404 * commands/i386/pc/halt.c: Likewise.
32405 * commands/i386/pc/play.c: Likewise.
32406 * commands/i386/pc/vbeinfo.c: Likewise.
32407 * commands/ls.c: Likewise.
32408 * commands/test.c: Likewise.
32409 * disk/dmraid_nvidia.c: Likewise.
32410 * disk/i386/pc/biosdisk.c: Likewise.
32411 * disk/ieee1275/nand.c: Likewise.
32412 * disk/ieee1275/ofdisk.c: Likewise.
32413 * disk/lvm.c: Likewise.
32414 * disk/raid.c: Likewise.
32415 * disk/raid6_recover.c: Likewise.
32416 * disk/scsi.c: Likewise.
32417 * fs/affs.c: Likewise.
32418 * fs/cpio.c: Likewise.
32419 * fs/ext2.c: Likewise.
32420 * fs/hfs.c: Likewise.
32421 * fs/iso9660.c: Likewise.
32422 * fs/ntfs.c: Likewise.
32423 * fs/sfs.c: Likewise.
32424 * fs/udf.c: Likewise.
32425 * fs/ufs.c: Likewise.
32426 * fs/xfs.c: Likewise.
32427 * gencmdlist.sh: Likewise.
32428 * genmk.rb: Likewise.
32429 * include/grub/disk.h: Likewise.
32430 * include/grub/efi/api.h: Likewise.
32431 * include/grub/efi/efi.h: Likewise.
32432 * include/grub/efi/pe32.h: Likewise.
32433 * include/grub/elf.h: Likewise.
32434 * include/grub/fs.h: Likewise.
32435 * include/grub/i386/at_keyboard.h: Likewise.
32436 * include/grub/i386/pc/memory.h: Likewise.
32437 * include/grub/i386/pc/vbe.h: Likewise.
32438 * include/grub/i386/pci.h: Likewise.
32439 * include/grub/i386/tsc.h: Likewise.
32440 * include/grub/ieee1275/ieee1275.h: Likewise.
32441 * include/grub/ntfs.h: Likewise.
32442 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32443 * include/grub/sparc64/libgcc.h: Likewise.
32444 * include/grub/symbol.h: Likewise.
32445 * include/grub/types.h: Likewise.
32446 * include/multiboot2.h: Likewise.
32447 * io/gzio.c: Likewise.
32448 * kern/device.c: Likewise.
32449 * kern/disk.c: Likewise.
32450 * kern/efi/efi.c: Likewise.
32451 * kern/efi/mm.c: Likewise.
32452 * kern/elf.c: Likewise.
32453 * kern/file.c: Likewise.
32454 * kern/i386/dl.c: Likewise.
32455 * kern/i386/pc/init.c: Likewise.
32456 * kern/i386/pc/startup.S: Likewise.
32457 * kern/ieee1275/ieee1275.c: Likewise.
32458 * kern/ieee1275/init.c: Likewise.
32459 * kern/main.c: Likewise.
32460 * kern/mm.c: Likewise.
32461 * kern/powerpc/dl.c: Likewise.
32462 * kern/sparc64/dl.c: Likewise.
32463 * kern/x86_64/dl.c: Likewise.
32464 * lib/hexdump.c: Likewise.
32465 * loader/efi/appleloader.c: Likewise.
32466 * loader/i386/ieee1275/linux.c: Likewise.
32467 * loader/i386/pc/chainloader.c: Likewise.
32468 * loader/i386/pc/linux.c: Likewise.
32469 * loader/i386/pc/multiboot2.c: Likewise.
32470 * loader/ieee1275/multiboot2.c: Likewise.
32471 * loader/multiboot2.c: Likewise.
32472 * loader/multiboot_loader.c: Likewise.
32473 * loader/powerpc/ieee1275/linux.c: Likewise.
32474 * normal/completion.c: Likewise.
32475 * normal/menu_entry.c: Likewise.
32476 * partmap/apple.c: Likewise.
32477 * util/grub.d/10_hurd.in: Likewise.
32478 * util/hostfs.c: Likewise.
32479 * video/readers/png.c: Likewise.
32481 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
32483 * include/grub/misc.h (GNUC_PREREQ): New macro.
32484 (ATTRIBUTE_ERROR): New macro.
32485 * include/grub/list.h (grub_bad_type_cast_real): Use
32488 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32490 * normal/menu_text.c (print_message): Change messages.
32492 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32494 * normal/menu_entry.c (store_completion): Gettextizze.
32496 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32498 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
32500 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32502 * po/POTFILES: Sort correctly.
32504 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32506 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
32507 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
32508 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
32510 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
32511 summary. Gettextizze the strings.
32512 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
32513 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
32514 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
32516 (GRUB_MOD_INIT): Remove command name from summary.
32517 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
32519 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
32520 * term/i386/pc/serial.c (options): Add full stops.
32521 (GRUB_MOD_INIT): Remove command name from the summary.
32523 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32525 * commands/acpi.c: Gettextizze help strings and/or options. Include
32526 `grub/i18n.h' if needed.
32527 * commands/blocklist.c: Likewise.
32528 * commands/boot.c: Likewise.
32529 * commands/cat.c: Likewise.
32530 * commands/cmp.c: Likewise.
32531 * commands/configfile.c: Likewise.
32532 * commands/crc.c: Likewise.
32533 * commands/date.c: Likewise.
32534 * commands/echo.c: Likewise.
32535 * commands/efi/fixvideo.c: Likewise.
32536 * commands/efi/loadbios.c: Likewise.
32537 * commands/gptsync.c: Likewise.
32538 * commands/halt.c: Likewise.
32539 * commands/handler.c: Likewise.
32540 * commands/hdparm.c: Likewise.
32541 * commands/hexdump.c: Likewise.
32542 * commands/i386/cpuid.c: Likewise.
32543 * commands/i386/pc/drivemap.c: Likewise.
32544 * commands/i386/pc/halt.c: Likewise.
32545 * commands/i386/pc/pxecmd.c: Likewise.
32546 * commands/i386/pc/vbeinfo.c: Likewise.
32547 * commands/i386/pc/vbetest.c: Likewise.
32548 * commands/ieee1275/suspend.c: Likewise.
32549 * commands/keystatus.c: Likewise.
32550 * commands/loadenv.c: Likewise.
32551 * commands/ls.c: Likewise.
32552 * commands/lsmmap.c: Likewise.
32553 * commands/lspci.c: Likewise.
32554 * commands/memrw.c: Likewise.
32555 * commands/minicmd.c: Likewise.
32556 * commands/parttool.c: Likewise.
32557 * commands/password.c: Likewise.
32558 * commands/probe.c: Likewise.
32559 * commands/read.c: Likewise.
32560 * commands/reboot.c: Likewise.
32561 * commands/search.c: Likewise.
32562 * commands/sleep.c: Likewise.
32563 * commands/test.c: Likewise.
32564 * commands/true.c: Likewise.
32565 * commands/usbtest.c: Likewise.
32566 * commands/videotest.c: Likewise.
32567 * commands/xnu_uuid.c: Likewise.
32568 * disk/loopback.c: Likewise.
32569 * hello/hello.c: Likewise.
32570 * loader/i386/bsd.c: Likewise.
32571 * term/i386/pc/serial.c: Likewise.
32572 * po/POTFILES: Add new files.
32574 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
32576 * term/i386/pc/at_keyboard.c
32577 (keyboard_controller_wait_untill_ready): Rename to ...
32578 (keyboard_controller_wait_until_ready): ... this. Update all users.
32580 2010-01-01 Carles Pina i Estany <carles@pina.cat>
32582 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
32583 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
32584 string using string width.
32585 * normal/menu_text.c (grub_print_message_indented): Use
32586 grub_print_spaces and not print_spaces.
32587 (print_timeout): Likewise.
32588 (print_spaces): Move to...
32589 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
32591 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
32593 Import from Gnulib.
32595 * gnulib/getdelim.c: New file.
32596 * gnulib/getline.c: Likewise.
32598 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
32600 * include/grub/list.h (grub_assert_fail): Removed.
32601 (grub_bad_type_cast_real): New function.
32602 (grub_bad_type_cast): New macro.
32603 (GRUB_AS_LIST): Use grub_bad_type_cast.
32604 (GRUB_AS_LIST_P): Likewise.
32605 (GRUB_AS_NAMED_LIST): Likewise.
32606 (GRUB_AS_NAMED_LIST_P): Likewise.
32607 (GRUB_AS_PRIO_LIST): Likewise.
32608 (GRUB_AS_PRIO_LIST_P): Likewise.
32609 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
32611 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
32613 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
32616 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
32618 * configure.ac: Check for TARGET_CFLAGS initialization before we
32619 initialize it ourselves (sigh).
32620 Move a few modifications to TARGET_CFLAGS to be unconditional
32621 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
32624 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
32625 * term/i386/pc/at_keyboard.c
32626 (keyboard_controller_wait_untill_ready): Likewise.
32627 (keyboard_controller_led): Rename `led_status' paramter to avoid
32630 2009-12-28 Carles Pina i Estany <carles@pina.cat>
32632 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
32635 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32637 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
32639 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32641 * normal/menu_text.c (grub_print_message_indented): Prevent
32642 past-the-end-of-array dereference.
32644 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32646 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
32647 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
32649 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32651 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
32652 * normal/main.c (grub_normal_read_line): Remove a space from the
32655 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32657 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
32658 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32659 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32660 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32661 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32662 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32663 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32665 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32667 * video/readers/jpeg.c (cmd): Declare.
32668 (grub_cmd_jpegtest): Use `grub_command_t' type.
32669 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32671 (GRUB_MOD_FINI): Use `cmd' to unregister.
32672 * video/readers/png.c (cmd): Declare.
32673 (grub_cmd_pngtest): Use `grub_command_t' type.
32674 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32676 (GRUB_MOD_FINI): Use `cmd' to unregister.
32677 * video/readers/tga.c (cmd): Declare.
32678 (grub_cmd_tgatest): Use `grub_command_t' type.
32679 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32681 (GRUB_MOD_FINI): Use `cmd' to unregister.
32683 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32685 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
32687 * kern/corecmd.c (grub_register_core_commands): Likewise.
32688 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
32689 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32690 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
32691 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32692 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32693 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
32694 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32695 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
32696 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32697 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32698 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32699 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32700 * normal/handler.c (insert_handler): Likewise.
32701 * normal/main.c (GRUB_MOD_INIT): Likewise.
32702 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
32704 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32706 * commands/help.c (grub_cmd_help): Print the command name before the
32708 (GRUB_MOD_INIT): Remove command name from the summary.
32709 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
32711 * lib/arg.c (find_long): Print the command name before the summary.
32712 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
32714 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
32715 * commands/cat.c (GRUB_MOD_INIT): Likewise.
32716 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
32717 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32718 * commands/crc.c (GRUB_MOD_INIT): Likewise.
32719 * commands/date.c (GRUB_MOD_INIT): Likewise.
32720 * commands/echo.c (GRUB_MOD_INIT): Likewise.
32721 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
32722 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32723 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32724 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
32725 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
32726 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
32727 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
32728 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32729 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
32730 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
32731 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
32732 * commands/ls.c (GRUB_MOD_INIT): Likewise.
32733 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32734 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32735 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32736 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
32737 * commands/password.c (GRUB_MOD_INIT): Likewise.
32738 * commands/probe.c (GRUB_MOD_INIT): Likewise.
32739 * commands/read.c (GRUB_MOD_INIT): Likewise.
32740 * commands/search.c (GRUB_MOD_INIT): Likewise.
32741 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
32742 * commands/test.c (GRUB_MOD_INIT): Likewise.
32743 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
32744 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
32745 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
32746 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
32747 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
32748 * lib/arg.c (GRUB_MOD_INIT): Likewise.
32749 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
32750 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32751 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32752 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32753 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
32754 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
32755 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
32756 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
32758 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32760 Use search command for preliminar UUID search.
32762 * commands/search.c: Split into ...
32763 * commands/search_wrap.c: ...this
32764 * commands/search.c: ...and this.
32765 * commands/search_file.c: New file.
32766 * commands/search_label.c: New file.
32767 * commands/search_uuid.c: New file.
32768 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
32769 Add commands/search_wrap.c, commands/search_file.c,
32770 commands/search_label.c and commands/search_uuid.c.
32771 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32772 (search_mod_SOURCES): Set to commands/search_wrap.c.
32773 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32775 (search_fs_file_mod_SOURCES): New variable.
32776 (search_fs_file_mod_CFLAGS): Likewise.
32777 (search_fs_file_mod_LDFLAGS): Likewise.
32778 (search_label_mod_SOURCES): Likewise.
32779 (search_label_mod_CFLAGS): Likewise.
32780 (search_label_mod_LDFLAGS): Likewise.
32781 (search_fs_uuid_mod_SOURCES): New variable.
32782 (search_fs_uuid_mod_CFLAGS): Likewise.
32783 (search_fs_uuid_mod_LDFLAGS): Likewise.
32784 (fs_file_mod_SOURCES): Removed.
32785 (fs_file_mod_CFLAGS): Likewise.
32786 (fs_file_mod_LDFLAGS): Likewise.
32787 (fs_uuid_mod_SOURCES): Removed.
32788 (fs_uuid_mod_CFLAGS): Likewise.
32789 (fs_uuid_mod_LDFLAGS): Likewise.
32790 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32791 Set to util/grub-install.in.
32792 * disk/fs_file.c: Removed.
32793 * disk/fs_uuid.c: Likewise.
32794 * include/grub/search.h: New file.
32795 * util/grub-install.in: Handle sparc64.
32796 Create and use load.cfg.
32797 * util/sparc64/ieee1275/grub-install.in: Removed.
32799 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32801 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32802 Ignore return status if CF is cleared.
32803 (grub_biosdisk_get_diskinfo_standard): Likewise.
32805 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32807 * term/i386/pc/at_keyboard.c
32808 (keyboard_controller_wait_untill_ready): New function.
32809 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32810 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32811 for keyboard polling, rather than duplicate the same loop. This
32812 saves a few bytes in code size.
32814 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32816 Support for (pxe[:server[:gateway]]) syntax and
32817 use environment variable for PXE.
32819 * commands/i386/pc/pxecmd.c (options): Removed.
32820 (print_ip): Removed.
32821 (grub_cmd_pxe): Removed
32822 (grub_cmd_pxe_unload): New function.
32823 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32824 (grub_pxe_your_ip): Made static.
32825 (grub_pxe_default_server_ip): Likewise.
32826 (grub_pxe_default_gateway_ip): Likewise.
32827 (grub_pxe_blksize): Likewise.
32828 (parse_ip): New function.
32829 (grub_pxe_open): Support server and gateway specification.
32830 (grub_pxe_close): Free disk->data.
32831 (grub_pxefs_open): Use disk->data.
32832 (grub_pxefs_read): Likewise.
32833 (grub_env_write_readonly): New function.
32834 (set_mac_env): Likewise.
32835 (set_env_limn_ro): Likewise.
32836 (parse_dhcp_vendor): Likewise.
32837 (grub_pxe_detect): Set the environment variables.
32838 (set_ip_env): New function.
32839 (write_ip_env): Likewise.
32840 (grub_env_write_pxe_default_server): Likewise.
32841 (grub_env_write_pxe_default_gateway): Likewise.
32842 (grub_env_write_pxe_blocksize): Likewise.
32843 (GRUB_MOD_INIT(pxe)): Set environment variables.
32844 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32845 (grub_pxe_mac_addr_t): ... this. All users updated.
32846 (grub_pxe_your_ip): Removed.
32847 (grub_pxe_server_ip): Likewise.
32848 (grub_pxe_gateway_ip): Likewise.
32849 (grub_pxe_blksize): Likewise.
32851 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32853 * commands/help.c: Include `<grub/i18n.h>'.
32854 (grub_cmd_help): Gettextizze.
32855 (GRUB_MOD_INIT): Likewise.
32856 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
32857 (GRUB_MOD_INIT): Gettextizze.
32858 * commands/search.c: Include `<grub/i18n.h>'.
32859 (options): Gettextizze.
32860 (GRUB_MOD_INIT): Gettextizze.
32861 * lib/arg.c: Include `<grub/i18n.h>'.
32862 (help_options): Gettextizze.
32863 (find_long): Likewise.
32864 (grub_arg_show_help): Likewise.
32865 * normal/dyncmd.c: Include `<grub/i18n.h>'.
32866 (read_command_list): Gettextizze.
32867 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
32868 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
32870 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32872 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
32873 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
32874 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
32875 (led_status): New variable.
32876 (keyboard_controller_led): New function.
32877 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
32878 update led status for caps lock, num lock and scroll lock.
32880 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
32882 * util/hostdisk.c (open_device): Fix a comment.
32884 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32886 * util/grub-install.in (host_os): New variable.
32887 * util/i386/efi/grub-install.in (host_os): Likewise.
32889 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32891 * util/mkisofs/write.c (padblock_write): Abort when given an
32892 excedingly large embed image, instead of silently truncating it.
32894 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32896 * include/multiboot.h: Indentation fixes.
32898 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32900 * include/multiboot.h (struct multiboot_aout_symbol_table)
32901 (struct multiboot_elf_section_header_table): New structure
32902 declarations (stolen from GRUB Legacy).
32903 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
32906 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
32907 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
32910 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32912 * include/multiboot.h: Make comments src2texi-friendly.
32914 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32916 For consistency with [multiboot]/docs/boot.S.
32918 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
32919 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
32920 (MULTIBOOT_MAGIC2): Rename from this ...
32921 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
32923 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32925 * include/multiboot.h: Remove `<grub/types.h>'.
32926 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
32927 types. Update all users.
32929 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32931 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
32932 `couldn't' and `can not' by `cannot'.
32933 * commands/i386/pc/drivemap.c: Likewise.
32934 * disk/ata.c: Likewise.
32935 * disk/ieee1275/nand.c: Likewise.
32936 * fs/affs.c: Likewise.
32937 * fs/fat.c: Likewise.
32938 * fs/hfs.c: Likewise.
32939 * fs/hfsplus.c: Likewise.
32940 * fs/iso9660.c: Likewise.
32941 * fs/jfs.c: Likewise.
32942 * fs/minix.c: Likewise.
32943 * fs/reiserfs.c: Likewise.
32944 * fs/sfs.c: Likewise.
32945 * fs/udf.c: Likewise.
32946 * fs/ufs.c: Likewise.
32947 * fs/xfs.c: Likewise.
32948 * loader/powerpc/ieee1275/linux.c: Likewise.
32949 * loader/sparc64/ieee1275/linux.c: Likewise.
32950 * util/grub-probe.c: Likewise.
32951 * util/misc.c: Likewise.
32953 2009-12-24 Carles Pina i Estany <carles@pina.cat>
32955 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
32957 * commands/acpi.c: Likewise.
32958 * commands/blocklist.c: Likewise.
32959 * commands/efi/loadbios.c: Likewise.
32960 * commands/i386/pc/drivemap.c: Likewise.
32961 * commands/loadenv.c: Likewise.
32962 * commands/memrw.c: Likewise.
32963 * commands/password.c: Likewise.
32964 * commands/videotest.c: Likewise.
32965 * disk/ata.c: Likewise.
32966 * disk/ata_pthru.c: Likewise.
32967 * disk/dmraid_nvidia.c: Likewise.
32968 * disk/ieee1275/nand.c: Likewise.
32969 * disk/ieee1275/ofdisk.c: Likewise.
32970 * disk/loopback.c: Likewise.
32971 * disk/lvm.c: Likewise.
32972 * disk/mdraid_linux.c: Likewise.
32973 * disk/raid.c: Likewise.
32974 * disk/raid6_recover.c: Likewise.
32975 * disk/scsi.c: Likewise.
32976 * efiemu/main.c: Likewise.
32977 * efiemu/mm.c: Likewise.
32978 * efiemu/pnvram.c: Likewise.
32979 * efiemu/symbols.c: Likewise.
32980 * font/font.c: Likewise.
32981 * fs/cpio.c: Likewise.
32982 * fs/hfsplus.c: Likewise.
32983 * fs/iso9660.c: Likewise.
32984 * fs/jfs.c: Likewise.
32985 * fs/minix.c: Likewise.
32986 * fs/ntfs.c: Likewise.
32987 * fs/ntfscomp.c: Likewise.
32988 * fs/reiserfs.c: Likewise.
32989 * fs/ufs.c: Likewise.
32990 * fs/xfs.c: Likewise.
32991 * gettext/gettext.c: Likewise.
32992 * include/grub/auth.h: Likewise.
32993 * kern/elf.c: Likewise.
32994 * kern/file.c: Likewise.
32995 * kern/ieee1275/init.c: Likewise.
32996 * kern/ieee1275/mmap.c: Likewise.
32997 * kern/ieee1275/openfw.c: Likewise.
32998 * kern/powerpc/dl.c: Likewise.
32999 * kern/sparc64/dl.c: Likewise.
33000 * lib/arg.c: Likewise.
33001 * loader/i386/bsd.c: Likewise.
33002 * loader/i386/bsdXX.c: Likewise.
33003 * loader/i386/efi/linux.c: Likewise.
33004 * loader/i386/efi/xnu.c: Likewise.
33005 * loader/i386/ieee1275/linux.c: Likewise.
33006 * loader/i386/linux.c: Likewise.
33007 * loader/i386/multiboot.c: Likewise.
33008 * loader/i386/pc/linux.c: Likewise.
33009 * loader/i386/pc/multiboot2.c: Likewise.
33010 * loader/i386/xnu.c: Likewise.
33011 * loader/ieee1275/multiboot2.c: Likewise.
33012 * loader/macho.c: Likewise.
33013 * loader/machoXX.c: Likewise.
33014 * loader/multiboot2.c: Likewise.
33015 * loader/multiboot_loader.c: Likewise.
33016 * loader/powerpc/ieee1275/linux.c: Likewise.
33017 * loader/sparc64/ieee1275/linux.c: Likewise.
33018 * loader/xnu.c: Likewise.
33019 * loader/xnu_resume.c: Likewise.
33020 * mmap/i386/pc/mmap.c: Likewise.
33021 * normal/menu_viewer.c: Likewise.
33022 * partmap/acorn.c: Likewise.
33023 * partmap/amiga.c: Likewise.
33024 * partmap/apple.c: Likewise.
33025 * script/lexer.c: Likewise.
33026 * term/gfxterm.c: Likewise.
33027 * term/i386/pc/serial.c: Likewise.
33028 * term/i386/pc/vga.c: Likewise.
33029 * term/ieee1275/ofconsole.c: Likewise.
33030 * term/terminfo.c: Likewise.
33031 * video/bitmap.c: Likewise.
33032 * video/efi_gop.c: Likewise.
33033 * video/efi_uga.c: Likewise.
33034 * video/fb/video_fb.c: Likewise.
33035 * video/i386/pc/vbe.c: Likewise.
33036 * video/readers/tga.c: Likewise.
33037 * video/video.c: Likewise.
33039 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
33041 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
33042 * commands/lspci.c: Likewise.
33043 * commands/probe.c: Likewise.
33044 * commands/xnu_uuid.c: Likewise.
33045 * conf/i386-coreboot.rmk: Likewise.
33046 * conf/i386-efi.rmk: Likewise.
33047 * conf/i386-ieee1275.rmk: Likewise.
33048 * conf/i386-pc.rmk: Likewise.
33049 * conf/powerpc-ieee1275.rmk: Likewise.
33050 * conf/sparc64-ieee1275.rmk: Likewise.
33051 * conf/x86_64-efi.rmk: Likewise.
33052 * fs/i386/pc/pxe.c: Likewise.
33053 * gettext/gettext.c: Likewise.
33054 * include/grub/efi/graphics_output.h: Likewise.
33055 * include/grub/i386/pc/memory.h: Likewise.
33056 * kern/env.c: Likewise.
33057 * kern/i386/qemu/startup.S: Likewise.
33058 * lib/i386/pc/biosnum.c: Likewise.
33059 * lib/i386/relocator.c: Likewise.
33060 * lib/i386/relocator_asm.S: Likewise.
33061 * lib/relocator.c: Likewise.
33062 * loader/i386/bsd.c: Likewise.
33063 * loader/i386/multiboot.c: Likewise.
33064 * loader/i386/pc/chainloader.c: Likewise.
33065 * loader/i386/xnu.c: Likewise.
33066 * loader/xnu.c: Likewise.
33067 * normal/main.c: Likewise.
33068 * normal/menu_text.c: Likewise.
33069 * util/getroot.c: Likewise.
33070 * util/grub-mkconfig_lib.in: Likewise.
33071 * util/grub.d/00_header.in: Likewise.
33072 * util/i386/pc/grub-mkimage.c: Likewise.
33073 * util/mkisofs/eltorito.c: Likewise.
33074 * util/mkisofs/exclude.h: Likewise.
33075 * util/mkisofs/hash.c: Likewise.
33076 * util/mkisofs/iso9660.h: Likewise.
33077 * util/mkisofs/joliet.c: Likewise.
33078 * util/mkisofs/mkisofs.c: Likewise.
33079 * util/mkisofs/mkisofs.h: Likewise.
33080 * util/mkisofs/multi.c: Likewise.
33081 * util/mkisofs/name.c: Likewise.
33082 * util/mkisofs/rock.c: Likewise.
33083 * util/mkisofs/tree.c: Likewise.
33084 * util/mkisofs/write.c: Likewise.
33085 * video/efi_gop.c: Likewise.
33087 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
33089 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
33092 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33094 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
33095 * genmk.rb (class SCRIPT): Modify the target file instead of source.
33097 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33099 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
33100 (GRUB_MOD_INIT(memrw)): Update help line.
33102 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33104 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
33105 Use grub_extcmd_t. All users updated.
33106 (options): New variable.
33107 (grub_cmd_read): Restructure for readability. Support "-v" option.
33108 (grub_cmd_write): Restructure for readability.
33110 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33112 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
33114 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33116 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
33117 with the actual contents of the correspondending make variable.
33118 * util/grub-mkrescue.in (pkglib_DATA): New variable.
33119 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
33120 specifying `*.lst' and `efiemu??.o'
33122 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33124 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
33125 after function name.
33126 Noticed by Rene Engelhard <rene@debian.org>.
33128 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33130 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
33131 (options): New variable.
33132 (iospace): Likewise.
33133 (grub_lspci_iter): List IO spaces if "-i" was given.
33134 (grub_cmd_lspci): Parse options.
33135 (GRUB_MOD_INIT(lspci)): Use extcmd.
33136 (GRUB_MOD_FINI(lspci)): Likewise.
33138 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33140 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
33141 `function' keyword.
33142 Patch by Tony Mancill <tmancill@debian.org>.
33144 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33146 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
33147 (grub_uhci_portstatus): Likewise.
33148 (grub_uhci_portstatus): Add necessary delay.
33149 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
33151 2009-12-21 Carles Pina i Estany <carles@pina.cat>
33153 * commands/acpi.c (options): Fix capitalizations and/or full stops.
33154 (GRUB_MOD_INIT): Likewise.
33155 * commands/boot.c (GRUB_MOD_INIT): Likewise.
33156 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
33157 * commands/echo.c (options): Fix capitalizations and/or full stops.
33158 * commands/efi/loadbios.c (enable_rom_area): Likewise.
33159 (enable_rom_area): Likewise.
33160 (GRUB_MOD_INIT): Likewise.
33161 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
33162 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
33163 * commands/handler.c (GRUB_MOD_INIT): Likewise.
33164 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
33165 * commands/hexdump.c (options): Likewise.
33166 * commands/i386/cpuid.c (options): Likewise.
33167 (GRUB_MOD_INIT): Likewise.
33168 * commands/i386/pc/drivemap.c (options): Likewise.
33169 (GRUB_MOD_INIT): Likewise.
33170 * commands/i386/pc/halt (options): Likewise.
33171 (GRUB_MOD_INIT): Likewise.
33172 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
33173 * commands/i386/pc/pxecmd.c (options): Likewise.
33174 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
33175 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
33176 * commands/keystatus.c (options): Likewise.
33177 (GRUB_MOD_INIT): Likewise.
33178 * commands/loadenv.c (options): Likewise.
33179 * commands/ls.c (options): Likewise.
33180 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
33181 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
33182 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
33183 * commands/parttool.c (helpmsg): Likewise.
33184 * commands/probe.c (options): Likewise.
33185 * commands/read.c (GRUB_MOD_INIT): Likewise.
33186 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
33187 * commands/search.c (options): Likewise.
33188 * commands/sleep.c (options): Likewise.
33189 * commands/test.c (GRUB_MOD_INIT): Likewise.
33190 * commands/true.c (GRUB_MOD_INIT): Likewise.
33191 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
33192 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
33193 * lib/arg.c (help_options): Likewise.
33194 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
33196 * po/POTFILES: Add `commands/loadenv.c'.
33198 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
33200 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
33201 instead of specifying them explicit.
33203 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33205 * NEWS: Add grub-probe support for GNU/Hurd.
33207 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33209 * NEWS: gettext was added after 1.97.
33211 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33213 * util/mkisofs/msdos_partition.h: New file (based on
33214 include/grub/msdos_partition.h).
33215 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
33216 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
33217 (ld_options, main): Recognize --protective-msdos-label.
33218 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
33219 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
33220 (padblock_write): If `use_protective_msdos_label' is set, patch a
33221 protective DOS-style label in the output image.
33223 * util/grub-mkrescue.in: Use --protective-msdos-label.
33225 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33227 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
33230 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33232 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
33234 (ld_options, main): Recognize `--embedded-boot'.
33235 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
33237 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
33238 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
33239 (padblock_write): Likewise. Rewrite to support embedded boot image.
33241 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
33242 for BIOS-based disk boot instead of only ElTorito.
33244 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33246 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
33247 build (not needed for bootstrap).
33249 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33251 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
33252 from i386-pc build (not needed for bootstrap).
33253 Rewrite a pair of strings.
33255 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33257 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
33259 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
33261 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
33263 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33265 * kern/env.c (grub_env_context_open): Mark exported variable for
33268 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33270 * kern/env.c (grub_env_export): Create nonexistent variables before
33273 2009-12-20 Carles Pina i Estany <carles@pina.cat>
33275 * include/grub/auth.h: Include `<grub/i18n.h>'.
33276 (GRUB_GET_PASSWORD): Gettextizze string.
33277 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
33279 (grub_utf8_to_ucs4_alloc): Fix indentation.
33280 (grub_print_ucs4): Likewise.
33281 (grub_getstringwidth): Likewise.
33282 (print_message_indented): New declaration.
33283 * normal/auth.c: Include `<grub/i18n.h>'.
33284 (grub_auth_check_authentication): Gettexttize string.
33285 * normal/cmdline.c: Include `<grub/i18n.h>'.
33286 (grub_cmdline_get): Gettextizze.
33287 * normal/color.c: Include `<grub/i18n.h>'.
33288 (grub_parse_color_name_pair): Gettexttize strings.
33289 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
33290 string (use `print_message_indented').
33291 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
33292 `include/grub/normal.h'.
33293 (print_message_indented): Renamed to ...
33294 (grub_print_message_indented): ... this. Remove `static' qualifer (now
33295 used in normal/main.c).
33296 (print_message): Use `grub_print_message_indented' instead of
33297 `print_message_indented'.
33298 (print_timeout): Likewise.
33299 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
33300 (grub_normal_print_device_info): Gettexttize strings.
33301 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
33303 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33305 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
33306 of arguments. Return number of tokens and not arguments. All users
33309 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33311 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
33312 non-MSDOS paritions.
33314 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
33316 * include/grub/types.h (UNUSED): Removed since it conflicts with
33317 NetBSD headers. All users changed to direct __attribute__ ((unused)).
33318 Reported by Grégoire Sutre.
33320 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33322 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
33323 (grub_print_ucs4_alloc): Likewise.
33324 (grub_getstringwidth): Likewise.
33325 * normal/main.c (grub_normal_init_page): Gettextize version string.
33326 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
33327 (getstringwidth): Renamed to ...
33328 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
33329 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
33330 (grub_print_ucs4): Remove `static' qualifer (now used in
33332 * po/POTFILES: Add normal/main.c.
33334 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33336 * normal/menu_text.c (STANDARD_MARGIN): New macro.
33337 (print_message_indented): Add `margin_left' and `margin_right'
33339 (print_message): Update `print_message_indented' calls. Adds '\n' to the
33341 (print_timeout): Use `print_message_indented' to print the message.
33342 Deletes `second_stage' parameter.
33343 (run_menu): Update `print_timeout' calls.
33345 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33347 Fix console palette on OpenFirmware.
33349 * term/ieee1275/ofconsole.c (MAX): Removed.
33350 (colors): Redone based on VGA palette.
33351 (grub_ofconsole_setcolor): Discard brightness bit since only 8
33352 colors are supported.
33353 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
33355 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33357 Fix potential EfiEmu double prepare.
33359 * efiemu/main.c (prepared): New variable
33360 (grub_efiemu_unload): Set prepare to '0'.
33361 (grub_efiemu_prepare): Return if already prepared. Set prepared.
33363 set_virtual_address_map support.
33365 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
33367 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
33369 (grub_efiemu_crc32): Likewise.
33370 (grub_efiemu_crc64): Likewise.
33371 (grub_efiemu_set_virtual_address_map): Likewise.
33372 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
33374 (grub_autoefi_set_virtual_address_map): Likewise.
33375 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
33376 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
33377 Restructure flow to accomodate it.
33378 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
33379 (grub_efiemu_crc): Recompute CRC32.
33380 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
33381 (efiemu_ptv_relocated): ... this. Made global. All users updated.
33382 * efiemu/symbols.c (relocated_handle): New variable.
33383 (grub_efiemu_free_syms): Free relocated_handle.
33384 (grub_efiemu_alloc_syms): Allocate relocated_handle.
33385 (grub_efiemu_write_sym_markers): New function.
33386 (grub_efiemu_set_virtual_address_map): Likewise.
33388 Newer XNU parameters.
33390 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
33391 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
33392 (grub_xnu_fill_devicetree): New prototype.
33393 (grub_xnu_heap_real_start): New variable.
33394 * loader/xnu.c (get_name_ptr): New function.
33395 (grub_xnu_load_driver): Fill namelen and name.
33397 64-bit xnu support.
33399 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
33400 and 'loader/macho64.c'.
33401 * conf/i386-pc.rmk: Likewise.
33402 * conf/x86_64-efi.rmk: Likewise.
33403 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
33404 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
33405 * include/grub/macho.h (grub_macho_segment64): New structure.
33406 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
33407 (grub_macho_size32): ... to this.
33408 (grub_macho32_get_entry_point): Renamed from ...
33409 (grub_macho_get_entry_point32): ... to this.
33410 (grub_macho_contains_macho64): New prototype.
33411 (grub_macho_size64): Likewise.
33412 (grub_macho_get_entry_point64): Likewise.
33413 (grub_macho32_load): Renamed from ...
33414 (grub_macho_load32): ... to this.
33415 (grub_macho32_filesize): Renamed from ...
33416 (grub_macho_filesize32): ... to this.
33417 (grub_macho32_readfile): Renamed from ...
33418 (grub_macho_readfile32): ... to this.
33419 (grub_macho_filesize64): New prototype.
33420 (grub_macho_readfile64): Likewise.
33421 (grub_macho_parse32): Likewise.
33422 (grub_macho_parse64): Likewise.
33423 * loader/macho.c: Split into ...
33424 * loader/machoXX.c: ... and this. Replace 32 with XX.
33425 * loader/macho32.c: New file.
33426 * loader/macho64.c: Likewise.
33427 * loader/xnu.c (grub_xnu_is_64bit): New variable.
33428 (grub_cmd_xnu_kernel): Make 32-bit only.
33429 (grub_cmd_xnu_kernel64): New function.
33430 (grub_xnu_load_driver): Support Mach-O 64.
33431 (grub_cmd_xnu_mkext): Likewise.
33432 * util/grub.d/30_os-prober.in (osx_entry): New function.
33433 Generate entries for 64-bit boot too.
33435 Eliminate ad-hoc tree format in XNU and EfiEmu.
33437 * efiemu/main.c (grub_efiemu_prepare): Update comment.
33438 * efiemu/pnvram.c: Rewritten to use environment variables.
33441 Inline utf16_to_utf8.
33443 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
33444 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
33446 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
33448 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
33449 * commands/usbtest.c (grub_usb_get_string): ... move here.
33450 (usb_print_str): Fix error handling.
33451 * include/grub/usb.h (grub_usb_get_string): Remove.
33453 UTF-8 to UTF-16 transformation.
33455 * conf/common.rmk (pkglib_MODULES): Add charset.mod
33456 (charset_mod_SOURCES): New variable.
33457 (charset_mod_CFLAGS): Likewise.
33458 (charset_mod_LDFLAGS): Likewise.
33459 * include/grub/utf.h: New file.
33460 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
33462 Support for device properties.
33464 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
33465 (grub_xnu_devprop_device_header): Likewise.
33466 (grub_xnu_devprop_device_descriptor): Likewise.
33467 (grub_xnu_devprop_add_device): New prototype.
33468 (grub_xnu_devprop_remove_device): Likewise.
33469 (grub_xnu_devprop_remove_property): Likewise.
33470 (grub_xnu_devprop_add_property_utf8): Likewise.
33471 (grub_xnu_devprop_add_property_utf16): Likewise.
33472 (grub_cpu_xnu_init): Likewise.
33473 (grub_cpu_xnu_fini): Likewise.
33474 (grub_cpu_xnu_unload): Likewise.
33475 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
33476 (property_descriptor): Likewise.
33477 (devices): New variable.
33478 (grub_xnu_devprop_remove_property): New function.
33479 (grub_xnu_devprop_add_device): Likewise.
33480 (grub_xnu_devprop_remove_device): Likewise.
33481 (grub_xnu_devprop_add_property): Likewise.
33482 (grub_xnu_devprop_add_property_utf8): Likewise.
33483 (grub_xnu_devprop_add_property_utf16): Likewise.
33484 (hextoval): Likewise.
33485 (grub_cpu_xnu_fill_devprop): Likewise.
33486 (grub_cmd_devprop_load): Likewise.
33487 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
33488 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
33489 (cmd_devprop_load): New variable.
33490 (grub_cpu_xnu_init): New function.
33491 (grub_cpu_xnu_fini): Likewise.
33492 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
33493 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
33494 (grub_cmd_xnu_devtree): Likewise.
33495 (hextoval): New function.
33496 (unescape): Likewise.
33497 (grub_xnu_fill_devicetree): Likewise.
33499 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
33500 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
33502 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33504 Workaround for broken ATI VBE.
33506 * video/i386/pc/vbe.c (last_set_mode): New variable.
33507 (grub_vbe_set_video_mode): Set 'last_set_mode'.
33508 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
33509 (grub_video_vbe_setup): Don't check for reserved flag.
33511 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
33513 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
33514 the `find' command.
33516 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
33518 UUID support for HFS.
33520 * fs/hfs.c (grub_hfs_uuid): New function.
33521 (grub_hfs_fs): New value .uuid.
33522 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
33524 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
33526 Fix a segfault with parsing unknown long options.
33528 * util/grub-mkrelpath.c (options): Zero terminate it.
33530 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33532 * include/grub/misc.h (grub_puts): New declaration.
33533 (grub_puts_): Likewise.
33534 * kern/misc.c (grub_puts): New definition.
33535 (grub_puts_): Likewise.
33537 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33539 * util/grub-probe.c (probe): Improve error message.
33541 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33543 * loader/i386/multiboot_elfxx.c
33544 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
33547 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33549 Relocator framework
33551 * loader/i386/xnu_helper.S: Removed. All users updated.
33552 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
33553 (relocator_mod_SOURCES): New variable.
33554 (relocator_mod_CFLAGS): Likewise.
33555 (relocator_mod_LDFLAGS): Likewise.
33556 (relocator_mod_ASFLAGS): Likewise.
33557 * conf/x86_64.rmk: Likewise.
33558 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
33559 (grub_multiboot_payload_entry_offset): Likewise.
33560 (grub_multiboot_forward_relocator): Likewise.
33561 (grub_multiboot_forward_relocator_end): Likewise.
33562 (grub_multiboot_backward_relocator): Likewise.
33563 (grub_multiboot_backward_relocator_end): Likewise.
33564 (grub_multiboot_payload_eip): New variable.
33565 (grub_multiboot_payload_orig): Likewise.
33566 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
33567 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
33568 * include/grub/i386/memory.h
33569 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
33570 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
33571 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
33572 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
33573 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
33574 * include/grub/i386/relocator.h: New file.
33575 * include/grub/x86_64/relocator.h: Likewise.
33576 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
33577 (XNU_RELOCATOR): New macro.
33578 (grub_xnu_launcher_start): Remove.
33579 (grub_xnu_launcher_end): Likewise.
33580 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
33581 (grub_xnu_heap_real_start): Remove.
33582 (grub_xnu_heap_start): Change to void *. All users updated.
33583 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
33584 * lib/i386/relocator.c: New file.
33585 * lib/i386/relocator_asm.S: Likewise.
33586 * lib/i386/relocator_backward.S: Likewise.
33587 * lib/mips/relocator.c: Likewise.
33588 * lib/mips/relocator_asm.S: Likewise.
33589 * lib/relocator.c: Likewise.
33590 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
33592 (playground): Likewise.
33593 (grub_multiboot_payload_orig): New variable.
33594 (grub_multiboot_payload_dest): Likewise.
33595 (grub_multiboot_payload_size): Likewise.
33596 (grub_multiboot_payload_eip): Likewise.
33597 (grub_multiboot_payload_esp): Likewise.
33598 (grub_multiboot_boot): Use grub_relocator32_boot.
33599 (grub_multiboot_unload): Free relocators.
33600 (grub_multiboot): Setup stack. Use relocators.
33601 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
33602 (grub_multiboot_load_elfXX): Use relocators.
33603 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
33604 (grub_multiboot_payload_size): Likewise.
33605 (grub_multiboot_payload_dest): Likewise.
33606 (grub_multiboot_payload_entry_offset): Likewise.
33607 (grub_multiboot_forward_relocator): Likewise.
33608 (grub_multiboot_backward_relocator): Likewise.
33609 (grub_multiboot_real_boot): Likewise.
33610 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
33611 (grub_xnu_entry_point): Likewise.
33612 (grub_xnu_arg1): Likewise.
33613 (grub_xnu_stack): Likewise.
33614 (grub_xnu_launch): Removed.
33615 (grub_xnu_boot_resume): New function.
33616 (grub_xnu_boot): Use relocators.
33617 * loader/i386/xnu_helper.S: Removed.
33618 * loader/xnu.c (grub_xnu_heap_start): New variable.
33619 (grub_xnu_heap_size): Likewise.
33620 (grub_xnu_heap_malloc): Use relocators.
33621 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
33623 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33625 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
33628 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33630 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
33631 GRUB_ERR_NONE before calling grub_env_set.
33633 2009-12-12 Robert Millan <rmh@aybabtu.com>
33635 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
33636 * genmk.rb (video): New variable.
33637 (CLEANFILES, VIDEOFILES): Add #{video}.
33638 (#{video}): New target rule.
33639 * genvideolist.sh: New file.
33640 * Makefile.in (pkglib_DATA): Add video.lst.
33641 (video.lst): New target rule.
33642 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
33644 * util/grub.d/30_os-prober.in: Replace `vbe' with
33645 ${GRUB_VIDEO_BACKEND}.
33647 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
33649 * THANKS: Add David Miller.
33651 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
33653 libpciaccess support.
33655 * Makefile.in (LIBPCIACCESS): New variable.
33656 (enable_grub_emu_pci): Likewise.
33657 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
33658 util/pci.c and commands/lspci.c.
33659 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
33660 * configure.ac (grub-emu-pci): New option.
33661 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
33662 (grub_pci_device_unmap_range): Likewise.
33663 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
33664 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
33665 (grub_pci_address_t) [!GRUB_UTIL]: New type.
33666 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
33667 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
33668 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
33669 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
33670 * include/grub/pciutils.h: New file.
33671 * util/pci.c: Likewise.
33673 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
33675 * util/misc.c: Don't include <errno.h> twice.
33677 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
33679 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
33680 name in an error message.
33681 (grub_biosdisk_rw): Likewise.
33683 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33685 Eliminate NTFS 4Gib barrier.
33687 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
33688 (read_run_data): Likewise.
33689 (grub_ntfs_read_run_list): Likewise.
33690 (grub_ntfs_read_block): Likewise.
33691 (grub_ntfs_iterate_dir): Likewise.
33692 (read_mft): Likewise.
33693 (read_data): Likewise.
33695 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
33696 to avoid 64-bit division
33697 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
33698 (grub_ntfs_rlst): Use grub_disk_addr_t.
33700 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33702 Eliminate grub-fstest 4Gib barrier.
33704 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
33705 (read_file): Fix error reporting.
33707 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33709 Eliminate hexdump 4Gib barrier.
33711 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
33712 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
33714 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33716 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
33719 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
33721 Remove miscellaneous files in distclean target.
33723 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
33725 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
33727 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
33728 if they're already set. This resolves the conflict between my
33729 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
33730 fixing the --grub-probe option again.
33731 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
33732 change on 2009-10-06, so that we now once again source
33733 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33735 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
33737 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
33738 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
33739 `util/devicemap.c'.
33741 2009-12-08 Carles Pina i Estany <carles@pina.cat>
33743 * include/grub/misc.h (grub_printf_): New declaration.
33744 * kern/misc.c (grub_printf_): New definition.
33745 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
33746 instead of `grub_printf' and `_'.
33747 * normal/menu_entry.c (store_completion): Likewise.
33749 (grub_menu_entry_run): Likewise.
33750 * normal/menu_text.c (grub_wait_after_message): Likewise.
33751 (notify_booting): Likewise.
33752 (notify_fallback): Likewise.
33753 (notify_execution_failure): Likewise.
33755 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
33757 * configure.ac: Check for vasprintf.
33758 * util/misc.c (asprintf): Move allocation from here ...
33759 (vasprintf): ... to here. New function.
33760 (xasprintf): New function.
33761 * include/grub/util/misc.h (vasprintf, xasprintf): Add
33763 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
33764 * util/grub-mkfont.c (write_font): Likewise.
33765 * util/grub-probe.c (probe): Likewise.
33766 * util/hostdisk.c (make_device_name): Likewise.
33768 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
33770 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
33771 anything even prefixed with 'cdrom' as a cdrom.
33773 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
33775 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33778 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33780 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33781 grub_gettext_msg_list.
33782 (grub_gettext_gettranslation_from_position): Return const char *
33784 (grub_gettext_translate): Add the translated strings into a list,
33785 returns from the list if existing there.
33786 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33787 (grub_gettext_delete_list): Delete the list.
33788 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33789 lang environment variable is changed.
33790 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33792 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33794 Rename kernel.mod to kernel.img.
33796 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33797 (kernel_mod_EXPORTS): Rename to ...
33798 (kernel_img_EXPORTS): ... this.
33799 (kernel_mod_SOURCES): Rename to ...
33800 (kernel_img_SOURCES): ... this.
33801 (kernel_mod_HEADERS): Rename to ...
33802 (kernel_img_HEADERS): ... this. All users updated.
33803 (kernel_mod_CFLAGS): Rename to ...
33804 (kernel_img_CFLAGS): ... this.
33805 (kernel_mod_ASFLAGS): Rename to ...
33806 (kernel_img_ASFLAGS): ... this.
33807 (kernel_mod_LDFLAGS): Rename to ...
33808 (kernel_img_LDFLAGS): ... this.
33809 * conf/x86_64-efi.rmk: Likewise.
33810 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33811 (read_kernel_image): ... this. All users updated.
33812 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33814 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33816 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33817 (print_spaces): New function.
33818 (grub_print_ucs4): New function.
33819 (getstringwidth): New function.
33820 (print_message_indented): New function.
33821 (print_message): Gettexttize strings using print_message_indented.
33822 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33824 (get_entry_number): Gettextize and uses dynamic terminal width.
33825 (notify_booting, notify_fallback, notify_execution_failure):
33827 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33830 (grub_menu_entry_run): Likewise.
33831 * PO/POTFILES: Add normal/menu_entry.c.
33833 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33835 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33837 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33839 * util/grub-install.in: Install gettext .mo files.
33840 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33842 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33844 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
33847 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
33849 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
33850 non-firmware-dependant one in realmode.S takes precedence.
33852 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
33854 * commands/halt.c: Replace misc arch-specific headers with
33856 * commands/reboot.c: Likewise.
33857 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
33859 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
33860 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
33861 (kernel_img_SOURCES): ... to here.
33863 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
33864 * include/grub/i386/pc/init.h: Likewise.
33865 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33866 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33868 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
33870 * include/grub/i386/halt.h: Remove.
33871 * include/grub/i386/reboot.h: Likewise.
33873 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
33875 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
33877 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
33878 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
33879 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
33881 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33882 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33883 (usage): Add missing comma in printf.
33885 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
33887 Use the same reboot approach on i386 coreboot and qemu as we do on
33890 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
33891 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
33892 * kern/i386/reboot.c: Remove.
33893 * include/grub/i386/reboot.h (grub_reboot): Export function.
33894 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
33895 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
33896 0xf000:0xfff0 instead of 0xffff:0x0000.
33897 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
33898 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
33900 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
33902 Fix $srcdir != $objdir build.
33904 * Makefile.in (po/%.po): Rewrite as ...
33905 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
33907 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
33909 Fix GNU/Hurd grub-install crash.
33910 * util/grub-probe.c (probe): Try to access `path' only when it is not
33913 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33915 Correct module naming.
33917 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33918 (GRUB_MOD_INIT(efi_uga)): ... to this
33919 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33920 (GRUB_MOD_FINI(efi_uga)): ... to this
33921 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33922 (GRUB_MOD_INIT(efi_gop)): ... to this
33923 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33924 (GRUB_MOD_FINI(efi_gop)): ... to this
33926 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
33928 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
33930 (usage): Translate `arg' strings using gettext().
33931 Thanks to Jordi Mallach for the suggestion.
33933 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33935 GOP support. Based on patch from Bean
33936 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
33938 * video/efi_gop.c: New file.
33939 * include/grub/efi/graphics_output.h: Likewise.
33940 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
33941 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
33943 * conf/x86_64-efi.rmk: Likewise.
33945 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33947 Rename efi_fb to efi_uga.
33949 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33951 (efi_fb_mod_SOURCES): Rename this ...
33952 (efi_uga_mod_SOURCES): ... to this.
33953 (efi_fb_mod_CFLAGS): Rename this ...
33954 (efi_uga_mod_CFLAGS): ... to this.
33955 (efi_fb_mod_LDFLAGS): Rename this ...
33956 (efi_uga_mod_LDFLAGS): ... to this.
33957 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33959 (efi_fb_mod_SOURCES): Rename this ...
33960 (efi_uga_mod_SOURCES): ... to this.
33961 (efi_fb_mod_CFLAGS): Rename this ...
33962 (efi_uga_mod_CFLAGS): ... to this.
33963 (efi_fb_mod_LDFLAGS): Rename this ...
33964 (efi_uga_mod_LDFLAGS): ... to this.
33965 * video/efi_fb.c: Move this ...
33966 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
33968 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33970 * po/README: New file. Explain our PO file workflow.
33972 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33974 * po/ChangeLog: Remove. Move relevant entries back to ...
33975 * ChangeLog: ... here.
33976 * po/ca.po: Remove (now handled by TLP).
33977 * po/id.po: Likewise.
33978 * po/zh_CN.po: Likewise.
33979 * Makefile.in (LINGUAS): Initialize in a way that supports
33982 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33984 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
33985 reliing on po/LINGUAS.
33986 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
33987 (po/%.po): ... this.
33989 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33991 * util/i386/efi/grub-mkimage.c: Include "progname.h".
33992 (main): Use `program_name' instead of nonexistent `progname'.
33994 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33996 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33997 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
33999 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
34001 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
34003 * conf/i386-efi.rmk: Likewise.
34004 * conf/i386-ieee1275.rmk: Likewise.
34005 * conf/powerpc-ieee1275.rmk: Likewise.
34006 * conf/sparc64-ieee1275.rmk: Likewise.
34007 * conf/x86_64-efi.rmk: Likewise.
34009 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34011 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
34013 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34015 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
34017 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
34019 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
34020 (grub_mkdevicemap_SOURCES): New variable.
34021 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
34022 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
34023 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
34024 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
34025 (grub_mkdevicemap_SOURCES): Remove.
34026 * conf/i386-efi.rmk: Likewise.
34027 * conf/i386-ieee1275.rmk: Likewise.
34028 * conf/i386-pc.rmk: Likewise.
34029 * conf/powerpc-ieee1275.rmk: Likewise.
34030 * conf/sparc64-ieee1275.rmk: Likewise.
34031 * conf/x86_64-efi.rmk: Likewise.
34032 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
34033 (usage): Fix strings to use `program_name'.
34034 (main): Initialize gettext.
34035 * util/grub-editenv.c: Likewise.
34036 * util/grub-emu.c: Likewise.
34037 * util/grub-fstest.c: Likewise.
34038 * util/grub-mkdevicemap.c: Likewise.
34039 * util/grub-mkfont.c: Likewise.
34040 * util/grub-mkrelpath.c: Likewise.
34041 * util/grub-pe2elf.c: Likewise.
34042 * util/grub-probe.c: Likewise.
34043 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
34044 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
34045 * util/sparc64/ieee1275/grub-setup.c: Likewise.
34047 * util/misc.c: Include `"progname.h"'.
34048 (progname): Remove variable.
34049 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
34051 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
34053 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
34054 printf and print a newline after the menuentry header line.
34055 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34057 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
34059 autoconf >= 2.60 support $(localedir).
34061 * INSTALL: Note that autoconf 2.60 is required.
34062 * configure.ac (AC_PREREQ): Bump to 2.60.
34063 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
34064 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
34066 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
34068 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
34071 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34073 * normal/main.c (grub_normal_read_line): Fix off-by-one
34076 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34078 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
34079 "parser.grub" in grub_command_execute() call.
34081 2009-11-24 Carles Pina i Estany <carles@pina.cat>
34083 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
34084 * conf/i386-efi.rmk: Likewise.
34085 * conf/i386-ieee1275.rmk: Likewise.
34086 * conf/i386-pc.rmk: Likewise.
34087 * conf/powerpc-ieee1275.rmk: Likewise.
34088 * conf/sparc64-ieee1275.rmk: Likewise.
34089 * conf/x86_64-efi.rmk: Likewise.
34090 * gettext/gettex.c: Include <grub/i18n.h>.
34091 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
34093 * include/grub/i18n.h: ... to here
34094 * include/grub/i18n.h: ... to here.
34095 * kern/misc.c: Include <grub/i18n.h>
34096 (grub_gettext_dummy): Move above user.
34098 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34100 * util/Makefile.in (install-local): Convert a `for' into a normal
34103 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
34105 * autogen.sh: Add automake call.
34106 * config.guess: Remove.
34107 * config.sub: Likewise.
34108 * install-sh: Likewise.
34110 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34112 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
34114 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34116 * util/Makefile.in (install-local): Convert a make `$(foreach)'
34117 function to a normal shell `for'.
34119 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34121 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34123 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34125 * util/grub-mkrelpath.c: New file.
34126 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
34127 (grub_mkrelpath_SOURCES): New variable.
34128 * include/grub/util/misc.h: New function prototype.
34129 * util/misc.c (make_system_path_relative_to_its_root): New function.
34131 * util/grub-mkconfig_lib.in (bindir): New variable.
34132 (grub_mkrelpath): Likewise.
34133 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
34135 * util/probe.c (probe): Make the file path relative to its root.
34136 Change a info message to use the GRUB path. Enable again the
34137 check if we can read the file with GRUB facilities.
34139 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
34142 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34144 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
34147 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34149 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
34152 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34154 * util/getroot.c (grub_util_is_dmraid): New function.
34155 (grub_util_get_dev_abstraction): Treat dmraid and multipath
34156 devices as normal ones, not as LVM.
34158 2009-11-23 Carles Pina i Estany <carles@pina.cat>
34160 * conf/common.rmk: Add grub-gettext_lib target and updates
34161 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
34163 * gettext/gettext.c: New file. (Reads mo files).
34164 * include/grub/file.h (grub_file_pread): New prototype.
34165 * include/grub/i18n.h (_): New prototype.
34166 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
34168 * kern/misc.c (grub_gettext_dummy): New function.
34169 * normal/menu_text.c: Include <grub/i18n.h>.
34170 * normal/menu_text.c (print_timeout): Gettexttize string.
34171 * normal/menu_text.c (print_message): Gettexttize string.
34172 * po/POTFILES: Add `normal/menu_text.c'.
34173 * po/ca.po: Add new translations.
34174 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
34175 gettext module and defines locale_dir and lang in grub.cfg.
34176 * NEWS: Add gettext support.
34178 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34180 * util/hostdisk.c: Include `<grub/i18n.h>'.
34181 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
34182 (make_device_name): Rewrite using asprintf.
34183 (convert_system_partition_to_system_disk): Replace 0 with NULL.
34184 (find_system_device): If a device is not found, generate one just
34185 by reusing the OS path name.
34186 (read_device_map): Make it permissible for device.map not to exist.
34188 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34190 * script/sh/execute.c: Move from here ...
34191 * script/execute.c: ... to here. Update all users.
34192 * script/sh/function.c: Move from here ...
34193 * script/function.c: ... to here. Update all users.
34194 * script/sh/lexer.c: Move from here ...
34195 * script/lexer.c: ... to here. Update all users.
34196 * script/sh/main.c: Move from here ...
34197 * script/main.c: ... to here. Update all users.
34198 * script/sh/parser.y: Move from here ...
34199 * script/parser.y: ... to here. Update all users.
34200 * script/sh/script.c: Move from here ...
34201 * script/script.c: ... to here. Update all users.
34203 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34205 * configure.ac: Detect all `emu' platforms. Define
34206 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
34207 --enable-grub-emu logic. Disable include/grub/machine
34208 symlink on `emu' platforms.
34210 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
34211 * gensymlist.sh.in: Likewise.
34213 * include/grub/i386/coreboot/machine.h: Remove file.
34214 * include/grub/i386/efi/machine.h: Likewise.
34215 * include/grub/i386/ieee1275/machine.h: Likewise.
34216 * include/grub/i386/pc/machine.h: Likewise.
34217 * include/grub/i386/qemu/machine.h: Likewise.
34218 * include/grub/powerpc/ieee1275/machine.h: Likewise.
34219 * include/grub/sparc64/ieee1275/machine.h: Likewise.
34220 * include/grub/x86_64/efi/machine.h: Likewise.
34222 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
34223 * commands/halt.c: Likewise.
34224 * commands/reboot.c: Likewise.
34225 * include/grub/autoefi.h: Likewise.
34226 * include/grub/i386/at_keyboard.h: Likewise.
34227 * include/grub/i386/kernel.h: Likewise.
34228 * include/grub/i386/loader.h: Likewise.
34229 * include/grub/i386/pc/memory.h: Likewise.
34230 * kern/dl.c: Likewise.
34231 * kern/i386/coreboot/init.c: Likewise.
34232 * loader/i386/bsd.c: Likewise.
34233 * loader/i386/linux.c: Likewise.
34234 * loader/multiboot_loader.c: Likewise.
34235 * term/i386/pc/serial.c: Likewise.
34236 * term/usb_keyboard.c: Likewise.
34238 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
34239 `<grub/machine/machine.h>'
34240 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
34241 * util/misc.c: Remove `<grub/machine/machine.h>' and
34242 `<grub/machine/time.h>'.
34244 * Makefile.in (enable_grub_emu): Remove variable.
34245 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
34247 * conf/any-emu.rmk: New file.
34248 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
34249 (grub_emu_init.c): Move from here ...
34250 * conf/any-emu.rmk: ... to here.
34252 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
34253 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
34254 * conf/any-emu.rmk: ... to here.
34256 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34258 * include/grub/parser.h (grub_parser_register): Document need
34259 of `name' parameter.
34260 * normal/main.c (grub_normal_read_line): Simplify prompt string.
34261 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
34264 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34266 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
34268 * include/grub/i18n.h (N_): New macro.
34269 * util/mkisofs/mkisofs.h: Likewise.
34270 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
34272 (usage): Use gettext() to translate help strings when printing them.
34274 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34276 Based on patch from Bean
34277 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34279 * video/efi_fb.c: New file.
34280 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
34281 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34283 * conf/x86_64-efi.rmk: Likewise.
34285 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
34287 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
34288 * util/i386/pc/grub-setup.c: Likewise.
34290 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
34292 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
34294 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
34295 file_get_storage_info to implement grub_guess_root_device.
34297 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34299 * Makefile.in (target): Use make's builtin $(shell) function
34300 instead of calling directly $(SHELL) to create the locale directories,
34301 inside the $(foreach) function.
34303 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34305 * util/grub-mkrescue.in: Print an error and usage if output option
34306 has not been given.
34308 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34310 Patch from Loïc Minier <loic.minier@ubuntu.com>.
34311 * util/grub.d/30_os-prober.in: Cope with Linux entries where
34312 root and /boot are on different devices.
34314 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34316 Fix build for srcdir != objdir.
34318 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
34319 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
34321 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
34322 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
34323 reference for input.
34325 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34327 * util/grub-mkrescue.in: Use source directory direcly (without copiing
34328 or hardlinking it). Remove -J option, Joliet is not compatible with
34329 multiple source directories.
34331 2009-11-21 Carles Pina i Estany <carles@pina.cat>
34332 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34334 * util/grub-mkrescue.in: Recognize `--override-directory' option.
34335 (process_input_dir): New function. Process an arbitrary input
34337 Misc adjustments to support both "override mode" and system-wide mode.
34339 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34341 * configure.ac (UNIFONT_BDF): Rename to ...
34342 (FONT_SOURCE): ... this. Update all users.
34344 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34346 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
34347 to the list of unifont files to look for.
34349 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34351 Patch from Joe Auricchio <jauricchio@gmail.com>
34352 * commands/minicmd.c (grub_mini_cmd_clear): New function.
34353 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
34354 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
34356 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34358 * Makefile.in (install-local): Add a missing backslash.
34360 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34362 * include/grub/x86_64/io.h: New file.
34364 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34366 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
34367 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
34368 Include `"progname.h"'.
34369 (main): Initialize gettext.
34370 * util/i386/pc/grub-setup.c: Gettexttize.
34371 * util/i386/pc/grub-mkimage.c: Likewise.
34373 * Makefile.in (po/*.po): Redefine as ...
34374 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
34376 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
34378 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34380 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
34381 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
34382 (program_name): Remove.
34383 (main): Initialize gettext support.
34384 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
34385 Include `<libintl.h>'.
34388 * util/mkisofs/eltorito.c: Gettexttize.
34389 * util/mkisofs/joliet.c: Likewise.
34390 * util/mkisofs/mkisofs.c: Likewise.
34391 * util/mkisofs/multi.c: Likewise.
34392 * util/mkisofs/rock.c: Likewise.
34393 * util/mkisofs/tree.c: Likewise.
34394 * util/mkisofs/write.c: Likewise.
34396 * po/POTFILES: Update with new files.
34398 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34400 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
34401 * util/mkisofs/iso9660.h: Likewise.
34402 * util/mkisofs/joliet.c: Likewise.
34403 * util/mkisofs/mkisofs.c: Likewise.
34404 * util/mkisofs/mkisofs.h: Likewise.
34405 * util/mkisofs/rock.c: Likewise.
34406 * util/mkisofs/tree.c: Likewise.
34407 * util/mkisofs/write.c: Likewise.
34409 * util/mkisofs/eltorito.c (rcsid): Remove.
34410 * util/mkisofs/hash.c: Likewise.
34411 * util/mkisofs/joliet.c: Likewise.
34412 * util/mkisofs/name.c: Likewise.
34413 * util/mkisofs/rock.c: Likewise.
34414 * util/mkisofs/tree.c: Likewise.
34415 * util/mkisofs/write.c: Likewise.
34417 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34419 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
34420 instead of static allocation.
34421 * util/mkisofs/match.h: Likewise.
34423 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34425 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
34426 and `util/grub.d/10_linux.in'.
34427 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
34428 translatable Shell files.
34430 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34432 * Makefile.in ($(srcdir)/aclocal.m4): New target.
34434 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34436 * INSTALL: Document Automake is needed for bootstrap.
34437 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
34438 * util/grub.d/10_kfreebsd.in (bindir): New variable.
34439 Add gettext initialization.
34440 (kfreebsd_entry): Make menuentry output translatable.
34442 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34444 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
34445 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
34446 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
34447 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
34448 (LINGUAS): Auto-generate using `po/LINGUAS'.
34449 * po/LINGUAS: New file.
34451 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34453 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
34455 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
34456 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
34457 bindtextdomain() calls for gettext initialization.
34459 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34461 * gnulib/progname.c: New file (imported from Gnulib).
34462 * gnulib/progname.h: Likewise.
34463 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34464 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
34465 (usage): Replace `progname' with `program_name'.
34466 (main): Use set_program_name() for program name initialization.
34468 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34470 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
34472 * Makefile.in (CPPFLAGS): ... to here.
34474 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34476 * aclocal.m4: Move from here ...
34477 * acinclude.m4: ... to here.
34478 * autogen.sh: Add call to `aclocal'.
34479 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
34481 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34483 * Makefile.in (CLEANFILES): Add `po/*.mo'.
34484 (LINGUAS): New variable.
34485 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
34486 (install-local): Install MO files.
34487 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
34488 * include/grub/i18n.h: New file.
34489 * po/POTFILES: New file.
34490 * po/ca.po: New file.
34491 * util/grub.d/10_linux.in (bindir): New variable.
34492 Add gettext initialization.
34493 (linux_entry): Make menuentry output translatable.
34494 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
34495 (usage): Make --help output translatable.
34496 (main): Initialize gettext.
34498 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34500 * import_gcry.py: New file (written by Vladimir with minor
34502 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
34504 * INSTALL: Document that Python is required for bootstrap.
34506 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34508 Import ciphers from libgcrypt 1.4.4.
34510 * lib/libgcrypt/cipher/ChangeLog
34511 * lib/libgcrypt/cipher/ac.c
34512 * lib/libgcrypt/cipher/arcfour.c
34513 * lib/libgcrypt/cipher/bithelp.h
34514 * lib/libgcrypt/cipher/blowfish.c
34515 * lib/libgcrypt/cipher/camellia-glue.c
34516 * lib/libgcrypt/cipher/camellia.c
34517 * lib/libgcrypt/cipher/camellia.h
34518 * lib/libgcrypt/cipher/cast5.c
34519 * lib/libgcrypt/cipher/cipher.c
34520 * lib/libgcrypt/cipher/crc.c
34521 * lib/libgcrypt/cipher/des.c
34522 * lib/libgcrypt/cipher/dsa.c
34523 * lib/libgcrypt/cipher/ecc.c
34524 * lib/libgcrypt/cipher/elgamal.c
34525 * lib/libgcrypt/cipher/hash-common.c
34526 * lib/libgcrypt/cipher/hash-common.h
34527 * lib/libgcrypt/cipher/hmac-tests.c
34528 * lib/libgcrypt/cipher/md.c
34529 * lib/libgcrypt/cipher/md4.c
34530 * lib/libgcrypt/cipher/md5.c
34531 * lib/libgcrypt/cipher/primegen.c
34532 * lib/libgcrypt/cipher/pubkey.c
34533 * lib/libgcrypt/cipher/rfc2268.c
34534 * lib/libgcrypt/cipher/rijndael-tables.h
34535 * lib/libgcrypt/cipher/rijndael.c
34536 * lib/libgcrypt/cipher/rmd.h
34537 * lib/libgcrypt/cipher/rmd160.c
34538 * lib/libgcrypt/cipher/rsa.c
34539 * lib/libgcrypt/cipher/seed.c
34540 * lib/libgcrypt/cipher/serpent.c
34541 * lib/libgcrypt/cipher/sha1.c
34542 * lib/libgcrypt/cipher/sha256.c
34543 * lib/libgcrypt/cipher/sha512.c
34544 * lib/libgcrypt/cipher/tiger.c
34545 * lib/libgcrypt/cipher/twofish.c
34546 * lib/libgcrypt/cipher/whirlpool.c
34548 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34550 Fix build for systems without error().
34552 * gnulib/error.c: New file (imported from Gnulib).
34553 * gnulib/error.h: Likewise.
34554 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
34555 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
34556 (this variable is now used by error()).
34558 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34560 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
34561 instead of relying that char is signed.
34563 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
34565 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
34566 blocksize different from specified.
34567 (grub_pxefs_read): Likewise.
34569 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34571 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
34573 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
34574 (grub_ata_readwrite): Likewise. Update 2 format strings.
34575 (grub_atapi_read): Likewise.
34577 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
34578 * conf/i386.rmk (pkglib_MODULES): ... to here ...
34579 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
34580 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
34581 (ata_mod_LDFLAGS): Move from here ...
34582 * conf/i386.rmk: ... to here ...
34583 * conf/x86_64-efi.rmk: ... and here.
34584 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
34585 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
34587 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34589 Relicense multiboot.h, with RMS' blessing.
34591 * include/multiboot.h: Change to X11 license.
34593 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
34595 Support --version in grub-mkisofs.
34597 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
34598 (OPTION_VERSION): New macro.
34599 (ld_options): Recognize --version.
34600 (usage): Move `program_name' from here ...
34601 (program_name): ... to here. Add `static' qualifier.
34602 (main): Recognize `OPTION_VERSION'.
34604 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
34606 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
34607 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
34609 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34611 Fix help2man generation for mkisofs.
34613 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
34614 (usage): Send output to stdout (rather than stderr).
34616 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34618 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
34619 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34620 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
34621 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34622 (bin_SCRIPTS): Add `grub-mkfloppy'.
34623 (grub_mkfloppy_SOURCES): New variable.
34625 * util/grub-mkrescue.in: New file.
34626 * util/i386/pc/grub-mkfloppy.in: New file.
34628 * util/i386/coreboot/grub-mkrescue.in: Remove.
34629 * util/i386/pc/grub-mkrescue.in: Remove.
34631 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34633 * include/grub/multiboot.h (struct grub_multiboot_header): Move
34635 * include/multiboot.h (struct multiboot_header): ... to here. Update
34637 * include/grub/multiboot.h (struct grub_multiboot_info): Move
34639 * include/multiboot.h (struct multiboot_info): ... to here. Update
34641 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
34643 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
34645 * include/grub/multiboot.h (struct grub_mod_list): Move
34647 * include/multiboot.h (struct multiboot_mod_list): ... to here.
34650 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34652 * include/multiboot2.h (multiboot_word): Rename from this ...
34653 (multiboot2_word): ... to this. Update all users.
34654 (multiboot_header): Rename from this ...
34655 (multiboot2_header): ... to this. Update all users.
34656 (multiboot_tag_header): Rename from this ...
34657 (multiboot2_tag_header): ... to this. Update all users.
34658 (multiboot_tag_start): Rename from this ...
34659 (multiboot2_tag_start): ... to this. Update all users.
34660 (multiboot_tag_name): Rename from this ...
34661 (multiboot2_tag_name): ... to this. Update all users.
34662 (multiboot_tag_module): Rename from this ...
34663 (multiboot2_tag_module): ... to this. Update all users.
34664 (multiboot_tag_memory): Rename from this ...
34665 (multiboot2_tag_memory): ... to this. Update all users.
34666 (multiboot_tag_unused): Rename from this ...
34667 (multiboot2_tag_unused): ... to this. Update all users.
34668 (multiboot_tag_end): Rename from this ...
34669 (multiboot2_tag_end): ... to this. Update all users.
34671 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34673 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
34674 this platform we should support Multiboot1 first.
34676 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
34677 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
34678 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
34680 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34682 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
34683 of write calls (converting them to fwrite() if they aren't already).
34684 (get_torito_desc): Likewise.
34685 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
34687 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34689 * util/i386/pc/grub-install.in: Move from here ...
34690 * util/grub-install.in: ... to here. Update all users.
34692 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
34694 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
34696 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34698 Support for El Torito without floppy emulation.
34700 * util/mkisofs/eltorito.c: Include `<errno.h>'.
34701 (init_boot_catalog): Improve error handling.
34702 (get_torito_desc): Don't use floppy emulation unless requested by
34703 user. Patch boot information table when requested via
34704 `-boot-info-table'.
34705 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
34706 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
34707 (use_boot_info_table): New variables.
34708 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
34709 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
34710 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
34711 `--eltorito-emul-floppy'.
34712 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
34713 and `OPTION_ELTORITO_EMUL_FLOPPY'.
34714 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
34715 (use_boot_info_table, get_731): New prototypes.
34716 * util/mkisofs/write.c (get_731): New function.
34718 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
34720 Fix the generation of the man page.
34722 * util/pc/i386/grub-install.in: Source
34723 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
34725 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34727 Large file support for grub-mkisofs.
34729 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
34730 * util/mkisofs/mkisofs.c (next_extent, last_extent)
34731 (session_start): Upgrade type to `uint64_t'. Update all users.
34732 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
34733 (struct directory_entry): Upgrade type of `starting_block' and
34734 `size' to `uint64_t'. Update all users.
34735 (struct deferred): Remove unused structure.
34736 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
34738 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
34739 file is larger than `UINT32_MAX'.
34740 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
34741 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
34743 (struct deferred_write): Upgrade type of `extent' and `size' to
34744 `uint64_t'. Update all users.
34745 (last_extent_written): Upgrade type to `uint64_t'. Update all
34747 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
34748 Update all users. Upgrade type of `remain' to `int64_t' and
34749 `use' to `size_t'. Use error() to handle fread() errors.
34750 (write_files): Rely on write_one_file() rather than calling
34751 xfwrite() directly.
34753 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
34755 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
34757 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34759 * util/mkisofs/fnmatch.c: Remove.
34760 * util/mkisofs/getopt1.c: Likewise.
34761 * util/mkisofs/getopt.c: Likewise.
34762 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
34763 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
34764 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
34765 `gnulib/getopt1.c' and `gnulib/getopt.c'.
34766 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
34768 * configure.ac: Detect `mingw32msvc' host_os.
34769 Check for lstat(), getuid() and getgid().
34771 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34772 instances of `u_char' with `uint8_t'.
34774 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34775 [!HAVE_GETUID] (getuid): New function (stub).
34776 [!HAVE_GETGID] (getgid): Likewise.
34777 [!HAVE_LSTAT] (lstat): Likewise.
34778 [!S_IROTH] (S_IROTH): New macro (dummy).
34779 [!S_IRGRP] (S_IRGRP): Likewise.
34781 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34783 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34784 conditional expression).
34786 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34788 Import from Gnulib.
34790 * gnulib/fnmatch.c: New file.
34791 * gnulib/fnmatch.h: Likewise.
34792 * gnulib/fnmatch_loop.c: Likewise.
34793 * gnulib/getopt.c: Likewise.
34794 * gnulib/getopt.h: Likewise.
34795 * gnulib/getopt1.c: Likewise.
34796 * gnulib/getopt_int.h: Likewise.
34797 * gnulib/gettext.h: Likewise.
34799 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34801 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34802 * normal/handler.c (read_handler_list): Likewise.
34804 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34808 * kern/command.c (grub_register_command_prio): Use
34809 grub_zalloc() instead of explicitly zeroing data.
34810 * kern/list.c: Include `<grub/mm.h>'.
34811 (grub_named_list_find): Replace `0' with `NULL'.
34812 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34813 (fs_module_list): Change type to `grub_named_list_t'. Update all
34815 * normal/dyncmd.c (read_command_list): Add space between function
34816 call and parenthesis.
34817 * normal/handler.c (read_handler_list): Likewise.
34819 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34821 * normal/auth.c (punishment_delay): Moved from here ...
34822 (grub_auth_strcmp): ... to here (inside function).
34824 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34826 * include/grub/list.h (struct grub_named_list): Remove `const'
34827 qualifier from `name'.
34828 (struct grub_prio_list): Likewise.
34830 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34832 * normal/auth.c: Include `<grub/time.h>'.
34833 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34835 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34837 * normal/auth.c (punishment_delay): New variable.
34838 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34839 (grub_auth_check_authentication): Punish failed login attempts with
34840 an incremental (2^N) delay.
34842 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34844 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34845 path with $(srcdir).
34847 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34849 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
34851 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34853 * util/i386/coreboot/grub-mkrescue.in: New file.
34854 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
34857 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
34858 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
34859 * configure.ac: Add header and function checks to satisfy grub-mkisofs
34861 * util/mkisofs/defaults.h: New file.
34862 * util/mkisofs/eltorito.c: Likewise.
34863 * util/mkisofs/exclude.h: Likewise.
34864 * util/mkisofs/fnmatch.c: Likewise.
34865 * util/mkisofs/getopt.c: Likewise.
34866 * util/mkisofs/getopt1.c: Likewise.
34867 * util/mkisofs/hash.c: Likewise.
34868 * util/mkisofs/include/fctldefs.h: Likewise.
34869 * util/mkisofs/include/mconfig.h: Likewise.
34870 * util/mkisofs/include/prototyp.h: Likewise.
34871 * util/mkisofs/include/statdefs.h: Likewise.
34872 * util/mkisofs/iso9660.h: Likewise.
34873 * util/mkisofs/joliet.c: Likewise.
34874 * util/mkisofs/match.c: Likewise.
34875 * util/mkisofs/match.h: Likewise.
34876 * util/mkisofs/mkisofs.c: Likewise.
34877 * util/mkisofs/mkisofs.h: Likewise.
34878 * util/mkisofs/multi.c: Likewise.
34879 * util/mkisofs/name.c: Likewise.
34880 * util/mkisofs/rock.c: Likewise.
34881 * util/mkisofs/tree.c: Likewise.
34882 * util/mkisofs/write.c: Likewise.
34884 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34886 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
34889 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34891 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
34892 `grub-mkimage' (and use $0 when possible).
34894 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34896 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
34897 error message for excessively large memory map.
34899 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34901 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
34904 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34906 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
34907 message for coreboot users.
34909 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
34911 Fix build with GNU gold.
34913 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
34914 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
34915 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
34917 * aclocal.m4: Likewise.
34919 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
34921 * configure.ac (AC_PREREQ): Bump to 2.59d.
34922 * INSTALL: Make it more clear when Autoconf and Ruby are
34923 needed and when to run `./autogen.sh'.
34925 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34927 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
34930 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34932 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
34934 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34936 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
34937 giving it to GNU Mach.
34939 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34941 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
34942 GNU partition number to get internal GRUB partition number.
34944 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34946 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
34947 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
34949 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
34951 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
34952 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
34955 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
34957 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
34959 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34963 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
34964 `-isystem=$(srcdir)/include'.
34966 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34968 * util/i386/pc/grub-install.in: Remove hint that device.map should be
34969 checked (grub-install doesn't currently rely on it).
34971 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
34975 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
34976 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34977 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
34978 * conf/i386-ieee1275.rmk: Likewise.
34979 * conf/i386-pc.rmk: Likewise.
34980 * conf/powerpc-ieee1275.rmk: Likewise.
34981 * conf/sparc64-ieee1275.rmk: Likewise.
34982 * conf/x86_64-efi.rmk: Likewise.
34984 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34986 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
34988 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34990 * include/grub/misc.h: Stop checking for APPLE_CC.
34992 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34994 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
34995 doesn't cause an infinite call loop.
34997 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
34999 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
35002 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35004 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
35006 * Makefile.in: Likewise.
35008 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35010 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
35012 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35014 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
35016 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35018 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
35020 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35022 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
35024 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
35026 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35028 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
35029 in $(MAKEINFO) invocation. This makes it clear in output that
35030 errors are being ignored.
35032 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35034 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
35036 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
35037 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
35038 * conf/i386-ieee1275.rmk: Likewise.
35039 * conf/i386-pc.rmk: Likewise.
35040 * conf/powerpc-ieee1275.rmk: Likewise.
35041 * conf/sparc64-ieee1275.rmk: Likewise.
35042 * conf/x86_64-efi.rmk: Likewise.
35044 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
35046 * util/grub-editenv.c (main): If only a command is given, use
35047 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
35048 (usage): FILENAME is now optional and has a default.
35050 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
35052 Improve grub-mkconfig performance when there are several menu
35053 entries on a single filesystem.
35055 * util/grub.d/10_linux.in (linux_entry): Cache the output of
35056 prepare_grub_to_access_device.
35057 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
35058 * util/grub.d/30_os-prober.in: Likewise.
35060 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35062 * util/grub.d/10_freebsd.in: Remove.
35063 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
35064 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
35066 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35068 * docs/grub.cfg: Fix example usage of *BSD loaders.
35070 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35072 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
35073 grub_util_error() call.
35075 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35077 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
35078 `reserved_first_sector' member.
35079 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
35080 `reserved_first_sector' to 1.
35081 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
35082 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
35083 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
35084 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
35085 filesystems which begin at first sector.
35086 (options): New option --skip-fs-probe.
35087 (main): Handle --skip-fs-probe and pass it to setup().
35089 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35091 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
35092 (memset): Fix function prototype.
35094 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35095 2009-10-25 Vasily Averin <vvs@parallels.com>
35097 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
35098 `dirent.direntlen == 0'.
35100 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35102 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
35104 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
35106 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35108 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
35109 `__trampoline_setup' and `__ucmpdi2'.
35110 * include/grub/powerpc/libgcc.h: Only export symbols for functions
35111 that libgcc provides.
35113 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35115 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
35116 * include/grub/sparc64/libgcc.h (memset): Likewise.
35117 * include/grub/misc.h (memset, memcmp): New function prototypes.
35119 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35121 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
35123 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
35125 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35127 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
35128 * docs/grub.cfg: Compensate for recent change in multiboot
35129 loader (since 2009-08-14 it won't pass filename to payload).
35130 * util/grub.d/10_hurd.in: Likewise.
35132 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
35134 * config.guess: Update to latest version from config git
35136 * config.sub: Likewise.
35138 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
35140 Fix build on sparc64.
35142 * configure.ac: Perform checks for libgcc symbols before
35143 adding `-nostdlib' to LDFLAGS.
35145 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35147 Let user specify OpenBSD root device.
35149 * loader/i386/bsd.c (openbsd_root): New variable.
35150 (openbsd_opts): New option 'root'.
35151 (OPENBSD_ROOT_ARG): New macro.
35152 (grub_openbsd_boot): Use 'openbsd_root'.
35153 (grub_cmd_openbsd): Fill 'openbsd_root'.
35155 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35157 * NEWS: Misc adjustments.
35159 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35161 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
35163 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35165 * configure.ac: Bump version to 1.97.
35167 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
35169 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
35170 -mno-3dnow on x86 architectures. Some toolchains enable these
35171 features by default, but they rely on registers that aren't enabled
35172 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
35174 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
35176 Make entry text a bit more readable.
35178 * util/grub.d/10_linux.in: Add `with' before `Linux'.
35180 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35182 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
35184 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35186 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
35189 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35191 * configure.ac: Add missing dollar.
35193 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35195 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
35197 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
35198 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
35200 * include/grub/sparc64/libgcc.h: Likewise. Use
35201 preprocessor conditionals.
35203 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35205 * conf/common.rmk (grub-dumpbios): Remove rule.
35206 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
35207 * util/grub-dumpbios.in: Remove file.
35209 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35211 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
35212 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
35214 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
35215 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
35218 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
35219 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
35220 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
35221 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
35224 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
35226 * term/tparm.c: Switch to GPLv3.
35228 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35230 * include/grub/i386/cpuid.h: Add header protection.
35232 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35234 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
35236 * include/grub/i386/cpuid.h: New file.
35237 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
35238 (has_longmode): Rename to ...
35239 (grub_cpuid_has_longmode): ... this. Update all users. Remove
35240 `static' attribute.
35241 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
35242 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
35243 on a CPU that doesn't implement AMD64 instruction set.
35245 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35247 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
35248 that version.texi is rebuilt on version number changes.
35250 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35252 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
35255 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35257 * util/i386/pc/grub-install.in: Source
35258 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
35259 that the --grub-probe option will work.
35260 * util/sparc64/ieee1275/grub-install.in: Likewise.
35262 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
35264 * configure.ac: Bump version to 1.97~beta4.
35266 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
35268 Resync grub-mkdevicemap in x86_64-efi.
35270 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
35271 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
35272 `util/devicemap.c'.
35274 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
35276 * util/grub-editenv.c (create_envblk_file): Write new block with a
35277 .new suffix and then rename it into place, to ensure atomic
35280 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
35282 Do not automatically install headers.
35284 * Makefile.in (include_DATA): Remove. Update all users.
35286 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
35288 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
35289 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
35291 * util/osdetect.lua: Remove.
35292 * script/lua/lauxlib.c: Likewise.
35293 * script/lua/ldebug.c: Likewise.
35294 * script/lua/grub_main.c: Likewise.
35295 * script/lua/lauxlib.h: Likewise.
35296 * script/lua/ldebug.h: Likewise.
35297 * script/lua/ltablib.c: Likewise.
35298 * script/lua/liolib.c: Likewise.
35299 * script/lua/lstrlib.c: Likewise.
35300 * script/lua/lualib.h: Likewise.
35301 * script/lua/ldo.c: Likewise.
35302 * script/lua/ldump.c: Likewise.
35303 * script/lua/ldo.h: Likewise.
35304 * script/lua/loslib.c: Likewise.
35305 * script/lua/lundump.c: Likewise.
35306 * script/lua/grub_lib.c: Likewise.
35307 * script/lua/ldblib.c: Likewise.
35308 * script/lua/lundump.h: Likewise.
35309 * script/lua/lmem.c: Likewise.
35310 * script/lua/grub_lib.h: Likewise.
35311 * script/lua/lmathlib.c: Likewise.
35312 * script/lua/lstate.c: Likewise.
35313 * script/lua/ltm.c: Likewise.
35314 * script/lua/lvm.c: Likewise.
35315 * script/lua/lmem.h: Likewise.
35316 * script/lua/lstate.h: Likewise.
35317 * script/lua/ltm.h: Likewise.
35318 * script/lua/ltable.c: Likewise.
35319 * script/lua/lvm.h: Likewise.
35320 * script/lua/llex.c: Likewise.
35321 * script/lua/lgc.c: Likewise.
35322 * script/lua/grub_lua.h: Likewise.
35323 * script/lua/loadlib.c: Likewise.
35324 * script/lua/lfunc.c: Likewise.
35325 * script/lua/lopcodes.c: Likewise.
35326 * script/lua/lparser.c: Likewise.
35327 * script/lua/ltable.h: Likewise.
35328 * script/lua/llex.h: Likewise.
35329 * script/lua/lgc.h: Likewise.
35330 * script/lua/lfunc.h: Likewise.
35331 * script/lua/lbaselib.c: Likewise.
35332 * script/lua/lopcodes.h: Likewise.
35333 * script/lua/lparser.h: Likewise.
35334 * script/lua/lzio.c: Likewise.
35335 * script/lua/linit.c: Likewise.
35336 * script/lua/lobject.c: Likewise.
35337 * script/lua/llimits.h: Likewise.
35338 * script/lua/lstring.c: Likewise.
35339 * script/lua/lzio.h: Likewise.
35340 * script/lua/lapi.c: Likewise.
35341 * script/lua/lcode.c: Likewise.
35342 * script/lua/lua.h: Likewise.
35343 * script/lua/lobject.h: Likewise.
35344 * script/lua/lstring.h: Likewise.
35345 * script/lua/lapi.h: Likewise.
35346 * script/lua/lcode.h: Likewise.
35347 * script/lua/luaconf.h: Likewise.
35349 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
35351 * docs/grub.texi (Command-line and menu entry commands): Document
35352 date and echo commands.
35354 2009-09-24 Pavel Roskin <proski@gnu.org>
35356 * include/grub/kernel.h (struct grub_module_header): Remove
35357 `grub_module_header_types'. Make `type' unsigned. Make `size'
35358 32-bit on all platforms.
35359 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
35360 8-bit field. Use grub_host_to_target32() for `size'.
35361 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
35362 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
35363 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
35365 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35367 Fix "lost keypress" bug in at_keyboard.
35369 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
35370 Checks for readyness of input buffer (without flushing it).
35371 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
35372 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
35374 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35376 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
35377 size check within GRUB_MACHINE_PCBIOS section.
35379 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35381 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
35383 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
35384 KEYBOARD_ISREADY check.
35385 (grub_at_keyboard_checkkey): Rename to ...
35386 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
35387 Remove gratuitous cast.
35389 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
35391 * configure.ac: Call AC_PROG_MKDIR_P.
35392 * Makefile.in (docs/stamp-vti): Create docs directory. Create
35393 version.texi in $(builddir) rather than $(srcdir).
35394 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
35395 to makeinfo's @include search path.
35397 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35399 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
35401 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35403 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
35406 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
35408 Build info documentation. Some code borrowed from Automake.
35410 * configure.ac: Check for makeinfo.
35411 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
35412 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
35414 (MOSTLYCLEANFILES): Add vti.tmp.
35415 (docs/version.texi, docs/stamp-vti): Update automatically.
35416 (docs/grub.info): Build info documentation. Use --force and ignore
35418 (all-local): Add $(INFOS).
35419 (install-local): Install info files.
35420 (uninstall): Uninstall info files.
35421 * docs/version.texi: Remove from revision control. This file is
35422 automatically generated on build now.
35423 * gendistlist.sh: Add `*.info'.
35425 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35427 * kern/term.c: Fix indentation.
35429 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35431 * util/hostdisk.c: Fix a comment.
35433 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
35435 Fix regression introduced in r2539.
35437 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
35440 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
35442 * util/grub.d/30_os-prober.in: Don't throw away stderr from
35443 os-prober. Under normal operation, it does not print anything to
35444 stderr; if it does, we need to debug it, and throwing away stderr
35445 makes that excessively difficult.
35447 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
35449 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
35451 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35453 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
35454 AC_LANG_PROGRAM from autoconf.
35455 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
35456 prototypes (fixes warning).
35458 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
35459 `--disable-werror' was used.
35461 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35463 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
35464 uninitialized `lastaddr'.
35466 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
35468 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
35470 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35472 * commands/test.c (get_fileinfo): Return immediately if
35473 grub_fs_probe fails.
35475 2009-09-14 José Martínez <xosemp@gmail.com>
35477 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
35479 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35481 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
35484 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
35486 * configure.ac: Remove --enable-grub-pe2elf. Only build
35487 grub-pe2elf when needed by the build system itself.
35488 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
35490 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35492 * configure.ac: Bump version to 1.97~beta3.
35493 * docs/version.texi: Likewise.
35495 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35497 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
35498 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
35500 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
35501 (grub_linux_setup_video): ... to here (with some adjustments).
35503 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35505 Fix memory corruption issue (spotted by Colin Watson).
35507 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
35508 causing returned size to be stored in an incorrect memory location.
35509 Fix use of uninitialized value when storing the returned size.
35511 2009-09-12 Yves Blusseau <blusseau@zetam.org>
35513 Change clean rules to properly remove files
35515 * genmk.rb: add new clean rules
35516 * Makefile.in (clean): add the new targets
35517 (mostlyclean): likewise
35519 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35521 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
35523 * fs/ntfs.c (init_file): Understand 64-bit sizes for
35524 non-resident files.
35526 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35528 * configure.ac: Don't look for help2man when cross-compiling. Fixes
35529 part of bug #27349.
35531 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35533 * util/grub-mkconfig.in: Make the created config mode 400 and
35534 print a warning if it fails.
35536 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
35538 * util/grub.d/40_custom.in: Ask user to type custom entries below
35539 comment, rather than below 'exec tail' line.
35541 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35543 * util/grub.d/40_custom.in: Make sure that the explanatory text is
35544 visible in grub.cfg.
35546 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35548 * util/grub.d/40_custom.in: Make it a little clearer how to use this
35551 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35553 * docs/grub.cfg: Add an example menu entry for memtest86+.
35555 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
35557 * config.guess: Update to latest version from config git.
35558 * config.sub: Likewise.
35560 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
35562 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
35563 unknown-command case. Fixes bug #27320.
35565 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
35567 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
35568 `help' if the command exists.
35570 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
35572 * INSTALL: Require GCC 4.1.3 or later.
35574 2009-09-06 Yves Blusseau <blusseau@zetam.org>
35576 * Makefile.in (RMKFILES): add i386-qemu.rmk
35577 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
35578 $(srcdir)/stamp-h.in
35580 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
35582 * util/grub-probe.c (probe): Comment out buggy codepath, which
35583 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
35584 should be re-enabled after 1.97.
35586 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
35588 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
35591 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
35593 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
35594 unnecessary calls to grub_error.
35596 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
35598 * NEWS: Mention `keystatus' and Unicode fonts.
35600 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
35602 * configure.ac: Bump version to 1.97~beta2.
35603 * docs/version.texi: Likewise.
35605 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35607 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
35608 containing unwind information in some cases where it previously did
35609 not. Use -fno-dwarf2-cfi-asm if available to restore the old
35610 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
35613 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
35615 Embedding loadenv module into grub-emu
35617 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
35619 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
35620 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
35621 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
35622 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
35623 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
35624 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
35626 2009-09-03 Magnus Granberg <zorry@ume.nu>
35628 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
35629 include -fPIE in the default specs.
35630 * configure.ac: Check if pie_possible is yes and add -fno-PIE
35633 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
35635 * INSTALL: Note that GNU Bison 2.3 or later is required.
35637 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35639 * kern/i386/pc/startup.S: Fix typo.
35641 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
35643 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
35646 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35648 * docs/grub.texi (Naming convention): Describe one-based partition
35650 (Device syntax): Likewise.
35651 (File name syntax): Likewise.
35652 (Block list syntax): Likewise.
35653 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
35655 (File name syntax): Likewise.
35656 (Command-line and menu entry commands): Document acpi, blocklist,
35657 crc, export, insmod, keystatus, ls, set, and unset commands.
35659 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35661 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
35662 to avoid implying that only one of --shift, --ctrl, or --alt may be
35665 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35667 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
35668 rather than comparing against S_IFREG, which will almost never work.
35670 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
35672 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
35673 (write_blocklists): Likewise.
35675 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
35677 * script/lua/grub_lua.h (fputs): Supply a format string as the first
35678 argument to grub_printf.
35680 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
35682 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
35685 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35687 * kern/file.c (grub_file_read): Spelling fix
35689 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35691 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
35692 loading of headers in some cases.
35694 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
35696 * configure.ac: Bump version to 1.97~beta1.
35697 * docs/version.texi: Likewise.
35699 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
35701 * include/grub/i386/xnu.h: Add license header.
35702 include grub/err.h explicitly.
35704 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35706 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
35707 to `ufs' in the vfs.root.mountfrom kernel parameter.
35709 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35711 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
35713 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
35714 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
35716 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
35717 `ARRAY_SIZE' macro.
35719 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35721 * kern/file.c (grub_file_read): Check offset.
35722 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
35723 * fs/jfs.c (grub_jfs_read_file): Likewise.
35724 * fs/ntfs.c (grub_ntfs_read): Likewise.
35725 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
35726 * fs/minix.c (grub_minix_read_file): Correct offset check.
35727 * fs/ufs.c (grub_ufs_read_file): Likewise.
35729 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35731 * term/i386/pc/console.c (bios_data_area): Cast
35732 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
35734 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35736 1-bit optimised blitters.
35738 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
35740 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35741 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35742 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35743 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35744 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35745 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35746 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
35748 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35749 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35750 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35751 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35752 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35753 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35754 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
35756 * video/video.c (grub_video_get_blit_format): Return
35757 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
35759 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35761 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
35762 the first argument to grub_printf.
35764 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35765 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
35767 Add `getkeystatus' terminal method. Add a new `keystatus' command
35770 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
35771 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35772 modifier key bitmasks.
35773 (struct grub_term_input): Add `getkeystatus' member.
35774 (grub_getkeystatus): Add prototype.
35775 * kern/term.c (grub_getkeystatus): New function.
35777 * include/grub/i386/pc/memory.h
35778 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35779 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35781 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35782 (grub_console_term_input): Set `getkeystatus' member.
35783 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35785 (grub_usb_keyboard_getreport): Likewise.
35786 (grub_usb_keyboard_checkkey): Likewise.
35787 (grub_usb_keyboard_getkeystatus): New function.
35788 (grub_usb_keyboard_term): Set `getkeystatus' member.
35790 * commands/keystatus.c: New file.
35791 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35792 (keystatus_mod_SOURCES): New variable.
35793 (keystatus_mod_CFLAGS): Likewise.
35794 (keystatus_mod_LDFLAGS): Likewise.
35795 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35796 commands/keystatus.c.
35797 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35798 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35799 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35800 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35801 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35802 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35804 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35806 Split befs.mod and afs.mod into *_be.mod and *.mod
35808 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35809 (grub_fstest_SOURCES): Likewise.
35810 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35811 (afs_be_mod_SOURCES): New variable.
35812 (afs_be_mod_CFLAGS): Likewise.
35813 (afs_be_mod_LDFLAGS): Likewise.
35814 (befs_be_mod_SOURCES): Likewise.
35815 (befs_be_mod_CFLAGS): Likewise.
35816 (befs_be_mod_LDFLAGS): Likewise.
35817 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35818 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35819 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35820 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35821 (grub_emu_SOURCES): Likewise.
35822 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35823 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35824 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35825 * fs/afs_be.c: New file.
35826 * fs/befs_be.c: New file.
35827 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35828 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35829 (U16): Replaced with ...
35830 (grub_afs_to_cpu16): ...this. All users updated.
35831 (U32): Replaced with ...
35832 (grub_afs_to_cpu32): ...this. All users updated.
35833 (U64): Replaced with ...
35834 (grub_afs_to_cpu64): ...this. All users updated.
35835 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35836 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
35837 (grub_afs_validate_sblock): Check only one endianness.
35838 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35839 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35840 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35841 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35842 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35843 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35844 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35845 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35847 2009-08-26 Bean <bean123ch@gmail.com>
35849 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
35851 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
35852 (grub_xfs_inode_block): Change return type to grub_uint64_t.
35853 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
35855 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35857 NetBSD memory map support.
35859 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
35860 (grub_netbsd_btinfo_mmap_header): New structure.
35861 (grub_netbsd_btinfo_mmap_entry): Likewise.
35862 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
35864 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35866 Enable bsd.mod on coreboot.
35868 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
35869 (bsd_mod_SOURCES): New variable.
35870 (bsd_mod_CFLAGS): Likewise.
35871 (bsd_mod_LDFLAGS): Likewise.
35872 (bsd_mod_ASFLAGS): Likewise.
35873 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
35874 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
35876 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35878 Cleanup NetBSD root support.
35880 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
35881 grub_bsd_get_device.
35884 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
35886 * util/grub.d/00_header.in: Move check for the video backend of
35887 gfxterm from here ...
35888 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
35889 a suitable video backend.
35891 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35893 Fix breakage in grub-setup.
35895 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
35896 "msdos_partition_map".
35898 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35900 Fix breakage in normal/auth.c.
35902 * normal/auth.c (grub_iswordseparator): New function.
35904 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35906 Authentication support.
35908 * commands/password.c: New file.
35909 * conf/common.rmk (pkglib_MODULES): Add password.mod.
35910 (password_mod_SOURCES): New variable.
35911 (password_mod_CFLAGS): Likewise.
35912 (password_mod_LDFLAGS): Likewise.
35913 (normal_mod_SOURCES): Add normal/auth.c.
35914 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
35916 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35917 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35918 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35919 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35920 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35921 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35922 * include/grub/auth.h: New file.
35923 * include/grub/err.h (grub_err_t): New enum value
35924 GRUB_ERR_ACCESS_DENIED.
35925 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
35927 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
35928 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
35930 * normal/auth.c: New file.
35931 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
35932 (grub_cmdline_run): Don't allow to go to command line without
35934 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
35935 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
35936 menuentry without superuser rights.
35937 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
35938 user isn't a superuser.
35940 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35942 Save space by inlining misc.c functions.
35944 * kern/misc.c (grub_iswordseparator): Made static.
35945 * kern/misc.c (grub_strcat): Moved from here ...
35946 * include/grub/misc.h (grub_strcat): ... here. Inlined.
35947 * kern/misc.c (grub_strncat): Moved from here ...
35948 * include/grub/misc.h (grub_strncat): ... here. Inlined.
35949 * kern/misc.c (grub_strcasecmp): Moved from here ...
35950 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
35951 * kern/misc.c (grub_strncasecmp): Moved from here ...
35952 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
35953 * kern/misc.c (grub_isalpha): Moved from here ...
35954 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
35955 * kern/misc.c (grub_isdigit): Moved from here ...
35956 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
35957 * kern/misc.c (grub_isgraph): Moved from here ...
35958 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
35959 * kern/misc.c (grub_tolower): Moved from here ...
35960 * include/grub/misc.h (grub_tolower): ... here. Inlined.
35962 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35964 * script/sh/function.c (grub_script_function_find): Cut error message
35965 not to flood terminal.
35966 * script/sh/lexer.c (grub_script_yylex): Remove command line length
35968 * script/sh/script.c (grub_script_arg_add): Duplicate string.
35970 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
35972 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
35973 `report' grub_uint8_t *.
35974 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
35975 Use a 50-millisecond timeout rather than just repeating
35976 grub_usb_keyboard_getreport 50 times.
35977 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
35979 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35981 Rename *_partition_map to part_*
35983 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
35984 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
35985 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
35986 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
35988 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
35990 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
35991 * util/grub-probe.c (probe_partmap): Don't transform partition name
35992 to get module name.
35994 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35996 Fix OpenBSD and NetBSD support.
35998 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
35999 memory address conflict.
36000 (OPENBSD_MMAP_ACPI): New definition.
36001 (OPENBSD_MMAP_NVS): Likewise.
36002 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
36003 and OPENBSD_MMAP_NVS.
36004 Add memory map terminator
36005 Explicit cast when calling grub_unix_real_boot.
36006 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
36008 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36010 Let user specify NetBSD root device.
36012 * loader/i386/bsd.c (netbsd_root): New variable.
36013 (netbsd_opts): New option 'root'.
36014 (NETBSD_ROOT_ARG): New macro.
36015 (grub_netbsd_boot): Use 'netbsd_root'.
36016 (grub_bsd_unload): Free 'netbsd_root'.
36017 (grub_cmd_netbsd): Fill 'netbsd_root'.
36019 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36021 Support for 64-bit NetBSD.
36023 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
36024 point when booting non-FreeBSD.
36026 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36028 Support --no-smp and --no-acpi for NetBSD.
36030 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
36031 (NETBSD_AB_NOACPI): Likewise.
36032 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
36033 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
36035 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36037 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
36039 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
36040 errors. Call grub_error when needed.
36042 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36044 * commands/search.c (search_fs): Try searching without autoload first.
36045 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
36046 filesystem module explicitly for faster booting.
36048 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
36050 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
36052 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
36054 * util/grub.d/30_os-prober.in: Disable os-prober if
36055 `GRUB_DISABLE_OS_PROBER' was set to true.
36057 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
36059 * partmap/pc.c: Rename to ...
36060 * partmap/msdos.c: ... this. Update all users.
36061 (grub_pc_partition_map): Rename to ...
36062 (grub_msdos_partition_map): ... this. Update all users.
36064 * parttool/pcpart.c: Rename to ...
36065 * parttool/msdospart.c: ... this. Update all users.
36067 * include/grub/pc_partition.h: Rename to ...
36068 * include/grub/msdos_partition.h: ... this. Update all users.
36069 (grub_pc_partition_bsd_entry): Rename to ...
36070 (grub_msdos_partition_bsd_entry): ... this. Update all users.
36071 (grub_pc_partition_disk_label): Rename to ...
36072 (grub_msdos_partition_disk_label): ... this. Update all users.
36073 (grub_pc_partition_entry): Rename to ...
36074 (grub_msdos_partition_entry): ... this. Update all users.
36075 (grub_pc_partition_mbr): Rename to ...
36076 (grub_msdos_partition_mbr): ... this. Update all users.
36077 (grub_pc_partition): Rename to ...
36078 (grub_msdos_partition): ... this. Update all users.
36079 (grub_pc_partition_is_empty): Rename to ...
36080 (grub_msdos_partition_is_empty): ... this. Update all users.
36081 (grub_pc_partition_is_extended): Rename to ...
36082 (grub_msdos_partition_is_extended): ... this. Update all users.
36083 (grub_pc_partition_is_bsd): Rename to ...
36084 (grub_msdos_partition_is_bsd): ... this. Update all users.
36086 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
36087 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
36088 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
36089 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
36090 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
36091 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
36092 (gpt_mod_LDFLAGS): Rename to ...
36093 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
36094 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
36095 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
36096 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
36097 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
36098 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
36099 (part_gpt_mod_LDFLAGS): ... this.
36100 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
36101 `pcpart.mod' to `msdospart.mod'.
36102 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
36104 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
36105 (msdospart_mod_LDFLAGS): ... this.
36107 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36109 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
36110 (openbsd_opts): Likewise.
36111 (netbsd_opts): Likewise.
36112 (freebsd_flags): Added 0 terminator.
36113 (openbsd_flags): Likewise.
36114 (netbsd_flags): Likewise.
36115 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
36116 (grub_cmd_freebsd): Transformed into extended command.
36117 (grub_cmd_openbsd): Likewise.
36118 (grub_cmd_netbsd): Likewise.
36119 (cmd_freebsd): Changed type to grub_extcmd_t.
36120 (cmd_openbsd): Likewise.
36121 (cmd_netbsd): Likewise.
36122 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
36123 grub_cmd_openbsd as extended commands.
36124 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
36125 cmd_netbsd and cmd_openbsd
36127 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
36129 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
36131 2009-08-21 Pavel Roskin <proski@gnu.org>
36133 * Makefile.in (install-local): When checking if a file is in the
36134 build directory, use "test -e" to detect symlinks.
36136 * Makefile.in (install-local): Remove all files in
36137 $(DESTDIR)$(pkglibdir) before installing new files there.
36139 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36141 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
36144 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36146 * util/grub-mkconfig.in: Don't use gfxterm by default if not
36147 explicitly specified by the user.
36149 2009-08-18 Pavel Roskin <proski@gnu.org>
36151 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
36152 grub_uint8_t pointer for data.
36153 * include/grub/fbutil.h (struct grub_video_fbblit_info):
36155 * video/fb/fbutil.c: Remove unnecessary casts.
36157 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36161 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
36162 (grub_vbe_set_video_mode): Save active mode info
36163 only after setting the mode.
36164 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
36167 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36169 Rename variables for clarity.
36171 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
36172 (active_vbe_mode_info): ... this. All users updated.
36173 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
36175 (initial_mode): Rename to ...
36176 (initial_vbe_mode): ... this. All users updated.
36177 (mode_in_use): Rename to ..
36178 (vbe_mode_in_use): ... this. All users updated.
36179 (mode_list): Rename to ..
36180 (vbe_mode_list): ... this. All users updated.
36181 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
36182 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
36183 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
36184 'mode_list_size' to 'vbe_mode_list_size'.
36185 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
36186 'best_mode_info' to 'best_vbe_mode_info' and
36187 'best_mode' to 'best_vbe_mode'
36189 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36191 Remove duplicate grub_video_fb_get_video_ptr.
36193 * include/grub/fbutil.h (get_data_ptr): Rename to ...
36194 (grub_video_fb_get_video_ptr): ... this.
36195 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
36196 * video/fb/fbutil.c: Add comment about addressing.
36197 (get_data_ptr): Rename to ...
36198 (grub_video_fb_get_video_ptr): ... this. All users updated.
36199 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
36201 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36203 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
36204 grub_dprintf() that was just added.
36206 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36208 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
36209 (DEFAULT_VIDEO_MODE): Remove macros.
36210 (grub_linux_boot): Remove assumption that Linux has FB support,
36211 and use "text" as default video mode.
36213 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
36215 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
36217 * fs/fat.c (grub_fat_read_data): Likewise.
36219 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36221 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
36223 (grub_module): Likewise.
36225 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36227 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
36228 mbi->cmdline but free playground.
36230 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36232 Handle group offset on UFS1.
36234 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
36235 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
36237 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36239 Split ufs.mod into ufs1.mod and ufs2.mod.
36241 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
36242 (grub_fstest_SOURCES): Likewise.
36243 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
36244 (ufs_mod_SOURCES): Remove.
36245 (ufs_mod_CFLAGS): Likewise.
36246 (ufs_mod_LDFLAGS): Likewise.
36247 (ufs1_mod_SOURCES): New variable.
36248 (ufs1_mod_CFLAGS): Likewise.
36249 (ufs1_mod_LDFLAGS): Likewise.
36250 (ufs2_mod_SOURCES): New variable.
36251 (ufs2_mod_CFLAGS): Likewise.
36252 (ufs2_mod_LDFLAGS): Likewise.
36253 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
36254 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36256 (grub_emu_SOURCES): Likewise.
36257 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36258 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36259 (grub_setup_SOURCES): Likewise.
36260 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36261 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
36262 (grub_setup_SOURCES): Likewise.
36263 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36265 * fs/ufs2.c: New file.
36266 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
36268 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36272 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
36273 subsystem at the end.
36274 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
36275 (video_fb_mod_SOURCES): New variable.
36276 (video_fb_mod_CFLAGS): Likewise.
36277 (video_fb_mod_LDFLAGS): Likewise.
36278 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
36279 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
36280 * video/i386/pc/vbeblit.c: Moved from here ...
36281 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
36282 * video/i386/pc/vbefill.c: Moved from here ...
36283 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
36284 * video/i386/pc/vbeutil.c: Moved from here ...
36285 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
36286 * include/grub/i386/pc/vbeblit.h: Moved from here ...
36287 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
36288 * include/grub/i386/pc/vbefill.h: Moved from here ...
36289 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
36290 * include/grub/i386/pc/vbeutil.h: Moved from here ...
36291 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
36292 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
36293 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
36294 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
36295 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
36296 (grub_video_adapter): Added 'get_info_and_fini'.
36297 (grub_video_get_info_and_fini): New prototype.
36298 (grub_video_set_mode): make modestring const char *.
36299 * loader/i386/linux.c (grub_linux_setup_video): Use
36300 grub_video_get_info_and_fini.
36301 (grub_linux_boot): Move modesetting just before booting.
36302 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
36303 grub_video_get_info_and_fini.
36304 * video/i386/pc/vbe.c: Moved framebuffer part ...
36305 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
36306 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
36307 grub_video_fbstd_colors and grub_video_fb_set_palette.
36308 (grub_video_vbe_init): Clear 'framebuffer' variable and use
36309 grub_video_fb_init.
36310 (grub_video_vbe_fini): Use grub_video_fb_fini.
36311 (grub_video_vbe_setup): Use framebuffer.render_target instead of
36312 render_target and use grub_video_fb_set_active_render_target and
36313 grub_video_fb_set_palette.
36314 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
36315 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
36316 (grub_video_vbe_adapter): Use framebuffer.
36317 * video/video.c (grub_video_get_info_and_fini): New function.
36318 (grub_video_set_mode): Make modestring const char *.
36319 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
36320 values are already initialised.
36322 2009-08-14 Pavel Roskin <proski@gnu.org>
36324 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
36326 * boot/i386/pc/diskboot.S: Likewise.
36327 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
36328 sectors allow compilation on MacOSX.
36329 * conf/i386-pc.rmk: Enable unconditional compilation of
36332 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
36334 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
36335 * util/grub.d/00_header.in: Enter interruptible sleep if
36336 GRUB_HIDDEN_TIMEOUT is set.
36338 2009-08-13 Yves Blusseau <blusseau@zetam.org>
36340 * include/grub/symbol.h: Add the LOCAL macro.
36341 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
36342 starting with "L_".
36344 2009-08-13 Pavel Roskin <proski@gnu.org>
36346 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
36347 any modern compilers we support.
36349 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
36350 Use local labels starting with "L_" so that Apple assembler
36351 knows they are local.
36353 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
36355 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
36356 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
36357 (bsd_kernel_types): ... this enum.
36359 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
36360 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
36361 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
36363 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
36364 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
36365 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
36368 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36370 * util/grub-dumpdevtree: Moved from here ...
36371 * util/i386/efi/grub-dumpdevtree: ... to here.
36372 (hexify): New function. Converts a string to its hex version.
36373 Generate hex versions of "efi" and "device-properties" by calling
36374 hexify() on the ASCII strings rather than by hardcoding numbers.
36376 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36378 * fs/jfs.c: Update copyright year.
36380 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36382 * util/grub.d/00_header.in: Fix a comment.
36383 * util/grub.d/10_linux.in: Likewise.
36384 * util/grub.d/10_windows.in: Likewise.
36385 * util/grub.d/10_hurd.in: Likewise.
36387 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36389 * util/grub-mkconfig.in: Allow the user to specify the used font
36392 2009-08-08 Pavel Roskin <proski@gnu.org>
36394 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
36395 available, xfs.mod needs it now.
36397 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
36398 the "g" modifier in sed when the intention is to strip something
36399 once. This fixes comparison of kernels with multiple dashes.
36401 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
36402 on it. Add missing space before closing bracket. Fix
36403 misleading formatting.
36405 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36407 * docs/grub.texi: Major overhaul. Remove all sections that are
36408 specific to GRUB Legacy, or mostly composed of Legacy-specific
36411 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36413 * docs/version.texi: New file. Provides version information for
36416 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36418 * docs/grub.texi: Update CVS information to SVN.
36419 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
36421 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36423 * util/grub-mkconfig.in: Remove a wrong `fi'.
36425 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36427 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
36428 (grub_jfs_uuid): New function.
36429 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
36431 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36433 * util/grub-mkconfig_lib.in (font_path): Move the functionality
36435 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
36436 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
36438 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36440 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
36441 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
36444 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
36445 not just "vmlinu[zx]".
36446 Moved from here ...
36447 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
36450 * util/grub.d/10_linux.in (find_latest): Moved from here ...
36451 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
36454 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36456 * util/grub.d/10_freebsd.in: Use an absolute device path for
36457 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
36459 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
36461 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
36462 handling of multiple abstraction modules.
36464 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
36466 Fix a bug resulting in black screen when loading Linux using a
36469 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
36472 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
36473 (grub_vbe_bios_getset_dac_palette_width): New function.
36474 (grub_vbe_bios_get_dac_palette_width)
36475 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
36476 grub_vbe_bios_getset_dac_palette_width()).
36478 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
36479 check for return status.
36480 (grub_vbe_get_video_mode_info): When getting information for a packed
36481 mode (<= 8 bpp), obtain DAC palette width using
36482 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
36483 {red,green,blue}_mark_size.
36485 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
36487 * commands/search.c (options): Fix help output to match actual code.
36489 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
36491 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
36494 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36496 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
36497 on XFS or ReiserFS.
36499 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36501 Support Apple partition map with sector size different from 512 bytes.
36503 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
36504 (apple_partition_map_iterate): Respect 'aheader.blocksize'
36505 and 'apart.partmap_size'.
36507 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36508 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
36512 * commands/i386/cpuid.c (options): New variable.
36513 (grub_cmd_cpuid): Return real error.
36514 (GRUB_MOD_INIT(cpuid)): Declare options.
36516 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
36518 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
36521 2009-07-31 Bean <bean123ch@gmail.com>
36523 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
36525 (grub_fshelp_node): Move inode field to the end.
36526 (grub_xfs_data): Remove inode field.
36527 (grub_xfs_inode_block): Calculate inode size using sblock.
36528 (grub_xfs_inode_offset): Likewise.
36529 (grub_xfs_read_inode): Calculate inode size using sblock.
36530 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
36531 (grub_xfs_iterate_dir): Calculate inode size using sblock.
36532 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
36533 to match inode size.
36534 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
36535 not accessible when data is null.
36536 (grub_xfs_open): Likewise.
36538 2009-07-31 Bean <bean123ch@gmail.com>
36540 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
36541 Don't change pv->disk if it's already set.
36543 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
36544 (grub_raid_register): ... here.
36545 (grub_raid_rescan): Removed.
36547 * include/grub/raid.h (grub_raid_rescan): Removed.
36549 * util/grub-fstest.c: Remove include file <grub/raid.h>.
36550 (fstest): Replace grub_raid_rescan with module fini function followed
36553 * util/grub-probe.c: Add include file <grub/raid.h>.
36554 (probe_raid_level): New function.
36555 (probe): Detect abstraction by walking the disk device, support two
36556 level of abstraction (LVM on RAID) when detecting partition map.
36558 2009-07-31 Pavel Roskin <proski@gnu.org>
36560 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
36561 to grub_zalloc(), it was erroneous.
36562 Reported by Bean <bean123ch@gmail.com>
36564 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
36566 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
36567 embedding zone, not only the first one.
36569 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
36571 * term/gfxterm.c (clear_char): New function.
36572 (grub_virtual_screen_setup): Use clear_char.
36573 (scroll_up): Likewise.
36574 (grub_virtual_screen_cls): Likewise.
36576 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
36578 * util/deviceiter.c (get_acceleraid_disk_name): New static
36580 (grub_util_iterate_devices): Handle Accelraid devices.
36581 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
36583 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
36585 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
36586 separator for the suggested gfxpayload string (';' collides with the
36587 parser and needs escaping).
36589 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
36591 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
36592 Clear direction flag before jumping to OS.
36593 (grub_multiboot2_real_boot): Likewise.
36595 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36597 * util/i386/pc/grub-install: Fix parsing of --disk-module
36600 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36602 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
36605 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
36607 * util/grub-mkconfig.in (package_version): New variable.
36608 Use it do display the version.
36610 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36612 * kern/file.c (grub_file_open): Revert to previous check with
36615 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36617 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
36618 from help line. It's out of sync with code.
36620 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36622 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
36623 entries on failed boot.
36625 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36627 * kern/file.c (grub_file_open): Fix an error check.
36629 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
36631 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
36632 partition map couldn't be identified.
36634 2009-07-23 Pavel Roskin <proski@gnu.org>
36636 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
36637 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
36638 case of little endian words becomes just an optimization.
36639 Respect const modifier.
36640 (md5_final): Use code that doesn't depend on endianness.
36642 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
36643 to avoid loss of upper bits if align is unsigned and shorter
36646 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36648 UUID support for UFS
36650 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
36651 (grub_ufs_uuid): New function.
36652 (grub_ufs_fs): add .uuid
36654 2009-07-21 Pavel Roskin <proski@gnu.org>
36656 * kern/dl.c (grub_dl_check_header): Make static.
36658 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
36660 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
36661 add drivemap for Vista. It breaks Windows 7.
36663 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36665 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
36668 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36672 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
36673 (grub_fstest_SOURCES): Likewise.
36674 (pkglib_MODULES): Add befs.mod.
36675 (befs_mod_SOURCES): New variable.
36676 (befs_mod_CFLAGS): Likewise.
36677 (befs_mod_LDFLAGS): Likewise.
36678 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36679 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36680 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36681 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36682 (grub_setup_SOURCES): Likewise.
36683 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36684 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36685 (grub_setup_SOURCES): Likewise.
36686 * fs/befs.c: New file.
36687 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
36688 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
36689 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
36690 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
36691 (B_KEY_INDEX_ALIGN): New declaration.
36692 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
36693 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
36694 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
36695 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
36696 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
36697 (grub_afs_mount) [MODE_BFS]: Likewise.
36698 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
36699 (grub_afs_fs): Use GRUB_AFS_FSNAME
36700 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
36701 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
36702 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
36703 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
36705 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
36707 * util/getroot.c (find_root_device): Add support for MacOSX.
36708 * util/hostdisk.c: Likewise.
36710 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36712 * font/font.c (find_glyph): Check whether a font is present to avoid
36713 segmentation fault.
36715 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
36717 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
36719 2009-07-20 Pavel Roskin <proski@gnu.org>
36721 * configure.ac: Trim excessively wordy excuses.
36723 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36725 Add symlink, mtime and label support to AtheFS.
36727 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
36728 (grub_afs_iterate_dir): Handle symlinks.
36729 (grub_afs_open): Use grub_afs_read_symlink.
36730 (grub_afs_dir): Likewise.
36732 (grub_afs_label): New function.
36733 (grub_afs_fs): Add grub_afs_label.
36734 (grub_afs_read_symlink): New function.
36736 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36738 Fix AtheFS support.
36740 * fs/afs.c: Fix comments style.
36741 (grub_afs_blockrun): Declare as packed.
36742 (grub_afs_datastream): Likewise.
36743 (grub_afs_bnode): Likewise.
36744 (grub_afs_btree): Likewise.
36745 (grub_afs_sblock): Likewise.
36746 Declare `name' as char.
36747 (grub_afs_inode): Declare as packed.
36748 Change void *vnode to grub_uint32_t unused.
36749 (grub_afs_iterate_dir): Check that key_size is positive.
36750 (grub_afs_mount): Don't read superblock twice.
36751 (grub_afs_dir): Don't free node in case of error,
36752 grub_fshelp_find_file already handles this.
36753 (grub_afs_open): Likewise.
36755 2009-07-19 Pavel Roskin <proski@gnu.org>
36757 * Makefile.in: Remove LIBLZO and enable_lzo.
36758 * conf/i386-pc.rmk: Remove lzo support.
36759 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
36760 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
36762 * kern/i386/pc/lzo1x.S: Remove.
36763 * kern/i386/pc/startup.S: Remove lzo support.
36764 * util/i386/pc/grub-mkimage.c: Likewise.
36766 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
36768 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
36769 * fs/xfs.c (grub_xfs_dir): Likewise.
36770 * fs/afs.c (grub_afs_dir): Likewise.
36771 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36772 (grub_iso9660_open): Likewise.
36773 * fs/jfs.c (grub_jfs_open): Likewise.
36774 * fs/ext2.c (grub_ext2_dir): Likewise.
36775 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36776 * script/sh/lexer.c (grub_script_yylex): Likewise.
36778 2009-07-16 Pavel Roskin <proski@gnu.org>
36780 * configure.ac: Never add "-c" to CFLAGS.
36782 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36784 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36785 grub_cv_cc_efiemu should be used.
36787 * configure.ac: Typo fixes.
36789 * kern/mm.c (grub_zalloc): New function.
36790 (grub_debug_zalloc): Likewise.
36791 * include/grub/mm.h: Declare grub_zalloc() and
36792 grub_debug_zalloc().
36793 * util/misc.c (grub_zalloc): New function.
36794 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36795 instead of grub_malloc(), remove unneeded initializations.
36796 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36797 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36798 * commands/parttool.c (grub_cmd_parttool): Likewise.
36799 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36800 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36801 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36802 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36803 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36804 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36805 (grub_cmd_efiemu_pnvram): Likewise.
36806 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36807 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36808 (grub_iso9660_iterate_dir): Likewise.
36809 * fs/jfs.c (grub_jfs_opendir): Likewise.
36810 * fs/ntfs.c (list_file): Likewise.
36811 (grub_ntfs_mount): Likewise.
36812 * kern/disk.c (grub_disk_open): Likewise.
36813 * kern/dl.c (grub_dl_load_core): Likewise.
36814 * kern/elf.c (grub_elf_file): Likewise.
36815 * kern/env.c (grub_env_context_open): Likewise.
36816 (grub_env_set): Likewise.
36817 (grub_env_set_data_slot): Likewise.
36818 * kern/file.c (grub_file_open): Likewise.
36819 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36820 * loader/i386/multiboot.c (grub_module): Likewise.
36821 * loader/xnu.c (grub_xnu_create_key): Likewise.
36822 (grub_xnu_create_value): Likewise.
36823 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36824 (read_config_file): Likewise.
36825 * normal/menu_entry.c (make_screen): Likewise.
36826 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36827 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36828 * script/sh/script.c (grub_script_parse): Likewise.
36829 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36830 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36831 * video/readers/png.c (grub_png_output_byte): Likewise.
36832 (grub_video_reader_png): Likewise.
36834 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36836 Enable all targets that can be built by default
36838 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
36839 grub-mkfont and grub-fstest if they can be built
36841 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36843 Fix hang and segmentation fault in grub-emu-usb
36845 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
36846 * util/usb.c (grub_libusb_devices): likewise
36847 (grub_libusb_init): rename to ...
36848 (GRUB_MOD_INIT (libusb)):...this
36849 (grub_libusb_fini): rename to ..
36850 (GRUB_MOD_FINI (libusb)):...this
36851 * disk/usbms.c (grub_usbms_transfer): fix retry logic
36852 * include/grub/disk.h (grub_raid_init): removed, it's useless
36853 (grub_raid_fini): likewise
36854 (grub_lvm_init): likewise
36855 (grub_lvm_fini): likewise
36856 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
36859 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36863 * Makefile.in (LIBUSB): new macro
36864 * genmk.rb (Utility/print_tail): new method
36865 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
36866 (top level): call util.print_tail at the end.
36868 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36870 Make FreeBSD accept zpool.cache
36872 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
36873 type is /boot/zfs/zpool.cache
36875 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36879 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
36880 correct wrong typedef
36881 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
36883 2009-07-15 Pavel Roskin <proski@gnu.org>
36885 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
36886 * kern/disk.c (struct grub_disk_cache): Likewise.
36888 * commands/probe.c (options): Typo fix.
36890 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
36891 Increase to 0x5a to accommodate FAT32. Adjust other offsets
36893 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
36895 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
36896 the end of "Error" to make the message more readable.
36898 * boot/i386/pc/boot.S (kernel_segment): Remove.
36899 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
36902 * boot/i386/pc/boot.S (boot_version): Remove.
36903 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
36906 * include/grub/i386/pc/boot.h: Sort all offsets.
36907 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
36908 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
36909 * boot/i386/pc/boot.S: Assert location of every offset listed in
36910 include/grub/i386/pc/boot.h.
36912 2009-07-13 Pavel Roskin <proski@gnu.org>
36914 * include/grub/i386/coreboot/machine.h: Rename
36915 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
36916 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
36917 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
36919 * kern/dl.c: Force native word size to suppress warnings when
36920 compiling grub-emu.
36922 * kern/device.c (grub_device_iterate): Change struct part_ent to
36923 hold the name, not a pointer to it. Use one grub_malloc() per
36924 partition, not two. Free partition_name if grub_malloc() fails.
36925 Set ents to NULL only before grub_partition_iterate() is called.
36927 2009-07-11 Bean <bean123ch@gmail.com>
36929 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
36932 2009-07-10 Bean <bean123ch@gmail.com>
36933 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
36935 * kern/ieee1275/openfw.c (grub_children_iterate)
36936 (grub_devalias_iterate): Fix size evaluation for property or path
36937 strings, which was broken since r2132.
36939 2009-07-07 Pavel Roskin <proski@gnu.org>
36941 * commands/search.c (search_file): Merge into ...
36942 (search_fs): ... this. Accept search type as argument.
36943 (grub_cmd_search): Pass search type to search_fs().
36945 * include/grub/util/console.h: New file.
36946 * util/console.c: Use it instead of grub/machine/console.h.
36947 * util/grub-emu.c: Likewise.
36949 * lib/arg.c (find_long_option): Remove.
36950 (find_long): Add `len' argument, make `s' const char *.
36951 (grub_arg_parse): Parse long options in place, not in a
36954 2009-07-06 Pavel Roskin <proski@gnu.org>
36956 * commands/search.c (search_fs): Fix potential NULL pointer
36959 * commands/search.c (search_fs): Replace QUID macro with quid_fn
36962 2009-07-06 Daniel Mierswa <impulze@impulze.org>
36964 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
36967 2009-07-05 Pavel Roskin <proski@gnu.org>
36969 * include/grub/i386/linux.h (struct linux_kernel_params):
36970 Restore padding3, it's still needed.
36972 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
36974 * util/osdetect.lua: Likewise.
36976 2009-07-05 Bean <bean123ch@gmail.com>
36978 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
36980 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
36981 (grub_lua_getenv): Likewise.
36982 (grub_lua_setenv): Likewise.
36983 (save_errno): New function.
36984 (push_result): Likewise.
36985 (grub_lua_enum_device): Likewise.
36986 (grub_lua_enum_file): Likewise.
36987 (grub_lua_file_open): Likewise.
36988 (grub_lua_file_close): Likewise.
36989 (grub_lua_file_seek): Likewise.
36990 (grub_lua_file_read): Likewise.
36991 (grub_lua_file_getline): Likewise.
36992 (grub_lua_file_getsize): Likewise.
36993 (grub_lua_file_getpos): Likewise.
36994 (grub_lua_file_eof): Likewise.
36995 (grub_lua_file_exist): Likewise.
36996 (grub_lua_add_menu): Likewise.
36998 * script/lua/grub_lua.h (isupper): New inline function.
36999 (islower): Likewise.
37000 (ispunct): Likewise.
37001 (isxdigit): Likewise.
37002 (strcspn): Change to normal function.
37003 (strpbkr): New function declaration.
37004 (memchr): Likewise.
37006 * script/lua/grub_main.c (scan_str): New function.
37007 (strcspn): Likewise.
37008 (strpbrk): Likewise.
37009 (memchr): Likewise.
37011 * script/lua/linit.c (lualibs): Enable the string library.
37013 * util/osdetect.lua: New file.
37015 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
37017 * include/grub/i386/linux.h (struct linux_kernel_params): Add
37018 `capabilities' member.
37020 2009-07-02 Pavel Roskin <proski@gnu.org>
37022 * genparttoollist.sh: Add missing newline at the end.
37024 2009-07-01 Pavel Roskin <proski@gnu.org>
37026 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
37028 * util/hostdisk.c (open_device): Remove `const' from
37029 `sysctl_size', as sysctlbyname() can change it (in this case it
37030 doesn't actually happen).
37032 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
37033 using signed long int constants.
37035 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
37036 constant to avoid a warning on FreeBSD.
37038 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
37041 * Makefile.in: Install include/grub/machine symlink.
37043 * Makefile.in: When installing symlinks, use "cp -fR", which
37044 works on FreeBSD and MacOSX.
37045 From Yves Blusseau <cl7m42e02@sneakemail.com>
37047 * kern/dl.c (grub_dl_resolve_symbol): Make static.
37048 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
37050 * util/misc.c: Move grub_reboot() and grub_halt() ...
37051 * util/grub-emu.c: ... here. Make main_env static.
37052 * include/grub/util/misc.h: Remove main_env.
37054 * kern/mm.c: Use correct format to print size_t.
37056 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
37057 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
37058 * kern/powerpc/dl.c: Likewise.
37059 * kern/sparc64/dl.c: Likewise.
37060 * kern/x86_64/dl.c: Likewise.
37062 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37064 Fix grub-emu build on sparc64-ieee1275.
37066 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
37067 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
37069 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37071 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
37072 (grub_reboot, grub_halt): New functions.
37074 * util/i386/pc/misc.c: Delete. Update all users.
37075 * util/sparc64/ieee1275/misc.c: Likewise.
37076 * util/powerpc/ieee1275/misc.c: Likewise.
37078 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37080 * conf/i386.rmk (setjmp_mod_SOURCES)
37081 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
37082 * conf/common.rmk (setjmp_mod_SOURCES)
37083 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
37084 to use $(target_cpu).
37085 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
37086 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
37087 * conf/powerpc-ieee1275.rmk: Likewise.
37088 * conf/sparc64-ieee1275.rmk: Likewise.
37090 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
37091 $(target_cpu) for kern/$(target_cpu)/dl.c.
37092 * conf/i386-efi.rmk: Likewise.
37093 * conf/i386-ieee1275.rmk: Likewise.
37094 * conf/x86_64-efi.rmk: Likewise.
37095 * conf/i386-coreboot.rmk: Likewise.
37096 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
37097 $(target_cpu) for kern/$(target_cpu)/dl.c and for
37098 kern/$(target_cpu)/cache.S.
37099 * conf/sparc64-ieee1275.rmk: Likewise.
37101 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37103 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
37104 type to `grub_uint8_t', and adjust `padding9' accordingly.
37106 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37108 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
37110 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
37111 assembly in final jump, using register constraints.
37113 (grub_linux_boot): For text mode, initialize `have_vga' using
37114 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
37116 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
37117 right before the final jump.
37119 Set `video_mode' to 0x3.
37121 Document initialization of `video_page', `video_mode' and
37124 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37126 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
37127 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
37128 and set GRUB_LINUX_FLAG_QUIET appropriately.
37130 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37132 Fix build on Debian / sparc.
37134 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
37136 2009-06-28 Pavel Roskin <proski@gnu.org>
37138 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
37141 * util/grub.d/10_linux.in: Match SUSE style initrd names.
37143 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37145 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
37148 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37152 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
37153 file can't be opened. grub_file_open() is already supposed to set
37154 grub_errno / grub_errmsg appropriately.
37155 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37157 2009-06-27 Pavel Roskin <proski@gnu.org>
37158 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37160 * include/grub/dl.h: Include grub/elf.h.
37161 (struct grub_dl): Add symtab field.
37162 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
37163 GRUB_MODULES_MACHINE_READONLY.
37164 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
37165 of the header for read-only modules.
37166 (grub_dl_unload): Free mod->symtab for read-only modules.
37167 * kern/i386/dl.c: Use mod->symtab.
37168 * kern/powerpc/dl.c: Likewise.
37169 * kern/sparc64/dl.c: Likewise.
37170 * kern/x86_64/dl.c: Likewise.
37172 * conf/i386-qemu.rmk: New file.
37173 * kern/i386/qemu/startup.S: Likewise.
37174 * kern/i386/qemu/mmap.c: Likewise.
37175 * boot/i386/qemu/boot.S: Likewise.
37176 * include/grub/i386/qemu/time.h: Likewise.
37177 * include/grub/i386/qemu/serial.h: Likewise.
37178 * include/grub/i386/qemu/kernel.h: Likewise.
37179 * include/grub/i386/qemu/console.h: Likewise.
37180 * include/grub/i386/qemu/boot.h: Likewise.
37181 * include/grub/i386/qemu/init.h: Likewise.
37182 * include/grub/i386/qemu/machine.h: Likewise.
37183 * include/grub/i386/qemu/loader.h: Likewise.
37184 * include/grub/i386/qemu/memory.h: Likewise.
37186 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
37187 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
37188 [qemu] (pkglib_IMAGES): Add `boot.img'.
37189 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
37190 [qemu] (boot_img_FORMAT): New variables.
37191 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
37192 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
37193 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
37194 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
37195 [qemu] (kernel_img_FORMAT): New variables.
37197 * configure.ac: Recognise `i386-qemu'.
37199 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
37200 (for no compression).
37201 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
37202 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
37203 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
37204 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
37207 2009-06-27 Pavel Roskin <proski@gnu.org>
37209 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
37211 * efiemu/prepare32.c: Likewise.
37212 * efiemu/prepare64.c: Likewise.
37214 2009-06-26 Pavel Roskin <proski@gnu.org>
37216 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
37217 * include/grub/elf.h: Define symbols without "32" or "64" based
37218 on GRUB_TARGET_WORDSIZE.
37219 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
37220 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
37222 * efiemu/loadcore64.c: Likewise.
37223 * loader/i386/bsd32.c: Likewise.
37224 * loader/i386/bsd64.c: Likewise.
37225 * kern/dl.c: Remove own ELF definitions.
37226 * util/i386/efi/grub-mkimage.c: Likewise.
37228 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
37230 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
37231 segment 0x0 unconditionally, because the reference generated by
37232 GAS is an absolute address.
37234 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37236 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
37237 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
37239 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37241 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
37242 indexes. Check for -f explicitly.
37243 (search_file): Improve error message.
37244 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
37246 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37248 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
37249 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
37251 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37253 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
37254 * conf/i386-ieee1275.rmk: Likewise.
37255 * conf/i386-coreboot.rmk: Likewise.
37257 * kern/i386/pc/startup.S (grub_stop): Remove function.
37258 * kern/i386/ieee1275/startup.S: Likewise.
37259 * kern/i386/coreboot/startup.S: Likewise.
37260 * kern/i386/misc.S (grub_stop): New function.
37262 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37264 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
37265 * kern/i386/realmode.S (real_to_prot): ... to here.
37267 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37269 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
37271 (kernel_elf_SOURCES): Rename to ...
37272 (kernel_img_SOURCES): ... this.
37273 (kernel_elf_HEADERS): Rename to ...
37274 (kernel_img_HEADERS): ... this. Update all users.
37275 (kernel_elf_ASFLAGS): Rename to ...
37276 (kernel_img_ASFLAGS): ... this.
37277 (kernel_elf_CFLAGS): Rename to ...
37278 (kernel_img_CFLAGS): ... this.
37279 (kernel_elf_LDFLAGS): Rename to ...
37280 (kernel_img_LDFLAGS): ... this.
37281 * conf/i386-coreboot.rmk: Likewise.
37282 * conf/powerpc-ieee1275.rmk: Likewise.
37284 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
37287 2009-06-21 Pavel Roskin <proski@gnu.org>
37289 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
37290 to match nested functions.
37291 * loader/sparc64/ieee1275/linux.c: Likewise.
37293 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
37295 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37297 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
37298 all i386 platforms.
37300 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37302 Fix asm file handling on ELF, and remove workarounds.
37304 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
37305 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
37306 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
37307 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
37309 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
37311 Load BSD ELF modules
37313 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
37314 and loader/i386/bsd64.c
37315 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
37316 (FREEBSD_MODTYPE_ELF_MODULE): New definition
37317 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
37318 (grub_freebsd_load_elfmodule32): New declaration
37319 (grub_freebsd_load_elfmoduleobj64): Likewise
37320 (grub_freebsd_load_elf_meta32): Likewise
37321 (grub_freebsd_load_elf_meta64): Likewise
37322 (grub_freebsd_add_meta): Likewise
37323 (grub_freebsd_add_meta_module): Likewise
37324 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
37325 (grub_freebsd_add_meta_module): Likewise and move module-specific
37326 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
37327 (grub_cmd_freebsd): Add elf-kernel specific parts
37328 based on grub_freebsd_add_meta_module
37329 (grub_cmd_freebsd_module): Add type parsing moved from
37330 grub_freebsd_add_meta_module
37331 (grub_cmd_freebsd_module_elf): New function
37332 (cmd_freebsd_module_elf): New variable
37333 (GRUB_MOD_INIT): Register freebsd_module_elf
37334 * loader/i386/bsd32.c: New file
37335 * loader/i386/bsd64.c: Likewise
37336 * loader/i386/bsdXX.c: Likewise
37337 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
37338 (grub_elf64_load): Likewise
37339 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
37341 (grub_elf64_load_hook_t): Likewise
37343 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
37345 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
37347 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
37348 don't write a menu entry for recovery mode.
37350 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37352 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
37353 after it's no longer needed.
37355 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37357 * include/grub/i386/loader.h (grub_linux_prot_size)
37358 (grub_linux_tmp_addr, grub_linux_real_addr)
37359 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
37360 GRUB_MACHINE_PCBIOS.
37361 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
37362 common grub_util_info() call to ...
37363 (generate_image): ... here.
37364 Fix use of uninitialized memory, comparison of signed with
37365 unsigned integers and memory leak.
37366 Remove bogus module address message.
37368 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
37370 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
37372 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
37374 2009-06-19 Pavel Roskin <proski@gnu.org>
37376 * configure.ac: Remove stray AC_MSG_CHECKING.
37378 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
37380 * disk/scsi.c (grub_scsi_open): use continue instead of big if
37382 2009-06-18 Pavel Roskin <proski@gnu.org>
37384 * conf/common.rmk: Add fs_file.mod.
37385 * disk/fs_file.c: New file.
37386 * include/grub/disk.h (enum grub_disk_dev_id): Add
37387 GRUB_DISK_DEVICE_FILE_ID.
37389 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37391 Fix build with Apple's toolchain. Part 2
37393 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
37396 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37398 Fix build with Apple's toolchain. Part 1
37400 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
37402 * configure.ac: remove a leftover AC_MSG_RESULT
37403 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
37406 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37410 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
37411 (decomp_block): initialize ch
37412 use grub_memcpy instead of memcpy
37414 2009-06-17 Pavel Roskin <proski@gnu.org>
37416 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
37417 version, use declarations needed to use vga_text as the startup
37420 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
37421 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
37423 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
37424 and grub_at_keyboard_fini(), it's done on module load and
37427 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
37429 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
37430 file can't be found.
37431 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37433 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37435 Fix newline handling
37437 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
37438 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
37439 (grub_script_yylex): don't segfault on unterminated script
37440 newline terminates command and variable
37442 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37444 avoid double grub_adjust_range call. Bug reported by David Simner
37446 * kern/disk.c (grub_disk_write): change to raw disk access before
37449 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
37451 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
37452 spaces, for the benefit of help2man.
37453 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37455 2009-06-16 Pavel Roskin <proski@gnu.org>
37457 * kern/i386/halt.c: Include grub/machine/init.h.
37458 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
37460 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
37462 * util/grub.d/30_os-prober.in: Use ${root} in the generated
37463 drivemap menuentry.
37465 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
37467 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
37470 2009-06-16 Pavel Roskin <proski@gnu.org>
37472 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
37473 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
37474 save %dx, we only need %dl and we never change it.
37475 * boot/i386/pc/cdboot.S: Don't set the root drive.
37476 * boot/i386/pc/pxeboot.S: Likewise.
37477 * include/grub/i386/pc/boot.h: Remove
37478 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
37479 GRUB_BOOT_MACHINE_DRIVE_CHECK.
37480 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
37481 * kern/i386/pc/init.c (make_install_device): Remove references
37482 to grub_root_drive.
37483 * kern/i386/pc/startup.S: Likewise.
37484 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
37486 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37490 * commands/xnu_uuid.c: new file
37491 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
37492 (xnu_uuid_mod_SOURCES): new variable
37493 (xnu_uuid_mod_CFLAGS): likewise
37494 (xnu_uuid_mod_LDFLAGS): likewise
37495 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37496 * conf/i386-ieee1275.rmk: likewise
37497 * conf/i386-pc.rmk: likewise
37498 * conf/powerpc-ieee1275.rmk: likewise
37499 * conf/sparc64-ieee1275.rmk: likewise
37500 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
37502 2009-06-16 Pavel Roskin <proski@gnu.org>
37504 * configure.ac: Avoid '==' in test command, it's not portable.
37506 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37510 * commands/probe.c: new file
37511 * conf/common.rmk (pkglib_MODULES): add probe.mod
37512 (probe_mod_SOURCES): new variable
37513 (probe_mod_CFLAGS): likewise
37514 (probe_mod_LDFLAGS): likewise
37515 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37516 * conf/i386-ieee1275.rmk: likewise
37517 * conf/i386-pc.rmk: likewise
37518 * conf/powerpc-ieee1275.rmk: likewise
37519 * conf/sparc64-ieee1275.rmk: likewise
37521 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
37523 Fix handling of string like \"hello\" and "a
37526 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
37527 (grub_script_yylex): fix parsing of quoting, escaping and newline
37529 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
37531 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
37534 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
37536 * util/grub-mkconfig.in: Fix parsing of --output option.
37538 2009-06-12 Pavel Roskin <proski@gnu.org>
37540 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
37541 genmk.rb don't need to be generated or installed.
37543 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
37545 * commands/i386/pc/drivemap_int13h.S: add more comments
37547 2009-06-11 Pavel Roskin <proski@gnu.org>
37549 * Makefile.in (uninstall): Uninstall manuals.
37551 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
37552 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
37553 and update-grub_lib in two places.
37554 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
37556 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
37557 a compiler warning.
37559 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
37560 `entry_lo' to fix variable shadowing.
37562 2009-06-11 Christian Franke <franke@computer.org>
37564 * kern/misc.c (__enable_execute_stack): Add missing return type
37565 to prevent gcc warning.
37567 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37569 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
37571 2009-06-11 Pavel Roskin <proski@gnu.org>
37573 * Makefile.in: Don't rely on any scripts being executable.
37574 Always use $(SHELL) to run shell scripts.
37576 * configure.ac: Always define ___main if using -nostdlib. This
37577 fixes tests on Cygwin.
37579 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
37583 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
37584 is in bytes and not in blocks
37586 2009-06-11 Pavel Roskin <proski@gnu.org>
37588 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
37591 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37593 * util/grub.d/30_os-prober.in: Fix a comment. Source
37594 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
37595 to set the root device. Place drivemap command in the generated
37598 2009-06-11 Pavel Roskin <proski@gnu.org>
37600 * configure.ac: Remove host_m32. Issues with 64-bit utilities
37601 have long been resolved.
37603 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
37605 * util/grub.d/10_linux.in: Capitalise "Linux".
37607 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
37609 2009-06-11 Pavel Roskin <proski@gnu.org>
37611 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
37612 fix a gcc warning and ensure that the function won't ever exit.
37614 * kern/i386/ieee1275/init.c: Add missing prototype for
37615 grub_stop_floppy().
37617 * loader/ieee1275/multiboot2.c [__i386__]: Include
37618 grub/cpu/multiboot.h.
37620 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
37621 casts to short - they are not portable and cause warnings. Fix
37622 use of uninitialized values in input_buf. Use ARRAY_SIZE.
37624 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
37628 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
37630 (grub_get_root_biosnumber_saved): new variable
37631 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
37632 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
37633 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
37634 %dx after the call if necessary
37635 * conf/common.rmk (pkglib_MODULES): remove boot.mod
37636 (boot_mod_SOURCES): remove
37637 (boot_mod_CFLAGS): remove
37638 (boot_mod_LDFLAGS): remove
37639 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
37640 (boot_mod_SOURCES): new variable
37641 (boot_mod_CFLAGS): likewise
37642 (boot_mod_LDFLAGS): likewise
37643 * conf/i386-efi.rmk: likewise
37644 * conf/i386-ieee1275.rmk: likewise
37645 * conf/i386-pc.rmk: likewise
37646 * conf/powerpc-ieee1275.rmk: likewise
37647 * conf/sparc64-ieee1275.rmk: likewise
37648 * conf/x86_64-efi.rmk: likewise
37649 * include/grub/i386/pc/biosnum.h: new file
37650 * lib/i386/pc/biosnum.c: likewise
37651 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
37652 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
37653 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
37655 2009-06-10 Pavel Roskin <proski@gnu.org>
37657 * io/gzio.c (test_header): Don't reuse one buffer for all data.
37658 Use separate variables. Read only the file size at the end, but
37659 not the checksum that we don't use.
37661 * kern/file.c (grub_file_read): Use void pointer for the buffer.
37662 Adjust all callers.
37664 * kern/ieee1275/openfw.c: Remove libc includes.
37665 * kern/ieee1275/cmain.c: Likewise.
37666 * include/grub/ieee1275/ieee1275.h: Likewise.
37668 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
37671 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37673 * Makefile.in: Remove all trailing whitespace.
37674 * conf/i386-pc.rmk: Likewise.
37675 * conf/powerpc-ieee1275.rmk: Likewise.
37676 * conf/sparc64-ieee1275.rmk: Likewise.
37677 * docs/grub.texi: Likewise.
37678 * docs/texinfo.tex: Likewise.
37679 * disk/fs_uuid.c: Likewise.
37680 * disk/lvm.c: Likewise.
37681 * disk/scsi.c: Likewise.
37682 * disk/ata.c: Likewise.
37683 * disk/ieee1275/ofdisk.c: Likewise.
37684 * disk/i386/pc/biosdisk.c: Likewise.
37685 * disk/host.c: Likewise.
37686 * disk/raid.c: Likewise.
37687 * disk/efi/efidisk.c: Likewise.
37688 * disk/usbms.c: Likewise.
37689 * disk/memdisk.c: Likewise.
37690 * disk/loopback.c: Likewise.
37691 * kern/powerpc/dl.c: Likewise.
37692 * kern/device.c: Likewise.
37693 * kern/dl.c: Likewise.
37694 * kern/sparc64/dl.c: Likewise.
37695 * kern/ieee1275/ieee1275.c: Likewise.
37696 * kern/term.c: Likewise.
37697 * kern/fs.c: Likewise.
37698 * kern/i386/dl.c: Likewise.
37699 * kern/i386/pc/startup.S: Likewise.
37700 * kern/i386/pc/init.c: Likewise.
37701 * kern/i386/pc/mmap.c: Likewise.
37702 * kern/i386/pc/lzo1x.S: Likewise.
37703 * kern/i386/ieee1275/init.c: Likewise.
37704 * kern/i386/realmode.S: Likewise.
37705 * kern/i386/tsc.c: Likewise.
37706 * kern/partition.c: Likewise.
37707 * kern/corecmd.c: Likewise.
37708 * kern/file.c: Likewise.
37709 * kern/efi/efi.c: Likewise.
37710 * kern/efi/init.c: Likewise.
37711 * kern/efi/mm.c: Likewise.
37712 * kern/main.c: Likewise.
37713 * kern/err.c: Likewise.
37714 * kern/env.c: Likewise.
37715 * kern/disk.c: Likewise.
37716 * kern/generic/millisleep.c: Likewise.
37717 * kern/generic/rtc_get_time_ms.c: Likewise.
37718 * kern/misc.c: Likewise.
37719 * kern/parser.c: Likewise.
37720 * genmk.rb: Likewise.
37721 * configure.ac: Likewise.
37722 * boot/i386/pc/diskboot.S: Likewise.
37723 * boot/i386/pc/pxeboot.S: Likewise.
37724 * boot/i386/pc/boot.S: Likewise.
37725 * boot/i386/pc/lnxboot.S: Likewise.
37726 * boot/i386/pc/cdboot.S: Likewise.
37727 * parttool/pcpart.c: Likewise.
37728 * video/readers/tga.c: Likewise.
37729 * video/video.c: Likewise.
37730 * video/bitmap.c: Likewise.
37731 * lib/envblk.c: Likewise.
37732 * lib/i386/setjmp.S: Likewise.
37733 * fs/xfs.c: Likewise.
37734 * fs/afs.c: Likewise.
37735 * fs/fat.c: Likewise.
37736 * fs/ntfs.c: Likewise.
37737 * fs/udf.c: Likewise.
37738 * fs/affs.c: Likewise.
37739 * fs/iso9660.c: Likewise.
37740 * fs/hfs.c: Likewise.
37741 * fs/fshelp.c: Likewise.
37742 * fs/ext2.c: Likewise.
37743 * fs/jfs.c: Likewise.
37744 * fs/reiserfs.c: Likewise.
37745 * fs/hfsplus.c: Likewise.
37746 * fs/minix.c: Likewise.
37747 * fs/cpio.c: Likewise.
37748 * fs/sfs.c: Likewise.
37749 * fs/ufs.c: Likewise.
37750 * efiemu/prepare.c: Likewise.
37751 * efiemu/loadcore_common.c: Likewise.
37752 * efiemu/runtime/efiemu.sh: Likewise.
37753 * efiemu/runtime/efiemu.S: Likewise.
37754 * efiemu/runtime/efiemu.c: Likewise.
37755 * efiemu/pnvram.c: Likewise.
37756 * efiemu/main.c: Likewise.
37757 * efiemu/i386/pc/cfgtables.c: Likewise.
37758 * efiemu/i386/loadcore64.c: Likewise.
37759 * efiemu/i386/loadcore32.c: Likewise.
37760 * efiemu/loadcore.c: Likewise.
37761 * efiemu/symbols.c: Likewise.
37762 * efiemu/mm.c: Likewise.
37763 * include/grub/autoefi.h: Likewise.
37764 * include/grub/datetime.h: Likewise.
37765 * include/grub/term.h: Likewise.
37766 * include/grub/hfs.h: Likewise.
37767 * include/grub/lvm.h: Likewise.
37768 * include/grub/i386/tsc.h: Likewise.
37769 * include/grub/i386/linux.h: Likewise.
37770 * include/grub/i386/xnu.h: Likewise.
37771 * include/grub/i386/efiemu.h: Likewise.
37772 * include/grub/i386/pc/biosdisk.h: Likewise.
37773 * include/grub/i386/pc/memory.h: Likewise.
37774 * include/grub/i386/pc/vbe.h: Likewise.
37775 * include/grub/parttool.h: Likewise.
37776 * include/grub/video.h: Likewise.
37777 * include/grub/memory.h: Likewise.
37778 * include/grub/fs.h: Likewise.
37779 * include/grub/partition.h: Likewise.
37780 * include/grub/xnu.h: Likewise.
37781 * include/grub/efi/api.h: Likewise.
37782 * include/grub/efi/pe32.h: Likewise.
37783 * include/grub/efi/memory.h: Likewise.
37784 * include/grub/multiboot.h: Likewise.
37785 * include/grub/usbdesc.h: Likewise.
37786 * include/grub/multiboot2.h: Likewise.
37787 * include/grub/acpi.h: Likewise.
37788 * include/grub/efiemu/efiemu.h: Likewise.
37789 * include/grub/disk.h: Likewise.
37790 * include/grub/ieee1275/ieee1275.h: Likewise.
37791 * include/grub/net.h: Likewise.
37792 * include/grub/machoload.h: Likewise.
37793 * include/grub/macho.h: Likewise.
37794 * include/multiboot.h: Likewise.
37795 * genmoddep.awk: Likewise.
37796 * normal/main.c: Likewise.
37797 * normal/menu_entry.c: Likewise.
37798 * normal/menu_viewer.c: Likewise.
37799 * normal/completion.c: Likewise.
37800 * normal/cmdline.c: Likewise.
37801 * normal/misc.c: Likewise.
37802 * normal/datetime.c: Likewise.
37803 * bus/usb/usbtrans.c: Likewise.
37804 * bus/usb/ohci.c: Likewise.
37805 * bus/usb/uhci.c: Likewise.
37806 * bus/usb/usb.c: Likewise.
37807 * mmap/efi/mmap.c: Likewise.
37808 * mmap/i386/pc/mmap_helper.S: Likewise.
37809 * mmap/i386/pc/mmap.c: Likewise.
37810 * mmap/i386/mmap.c: Likewise.
37811 * mmap/i386/uppermem.c: Likewise.
37812 * mmap/mmap.c: Likewise.
37813 * commands/acpi.c: Likewise.
37814 * commands/echo.c: Likewise.
37815 * commands/blocklist.c: Likewise.
37816 * commands/loadenv.c: Likewise.
37817 * commands/usbtest.c: Likewise.
37818 * commands/boot.c: Likewise.
37819 * commands/parttool.c: Likewise.
37820 * commands/search.c: Likewise.
37821 * commands/cat.c: Likewise.
37822 * commands/i386/pc/play.c: Likewise.
37823 * commands/i386/pc/drivemap.c: Likewise.
37824 * commands/i386/pc/vbeinfo.c: Likewise.
37825 * commands/i386/pc/acpi.c: Likewise.
37826 * commands/i386/pc/vbetest.c: Likewise.
37827 * commands/ls.c: Likewise.
37828 * commands/cmp.c: Likewise.
37829 * commands/test.c: Likewise.
37830 * commands/efi/acpi.c: Likewise.
37831 * commands/gptsync.c: Likewise.
37832 * commands/help.c: Likewise.
37833 * partmap/amiga.c: Likewise.
37834 * partmap/apple.c: Likewise.
37835 * partmap/acorn.c: Likewise.
37836 * partmap/pc.c: Likewise.
37837 * partmap/sun.c: Likewise.
37838 * partmap/gpt.c: Likewise.
37839 * script/sh/lexer.c: Likewise.
37840 * script/sh/function.c: Likewise.
37841 * font/font.c: Likewise.
37842 * font/font_cmd.c: Likewise.
37843 * loader/powerpc/ieee1275/linux.c: Likewise.
37844 * loader/efi/chainloader.c: Likewise.
37845 * loader/multiboot_loader.c: Likewise.
37846 * loader/macho.c: Likewise.
37847 * loader/i386/multiboot.c: Likewise.
37848 * loader/i386/linux.c: Likewise.
37849 * loader/i386/pc/linux.c: Likewise.
37850 * loader/i386/pc/multiboot2.c: Likewise.
37851 * loader/i386/pc/chainloader.c: Likewise.
37852 * loader/i386/pc/xnu.c: Likewise.
37853 * loader/i386/bsd_trampoline.S: Likewise.
37854 * loader/i386/efi/linux.c: Likewise.
37855 * loader/i386/multiboot_elfxx.c: Likewise.
37856 * loader/i386/bsd_helper.S: Likewise.
37857 * loader/i386/bsd.c: Likewise.
37858 * loader/i386/linux_trampoline.S: Likewise.
37859 * loader/i386/xnu_helper.S: Likewise.
37860 * loader/i386/xnu.c: Likewise.
37861 * loader/i386/bsd_pagetable.c: Likewise.
37862 * loader/i386/multiboot_helper.S: Likewise.
37863 * loader/xnu.c: Likewise.
37864 * loader/xnu_resume.c: Likewise.
37865 * io/gzio.c: Likewise.
37866 * term/efi/console.c: Likewise.
37867 * term/terminfo.c: Likewise.
37868 * term/ieee1275/ofconsole.c: Likewise.
37869 * term/i386/pc/serial.c: Likewise.
37870 * term/i386/pc/vesafb.c: Likewise.
37871 * term/i386/pc/vga.c: Likewise.
37872 * term/usb_keyboard.c: Likewise.
37873 * term/gfxterm.c: Likewise.
37874 * aclocal.m4: Likewise.
37875 * util/lvm.c: Likewise.
37876 * util/grub.d/30_os-prober.in: Likewise.
37877 * util/grub.d/10_hurd.in: Likewise.
37878 * util/console.c: Likewise.
37879 * util/grub-macho2img.c: Likewise.
37880 * util/grub-probe.c: Likewise.
37881 * util/hostfs.c: Likewise.
37882 * util/i386/pc/grub-mkimage.c: Likewise.
37883 * util/i386/pc/grub-setup.c: Likewise.
37884 * util/i386/efi/grub-mkimage.c: Likewise.
37885 * util/grub-mkconfig.in: Likewise.
37886 * util/raid.c: Likewise.
37887 * util/resolve.c: Likewise.
37888 * util/grub-mkdevicemap.c: Likewise.
37889 * util/grub-emu.c: Likewise.
37890 * util/getroot.c: Likewise.
37891 * util/hostdisk.c: Likewise.
37892 * util/usb.c: Likewise.
37893 * util/grub-editenv.c: Likewise.
37894 * util/misc.c: Likewise.
37896 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37898 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
37899 `genparttoollist.sh'.
37900 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
37901 Add `*.sh' to the list find searches for and change `mdate.sh'
37904 2009-06-10 Pavel Roskin <proski@gnu.org>
37906 * include/grub/multiboot2.h: Provide compatibility defines for
37908 * include/multiboot2.h: Include stdint.h only if needed, using
37910 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
37912 * loader/ieee1275/multiboot2.c: Likewise.
37913 * loader/multiboot2.c: Likewise.
37914 * loader/multiboot_loader.c: Likewise.
37916 * configure.ac: Use -nostdlib when probing for the target. It
37917 should not be required to have libc for the target.
37919 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
37920 they fail without libc headers for the target.
37921 * include/grub/powerpc/libgcc.h: Use weak attribute for all
37923 * include/grub/sparc64/libgcc.h: Likewise. Don't use
37924 preprocessor conditionals.
37926 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
37927 build system doesn't need to be aware of the tar.c internals.
37929 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
37931 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
37933 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
37935 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
37936 disk limit to 26 for IDE, Virtio, Xen and SCSI.
37938 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
37940 * util/i386/pc/grub-install.in: Change the error message if UUIDs
37941 aren't available if ata.mod gets used.
37943 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
37945 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
37946 initialising controller.
37947 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37949 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37951 * util/i386/pc/grub-install.in: Add a parameter --disk-module
37952 to choose between ata and biosdisk module on i386-pc.
37954 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
37956 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
37957 Subclass and Programming Interface fields in terms of the 3 byte
37958 Class Code register.
37959 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37961 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
37962 interface is OHCI. Add grub_dprintf for symmetry with
37964 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
37965 interface is UHCI. Add interf variable for programming
37966 interface. Print interface with class/subclass.
37968 * bus/usb/ohci.c: Set interf with correct field.
37970 * bus/usb/uhci.c: Remove unneeded doubled lines.
37971 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
37972 Remove whitespace inside comment.
37974 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
37976 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
37977 as fallback an equivalent option without depth.
37979 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37981 Not fail if unable to retrieve C/H/S on LBA disks
37983 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
37984 if unable to retrieve C/H/S on LBA disks
37986 2009-06-08 Pavel Roskin <proski@gnu.org>
37988 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
37991 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37993 * Makefile.in (uninstall): Remove all $lib_DATA files.
37995 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37997 Bugfix: install on partitionless device
37999 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
38002 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38004 * Makefile.in (uninstall): Remove all $include_DATA files.
38006 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38008 * commands/true.c: New file. Implement the true and false commands.
38009 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
38010 (true_mod_SOURCES): New variable.
38011 (true_mod_CFLAGS): Likewise.
38012 (true_mod_LDFLAGS): Likewise.
38014 2009-06-05 Colin D Bennett <colin@gibibit.com>
38016 Optimized font character lookup using binary search instead of linear
38017 search. Fonts now are required to have the character index ordered by
38020 * font/font.c (load_font_index): Verify that fonts have ordered
38022 (find_glyph): Use binary search instead of linear search to find a
38023 character in a font.
38025 2009-06-05 Michael Scherer <misc@mandriva.org>
38027 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
38028 uses case sensitive btree.
38029 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
38030 only for case insensitive filesystems.
38032 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
38034 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
38035 * conf/common.rmk (search_mod_CFLAGS): likewise
38037 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38039 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
38040 compensate a compiler bug
38042 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38044 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
38047 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38049 Definitions for creating asm symbols with Apple's CC
38051 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
38052 [APPLE_CC] (VARIABLE): likewise
38054 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38056 Disable lnxboot.img when compiled
38059 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
38060 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
38061 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
38062 [! APPLE_CC] (CODE_LENG): skip
38063 [! APPLE_CC] (setup_sects): likewise
38064 [! APPLE_CC]: skip filling
38066 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38068 Address in trampolines based on 32-bit registers when compiled
38071 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
38073 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
38075 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38077 Avoid aliases when compiling with Apple's CC for PCBIOS machine
38079 * kern/misc.c [APPLE_CC] (memcpy): new function
38080 [APPLE_CC] (memmove): likewise
38081 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
38082 (memcpy): define alias conditionally on !APPLE_CC
38085 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
38086 APPLE_CC are defined
38087 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
38088 (grub_assert_fail): make prototype conditional
38090 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38092 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
38094 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
38096 (CLEANFILES): add grub-macho2img
38097 (grub_macho2img_SOURCES): new variable
38098 * kern/i386/pc/startup.S (bss_start): new variable
38099 (bss_end): likewise
38100 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
38101 * util/grub-macho2img.c: new file
38103 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38105 Use objconv when compiling with Apple's CC
38107 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
38108 (efiemu64.o): likewise
38109 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
38110 when compiling with Apple's CC
38111 (efiemu64_s.o): likewise
38112 * configure.ac: check for objconv when compiling with Apple's CC
38113 * genmk.rb: use objconv for modules when compiled with Apple's CC
38115 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38117 Define segment as well as section when compiling with
38120 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
38121 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
38122 (efiemu_convert_pointer): likewise
38123 (efiemu_set_virtual_address_map): likewise
38124 (efiemu_convert_pointer): likewise
38125 (efiemu_getcrc32): likewise
38126 (init_crc32_table): likewise
38127 (reflect): likewise
38128 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
38129 (GRUB_MOD_DEP): likewise
38131 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38133 Allow a compilation without -mcmodel=large
38135 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
38136 when compiled without -mcmodel=large
38137 (filter_memory_map): remove memory post 4 GiB when compiled
38138 without -mcmodel=large
38139 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
38140 TARGET_CFLAGS when -mcmodel=large isn't supported
38142 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38144 Remove nested functions in efiemu core
38146 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
38148 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38150 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
38152 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
38154 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
38156 (grub_cpu_is_tsc_supported): likewise
38157 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
38159 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38161 Absolute addressing through constant with Apple's cc
38163 * kern/i386/pc/startup.S: Define necessary constants
38164 and address through it when using ABS with Apple's CC
38165 * boot/i386/pc/diskboot.S: likewise
38166 * boot/i386/pc/boot.S: likewise
38167 * boot/i386/pc/lnxboot.S: likewise
38168 * boot/i386/pc/cdboot.S: likewise
38169 * mmap/i386/pc/mmap_helper.S: likewise
38170 * commands/i386/pc/drivemap_int13h.S: likewise
38172 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38174 Check if compiler is apple cc
38176 * Makefile.in (ASFLAGS): new variable
38177 (TARGET_ASFLAGS): likewise
38178 (TARGET_MODULE_FORMAT): likewise
38179 (TARGET_APPLE_CC): likewise
38180 (OBJCONV): likewise
38181 (TARGET_IMG_CFLAGS): likewise
38182 (TARGET_CPPFLAGS): add includedir
38183 * configure.ac: call grub_apple_cc and grub_apple_target_cc
38184 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
38185 Check for linker script only if compiler isn't Apple's CC
38186 (TARGET_MODULE_FORMAT): set
38187 (TARGET_APPLE_CC): likewise
38188 (TARGET_ASFLAGS): likewise
38189 (ASFLAGS): likewise
38190 Check for objcopy only if compiler isn't Apple's CC
38191 Check for BSS symbol only if compiler isn't Apple's CC
38192 * genmk.rb: adapt nm options if we use Apple's utils
38193 * aclocal.m4 (grub_apple_cc): new test
38194 (grub_apple_target_cc): likewise
38196 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38198 Simplify sed expressions and improve awk
38200 * Makefile.in (install-local): simplify sed expression
38201 * gencmdlist.sh: likewise
38202 * genmoddep.awk: avoid adding module as a dependency of itself
38204 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38206 Add missing start symbols
38208 * boot/i386/pc/boot.S: add start
38209 * boot/i386/pc/pxeboot.S: likewise
38211 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38213 Fix wrong assumptions with grub-mkimage on EFI
38215 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
38216 (relocate_addresses): consider both r_addend and value at offset
38217 (make_mods_section): zerofill modinfo and header
38218 (convert_elf): write prefix here
38220 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38222 Use .asciz instead of .string
38224 * i386/pc/diskboot.S: use .asciz instead of .string
38225 * i386/pc/boot.S: likewise
38226 * include/grub/dl.h (GRUB_MOD_DEP): likewise
38227 (GRUB_MOD_NAME): likewise
38229 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38233 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
38234 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
38235 (grub_video_setup): remove
38236 (grub_video_set_mode): new prototype
38237 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
38239 (linux_vesafb_res): compile only on PCBIOS
38240 (grub_linux_boot): support gfxpayload
38241 * loader/i386/pc/xnu.c (video_hook): new function
38242 (grub_xnu_set_video): support gfxpayload
38243 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
38244 (DEFAULT_VIDEO_HEIGHT): likewise
38245 (DEFAULT_VIDEO_FLAGS): likewise
38246 (DEFAULT_VIDEO_MODE): new definition
38247 (video_hook): new function
38248 (grub_gfxterm_init): use grub_video_set_mode
38249 * util/grub.d/30_os-prober.in: remove explicit modesetting before
38251 * video/video.c (grub_video_setup): removed
38252 (grub_video_set_mode): new function based on grub_gfxterm_init and
38255 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38257 Avoid calling biosdisk in drivemap
38259 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
38260 (revparse_biosdisk): likewise
38261 (list_mappings): derive name from id directly
38262 (grub_cmd_drivemap): use tryparse_diskstring
38264 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38268 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
38269 (grub_lexer_param): add tokenonhold
38270 (grub_script_create_cmdline): remove cmdline. All callers updated
38271 (grub_script_function_create): make functionname
38272 grub_script_arg. All callers updated
38273 (grub_script_execute_argument_to_string): new prototype
38274 * kern/parser.c (state_transitions): reorder
38275 (grub_parser_cmdline_state): fix a bug and make more compact
38276 * script/sh/execute.c (grub_script_execute_argument_to_string):
38278 (grub_script_execute_cmdline): use new format
38279 * script/sh/function.c (grub_script_function_create): make functionname
38280 grub_script_arg. All callers updated
38281 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
38282 (grub_script_yylex): remove
38283 (grub_script_yylex2): renamed to ...
38284 (grub_script_yylex): ...renamed
38285 parse the expressions like a${b}c
38286 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
38287 (GRUB_PARSER_TOKEN_VAR): remove
38288 (GRUB_PARSER_TOKEN_NAME): likewise
38289 ("if"): declare as typeless
38290 ("while"): likewise
38291 ("function"): likewise
38296 (argument): likewise
38297 (script): accept empty scripts and make exit on error
38298 (arguments): use GRUB_PARSER_TOKEN_ARG
38299 (function): likewise
38300 (command): move error handling to script
38301 (menuentry): move grub_script_lexer_ref before
38302 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
38303 argument. All callers updated
38305 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38307 Prevent GRUB from probing floppies during boot.
38309 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
38310 * commands/search.c (options): Add --no-floppy.
38311 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
38312 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
38313 --no-floppy when searching for UUIDs.
38315 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38317 Simplify the code duplication in commands/search.c.
38319 * commands/search.c (search_label, search_fs_uuid): Merge into ...
38320 (search_fs): ... this. Update all users.
38322 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
38324 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
38326 2009-05-28 Pavel Roskin <proski@gnu.org>
38328 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
38329 Remove the original symlink explicitly.
38331 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
38332 just one slash. That's how grub_fshelp_find_file() does it.
38334 2009-05-26 Pavel Roskin <proski@gnu.org>
38336 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
38339 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
38342 2009-05-25 Christian Franke <franke@computer.org>
38344 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
38346 (grub_atapi_identify): Add wait after drive select.
38347 (grub_ata_identify): Do more strict status register check before
38348 calling grub_atapi_identify (). Suppress error message if status
38349 register is 0x00 after command failure. Add status register
38350 check after PIO read to avoid bogus identify due to stuck DRQ.
38351 Thanks to Pavel Roskin for testing.
38352 (grub_device_initialize): Remove unsafe status register check.
38353 Thanks to 'phcoder' for problem report and patch.
38354 Prevent sign extension in debug message.
38356 2009-05-23 Colin D Bennett <colin@gibibit.com>
38358 Cleaned up `include/grub/normal.h'. Grouped prototypes by
38359 definition file, and functions defined in `normal/menu.c' have had
38360 their prototypes moved to `include/grub/menu.h' for consistency.
38362 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
38364 (grub_menu_get_entry): Likewise.
38365 (grub_menu_get_timeout): Likewise.
38366 (grub_menu_set_timeout): Likewise.
38367 (grub_menu_execute_entry): Likewise.
38368 (grub_menu_execute_with_fallback): Likewise.
38369 (grub_menu_entry_run): Likewise.
38371 * include/grub/normal.h: Re-ordered and grouped function
38372 prototypes by file that the function is defined in.
38373 (grub_menu_execute_callback): Removed; moved to menu.h.
38374 (grub_menu_get_entry): Likewise.
38375 (grub_menu_get_timeout): Likewise.
38376 (grub_menu_set_timeout): Likewise.
38377 (grub_menu_execute_entry): Likewise.
38378 (grub_menu_execute_with_fallback): Likewise.
38379 (grub_menu_entry_run): Likewise.
38380 (grub_menu_addentry): Renamed from this ...
38381 (grub_normal_add_menu_entry): ... to this.
38383 * normal/main.c (grub_menu_addentry): Renamed from this ...
38384 (grub_normal_add_menu_entry): ... to this.
38386 * script/sh/execute.c (grub_script_execute_menuentry): Update
38387 reference to renamed grub_menu_addentry function.
38389 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
38391 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
38393 2009-05-22 Pavel Roskin <proski@gnu.org>
38395 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
38396 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
38397 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
38398 compiling for the i386 targets, but not for the utilities.
38400 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
38402 (grub_root_drive): Likewise.
38403 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
38405 (grub_root_drive): Change size to byte.
38406 (grub_start_addr): Remove.
38407 (grub_end_addr): Likewise.
38408 (grub_apm_bios_info): Likewise.
38410 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
38412 * normal/i386: Remove.
38413 * normal/powerpc: Likewise.
38414 * normal/sparc64: Likewise.
38415 * normal/x86_64: Likewise.
38417 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
38419 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
38420 * loader/i386/linux_trampoline.S: Fix indentation
38421 * loader/i386/xnu_helper.S: Likewise
38423 2009-05-18 Colin D Bennett <colin@gibibit.com>
38425 Display error messages when parsing a Lua statement fails.
38426 Previously, executing a syntactically invalid statement like
38427 ")foo" or "bar;" would silently fail.
38429 * script/lua/grub_main.c (handle_lua_error): New function.
38430 (grub_lua_parse_line): Improved reporting of Lua parser and
38433 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38435 Remove -Werror which causes build to fail on some systems
38437 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
38438 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
38439 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
38441 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38443 trampoline for linux on 64-bit platform
38445 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
38446 loader/i386/efi/linux_trampoline.S
38447 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
38449 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
38451 * loader/i386/linux_trampoline.S: moved here
38452 * loader/i386/efi/linux.c (allocate_pages): reserve space for
38454 (jumpvector): removed
38455 (grub_linux_trampoline_start): new declaration
38456 (grub_linux_trampoline_end): likewise
38457 (grub_linux_boot): use trampoline when on 64-bit platform
38458 * loader/i386/linux.c: likewise
38460 2009-05-16 Pavel Roskin <proski@gnu.org>
38462 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
38463 const to avoid a warning.
38464 (grub_lua_setenv): Likewise.
38465 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
38466 lmsg to fix a warning.
38468 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38470 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
38471 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38472 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
38473 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38474 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38475 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38476 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38477 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38479 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38481 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
38483 2009-05-16 Bean <bean123ch@gmail.com>
38485 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
38486 (lua_mod_SOURCES): New variable.
38487 (lua_mod_CFLAGS): Likewise.
38488 (lua_mod_LDFLAGS): Likewise.
38490 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
38491 (setjmp_mod_SOURCES): New variable.
38492 (setjmp_mod_CFLAGS): Likewise.
38493 (setjmp_LDFLAGS): Likewise.
38495 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
38496 (setjmp_mod_SOURCES): New variable.
38497 (setjmp_mod_CFLAGS): Likewise.
38498 (setjmp_LDFLAGS): Likewise.
38500 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38501 (setjmp_mod_SOURCES): New variable.
38502 (setjmp_mod_CFLAGS): Likewise.
38503 (setjmp_LDFLAGS): Likewise.
38505 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38506 (setjmp_mod_SOURCES): New variable.
38507 (setjmp_mod_CFLAGS): Likewise.
38508 (setjmp_LDFLAGS): Likewise.
38510 * normal/i386/setjmp.S: Moved from here ...
38511 * lib/i386/setjmp.S: ... Moved here
38512 * normal/x86_64/setjmp.S: Moved from here ...
38513 * lib/x86_64/setjmp.S: ... Moved here
38514 * normal/powerpc/setjmp.S: Moved from here ...
38515 * lib/powerpc/setjmp.S: ... Moved here
38516 * normal/sparc64/setjmp.S: Moved from here ...
38517 * lib/sparc64/setjmp.S: ... Moved here
38519 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
38520 returns_twice in mingw.
38522 * script/lua/grub_lib.c: New file.
38523 * script/lua/grub_lib.h: Likewise.
38524 * script/lua/grub_lua.h: Likewise.
38525 * script/lua/grub_main.c: Likewise.
38526 * script/lua/lapi.c: Likewise.
38527 * script/lua/lapi.h: Likewise.
38528 * script/lua/lauxlib.c: Likewise.
38529 * script/lua/lauxlib.h: Likewise.
38530 * script/lua/lbaselib.c: Likewise.
38531 * script/lua/lcode.c: Likewise.
38532 * script/lua/lcode.h: Likewise.
38533 * script/lua/ldblib.c: Likewise.
38534 * script/lua/ldebug.c: Likewise.
38535 * script/lua/ldebug.h: Likewise.
38536 * script/lua/ldo.c: Likewise.
38537 * script/lua/ldo.h: Likewise.
38538 * script/lua/ldump.c: Likewise.
38539 * script/lua/lfunc.c: Likewise.
38540 * script/lua/lfunc.h: Likewise.
38541 * script/lua/lgc.c: Likewise.
38542 * script/lua/lgc.h: Likewise.
38543 * script/lua/linit.c: Likewise.
38544 * script/lua/liolib.c: Likewise.
38545 * script/lua/llex.c: Likewise.
38546 * script/lua/llex.h: Likewise.
38547 * script/lua/llimits.h: Likewise.
38548 * script/lua/lmathlib.c: Likewise.
38549 * script/lua/lmem.c: Likewise.
38550 * script/lua/lmem.h: Likewise.
38551 * script/lua/loadlib.c: Likewise.
38552 * script/lua/lobject.c: Likewise.
38553 * script/lua/lobject.h: Likewise.
38554 * script/lua/lopcodes.c: Likewise.
38555 * script/lua/lopcodes.h: Likewise.
38556 * script/lua/loslib.c: Likewise.
38557 * script/lua/lparser.c: Likewise.
38558 * script/lua/lparser.h: Likewise.
38559 * script/lua/lstate.c: Likewise.
38560 * script/lua/lstate.h: Likewise.
38561 * script/lua/lstring.c: Likewise.
38562 * script/lua/lstring.h: Likewise.
38563 * script/lua/lstrlib.c: Likewise.
38564 * script/lua/ltable.c: Likewise.
38565 * script/lua/ltable.h: Likewise.
38566 * script/lua/ltablib.c: Likewise.
38567 * script/lua/ltm.c: Likewise.
38568 * script/lua/ltm.h: Likewise.
38569 * script/lua/lua.h: Likewise.
38570 * script/lua/luaconf.h: Likewise.
38571 * script/lua/lualib.h: Likewise.
38572 * script/lua/lundump.c: Likewise.
38573 * script/lua/lundump.h: Likewise.
38574 * script/lua/lvm.c: Likewise.
38575 * script/lua/lvm.h: Likewise.
38576 * script/lua/lzio.c: Likewise.
38577 * script/lua/lzio.h: Likewise.
38579 2009-05-16 Bean <bean123ch@gmail.com>
38581 * include/grub/kernel.h (grub_module_header_types): Add type
38584 * kern/main.c (grub_load_config): New function.
38585 (grub_main): Call grub_load_config to read boot config.
38587 * grub-mkimage (generate_image): New parameter config_path.
38588 (options): New option --config.
38589 (main): Parse --config option, and pass it to generate_image.
38591 2009-05-14 Christian Franke <franke@computer.org>
38593 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
38594 This fixes build on Cygwin.
38596 2009-05-14 Pavel Roskin <proski@gnu.org>
38598 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
38599 jump. This saves two bytes, so the typical case of 2 swapped
38600 drives would fit 32 bytes.
38602 2009-05-13 Pavel Roskin <proski@gnu.org>
38604 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
38605 grub_uint32_t to avoid a warning.
38607 * loader/i386/linux.c (allocate_pages): When assigning
38608 real_mode_mem, cast through grub_size_t to fix a warning. The
38609 code already makes sure that the value would fit a pointer.
38610 (grub_linux_setup_video): Cast render_target->data to
38611 grub_size_t to fix a warning.
38613 2009-05-13 Javier Martín <lordhabbit@gmail.com>
38615 * commands/i386/pc/drivemap.c: New file - implement drivemap
38617 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
38618 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
38620 2009-05-13 Pavel Roskin <proski@gnu.org>
38622 * util/i386/pc/grub-setup.c (setup): Remove unused variable
38623 embedding_area_exists.
38625 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
38627 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
38628 it easier to understand / work with.
38629 Improve warning messages for cases where there's no embedding area,
38630 or when it is too small (or core.img too large).
38632 2009-05-13 Pavel Roskin <proski@gnu.org>
38634 * loader/i386/pc/multiboot2.c: Add necessary includes for
38635 grub_multiboot2_real_boot().
38637 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
38638 PX record is always little-endian. We only need the lower 2
38641 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
38642 facilitate code reuse.
38643 (grub_cpio_mount): Use "struct head", not a char buffer. This
38644 fixes a warning reported by gcc 4.4.
38646 * kernel/disk.c (grub_disk_read): Use void pointer for the
38648 (grub_disk_write): Use const void pointer for the buffer.
38649 Adjust all callers. Remove unnecessary casts.
38651 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
38653 * util/i386/pc/grub-install.in: Update copyright year.
38655 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38659 * commands/gptsync.c: new file
38660 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
38661 (gptsync_mod_SOURCES): new variable
38662 (gptsync_mod_CFLAGS): likewise
38663 (gptsync_mod_LDFLAGS): likewise
38664 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
38666 (GRUB_PC_PARTITION_TYPE_HFS): likewise
38667 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
38668 * conf/i386-ieee1275.rmk: likewise
38669 * conf/i386-pc.rmk: likewise
38670 * conf/powerpc-ieee1275.rmk: likewise
38672 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38676 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
38677 (grub_dl_ref): likewise
38679 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
38681 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
38682 split in two functions (one for msdos and one for gpt).
38684 2009-05-08 Pavel Roskin <proski@gnu.org>
38686 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
38689 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
38690 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
38691 Initialize them with -1. Add sanity check for bad1. Eliminate
38694 2009-05-08 David S. Miller <davem@davemloft.net>
38696 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
38698 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
38700 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
38703 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
38705 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38706 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
38708 2009-05-05 David S. Miller <davem@davemloft.net>
38710 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
38712 2009-05-05 Pavel Roskin <proski@gnu.org>
38714 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
38715 of grub_dl_ref() and grub_dl_unref().
38716 * commands/parttool.c: Remove preprocessor conditionals around
38717 grub_dl_ref() and grub_dl_unref().
38718 * fs/affs.c: Likewise.
38719 * fs/afs.c: Likewise.
38720 * fs/cpio.c: Likewise.
38721 * fs/ext2.c: Likewise.
38722 * fs/fat.c: Likewise.
38723 * fs/hfs.c: Likewise.
38724 * fs/hfsplus.c: Likewise.
38725 * fs/iso9660.c: Likewise.
38726 * fs/jfs.c: Likewise.
38727 * fs/minix.c: Likewise.
38728 * fs/ntfs.c: Likewise.
38729 * fs/reiserfs.c: Likewise.
38730 * fs/sfs.c: Likewise.
38731 * fs/udf.c: Likewise.
38732 * fs/ufs.c: Likewise.
38733 * fs/xfs.c: Likewise.
38734 * include/grub/dl.h: Likewise.
38735 * loader/xnu.c: Likewise.
38737 2009-05-04 Pavel Roskin <proski@gnu.org>
38739 * commands/acpi.c: Remove unused variable my_mod.
38740 * partmap/amiga.c: Likewise.
38741 * partmap/apple.c: Likewise.
38742 * partmap/gpt.c: Likewise.
38743 * partmap/pc.c: Likewise.
38744 * partmap/sun.c: Likewise.
38745 * term/gfxterm.c: Likewise.
38746 * term/i386/pc/vesafb.c: Likewise.
38747 * term/i386/pc/vga.c: Likewise.
38749 2009-05-04 David S. Miller <davem@davemloft.net>
38751 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
38752 pointer args to grub_ieee1275_get_property().
38754 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
38756 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
38757 devices, and do not traverse down under controller nodes.
38759 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
38760 (grub_ofdisk_open): Use it to un-escape "," characters.
38761 * kern/disk.c (find_part_sep): New.
38762 (grub_disk_open): Use it to find the first non-escaped ','
38763 character in the disk name.
38764 * util/ieee1275/devicemap.c (escape_of_path): New.
38765 (grub_util_emit_devicemap_entry): Use it.
38766 * util/sparc64/ieee1275/grub-install.in: Update script to
38767 strip partition specifiers properly by not triggering on
38768 '\' escaped ',' characters.
38770 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38772 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38774 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38776 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38777 on documentation from Wikipedia).
38779 2009-05-04 Pavel Roskin <proski@gnu.org>
38781 * disk/ata.c: Spelling fixes.
38782 * disk/raid.c: Likewise.
38783 * disk/usbms.c: Likewise.
38784 * disk/dmraid_nvidia.c: Likewise.
38785 * kern/ieee1275/openfw.c: Likewise.
38786 * kern/ieee1275/init.c: Likewise.
38787 * kern/ieee1275/cmain.c: Likewise.
38788 * boot/i386/pc/cdboot.S: Likewise.
38789 * video/readers/png.c: Likewise.
38790 * video/i386/pc/vbe.c: Likewise.
38791 * fs/udf.c: Likewise.
38792 * fs/hfs.c: Likewise.
38793 * fs/reiserfs.c: Likewise.
38794 * efiemu/runtime/efiemu.c: Likewise.
38795 * efiemu/main.c: Likewise.
38796 * efiemu/mm.c: Likewise.
38797 * include/grub/elf.h: Likewise.
38798 * include/grub/xnu.h: Likewise.
38799 * include/grub/usbdesc.h: Likewise.
38800 * include/grub/usb.h: Likewise.
38801 * include/grub/script_sh.h: Likewise.
38802 * include/grub/lib/LzmaEnc.h: Likewise.
38803 * include/grub/efiemu/efiemu.h: Likewise.
38804 * include/grub/command.h: Likewise.
38805 * normal/menu.c: Likewise.
38806 * normal/main.c: Likewise.
38807 * normal/datetime.c: Likewise.
38808 * bus/usb/uhci.c: Likewise.
38809 * mmap/i386/uppermem.c: Likewise.
38810 * mmap/mmap.c: Likewise.
38811 * commands/acpi.c: Likewise.
38812 * commands/test.c: Likewise.
38813 * partmap/apple.c: Likewise.
38814 * font/font.c: Likewise.
38815 * loader/sparc64/ieee1275/linux.c: Likewise.
38816 * loader/macho.c: Likewise.
38817 * loader/i386/bsd_trampoline.S: Likewise.
38818 * loader/i386/bsd.c: Likewise.
38819 * loader/xnu.c: Likewise.
38820 * term/i386/pc/vesafb.c: Likewise.
38821 * term/usb_keyboard.c: Likewise.
38822 * util/resolve.c: Likewise.
38823 * util/getroot.c: Likewise.
38825 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38827 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38829 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38831 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38834 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38836 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38837 parameter only available on BIOS.
38839 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38841 Removed wrong semicolon in declaration
38843 * grub/misc.h (grub_dprintf): remove semicolon
38845 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38847 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
38848 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
38849 is done by grub_cmd_linux() now).
38850 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
38851 restore video to text mode.
38852 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
38853 indicates lack of "vga=" parameter. "vga=0" is mapped to
38854 `GRUB_LINUX_VID_MODE_NORMAL'.
38856 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38858 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
38859 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
38860 and `normal/script.c'. Add `kern/rescue_reader.c',
38861 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
38862 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
38863 `grub_script.tab.c'.
38865 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38866 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38867 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38868 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38869 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38871 * Makefile.in: Remove duplicated 2008 in Copyright line.
38873 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38875 * util/misc.c (grub_util_warn): New function. Emits a warning
38877 * include/grub/util/misc.h (grub_util_warn): New declaration.
38879 * util/i386/pc/grub-install.in: Understand --force and pass it down
38882 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
38884 (setup): Improve error messages and add warnings when requested to
38885 install in odd layouts. Refuse to install using blocklists unless
38888 2009-05-04 martin f. krafft <madduck@madduck.net>
38890 * disk/raid.c (grub_raid_scan_device): Improve debug message.
38892 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38894 Updated copyright year
38896 * fs/hfsplus.c: updated copyright year
38898 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38902 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
38903 in the space previously used by unused3
38904 (grub_hfsplus_uuid): new function
38905 (grub_hfsplus_fs): added uuid field
38907 2009-05-03 Pavel Roskin <proski@gnu.org>
38909 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
38910 suppress warnings. It's no longer needed.
38911 * disk/host.c: Likewise.
38912 * disk/ata_pthru.c: Likewise.
38913 * disk/loopback.c: Likewise.
38914 * hook/datehook.c: Likewise.
38915 * parttool/pcpart.c: Likewise.
38916 * fs/i386/pc/pxe.c: Likewise.
38917 * fs/ntfscomp.c: Likewise.
38918 * efiemu/main.c: Likewise.
38919 * mmap/mmap.c: Likewise.
38920 * commands/crc.c: Likewise.
38921 * commands/hexdump.c: Likewise.
38922 * commands/hdparm.c: Likewise.
38923 * commands/acpi.c: Likewise.
38924 * commands/echo.c: Likewise.
38925 * commands/minicmd.c: Likewise.
38926 * commands/blocklist.c: Likewise.
38927 * commands/memrw.c: Likewise.
38928 * commands/loadenv.c: Likewise.
38929 * commands/usbtest.c: Likewise.
38930 * commands/lsmmap.c: Likewise.
38931 * commands/boot.c: Likewise.
38932 * commands/parttool.c: Likewise.
38933 * commands/configfile.c: Likewise.
38934 * commands/search.c: Likewise.
38935 * commands/ieee1275/suspend.c: Likewise.
38936 * commands/cat.c: Likewise.
38937 * commands/i386/pc/pxecmd.c: Likewise.
38938 * commands/i386/pc/play.c: Likewise.
38939 * commands/i386/pc/halt.c: Likewise.
38940 * commands/i386/pc/vbeinfo.c: Likewise.
38941 * commands/i386/pc/vbetest.c: Likewise.
38942 * commands/lspci.c: Likewise.
38943 * commands/date.c: Likewise.
38944 * commands/handler.c: Likewise.
38945 * commands/ls.c: Likewise.
38946 * commands/test.c: Likewise.
38947 * commands/cmp.c: Likewise.
38948 * commands/efi/loadbios.c: Likewise.
38949 * commands/efi/fixvideo.c: Likewise.
38950 * commands/halt.c: Likewise.
38951 * commands/help.c: Likewise.
38952 * commands/reboot.c: Likewise.
38953 * hello/hello.c: Likewise.
38954 * script/sh/main.c: Likewise.
38955 * loader/xnu.c: Likewise.
38956 * term/terminfo.c: Likewise.
38957 * term/i386/pc/serial.c: Likewise.
38958 * term/usb_keyboard.c: Likewise.
38960 2009-05-03 David S. Miller <davem@davemloft.net>
38962 * normal/menu.c: Include grub/parser.h
38964 2009-05-03 Pavel Roskin <proski@gnu.org>
38966 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
38968 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
38969 Suggested by Javier Martín <lordhabbit@gmail.com>
38971 * util/i386/pc/grub-mkrescue.in: Allow for the case when
38972 efiemu??.o doesn't exist.
38973 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
38976 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
38978 FreeBSD 64-bit support
38980 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
38981 and loader/i386/bsd_trampoline.S
38982 (bsd_mod_ASFLAGS): new variable
38983 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
38984 (FREEBSD_MODTYPE_KERNEL64): likewise
38985 (grub_bsd64_trampoline_start): likewise
38986 (grub_bsd64_trampoline_end): likewise
38987 (grub_bsd64_trampoline_selfjump): likewise
38988 (grub_bsd64_trampoline_gdt): likewise
38989 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
38990 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
38991 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
38992 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
38993 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
38995 * loader/i386/bsd_pagetable.c: new file
38996 * loader/i386/bsd_trampoline.S: likewise
38997 * loader/i386/bsd.c (ALIGN_QWORD): new macro
38998 (ALIGN_VAR): likewise
38999 (entry_hi): new variable
39000 (kern_end_mdofs): likewise
39001 (is_64bit): likewise
39002 (grub_freebsd_add_meta): use ALIGN_VAR
39003 (grub_e820_mmap): new declaration
39004 (grub_freebsd_add_mmap): new function
39005 (grub_freebsd_add_meta_module): support 64 bit kernels
39006 (grub_freebsd_list_modules): use ALIGN_VAR
39007 (gdt_descriptor): new declaration
39008 (grub_freebsd_boot): support 64 bit kernels
39009 (grub_bsd_elf64_hook): new function
39010 (grub_bsd_load_elf): support elf64
39012 2009-05-03 Bean <bean123ch@gmail.com>
39014 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
39015 after we get the result of if statement.
39017 2009-05-03 Bean <bean123ch@gmail.com>
39019 * Makefile.in (enable_efiemu): New variable.
39021 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
39023 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
39025 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
39026 path, add -mno-red-zone option.
39027 (efiemu64_s.o): Likewise.
39028 (efiemu64.o): Use macro $^ for source file.
39030 * configure.ac (--enable-efiemu): New option.
39032 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
39036 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
39037 (pkglib_MODULES): add xnu.mod
39038 (xnu_mod_SOURCES): new variable
39039 (xnu_mod_CFLAGS): likewise
39040 (xnu_mod_LDFLAGS): likewise
39041 (xnu_mod_ASFLAGS): likewise
39042 * conf/i386-pc.rmk: likewise
39043 * conf/x86_64-efi.rmk: likewise
39044 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
39046 * include/grub/i386/macho.h: new file
39047 * include/grub/i386/xnu.h: likewise
39048 * include/grub/macho.h: likewise
39049 * include/grub/machoload.h: likewise
39050 * include/grub/x86_64/macho.h: likewise
39051 * include/grub/x86_64/xnu.h: likewise
39052 * include/grub/xnu.h: likewise
39053 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
39054 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
39055 * loader/i386/efi/xnu.c: new file
39056 * loader/i386/pc/xnu.c: likewise
39057 * loader/i386/xnu.c: likewise
39058 * loader/i386/xnu_helper.S: likewise
39059 * loader/macho.c: likewise
39060 * loader/xnu.c: likewise
39061 * loader/xnu_resume.c: likewise
39062 * util/grub-dumpdevtree: likewise
39063 * include/grub/i386/pit.h: include grub/err.h
39064 (grub_pit_wait): export
39065 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
39067 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39071 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
39072 _linux_efi, linux_efi.
39073 new files in grub-emu
39074 new targets efiemu32.o and efiemu64.o
39075 * loader/linux_normal_efiemu.c: likewise
39076 * loader/i386/efi/linux.c: added preliminary efiemu support
39077 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
39079 * include/grub/autoefi.h: new file
39080 * include/grub/i386/efiemu.h: likewise
39081 * include/grub/i386/pc/efiemu.h: likewise
39082 * include/grub/efi/api.h: add LL suffix when necessary
39083 new definitions relating to tables
39084 * include/grub/efiemu/efiemu.h: new file
39085 * include/grub/efiemu/runtime.h: likewise
39086 * efiemu/prepare.c: likewise
39087 * efiemu/loadcore_common.c: likewise
39088 * efiemu/loadcore64.c: likewise
39089 * efiemu/runtime/efiemu.sh: likewise
39090 * efiemu/runtime/efiemu.S: likewise
39091 * efiemu/runtime/efiemu.c: likewise
39092 * efiemu/runtime/config.h: likewise
39093 * efiemu/prepare32.c: likewise
39094 * efiemu/main.c: likewise
39095 * efiemu/modules/pnvram.c: likewise
39096 * efiemu/modules/i386: likewise
39097 * efiemu/modules/i386/pc: likewise
39098 * efiemu/modules/acpi.c: likewise
39099 * efiemu/i386/pc/cfgtables.c: likewise
39100 * efiemu/i386/loadcore64.c: likewise
39101 * efiemu/i386/loadcore32.c: likewise
39102 * efiemu/prepare64.c: likewise
39103 * efiemu/loadcore.c: likewise
39104 * efiemu/symbols.c: likewise
39105 * efiemu/mm.c: likewise
39106 * efiemu/loadcore32.c: likewise
39108 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39112 * commands/acpi.c: new file
39113 * commands/i386/pc/acpi.c: likewise
39114 * commands/efi/acpi.c: likewise
39115 * include/grub/acpi.h: likewise
39116 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
39117 (acpi_mod_SOURCES): new variable
39118 (acpi_mod_CFLAGS): likewise
39119 (acpi_mod_LDFLAGS): likewise
39120 * conf/i386-efi.rmk: likewise
39121 * conf/x86_64-efi.rmk: likewise
39123 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39125 Missing part from mmap patch
39127 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
39128 (grub_mmap_unregister)
39129 (grub_mmap_free_and_unregister): use grub_mmap_register
39131 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39135 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
39136 * loader/i386/linux.c (find_mmap_size): likewise
39137 (allocate_pages): likewise
39138 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
39139 (grub_fill_multiboot_mmap): likewise
39140 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
39141 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
39142 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
39143 (OPENBSD_MMAP_RESERVED): likewise
39144 * include/grub/i386/pc/memory.h: include grub/memory.h
39145 (grub_lower_mem): removed
39146 (grub_upper_mem): likewise
39147 (GRUB_MACHINE_MEMORY_ACPI): new definition
39148 (GRUB_MACHINE_MEMORY_NVS): likewise
39149 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
39150 (GRUB_MACHINE_MEMORY_HOLE): likewise
39151 (grub_machine_mmap_register): likewise
39152 (grub_machine_mmap_unregister): likewise
39153 (grub_machine_get_upper): likewise
39154 (grub_machine_get_lower): likewise
39155 (grub_machine_get_post64): likewise
39156 * include/grub/i386/efi/memory.h: new file
39157 * include/grub/x86_64/efi/memory.h: likewise
39158 * include/grub/efi/memory.h: likewise
39159 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
39160 (mmap_mod_SOURCES): new variable
39161 (mmap_mod_LDFLAGS): likewise
39162 (mmap_mod_ASFLAGS): likewise
39163 * conf/i386-coreboot.rmk: likewise
39164 * conf/i386-ieee1275.rmk: likewise
39165 * conf/i386-efi.rmk: likewise
39166 * conf/x86_64-efi.rmk: likewise
39167 * include/grub/types.h (UINT_TO_PTR): new macro
39168 (PTR_TO_UINT32): likewise
39169 (PTR_TO_UINT64): likewise
39170 * include/grub/memory.h: new file
39171 * mmap/i386/pc/mmap.c: likewise
39172 * mmap/i386/pc/mmap_helper.S: likewise
39173 * mmap/i386/uppermem.c: likewise
39174 * mmap/mmap.c: likewise
39175 * mmap/efi/mmap.c: likewise
39176 * kern/i386/coreboot/init.c (grub_machine_init): don't use
39178 * kern/i386/pc/init.c (grub_lower_mem): removed variable
39179 (grub_upper_mem): likewise
39180 (grub_machine_init): don't use grub_upper_mem,
39181 make grub_lower_mem local
39182 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
39183 grub_mmap_iterate and grub_mmap_get_upper
39184 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
39186 2009-05-02 Bean <bean123ch@gmail.com>
39188 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
39189 script/sh/parser.y.
39190 (pkglib_MODULES): Add normal.mod and sh.mod.
39191 (normal_SOURCES): New variable.
39192 (normal_mod_CFLAGS): Likewise.
39193 (normal_mod_LDFLAGS): Likewise.
39194 (sh_mod_SOURCES): Likewise.
39195 (sh_mod_CFLAGS): Likewise.
39196 (sh_mod_LDFLAGS): Likewise.
39198 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
39199 script/sh/lexer.c_DEPENDENCIES.
39200 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
39201 kern/rescue_reader.c and kern/rescue_parser.c.
39202 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
39203 (grub_emu_SOURCES): Change source files.
39204 (pkglib_MODULES): Remove normal.mod.
39205 (normal_SOURCES): Removed.
39206 (normal_mod_CFLAGS): Likewise.
39207 (normal_mod_LDFLAGS): Likewise.
39208 * conf/i386-coreboot.rmk: Likewise.
39209 * conf/i386-efi.rmk: Likewise.
39210 * conf/i386-ieee1276.rmk: Likewise.
39211 * conf/powerpc-ieee1275.rmk: Likewise.
39212 * conf/sparc64-ieee1275.rmk: Likewise.
39213 * conf/x86_64-efi.rmk: Likewise.
39215 * include/grub/command.h (grub_command_execute): New inline function.
39217 * include/grub/menu.h (grub_menu_entry): Removed commands field.
39219 * include/grub/normal.h: Remove <grub/setjmp.h>.
39220 (grub_fs_module_list): Moved to normal/autofs.c.
39221 (grub_exit_env): Removed.
39222 (grub_command_execute): Likewise.
39223 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
39225 (read_command_list): New function declaration.
39226 (read_fs_list): Likewise.
39228 * include/parser.h: Include <grub/reader.h>.
39229 (grub_parser_split_cmdline): Change type of getline parameter.
39230 (grub_parser): New structure.
39231 (grub_parser_class): New variable.
39232 (grub_parser_execute): New function declaration.
39233 (grub_register_rescue_parser): Likewise.
39234 (grub_parser_register): New inline function.
39235 (grub_parser_unregister): Likewise.
39236 (grub_parser_get_current): Likewise.
39237 (grub_parser_set_current): Likewise.
39239 * include/grub/reader.h: New file.
39240 * kern/reader.c: Likewise.
39241 * kern/rescue_parser.c: Likewise.
39242 * kern/rescue_reader.c: Likewise.
39243 * normal/autofs.c: Likewise.
39244 * normal/dyncmd.c: Likewise.
39246 * include/grub/rescue.h: Removed.
39247 * normal/command.h: Likewise.
39249 * include/grub/script.h: Moved to ...
39250 * include/grub/script_sh.h: ... Moved here.
39251 * normal/execute.c: Moved to ...
39252 * script/sh/execute.c: ... Moved here.
39253 * normal/function.c: Moved to ...
39254 * script/sh/function.c: ... Moved here.
39255 * normal/lexer.c: Moved to ...
39256 * script/sh/lexer.c: ... Moved here.
39257 * normal/parser.y: Moved to ...
39258 * script/sh/parser.y: ... Moved here.
39259 * normal/script.c: Moved to ...
39260 * script/sh/script.c: ... Moved here.
39262 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
39264 (grub_exit_env): Removed.
39265 (fs_module_list): Moved to normal/autofs.c.
39266 (grub_file_getline): Don't handle comment here.
39267 (free_menu): Skip removed field entry->commands.
39268 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
39270 (read_config_file): Removed nested parameter, change getline function.
39271 (grub_enter_normal_mode): Removed.
39272 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
39273 (read_command_list): Likewise.
39274 (autoload_fs_module): Moved to normal/autofs.c.
39275 (read_fs_list): Likewise.
39276 (reader_nested): New variable.
39277 (grub_normal_execute): Run parser.sh to switch to sh parser.
39278 (grub_cmd_rescue): Removed.
39279 (cmd_normal): Removed.
39280 (grub_cmd_normal): Unregister itself at the beginning. Don't register
39282 (grub_cmdline_run): New function.
39283 (grub_normal_reader_init): Likewise.
39284 (grub_normal_read_line): Likewise.
39285 (grub_env_write_pager): Likewise.
39286 (cmdline): New variable.
39287 (grub_normal_reader): Likewise.
39288 (GRUB_MOD_INIT): Register normal reader and set as current, register
39289 pager hook, register normal command with grub_register_command_prio,
39290 so that it won't show up in command.lst.
39291 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
39292 grub_fs_autoload_hook.
39294 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
39295 (grub_menu_execute_entry): Replace grub_script_execute with
39296 grub_parser_execute, change parameter to grub_command_execute.
39298 * normal/menu_text.c: Remove <grub/script.h>.
39300 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
39301 and <grub/parser.h>.
39302 (run): Change editor_getline to use new parser interface. Change
39303 parameter to grub_command_execute.
39305 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
39306 <grub/reader.h> and <grub/parser.h>.
39307 (grub_load_normal_mode): Execute normal command.
39308 (grub_main): Call grub_register_core_commands,
39309 grub_register_rescue_parser and grub_register_rescue_reader, use
39310 grub_reader_loop to enter input loop.
39312 * kern/parser.c (grub_parser_split_cmdline): Change type of
39314 (grub_parser_class): New variable.
39315 (grub_parser_execute): New function.
39317 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
39318 * loader/multiboot2.c: Likewise.
39319 * loader/sparc64/ieee1275/linux.c: Likewise.
39321 * util/grub-emu.c (read_command_list): New dummy function.
39323 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39325 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
39326 count to 16 for CCISS and IDA.
39328 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39330 * normal/menu_text.c (grub_wait_after_message): Print a newline
39331 after waiting for user input.
39333 * loader/i386/linux.c: Include `<grub/normal.h>'.
39334 (grub_cmd_linux): Improve the error message about `ask' mode, by
39335 waiting for user input so it's not missed (we can do this, since
39336 user requested interaction).
39338 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39340 Added missing lst to grub-mkrescue
39342 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
39343 and ${input_dir}/parttool.lst
39345 2009-04-30 David S. Miller <davem@davemloft.net>
39347 * util/hostdisk.c (device_is_wholedisk): New function.
39348 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
39349 zero only if device_is_wholedisk() returns true.
39351 * util/hostdisk.c (convert_system_partition_to_system_disk):
39352 Handle virtual disk devices named /dev/vdiskX as found on sparc
39355 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
39356 lettered partition specifier is found, convert to numbered.
39358 2009-04-29 David S. Miller <davem@davemloft.net>
39360 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
39361 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39363 * normal/command.c: Add missing newline at end of file.
39365 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
39367 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
39368 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
39369 grub_ofdisk_read): Likewise, and deal similarly with the fact that
39370 ihandles have a 32-bit type but need to be stored in a "void *".
39372 2009-04-28 Pavel Roskin <proski@gnu.org>
39374 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
39375 not disk. Adjust all dependencies.
39376 (grub_fs_uuid_close): Use grub_device_close(), not
39379 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
39380 parent's partition, don't copy it by reference, as it gets freed
39383 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39385 Preboot hooks support
39387 * commands/boot.c (struct grub_preboot_t): new declaration
39388 (preboots_head): new variable
39389 (preboots_tail): likewise
39390 (grub_loader_register_preboot_hook): new function
39391 (grub_loader_unregister_preboot_hook): likewise
39392 (grub_loader_set): launch preboot hooks
39393 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
39394 (grub_loader_register_preboot_hook): new declaration
39395 (grub_loader_unregister_preboot_hook): likewise
39397 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39401 * disk/scsi.c (grub_scsi_open): added missing cast when
39402 calling grub_dprintf
39404 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
39406 Bug and warning fixes
39408 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
39410 * commands/test.c (test_parse): fixed bug with file tests and corrected
39411 declaration of find_file
39413 2009-04-26 Pavel Roskin <proski@gnu.org>
39415 * Makefile.in: Don't install empty manual pages if help2man is
39416 missing. Use help2man option for output, not shell redirection.
39418 2009-04-26 David S. Miller <davem@davemloft.net>
39420 * util/grub-mkdevicemap.c (make_device_map): Add missing
39421 NESTED_FUNC_ATTR to process_device().
39423 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39427 * commands/test.c: rewritten to use bash-like test
39429 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39431 Parttool autoloading and improvements
39433 * Makefile.in (pkglib_DATA): add parttool.lst
39434 (parttool.lst): new target
39435 * genmk.rb: generate parttool-*
39436 (CLEANFILES): add #{parttool}
39437 (PARTTOOLFILES): new variable
39438 * genparttoollist.sh: new file
39439 * parttool/pcpart.c (grub_pcpart_boot): more feedback
39440 (grub_pcpart_type): likewise
39441 * commands/parttool.c (helpmsg): new variable
39442 (grub_cmd_parttool): output help if not enough arguments are supplied
39444 (GRUB_MOD_INIT(parttool)): use helpmsg
39446 2009-04-24 David S. Miller <davem@davemloft.net>
39448 Avoiding opening same device multiple times in device iterator.
39450 * kern/device.c: (grub_device_iterate): Define struct part_ent,
39451 and use it to build a list of partitions in iterate_disk() and
39452 iterate_partition().
39454 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
39457 * disk/ieee1275/nand.c (grub_nand_iterate): Return
39458 grub_devalias_iterate() result instead of unconditional 0.
39459 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
39460 Also, capture hook return value, either directly or via
39461 grub_children_iterate(), and propagate to caller.
39462 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
39463 grub_children_iterate): Return value is now 'int' instead of
39465 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
39466 like a proper iterator, stopping when hooks return non-zero.
39467 (grub_devalias_iterate): Likewise.
39469 2009-04-23 David S. Miller <davem@davemloft.net>
39471 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
39473 2009-04-22 David S. Miller <davem@davemloft.net>
39475 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
39476 is larger than address_cells, use that value for address_cells too.
39478 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
39479 IEEE1275_MAX_PATH_LEN): Define.
39480 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
39481 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
39482 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
39483 'devtype'. Explicitly NULL terminate devalias expansion.
39485 * util/sparc64/ieee1275/misc.c: New file.
39486 * util/sparc64/ieee1275/grub-setup.c: New file.
39487 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
39488 * util/sparc64/ieee1275/grub-mkimage.c: New file.
39489 * util/sparc64/ieee1275/grub-install.in: New file.
39490 * util/ieee1275/ofpath.c: New file.
39491 * util/ieee1275/devicemap.c: New file.
39492 * util/devicemap.c: New file.
39493 * util/deviceiter.c: New file.
39494 * kern/sparc64/ieee1275/init.c: New file.
39495 * include/grub/util/ofpath.h: New file.
39496 * include/grub/util/deviceiter.h: New file.
39497 * util/grub-mkdevicemap.c: Include deviceiter.h.
39498 Implement using grub_util_emit_devicemap_entry and
39499 grub_util_iterate_devices.
39500 * conf/i386-corebook.rmk: Build util/deviceiter.c and
39501 util/devicemap.c into grub-mkdevicemap
39502 * conf/i386-efi.rmk: Likewise.
39503 * conf/i386-ieee1275.rmk: Likewise.
39504 * conf/i386-pc.rmk: Likewise.
39505 * conf/powerpc-ieee1275.rmk: Likewise.
39506 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
39507 images and installation utilities. Build kernel as image
39508 instead of as elf binary. Use common rules as much as possible.
39510 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
39512 Correct GPT definition
39514 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39517 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
39519 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
39521 2009-04-19 David S. Miller <davem@davemloft.net>
39523 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
39524 (grub_rescue_cmd_linux): Rename to...
39525 (grub_cmd_linux): and fix prototype.
39526 (grub_rescue_cmd_initrd): Rename to...
39527 (grub_cmd_initrd): and fix prototype.
39528 (cmd_linux, cmd_initrd): New.
39529 (GRUB_MOD_INIT(linux)): Use grub_register_command().
39530 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
39532 2009-04-17 Pavel Roskin <proski@gnu.org>
39534 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
39536 (grub_ohci_transfer): Likewise.
39538 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
39540 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
39541 return without a value. Fix inconsistent indentation.
39543 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
39544 match struct grub_fs.
39546 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
39547 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
39548 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
39549 * commands/lspci.c (grub_lspci_iter): Likewise.
39551 2009-04-16 Bean <bean123ch@gmail.com>
39553 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
39556 2009-04-15 Pavel Roskin <proski@gnu.org>
39558 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
39559 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
39560 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
39563 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39565 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
39566 that no multiple data or metadata areas are supported and `Unknown
39569 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39571 Move loader out of the kernel
39573 * kern/loader.c: moved to ...
39574 * commands/boot.c: ... moved here
39575 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
39576 * commands/boot.c (grub_cmd_boot): moved here. All users updated
39577 * include/grub/kernel.h (grub_machine_fini): export
39578 * include/grub/loader.h (grub_loader_is_loaded): update declaration
39579 (grub_loader_set): likewise
39580 (grub_loader_unset): likewise
39581 (grub_loader_boot): likewise
39582 * conf/common.rmk: new module boot.mod
39583 (pkglib_MODULES): add boot.mod
39584 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
39585 (grub_emu_SOURCES): likewise
39586 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
39587 (grub_emu_SOURCES): likewise
39588 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
39589 (grub_emu_SOURCES): likewise
39590 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
39591 (grub_emu_SOURCES): likewise
39592 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
39593 (grub_emu_SOURCES): likewise
39594 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
39595 (grub_emu_SOURCES): likewise
39596 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
39597 (grub_emu_SOURCES): likewise
39599 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39601 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
39603 * kern/misc.c (grub_itoa): Removed function
39604 (grub_ltoa): likewise
39605 (grub_vsprintf): use grub_lltoa
39607 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39611 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
39612 * conf/i386-coreboot.rmk: likewise
39613 * conf/i386-ieee1275.rmk: likewise
39614 * conf/powerpc-ieee1275.rmk: likewise
39616 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39618 * INSTALL: Add that `./autogen.sh' needs to be run before
39621 2009-04-14 Bean <bean123ch@gmail.com>
39623 * Makefile.in (pkglib_DATA): Add handler.lst.
39624 (handler.lst): New rule.
39626 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
39627 * conf/i386-coreboot.rmk: Likewise.
39628 * conf/i386-ieee1275.rmk: Likewise.
39629 * conf/i386-efi.rmk: Likewise.
39630 * conf/x86_64-efi.rmk: Likewise.
39631 * conf/powerpc-ieee1275.rmk: Likewise.
39632 * conf/sparc64-ieee1275.rmk: Likewise.
39634 * genhandlerlist.sh: New file.
39636 * genmk.rb: Add rules to generate handler.lst.
39638 * include/grub/normal.h (grub_file_getline): New function definition.
39639 (read_handler_list): Likewise.
39640 (free_handler_list): Likewise.
39642 * include/grub/term.h (grub_term_register_input): Add name parameter
39643 for auto generation of handler.lst.
39644 (grub_term_register_output): Likewise.
39646 * normal/handler.c: New file.
39648 * normal/main.c (get_line): Renamed to grub_file_getline.
39649 (read_config_file): Use the newly renamed grub_file_getline.
39650 (read_command_list): Likewise.
39651 (read_fs_list): Likewise.
39652 (grub_normal_execute): Call read_handler_list to parse handler.lst.
39653 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
39655 * term/efi/console.c (grub_console_init): Add name parameter for auto
39656 generation of handler.lst.
39657 * term/gfxterm.c: Likewise.
39658 * term/i386/pc/at_keyboard.c: Likewise.
39659 * term/i386/pc/console.c: Likewise.
39660 * term/i386/pc/serial.c: Likewise.
39661 * term/i386/pc/vesafb.c: Likewise.
39662 * term/i386/pc/vga.c: Likewise.
39663 * term/i386/pc/vga_text.c: Likewise.
39664 * term/ieee1275/ofconsole.c: Likewise.
39665 * term/usb_keyboard.c: Likewise.
39667 2009-04-14 Bean <bean123ch@gmail.com>
39669 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
39670 properly with null character.
39672 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39674 * configure: Remove.
39675 * config.h.in: Likewise.
39676 * stamp-h.in: Likewise.
39677 * DISTLIST: Likewise.
39678 * conf/common.mk: Likewise.
39679 * conf/i386-coreboot.mk: Likewise.
39680 * conf/i386-efi.mk: Likewise.
39681 * conf/i386-ieee1275.mk: Likewise.
39682 * conf/i386.mk: Likewise.
39683 * conf/i386-pc.mk: Likewise.
39684 * conf/powerpc-ieee1275.mk: Likewise.
39685 * conf/sparc64-ieee1275.mk: Likewise.
39686 * conf/x86_64-efi.mk: Likewise.
39688 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
39691 2009-04-14 John Stanley <jpsinthemix@verizon.net>
39692 David S. Miller <davem@davemloft.net>
39694 * util/hostdisk.c (make_device_name): Fix buffer length
39697 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39699 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
39700 <sys/param.h> and <sys/sysctl.h>.
39701 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
39702 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
39703 opening the device and reset them afterwards.
39705 2009-04-13 Pavel Roskin <proski@gnu.org>
39707 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
39708 Reported by John Stanley <jpsinthemix@verizon.net>
39710 2009-04-13 Robert Millan <rmh@aybabtu.com>
39712 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
39713 that name for menuentries when appropriate.
39715 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39717 * util/grub.d/10_freebsd.in: Add a missing `fi'.
39719 2009-04-13 Robert Millan <rmh@aybabtu.com>
39721 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
39722 to Linux, simply abort telling the user it's no longer supported.
39724 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39726 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
39727 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
39728 `freebsd_loadenv' only when devices.hints exist.
39730 2009-04-13 Pavel Roskin <proski@gnu.org>
39732 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
39734 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39736 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
39738 (grub_drive): Likewise.
39740 2009-04-13 David S. Miller <davem@davemloft.net>
39742 * kern/sparc64/ieee1275/ieee1275.c: New file.
39743 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
39744 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
39745 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
39746 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
39747 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
39748 grub_ieee1275_alloc_physmem): Declare new exported functions.
39750 * include/grub/sparc64/ieee1275/loader.h: New file.
39751 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39752 * include/grub/sparc64/kernel.h: Likewise.
39753 * loader/sparc64/ieee1275/linux.c: Likewise.
39755 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
39756 (grub_fstest_SOURCES): Likewise.
39758 * util/hostdisk.c (make_device_name): Do not make any assumptions
39759 about the length of drive names.
39761 * kern/dl.c (grub_dl_load_file): Close file immediately when
39762 we are done using it.
39764 2009-04-12 David S. Miller <davem@davemloft.net>
39766 * kern/misc.c (grub_ltoa): Fix cast when handling negative
39767 values. Noticed by Pavel Roskin.
39769 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39772 * genmk.rb: Add more flexible image type specification, also
39773 pass --strip-unneeded to objcopy.
39774 * conf/i386-pc.rmk: Use *_FORMAT.
39775 * conf/i386-pc.mk: Rebuilt.
39777 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39778 (OFDISK_HASH_SZ): Define.
39779 (ofdisk_hash): New hash table.
39780 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39781 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39782 instead of device phandle which is not unique.
39784 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39785 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39786 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39787 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39788 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39789 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39790 GRUB_KERNEL_MACHINE_DATA_END): Define.
39791 (grub_kernel_image_size, grub_total_module_size): Declare.
39793 2009-04-12 Pavel Roskin <proski@gnu.org>
39795 * configure.ac: Change the logic when we check for target tools.
39796 Do it when the target is specified and it's different from the
39797 specified value of the host.
39799 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
39801 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39802 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39803 GNU/kFreeBSD. Check if a device is a character device. Use
39804 DIOCGMEDIASIZE to get the size.
39805 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39806 support for GNU/kFreeBSD.
39807 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39808 is a character device instead of a block device. Add support for
39809 FreeBSD device names.
39811 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39812 is a character device instead of a block device.
39814 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39815 is a character device instead of a block device.
39817 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39819 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39820 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39821 FreeBSD. Check if a device is a character device. Use
39822 DIOCGMEDIASIZE to get the size.
39823 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39824 support for FreeBSD.
39825 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39826 is a character device instead of a block device. Add support for
39827 FreeBSD device names.
39829 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39830 a character device instead of a block device.
39831 (grub_util_check_char_device): New function.
39833 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39834 a character device instead of a block device.
39836 * include/grub/util/getroot.h (grub_util_check_char_device): New
39839 2009-04-11 David S. Miller <davem@davemloft.net>
39841 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39843 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39844 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39845 function, if present.
39846 (__bswapdi2): Likewise.
39848 * include/grub/sparc64/ieee1275/boot.h: New file.
39849 * boot/sparc64/ieee1275/boot.S: Likewise.
39850 * boot/sparc64/ieee1275/diskboot.S: Likewise.
39852 * kern/misc.c (grub_ltoa): New function.
39853 (grub_vsprintf): Use it to format 'long' integers.
39855 2009-04-10 David S. Miller <davem@davemloft.net>
39857 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
39858 slots are of type grub_ieee1275_cell_t.
39859 (grub_nand_read): Likewise.
39860 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
39861 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
39862 macros are used to compare values in arg/ret block of the call.
39863 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
39864 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
39865 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
39866 grub_ieee1275_instance_to_path, grub_ieee1275_write,
39867 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
39868 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
39869 grub_ieee1275_close, grub_ieee1275_set_property,
39870 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
39871 grub_ieee1275_cell_t.
39872 * kern/ieee1275/openfw.c (grub_map): Likewise.
39873 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
39874 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
39876 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
39877 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
39878 (grub_devalias_iterate): Likewise.
39880 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
39884 * fs/ufs.c (INODE_NBLOCKS): new definition
39885 (struct grub_ufs_dirent): added fields for non-BSD dirents
39886 (grub_ufs_get_file_block): fixed double indirect handling
39887 (grub_ufs_lookup_symlink): use more robust way to determine whether
39889 (grub_ufs_find_file): support for non-BSD dirents
39890 (grub_ufs_dir): support for non-BSD dirents
39892 2009-04-10 Bean <bean123ch@gnail.com>
39894 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
39895 attribute, otherwise the size would be wrong for i386 platform.
39897 * include/grub/pci.h (grub_pci_read_word): New inline function.
39898 (grub_pci_read_byte): Likewise.
39899 (grub_pci_write): Likewise.
39900 (grub_pci_write_word): Likewise.
39901 (grub_pci_write_byte): Likewise.
39903 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
39905 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
39906 (find_framebuf): Scan pci to locate the frame buffer address.
39908 * commands/efi/fixvideo.c: New file.
39910 * commands/efi/loadbios.c: Likewise.
39912 * commands/memrw.c: Likewise.
39914 * util/grub-dumpbios.in: Likewise.
39916 * conf/common.rmk (grub-dumpbios): New utility.
39917 (pkglib_MODULES): New module memrw.mod.
39918 (memrw_mod_SOURCE): New macro.
39919 (memrw_mod_CFLAGS): Likewise.
39920 (memrw_mod_LDFLAGS): Likewise.
39922 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
39924 (loadbios_mod_SOURCE): New macro.
39925 (loadbios_mod_CFLAGS): Likewise.
39926 (loadbios_mod_LDFLAGS): Likewise.
39927 (fixvideo_mod_SOURCE): Likewise.
39928 (fixvideo_mod_CFLAGS): Likewise.
39929 (fixvideo_mod_LDFLAGS): Likewise.
39931 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
39933 (loadbios_mod_SOURCE): New macro.
39934 (loadbios_mod_CFLAGS): Likewise.
39935 (loadbios_mod_LDFLAGS): Likewise.
39936 (fixvideo_mod_SOURCE): Likewise.
39937 (fixvideo_mod_CFLAGS): Likewise.
39938 (fixvideo_mod_LDFLAGS): Likewise.
39940 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
39942 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
39944 2009-04-07 David S. Miller <davem@davemloft.net>
39946 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
39947 support for R_SPARC_OLO10 relocations. Fix compile warning for
39948 R_SPARC_WDISP30 case.
39949 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
39951 2009-04-06 Pavel Roskin <proski@gnu.org>
39953 * include/grub/misc.h (ARRAY_SIZE): New macro.
39954 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
39956 * loader/i386/linux.c (allocate_pages): Use free_pages().
39957 (grub_linux_unload): Don't use free_pages().
39958 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
39959 wrong index. Treat all other modes as text modes.
39960 (grub_cmd_linux): Initialize vid_mode unconditionally to
39961 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
39963 * commands/help.c (print_command_help): Use cmd->prio, not
39964 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
39966 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
39970 * parttool/pcpart.c: new file
39971 * commands/parttool.c: likewise
39972 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
39973 (parttool_mod_SOURCES): new variable
39974 (parttool_mod_CFLAGS): likewise
39975 (parttool_mod_LDFLAGS): likewise
39976 (pcpart_mod_SOURCES): likewise
39977 (pcpart_mod_CFLAGS): likewise
39978 (pcpart_mod_LDFLAGS): likewise
39979 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
39980 and parttool/pcpart.c
39981 * conf/i386-efi.rmk: likewise
39982 * conf/i386-ieee1275.rmk: likewise
39983 * conf/i386-pc.rmk: likewise
39984 * conf/powerpc-ieee1275.rmk: likewise
39985 * conf/sparc64-ieee1275.rmk: likewise
39986 * conf/x86_64-ieee1275.rmk: likewise
39988 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39990 Support for mtime and further expandability of dir command
39992 * include/grub/lib/datetime.h: moved to ...
39993 * include/grub/datetime.h: ... moved here and added
39994 declaration of grub_unixtime2datetime. All users updated
39995 * include/grub/fs.h: new syntax for dir and mtime functions in
39997 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
39998 and GRUB_FSHELP_FLAGS_MASK
39999 * commands/ls.c (grub_ls_list_files): Write mtime in long format
40000 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
40001 (grub_ext2_mtime): new function
40002 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
40003 (grub_hfsplus_mtime): new function
40004 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
40005 (GRUB_UFS_ATTR_FILE): likewise
40006 (GRUB_UFS_ATTR_LNK): likewise
40007 (struct grub_ufs_sblock): new fields mtime
40008 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
40010 (grub_ufs_dir): mtime support
40011 (grub_ufs_mtime): new function
40012 * fs/affs.c (grub_affs_dir): use new dir syntax
40013 * fs/afs.c (grub_afs_dir): likewise
40014 * fs/cpio.c (grub_cpio_dir): likewise
40015 * fs/fat.c (grub_fat_find_dir): likewise
40016 * fs/hfs.c (grub_hfs_dir): likewise
40017 * fs/iso9660.c (grub_iso9660_dir): likewise
40018 * fs/jfs.c (grub_jfs_dir): likewise
40019 * fs/minix.c (grub_minix_dir): likewise
40020 * fs/ntfs.c (grub_ntfs_dir): likewise
40021 * fs/reiserfs.c (grub_reiserfs_dir): likewise
40022 * fs/sfs.c (grub_sfs_dir): likewise
40023 * fs/xfs.c (grub_xfs_dir): likewise
40024 * util/hostfs.c (grub_hostfs_dir): likewise
40025 * lib/datetime.c: moved to ...
40026 * normal/datetime.c: ... moved here
40027 (grub_unixtime2datetime): new function
40028 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
40029 * normal/completion.c (iterate_dir): use new dir syntax
40030 * normal/misc.c (grub_normal_print_device_info): tell the
40031 last modification time of a volume
40032 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
40033 * conf/common.rmk: added lib/datetime.c to ls.mod
40034 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
40035 (normal_mod_SOURCES): likewise
40036 (datetime_mod_SOURCES): Removed lib/datetime.c
40037 * conf/i386-efi.rmk: likewise
40038 * conf/i386-ieee1275.rmk: likewise
40039 * conf/i386-pc.rmk: likewise
40040 * conf/powerpc-ieee1275.rmk: likewise
40041 * conf/sparc64-ieee1275.rmk: likewise
40042 * conf/x86_64-efi.rmk: likewise
40044 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
40046 Trim trailing spaces in FAT label and support mtools-like labels
40048 * fs/fat.c (grub_fat_iterate_dir): New function based
40049 on grub_fat_find_dir
40050 (grub_fat_find_dir): use grub_fat_iterate_dir
40051 (grub_fat_label): likewise
40053 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
40055 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
40057 remove extraneous kernel_elf_HEADERS
40059 2009-04-04 Bean <bean123ch@gnail.com>
40061 * include/grub/util/misc.h: Add dummy function fsync for mingw.
40063 * util/misc.c: Likewise.
40065 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
40067 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
40068 instead of grub_printf.
40070 2009-04-03 Robert Millan <rmh@aybabtu.com>
40072 * loader/i386/linux.c (grub_linux_setup_video): Fill
40073 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
40074 values from `mode info' structure instead of hardcoded
40077 2009-04-01 Pavel Roskin <proski@gnu.org>
40079 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
40081 * genmk.rb: Likewise.
40082 * configure.ac: Likewise.
40084 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
40086 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
40087 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
40089 2009-04-01 David S. Miller <davem@davemloft.net>
40091 * normal/sparc64/setjmp.S: Fix setjmp implementation.
40092 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
40093 (grub_setjmp): Mark with 'returns_twice' attribute.
40094 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
40095 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
40096 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
40098 2009-04-01 Robert Millan <rmh@aybabtu.com>
40100 Reapply fix from 2008-07-28 which was accidentally reverted; also
40101 perform the same fix to a similar check in same function.
40103 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
40104 with the same number are found, just use issue a warning with
40105 grub_dprintf(), as this error has been reported to be non-fatal.
40107 2009-03-31 Pavel Roskin <proski@gnu.org>
40109 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
40110 for cross-compilation.
40112 2009-03-30 Robert Millan <rmh@aybabtu.com>
40114 Fix i386-ieee1275 build.
40116 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
40117 Remove declaration.
40119 2009-03-30 Pavel Roskin <proski@gnu.org>
40121 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
40122 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
40123 zero-terminated, rely only on the strlen value. Fix comparison
40124 of strings differing in length.
40126 2009-03-30 Robert Millan <rmh@aybabtu.com>
40128 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
40129 checking for abi version. Improve error messages on BIOS to notify
40130 user about `linux16' command.
40132 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
40136 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
40137 in case of collision
40138 * disk/scsi.c (grub_scsi_open): free scsi in case of error
40140 2009-03-29 Robert Millan <rmh@aybabtu.com>
40142 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
40143 set `vid_mode' accordingly.
40144 (grub_linux_boot): Process `vid_mode' and set video mode.
40146 2009-03-29 Robert Millan <rmh@aybabtu.com>
40148 * util/grub.d/10_linux.in (linux_entry): New function.
40149 Factorize generation of Linux boot entries.
40151 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
40153 Make the format of Environment Block plain text. The boot loader
40154 part is not tested well yet.
40156 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
40158 (envblk): Likewise.
40159 (usage): Remove "info" and "clear". Add "unset". Update the
40160 description of "set", as this does not delete variables any
40162 (create_envblk_file): Complete rewrite.
40163 (open_envblk_file): Likewise.
40164 (cmd_info): Removed.
40165 (cmd_list): Likewise.
40166 (cmd_set): Likewise.
40167 (cmd_clear): Likewise.
40168 (list_variables): New function.
40169 (write_envblk): Likewise.
40170 (set_variables): Likewise.
40171 (unset_variables): Likewise.
40172 (main): Complete rewrite.
40174 * commands/loadenv.c (buffer): Removed.
40175 (envblk): Likewise.
40176 (open_envblk_file): New function.
40177 (read_envblk_file): Complete rewrite.
40178 (grub_cmd_load_env): Likewise.
40179 (grub_cmd_list_env): Likewise.
40180 (struct blocklist): New struct.
40181 (free_blocklists): New function.
40182 (check_blocklists): Likewise.
40183 (write_blocklists): Likewise.
40184 (grub_cmd_save_env): Complete rewrite.
40186 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
40187 a plain text signature.
40188 (GRUB_ENVBLK_MAXLEN): Removed.
40189 (struct grub_envblk): Complete rewrite.
40190 (grub_envblk_find): Removed.
40191 (grub_envblk_insert): Likewise.
40192 (grub_envblk_open): New prototype.
40193 (grub_envblk_set): Likewise.
40194 (grub_envblk_delete): Put const to VALUE.
40195 (grub_envblk_iterate): Put const to NAME and VALUE.
40196 (grub_envblk_close): New prototype.
40197 (grub_envblk_buffer): New inline function.
40198 (grub_envblk_size): Likewise.
40200 * lib/envblk.c: Include grub/mm.h.
40201 (grub_env_find): Removed.
40202 (grub_envblk_open): New function.
40203 (grub_envblk_close): Likewise.
40204 (escaped_value_len): Likewise.
40205 (find_next_line): Likewise.
40206 (grub_envblk_insert): Removed.
40207 (grub_envblk_set): New function.
40208 (grub_envblk_delete): Complete rewrite.
40209 (grub_envblk_iterate): Likewise.
40211 2009-03-28 Robert Millan <rmh@aybabtu.com>
40213 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
40214 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
40215 variables. Use 16-bit loader.
40216 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
40218 * kern/i386/loader.S (grub_linux_boot): Rename to ...
40219 (grub_linux16_boot): ... this. Update all users.
40220 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
40221 (grub_linux_boot): ... this. Update all users.
40223 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
40224 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
40225 commands to `linux16' and `initrd16'.
40226 (GRUB_MOD_FINI(linux)): Rename to ...
40227 (GRUB_MOD_FINI(linux16)): ... this.
40229 2009-03-24 Pavel Roskin <proski@gnu.org>
40231 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
40232 not just for compilation.
40234 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
40236 Move multiboot helper out of kernel
40238 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
40239 `loader/i386/multiboot_helper.S'.
40240 * conf/i386-coreboot.rmk: Likewise
40241 * conf/i386-ieee1275.rmk: Likewise
40243 * kern/i386/loader.S: Move multiboot helpers from here...
40244 * loader/i386/multiboot_helper.S: ...moved here
40245 * include/grub/i386/loader.h: Move declarations of multiboot
40246 helpers from here...
40247 * include/grub/i386/multiboot.h: ...moved here
40248 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
40250 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40252 * kern/env.c (grub_env_context_open): Added an argument to specify
40253 whether a new context inherits exported variables from current
40254 one. This is useful when making a sandbox to interpret a config
40256 All callers updated.
40258 * include/grub/env.h (grub_env_context_open): Updated the prototype.
40260 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40262 * kern/env.c (grub_env_context_close): Fix memory leaks.
40264 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40266 * normal/main.c (grub_normal_execute): Added an argument
40267 BATCH to specify if an interactive interface should be provided
40268 after reading a config file.
40269 All callers updated.
40270 (read_command_list): Prevent being executed twice.
40271 (read_fs_list): Likewise.
40273 * include/grub/normal.h (grub_normal_execute): Updated the
40276 2009-03-22 Pavel Roskin <proski@gno.org>
40278 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
40280 * kern/i386/pc/startup.S: Likewise.
40281 * kern/i386/efi/startup.S: Likewise.
40282 * kern/i386/ieee1275/startup.S: Likewise.
40283 * kern/i386/coreboot/startup.S: Likewise.
40284 * kern/x86_64/efi/startup.S: Likewise.
40286 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
40287 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
40288 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
40290 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
40292 Bugfixes in multiboot for bugs uncovered by solaris kernel.
40294 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
40296 Use vaddr of correct segment for entry_point.
40298 2009-03-21 Bean <bean123ch@gmail.com>
40300 * commands/blocklist.c: Add include file <grub/command.h>, remove
40301 <grub/normal.h> and <grub/arg.h>.
40302 (grub_cmd_blocklist): Use the new command interface.
40303 (GRUB_MOD_INIT): Likewise.
40304 (GRUB_MOD_FINI): Likewise.
40305 * commands/boot.c: Likewise.
40306 * commands/cat.c: Likewise.
40307 * commands/cmp.c: Likewise.
40308 * commands/configfile.c: Likewise.
40309 * commands/crc.c: Likewise.
40310 * commands/echo.c: Likewise.
40311 * commands/halt.c: Likewise.
40312 * commands/handler.c: Likewise.
40313 * commands/hdparm.c: Likewise.
40314 * commands/help.c: Likewise.
40315 * commands/hexdump.c: Likewise.
40316 * commands/loadenv.c: Likewise.
40317 * commands/ls.c: Likewise.
40318 * commands/lsmmap.c: Likewise.
40319 * commands/lspci.c: Likewise.
40320 * commands/loadenv.c: Likewise.
40321 * commands/read.c: Likewise.
40322 * commands/reboot.c: Likewise.
40323 * commands/search.c: Likewise.
40324 * commands/sleep.c: Likewise.
40325 * commands/test.c: Likewise.
40326 * commands/usbtest.c: Likewise.
40327 * commands/videotest.c: Likewise.
40328 * commands/i386/cpuid.c: Likewise.
40329 * commands/i386/pc/halt.c: Likewise.
40330 * commands/i386/pc/play.c: Likewise.
40331 * commands/i386/pc/pxecmd.c: Likewise.
40332 * commands/i386/pc/vbeinfo.c: Likewise.
40333 * commands/i386/pc/vbetest.c: Likewise.
40334 * commands/ieee1275/suspend.c: Likewise.
40335 * disk/loopback.c: Likewise.
40336 * font/font_cmd.c: Likewise.
40337 * hello/hello.c: Likewise.
40338 * loader/efi/appleloader.c: Likewise.
40339 * loader/efi/chainloader.c: Likewise.
40340 * loader/i386/bsd.c: Likewise.
40341 * loader/i386/efi/linux.c: Likewise.
40342 * loader/i386/ieee1275/linux.c: Likewise.
40343 * loader/i386/linux.c: Likewise.
40344 * loader/i386/pc/chainloader.c: Likewise.
40345 * loader/i386/pc/linux.c: Likewise.
40346 * loader/powerpc/ieee1275/linux.c: Likewise.
40347 * loader/multiboot_loader.c: Likewise.
40348 * term/gfxterm.c: Likewise.
40349 * term/i386/pc/serial.c: Likewise.
40350 * term/terminfo.c: Likewise.
40352 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
40353 * term/i386/pc/vga.c: Likewise.
40354 * video/readers/jpeg.c: Likewise.
40355 * video/readers/png.c: Likewise.
40356 * video/readers/tga.c: Likewise.
40358 * util/grub-fstest (cmd_loopback): Removed.
40359 (cmd_blocklist): Likewise.
40360 (cmd_ls): Likewise.
40361 (grub_register_command): Likewise.
40362 (grub_unregister_command): Likewise.
40363 (execute_command): Use grub_command_find to locate command and execute
40366 * include/grub/efi/chainloader.h: Removed.
40367 * loader/efi/chainloader_normal.c: Likewise.
40368 * loader/i386/bsd_normal.c: Likewise.
40369 * loader/i386/pc/chainloader_normal.c: Likewise.
40370 * loader/i386/pc/multiboot_normal.c: Likewise.
40371 * loader/linux_normal.c: Likewise.
40372 * loader/multiboot_loader_normal.c: Likewise.
40373 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40375 * gencmdlist.sh: Scan new registration command grub_register_extcmd
40376 and grub_register_command_p1.
40378 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
40379 kern/command.c, lib/arg.c and commands/extcmd.c.
40380 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
40381 (minicmd_mod_SOURCES): New variable.
40382 (minicmd_mod_CFLAGS): Likewise.
40383 (minicmd_mod_LDFLAGS): Likewise.
40384 (extcmd_mod_SOURCES): Likewise.
40385 (extcmd_mod_CFLAGS): Likewise.
40386 (extcmd_mod_LDFLAGS): Likewise.
40387 (boot_mod_SOURCES): Removed.
40388 (boot_mod_CFLAGS): Likewise.
40389 (boot_mod_LDFLAGS): Likewise.
40391 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
40393 (kernel_img_HEADERS): Add command.h.
40394 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
40395 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
40397 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
40398 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
40399 remove the corresponding normal mode command.
40400 (normal_mod_SOURCES): Remove normal/arg.c.
40401 * conf/i386-coreboot.rmk: Likewise.
40402 * conf/i386-efi.rmk: Likewise.
40403 * conf/i386-ieee1275.rmk: Likewise.
40404 * conf/powerpc-ieee1275.rmk: Likewise.
40405 * conf/x86_64-efi.rmk: Likewise.
40407 * include/grub/arg.h: Move from here ...
40408 * include/grub/lib/arg.h: ... to here.
40410 * normal/arg.c: Move from here ...
40411 * lib/arg.c: ... to here.
40413 * commands/extcmd.c: New file.
40414 * commands/minicmd.c: Likewise.
40415 * include/grub/command.h: Likewise.
40416 * include/grub/extcmd.h: Likewise.
40417 * kern/command.c: Likewise.
40418 * kern/corecmd.c: Likewise.
40420 * kern/list.c (grub_list_iterate): Return int instead of void.
40421 (grub_list_insert): New function.
40422 (grub_prio_list_insert): Likewise.
40424 * kern/rescue.c (grub_rescue_command): Removed.
40425 (grub_rescue_command_list): Likewise.
40426 (grub_rescue_register_command): Likewise.
40427 (grub_rescue_unregister_command): Likewise.
40428 (grub_rescue_cmd_boot): Move to minicmd.c
40429 (grub_rescue_cmd_help): Likewise.
40430 (grub_rescue_cmd_info): Likewise.
40431 (grub_rescue_cmd_boot): Likewise.
40432 (grub_rescue_cmd_testload): Likewise.
40433 (grub_rescue_cmd_dump): Likewise.
40434 (grub_rescue_cmd_rmmod): Likewise.
40435 (grub_rescue_cmd_lsmod): Likewise.
40436 (grub_rescue_cmd_exit): Likewise.
40437 (grub_rescue_print_devices): Moved to corecmd.c.
40438 (grub_rescue_print_files): Likewise.
40439 (grub_rescue_cmd_ls): Likewise.
40440 (grub_rescue_cmd_insmod): Likewise.
40441 (grub_rescue_cmd_set): Likewise.
40442 (grub_rescue_cmd_unset): Likewise.
40443 (attempt_normal_mode): Use grub_command_find to get normal module.
40444 (grub_enter_rescue_mode): Use grub_register_core_commands to register
40445 commands, remove grub_rescue_register_command calls.
40447 * normal/command.c (grub_register_command): Removed.
40448 (grub_unregister_command): Likewise.
40449 (grub_command_find): Likewise.
40450 (grub_iterate_commands): Likewise.
40451 (rescue_command): Likewise.
40452 (export_command): Moved to corecmd.c.
40453 (set_command): Removed.
40454 (unset_command): Likewise.
40455 (insmod_command): Likewise.
40456 (rmmod_command): Likewise.
40457 (lsmod_command): Likewise.
40458 (grub_command_init): Likewise.
40460 * normal/completion.c (iterate_command): Use cmd->prio to check for
40462 (complete_arguments): Use grub_extcmd_t structure to find options.
40463 (grub_normal_do_completion): Change function grub_iterate_commands to
40464 grub_command_iterate.
40466 * normal/execute.c (grub_script_execute_cmd): No need to parse
40469 * normal/main.c (grub_dyncmd_dispatcher): New function.
40470 (read_command_list): Register unload commands as dyncmd.
40471 (grub_cmd_normal): Use new command interface, register rescue,
40472 unregister normal at entry, register normal, unregister rescue at exit.
40474 * include/grub/list.h (grub_list_test_t): New type.
40475 (grub_list_iterate): Return int instead of void.
40476 (grub_list_insert): New function.
40477 (GRUB_AS_NAMED_LIST_P): New macro.
40478 (GRUB_AS_PRIO_LIST): Likewise.
40479 (GRUB_AS_PRIO_LIST_P): Likewise.
40480 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
40481 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
40482 (grub_prio_list): New structure.
40483 (grub_prio_list_insert): New function.
40484 (grub_prio_list_remove): New inline function.
40486 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
40487 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
40488 (GRUB_COMMAND_FLAG_MENU): Likewise.
40489 (GRUB_COMMAND_FLAG_BOTH): Likewise.
40490 (GRUB_COMMAND_FLAG_TITLE): Likewise.
40491 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
40492 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
40493 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
40494 (grub_command): Likewise.
40495 (grub_register_command): Likewise.
40496 (grub_command_find): Likewise.
40497 (grub_iterate_commands): Likewise.
40498 (grub_command_init): Likewise.
40499 (grub_arg_parse): Likewise.
40500 (grub_arg_show_help): Likewise.
40502 * include/grub/rescue.h (grub_rescue_register_command): Removed.
40503 (grub_rescue_unregister_command): Likewise.
40505 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
40506 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
40507 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
40509 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
40510 grub_rescue_cmd_initrd.
40511 * include/grub/i386/loader.h: Likewise.
40512 * include/grub/x86_64/loader.h: Likewise.
40514 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
40516 2009-03-21 Bean <bean123ch@gmail.com>
40518 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
40519 instead of stat in mingw environment.
40521 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
40523 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
40525 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
40528 2009-03-21 Bean <bean123ch@gmail.com>
40530 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
40531 out of range error.
40533 2009-03-18 Michel Dänzer <michel@daenzer.net>
40535 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
40536 checking inode flags for EXT4_EXTENTS_FLAG.
40538 2009-03-18 Robert Millan <rmh@aybabtu.com>
40540 * loader/i386/linux.c: Include `<grub/video.h>' and
40541 `<grub/i386/pc/vbe.h>'..
40542 (grub_linux_setup_video): New function. Loosely based on the EFI one.
40543 (grub_linux32_boot): Attempt to configure video settings with
40544 grub_linux_setup_video().
40545 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
40546 to avoid grub_console_fini() which would step out of graphical mode
40549 2009-03-14 Robert Millan <rmh@aybabtu.com>
40551 Fix build on powerpc.
40552 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
40554 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
40556 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
40557 background image command.
40559 2009-03-12 Colin D Bennett <colin@gibibit.com>
40561 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
40562 (grub_gfxterm_putchar): Extract pairs of identical calls to
40563 draw_cursor out of conditional blocks.
40565 2009-03-11 Pavel Roskin <proski@gnu.org>
40567 * fs/hfs.c (grub_hfs_strncasecmp): New function.
40568 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
40570 2009-03-11 Robert Millan <rmh@aybabtu.com>
40572 * loader/i386/multiboot_elfxx.c
40573 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
40575 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
40577 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
40580 2009-03-11 Robert Millan <rmh@aybabtu.com>
40582 * loader/i386/multiboot.c (code_size): New variable.
40583 (grub_multiboot): Define offsets by adding to `code_size' rather
40584 than subtracting from `grub_multiboot_payload_size'. Provide
40585 4-byte alignment to MBI and others by increasing
40586 `boot_loader_name_length' appropriately.
40588 * loader/i386/multiboot_elfxx.c
40589 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
40591 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
40593 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
40596 2009-03-08 Robert Millan <rmh@aybabtu.com>
40598 Make loader/i386/linux.c usable on i386-pc again.
40600 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
40602 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
40605 2009-03-07 Bean <bean123ch@gmail.com>
40607 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
40610 2009-03-06 Robert Millan <rmh@aybabtu.com>
40612 Fix display issue on terminals with screen size other than 80x25
40613 (e.g. gfxterm with resolution higher than 640x480).
40615 * normal/main.c (grub_normal_init_page): Display title text in a
40616 position relative to the center of the terminal instead of relying
40617 on a hardcoded offset.
40619 2009-03-04 Robert Millan <rmh@aybabtu.com>
40621 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
40624 * Makefile.in (host_kernel): New variable.
40625 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
40626 scripts instead of just the windows one.
40627 * configure.ac: Initialize and AC_SUBST `host_kernel'.
40629 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40631 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
40633 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40634 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40635 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40636 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40637 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40638 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40640 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40642 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
40643 or if there's no space for the disk label and print the partition number on a
40646 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40648 * util/misc.c: Include <time.h>.
40649 (grub_millisleep): New function.
40651 2009-03-04 Bean <bean123ch@gmail.com>
40653 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
40654 another option -mno-red-zone.
40656 * commands/handler.c: Change module description.
40658 * kern/handler.c: Add missing space at the end of description line.
40660 * kern/list.c: Likewise.
40662 2009-03-03 Robert Millan <rmh@aybabtu.com>
40664 Move more components to the relocation area, and fix mbi pointer
40665 handling to use the destination rather than the origin (thanks to
40666 Vladimir Serbinenko for spotting).
40668 * loader/i386/multiboot.c (mbi_dest): New variable.
40669 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
40670 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
40673 2009-03-01 Bean <bean123ch@gmail.com>
40675 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
40676 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
40677 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
40678 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
40680 * loader/i386/efi/linux.c (acpi_guid): New variable.
40681 (acpi_guid): Likewise.
40682 (EBDA_SEG_ADDR): New constant.
40683 (LOW_MEM_ADDR): Likewise.
40684 (FAKE_EBDA_SEG): Likewise.
40685 (fake_bios_data): New function.
40686 (grub_linux_boot): Call fake_bios_data.
40688 2009-03-01 Bean <bean123ch@gmail.com>
40690 * commands/terminal.c: Removed.
40692 * commands/handler.c: New file.
40694 * include/grub/list.h: Likewise.
40696 * include/grub/handler.h: Likewise.
40698 * kern/list.c: Likewise.
40700 * kern/handler.c: Likewise.
40702 * kern/term.h: Include header file <grub/handler.h>.
40703 (grub_term_input): Move next field to the beginning.
40704 (grub_term_output): Likewise.
40705 (grub_term_input_class): New variable.
40706 (grub_term_output_class): Likewise.
40707 (grub_term_register_input): Changed to inline function.
40708 (grub_term_register_output): Likewise.
40709 (grub_term_unregister_input): Likewise.
40710 (grub_term_unregister_output): Likewise.
40711 (grub_term_set_current_input): Likewise.
40712 (grub_term_set_current_output): Likewise.
40713 (grub_term_get_current_input): Likewise.
40714 (grub_term_get_current_output): Likewise.
40715 (grub_term_iterate_input): Removed.
40716 (grub_term_iterate_output): Likewise.
40718 * kern/term.c (grub_term_list_input): Removed.
40719 (grub_term_list_output): Likewise.
40720 (grub_term_input_class): New variable.
40721 (grub_term_output_class): Likewise.
40722 (grub_cur_term_input): Change variable as macro.
40723 (grub_cur_term_output): Likewise.
40724 (grub_term_register_input): Removed.
40725 (grub_term_register_output): Likewise.
40726 (grub_term_unregister_input): Likewise.
40727 (grub_term_unregister_output): Likewise.
40728 (grub_term_set_current_input): Likewise.
40729 (grub_term_set_current_output): Likewise.
40730 (grub_term_iterate_input): Likewise.
40731 (grub_term_iterate_output): Likewise.
40732 (grub_term_get_current_input): Likewise.
40733 (grub_term_get_current_output): Likewise.
40735 * util/grub-editenv.c: Include header file <grub/handler.h>.
40736 (grub_term_get_current_input): Removed.
40737 (grub_term_get_current_output): Likewise.
40738 (grub_term_input_class): New variable.
40739 (grub_term_output_class): Likewise.
40741 * util/grub-fstest.c (grub_term_get_current_input): Removed.
40742 (grub_term_get_current_output): Likewise.
40743 (grub_term_input_class): New variable.
40744 (grub_term_output_class): Likewise.
40746 * util/grub-probe.c (grub_term_get_current_input): Removed.
40747 (grub_term_get_current_output): Likewise.
40748 (grub_term_input_class): New variable.
40749 (grub_term_output_class): Likewise.
40751 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
40752 (grub_term_get_current_output): Likewise.
40753 (grub_term_input_class): New variable.
40754 (grub_term_output_class): Likewise.
40756 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
40757 (terminal_mod_SOURCES): Likewise.
40758 (terminal_mod_CFLAGS): Likewise.
40759 (terminal_mod_LDFLAGS): Likewise.
40761 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
40763 (kernel_img_SOURCES): Add list.c and handler.c.
40764 (kernel_img_HEADERS): Add list.h and handler.h.
40766 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40768 (kernel_mod_SOURCES): Add list.c and handler.c.
40769 (kernel_mod_HEADERS): Add list.h and handler.h.
40771 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40773 (kernel_elf_SOURCES): Add list.c and handler.c.
40774 (kernel_elf_HEADERS): Add list.h and handler.h.
40776 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40778 (kernel_elf_SOURCES): Add list.c and handler.c.
40779 (kernel_elf_HEADERS): Add list.h and handler.h.
40781 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40783 (kernel_mod_SOURCES): Add list.c and handler.c.
40784 (kernel_mod_HEADERS): Add list.h and handler.h.
40786 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40788 (kernel_elf_SOURCES): Add list.c and handler.c.
40789 (kernel_elf_HEADERS): Add list.h and handler.h.
40791 2009-02-27 Robert Millan <rmh@aybabtu.com>
40793 Factorize elf32 / elf64 code in Multiboot loader. This will
40794 prevent it from getting out of sync again.
40796 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40797 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40798 grub_multiboot_load_elf64): Move from here ...
40799 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40800 grub_multiboot_load_elf): ... to here (new file).
40802 2009-02-27 Robert Millan <rmh@aybabtu.com>
40804 * util/grub.d/10_linux.in: Rename "single-user mode" to
40807 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40809 Don't leak in SCSI code.
40810 * disk/scsi.c (grub_scsi_close): free `scsi'.
40812 2009-02-27 Robert Millan <rmh@aybabtu.com>
40814 * loader/i386/pc/multiboot.c: Move from here ...
40815 * loader/i386/multiboot.c: ... to here. Update all users.
40817 2009-02-27 Robert Millan <rmh@aybabtu.com>
40819 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40820 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40822 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
40824 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40827 2009-02-27 Robert Millan <rmh@aybabtu.com>
40829 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40830 `0x' qualifier as 0 when base is specified as parameter).
40832 2009-02-24 Bean <bean123ch@gmail.com>
40834 * configure.ac: Check for -mcmodel=large in x86_64 target.
40836 * include/grub/efi/api.h (efi_call_10): New macro.
40837 (efi_wrap_10): New function.
40839 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40840 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40841 (GRUB_PE32_REL_BASED_LOW): Likewise.
40842 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40843 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40844 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40845 (GRUB_PE32_REL_BASED_SECTION): Likewise.
40846 (GRUB_PE32_REL_BASED_REL): Likewise.
40847 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
40848 (GRUB_PE32_REL_BASED_DIR64): Likewise.
40849 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
40851 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
40854 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
40855 (efi_wrap_10): New function.
40857 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
40859 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
40860 MB/MBP model (NV chipset).
40861 (devdata_devs): Add devpath_5 to the list.
40863 * load/i386/efi/linux.c (video_base): Remove variable.
40864 (RGB_MASK): New macro.
40865 (RGB_MAGIC): Likewise.
40866 (LINE_MIN): Likewise.
40867 (LINE_MAX): Likewise.
40868 (FBTEST_STEP): Likewise.
40869 (FBTEST_COUNT): Likewise.
40870 (fb_list): New variable.
40871 (grub_find_video_card): Remove function.
40872 (find_framebuf): New function.
40873 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
40876 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
40877 problem for x86_64.
40879 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
40881 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
40883 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
40886 2009-02-22 Robert Millan <rmh@aybabtu.com>
40888 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
40889 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
40890 in our relocation, instead of using it directly from heap. Also
40891 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
40893 2009-02-21 Robert Millan <rmh@aybabtu.com>
40895 Implement USB keyboard support (based on patch by Marco Gerards)
40897 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
40898 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
40899 (usb_keyboard_mod_LDFLAGS): New variables.
40901 * term/usb_keyboard.c: New file.
40903 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
40905 Corrected wrong declaration
40907 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
40909 2009-02-14 Christian Franke <franke@computer.org>
40911 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
40912 (grub_lspci_iter): Print class code and programming interface byte.
40914 2009-02-14 Christian Franke <franke@computer.org>
40916 * gendistlist.sh: Ignore `.svn' directories.
40918 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
40920 * fs/fat.c: Add 2009 to Copyright line.
40922 2009-02-14 Christian Franke <franke@computer.org>
40924 * commands/hdparm.c: New file. Provides `hdparm' command
40925 which sends ATA commands via grub_disk_ata_pass_through ().
40927 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
40929 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
40930 and <grub/cpu/io.h> to include/grub/ata.h.
40931 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
40932 (GRUB_CDROM_SECTOR_SIZE): Remove.
40933 (GRUB_ATA_*): Move to include/grub/ata.h.
40934 (GRUB_ATAPI_*): Likewise.
40935 (enum grub_ata_commands): Likewise.
40936 (enum grub_ata_timeout_milliseconds): Likewise.
40937 (struct grub_ata_device): Likewise.
40938 (grub_ata_regset): Likewise.
40939 (grub_ata_regget): Likewise.
40940 (grub_ata_regset2): Likewise.
40941 (grub_ata_regget2): Likewise.
40942 (grub_ata_check_ready): Likewise.
40943 (grub_ata_wait_not_busy): Remove static, exported in
40944 include/grub/ata.h.
40945 (grub_ata_wait_drq): Likewise.
40946 (grub_ata_pio_read): Likewise.
40948 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
40949 function for hdparm.mod.
40951 * include/grub/ata.h: New file, contains declarations from
40953 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
40955 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
40956 (grub_disk_ata_pass_through): New exported variable.
40958 * kern/disk.c (grub_disk_ata_pass_through): New variable.
40960 2009-02-13 Colin D Bennett <colin@gibibit.com>
40962 Support multiple fallback entries, and provide an API to support
40963 executing default+fallback menu entries. Renamed the `terminal' menu
40966 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
40967 variable declaration.
40968 (grub_menu_execute_callback): New structure declaration.
40969 (grub_menu_execute_callback_t): New typedef.
40970 (grub_menu_execute_with_fallback): New function declaration.
40971 (grub_menu_get_entry): Likewise.
40972 (grub_menu_get_timeout): Likewise.
40973 (grub_menu_set_timeout): Likewise.
40975 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
40977 * normal/menu.c (grub_wait_after_message): Moved to
40978 `normal/menu_text.c'.
40979 (draw_border): Likewise.
40980 (print_message): Likewise.
40981 (print_entry): Likewise.
40982 (print_entries): Likewise.
40983 (grub_menu_init_page): Likewise.
40984 (get_entry_number): Likewise.
40985 (print_timeout): Likewise.
40986 (run_menu): Likewise.
40987 (grub_menu_execute_entry): Likewise.
40988 (show_text_menu): Likewise.
40989 (get_and_remove_first_entry_number): New function.
40990 (grub_menu_execute_with_fallback): Likewise.
40991 (get_entry): Renamed to ...
40992 (grub_menu_get_entry): .. this and made it global.
40993 (get_timeout): Renamed to ...
40994 (grub_menu_get_timeout): ... this and made it global.
40995 (set_timeout): Renamed to ...
40996 (grub_menu_set_timeout): ... this and made it global.
40997 (grub_normal_terminal_menu_viewer): Renamed to ...
40998 (grub_normal_text_menu_viewer): ... this.
41000 * normal/menu_text.c: New file. Extracted text-menu-specific code
41001 from normal/menu.c.
41003 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
41004 (normal_mod_SOURCES): Likewise.
41006 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41007 (normal_mod_SOURCES): Likewise.
41009 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41010 (normal_mod_SOURCES): Likewise.
41012 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
41013 (normal_mod_SOURCES): Likewise.
41015 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41016 (normal_mod_SOURCES): Likewise.
41018 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41019 (normal_mod_SOURCES): Likewise.
41021 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41022 (normal_mod_SOURCES): Likewise.
41024 2009-02-11 Robert Millan <rmh@aybabtu.com>
41026 * util/grub.d/00_header.in: Update old reference to `font' command.
41028 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
41030 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
41032 Based on patch from Javier Martín.
41034 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
41036 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
41037 to avoid false positives with FAT.
41038 (grub_fstest_SOURCES): Likewise.
41039 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41040 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41041 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41042 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41043 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41044 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41046 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
41048 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
41049 bpb.version_specific.fat12_or_fat16.fstype and
41050 bpb.version_specific.fat32.fstype.
41052 2009-02-08 Robert Millan <rmh@aybabtu.com>
41054 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
41056 2009-02-08 Robert Millan <rmh@aybabtu.com>
41058 * Makefile.in (host_os, host_cpu): New variables.
41059 (target_os): Remove. Update all users.
41061 2009-02-08 Marco Gerards <marco@gnu.org>
41063 * Makefile.in (enable_grub_emu_usb): New variable.
41064 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
41065 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
41066 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
41067 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
41068 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
41069 `usbtest.mod' and `usbms.mod'.
41070 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
41071 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
41072 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
41073 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
41074 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
41077 * disk/usbms.c: New file.
41079 * include/grub/usb.h: Likewise.
41081 * include/grub/usbtrans.h: Likewise.
41083 * include/grub/usbdesc.h: Likewise.
41085 * bus/usb/usbtrans.c: Likewise.
41087 * bus/usb/ohci.c: Likewise.
41089 * bus/usb/uhci.c: Likewise.
41091 * bus/usb/usbhub.c: Likewise.
41093 * bus/usb/usb.c: Likewise.
41095 * commands/usbtest.c: Likewise.
41097 * util/usb.c: Likewise.
41099 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
41101 * configure.ac: Test for libusb presence.
41103 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
41105 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
41107 * kern/mm.c: Add more comments.
41109 2009-02-08 Robert Millan <rmh@aybabtu.com>
41111 Patch from Javier Martín.
41112 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
41113 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
41115 2009-02-08 Robert Millan <rmh@aybabtu.com>
41117 * fs/cpio.c: Split tar functionality to ...
41118 * fs/tar.c: ... here (new file). Update all users.
41120 2009-02-07 Robert Millan <rmh@aybabtu.com>
41122 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
41123 backward-incompatible features.
41125 Based on patch from Javier Martín, with some adjustments.
41127 2009-02-07 Michael Scherer <misc@mandriva.org>
41129 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
41131 2009-02-07 Robert Millan <rmh@aybabtu.com>
41133 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
41134 position of `disk/lvm.c' to ensure grub_init_all() always picks it
41135 after the RAID stuff.
41137 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
41139 Fixes problem when running vbetest command as reported by
41140 Vladimir Serbinenko <phcoder@gmail.com>.
41142 * (grub_vbe_set_video_mode): Fixed problem with text modes.
41144 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
41146 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
41147 /dev/md/NpN style mdraid devices.
41149 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41151 * util/unifont2pff.rb: Remove.
41153 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41155 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
41158 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41160 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
41161 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41162 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41163 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41164 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41165 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41166 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41168 2009-02-02 Christian Franke <franke@computer.org>
41170 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
41172 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
41174 * INSTALL: Note that we now require at least autoconf 2.59 and
41175 that LZO is optional.
41177 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41179 Base on patch on bug #24154 created by Tomas Tintera
41180 <trosos@seznam.cz>.
41182 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
41184 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41186 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
41187 <bero@arklinux.org>.
41189 * normal/parser.y (script_init): Add missing semicolon.
41191 2009-01-31 Colin D Bennett <colin@gibibit.com>
41193 * normal/main.c: Add include to grub/menu_viewer.h.
41194 (free_menu_entry_classes): Added.
41195 (grub_normal_menu_addentry): Added class property handling.
41196 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
41197 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
41199 * normal/menu_viewer.c: New file.
41201 * normal/menu.c (run_menu_entry): Renamed to ...
41202 (grub_menu_execute_entry): ... this and made it as global.
41203 (grub_menu_run): Renamed to ...
41204 (show_text_menu): ... this and made it local.
41205 (show_text_menu): Adapt to new function names.
41206 (grub_normal_terminal_menu_viewer): New global variable.
41208 * include/grub/menu.h: New file.
41210 * include/grub/menu_viewer.h: New file.
41212 * include/grub/normal.h: Added include to grub/menu.h.
41213 (grub_menu_entry): Moved to include/grub/menu.h.
41214 (grub_menu_entry_t): Likewise.
41215 (grub_menu): Likewise.
41216 (grub_menu_t): Likewise.
41217 (grub_normal_terminal_menu_viewer): Added.
41218 (grub_menu_execute_entry): Likewise.
41219 (grub_menu_run): Removed.
41221 * DISTLIST: Added include/grub/menu.h.
41222 Added include/grub/menu_viewer.h.
41223 Added normal/menu_viewer.c.
41225 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
41227 * normal/execute.c (grub_script_execute_menuentry): Changed to use
41228 arglist for menutitle arguments.
41230 * normal/main.c (grub_normal_menu_addentry): Likewise.
41232 * normal/parser.y (menuentry): Likewise.
41234 * normal/script.c (grub_script_create_cmdmenu): Likewise.
41236 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
41237 (grub_script_create_cmdmenu): Likewise.
41239 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
41241 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
41244 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
41246 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
41248 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
41250 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41252 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41254 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41256 2009-01-30 Christian Franke <franke@computer.org>
41258 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
41259 in option help text.
41261 2009-01-27 Pavel Roskin <proski@gnu.org>
41263 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
41265 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41267 * commands/lsmmap.c: Add include to grub/machine/memory.h.
41269 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
41271 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
41272 unregister function.
41274 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41276 * disk/scsi.c (grub_scsi_read): Fix sign problem.
41278 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
41280 * util/grub-mkfont.c (usage): Fix typo.
41282 * util/elf/grub-mkimage.c (load_modules): Fix warning.
41284 2009-01-26 Daniel Mierswa <impulze@impulze.org>
41286 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
41288 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
41290 * kern/misc.c (grub_strcasecmp): New function.
41291 (grub_strcasecmp): Use grub_size_t instead of int for length.
41293 * include/grub/misc.h: Update function prototypes.
41295 2009-01-26 Robert Millan <rmh@aybabtu.com>
41297 * configure.ac: Fix cross-compilation check.
41299 2009-01-22 Christian Franke <franke@computer.org>
41301 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
41302 (precision) digit string. Allow `.format2' without `format1' (width).
41303 Limit input chars for `%s' output to `format2' if specified. This is
41304 compatible with standard printf ().
41306 2009-01-22 Christian Franke <franke@computer.org>
41308 * disk/ata.c (grub_ata_wait_status): Replace by ...
41309 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
41310 other status bits may be invalid while BSY is asserted.
41311 (grub_ata_check_ready): New function.
41312 (grub_ata_cmd): Removed.
41313 (grub_ata_wait_drq): New function.
41314 (grub_ata_strncpy): Remove inline.
41315 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
41316 and error check now done by grub_ata_wait_drq ().
41317 (grub_ata_pio_write): Likewise.
41318 (grub_atapi_identify): Set DEV before check for !BSY. Use
41319 grub_ata_wait_drq () to wait for data.
41320 (grub_ata_device_initialize): Add status register check to
41321 detect missing SATA slave devices. Add debug messages.
41322 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
41323 (grub_atapi_packet): Set DEV before check for !BSY. Replace
41324 transfer loop by grub_ata_pio_write ().
41325 (grub_ata_identify): Set DEV before check for !BSY. Use
41326 grub_ata_wait_drq () to wait for data.
41327 (grub_ata_setaddress): Set DEV before check for !BSY.
41328 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
41329 read/write in one loop. Fix invalid command on write. Fix incomplete
41330 command on (size % batch) == 0. Add missing error check after write of
41331 last block. Add debug messages.
41332 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
41334 2009-01-19 Christian Franke <franke@computer.org>
41336 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
41337 (GRUB_ATAPI_IREASON_*): Likewise.
41338 (grub_ata_pio_write): Fix timeout error return.
41339 (grub_atapi_identify): Add grub_ata_wait () after cmd.
41340 (grub_atapi_wait_drq): New function.
41341 (grub_atapi_packet): New parameter `size'.
41342 Use grub_atapi_wait_drq () and direct write instead of
41343 grub_ata_pio_write ().
41344 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
41345 reads the number of bytes requested by the device for each DRQ
41347 (grub_atapi_write): Remove old implementation, return not
41348 implemented instead.
41350 2009-01-19 Christian Franke <franke@computer.org>
41352 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
41353 of 512 to calculate data size.
41354 (grub_scsi_read12): Likewise.
41355 (grub_scsi_write10): Likewise.
41356 (grub_scsi_write12): Likewise.
41357 (grub_scsi_read): Adjust size according to blocksize.
41358 Add checks for invalid blocksize and unaligned transfer.
41360 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
41362 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
41364 * term/gfxterm.c (write_char): Fix background rendering for wide
41367 2009-01-19 Robert Millan <rmh@aybabtu.com>
41369 * config.guess: Update to latest version from config git.
41370 * config.sub: Likewise.
41372 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
41374 * Makefile.in: Change font compilation to use new grub-mkfont instead
41377 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
41378 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41379 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41380 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41381 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41382 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41383 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41384 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41385 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41387 2009-01-16 Christian Franke <franke@computer.org>
41389 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
41390 (enum grub_ata_timeout_milliseconds): New enum.
41391 (grub_ata_wait_status): Add parameter milliseconds.
41392 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
41393 recovery from timed-out commands.
41394 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
41395 return grub_errno instead of REG_ERROR.
41396 (grub_ata_pio_write): Add parameter milliseconds.
41397 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
41398 Pass milliseconds to grub_ata_wait_status () and
41399 grub_ata_pio_read ().
41400 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
41401 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
41402 grub_ata_wait_status (). Fix IDENTIFY timeout check.
41403 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
41404 It is not suitable for device detection, because DEV bit is ignored,
41405 the command may run too long, and not all devices set the signature
41407 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
41408 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
41409 Fix device selection, DEV bit must be set first to address the registers
41410 of the correct device.
41411 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
41412 grub_ata_pio_read/write ().
41413 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
41414 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
41416 2009-01-13 Carles Pina i Estany <carles@pina.cat>
41418 * util/grub-editenv.c (main): Use fseeko(), not fseek().
41420 2009-01-13 Bean <bean123ch@gmail.com>
41422 * util/grub-mkfont.c (write_font): forget to remove some debug code.
41424 2009-01-13 Bean <bean123ch@gmail.com>
41426 * Makefile.in: (enable_grub_mkfont): New variable.
41427 (freetype_cflags): Likewise.
41428 (freetype_libs): Likewise.
41430 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
41431 (grub_mkfont_SOURCES): New variable.
41432 (grub_mkfont_CFLAGS): Likewise.
41433 (grub_mkfont_LDFLAGS): Likewise.
41435 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
41436 library if `--enable-grub-mkfont' is requested.
41437 (enable_grub_mkfont): New variable.
41438 (freetype_cflags): Likewise.
41439 (freetype_libs): Likewise.
41441 * util/grub-mkfont.c: New file.
41443 2009-01-12 Christian Franke <franke@computer.org>
41445 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
41446 mode check. Fix setting of compat_use[].
41448 2009-01-10 Robert Millan <rmh@aybabtu.com>
41450 Update a few copyright years which we forgot to do in 2008 (only for
41451 files whose changes made in 2008 were copyright-significant)
41453 * Makefile.in: Add 2008 to Copyright line.
41454 * disk/ieee1275/ofdisk.c: Likewise.
41455 * disk/efi/efidisk.c: Likewise.
41456 * kern/dl.c: Likewise.
41457 * kern/sparc64/ieee1275/init.c: Likewise.
41458 * kern/mm.c: Likewise.
41459 * kern/efi/mm.c: Likewise.
41460 * boot/i386/pc/boot.S: Likewise.
41461 * genfslist.sh: Likewise.
41462 * fs/iso9660.c: Likewise.
41463 * fs/hfs.c: Likewise.
41464 * fs/jfs.c: Likewise.
41465 * fs/minix.c: Likewise.
41466 * fs/ufs.c: Likewise.
41467 * gensymlist.sh.in: Likewise.
41468 * genkernsyms.sh.in: Likewise.
41469 * include/grub/misc.h: Likewise.
41470 * include/grub/types.h: Likewise.
41471 * include/grub/symbol.h: Likewise.
41472 * include/grub/elf.h: Likewise.
41473 * include/grub/kernel.h: Likewise.
41474 * include/grub/disk.h: Likewise.
41475 * include/grub/dl.h: Likewise.
41476 * include/grub/i386/linux.h: Likewise.
41477 * include/grub/i386/pc/biosdisk.h: Likewise.
41478 * include/grub/efi/api.h: Likewise.
41479 * include/grub/efi/pe32.h: Likewise.
41480 * include/grub/util/misc.h: Likewise.
41481 * normal/execute.c: Likewise.
41482 * normal/arg.c: Likewise.
41483 * normal/completion.c: Likewise.
41484 * normal/lexer.c: Likewise.
41485 * normal/parser.y: Likewise.
41486 * normal/misc.c: Likewise.
41487 * commands/i386/pc/vbeinfo.c: Likewise.
41488 * commands/hexdump.c: Likewise.
41489 * commands/terminal.c: Likewise.
41490 * commands/ls.c: Likewise.
41491 * commands/help.c: Likewise.
41492 * partmap/pc.c: Likewise.
41493 * loader/efi/chainloader.c: Likewise.
41494 * loader/multiboot_loader.c: Likewise.
41495 * loader/i386/pc/multiboot2.c: Likewise.
41496 * term/efi/console.c: Likewise.
41497 * term/i386/pc/serial.c: Likewise.
41498 * util/lvm.c: Likewise.
41499 * util/console.c: Likewise.
41500 * util/i386/efi/grub-mkimage.c: Likewise.
41501 * util/raid.c: Likewise.
41503 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
41505 * commands/videotest.c: Removed include to grub/machine/memory.h.
41507 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
41508 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
41509 (video_mod_SOURCES): Removed.
41510 (video_mod_CFLAGS): Likewise.
41511 (video_mod_LDFLAGS): Likewise.
41512 (gfxterm_mod_SOURCES): Likewise.
41513 (gfxterm_mod_CFLAGS): Likewise.
41514 (gfxterm_mod_LDFLAGS): Likewise.
41515 (videotest_mod_SOURCES): Likewise.
41516 (videotest_mod_CFLAGS): Likewise.
41517 (videotest_mod_LDFLAGS): Likewise.
41518 (bitmap_mod_SOURCES): Likewise.
41519 (bitmap_mod_CFLAGS): Likewise.
41520 (bitmap_mod_LDFLAGS): Likewise.
41521 (tga_mod_SOURCES): Likewise.
41522 (tga_mod_CFLAGS): Likewise.
41523 (tga_mod_LDFLAGS): Likewise.
41524 (jpeg_mod_SOURCES): Likewise.
41525 (jpeg_mod_CFLAGS): Likewise.
41526 (jpeg_mod_LDFLAGS): Likewise.
41527 (png_mod_SOURCES): Likewise.
41528 (png_mod_CFLAGS): Likewise.
41529 (png_mod_LDFLAGS): Likewise.
41531 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
41532 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
41533 (video_mod_SOURCES): Added.
41534 (video_mod_CFLAGS): Likewise.
41535 (video_mod_LDFLAGS): Likewise.
41536 (videotest_mod_SOURCES): Likewise.
41537 (videotest_mod_CFLAGS): Likewise.
41538 (videotest_mod_LDFLAGS): Likewise.
41539 (bitmap_mod_SOURCES): Likewise.
41540 (bitmap_mod_CFLAGS): Likewise.
41541 (bitmap_mod_LDFLAGS): Likewise.
41542 (tga_mod_SOURCES): Likewise.
41543 (tga_mod_CFLAGS): Likewise.
41544 (tga_mod_LDFLAGS): Likewise.
41545 (jpeg_mod_SOURCES): Likewise.
41546 (jpeg_mod_CFLAGS): Likewise.
41547 (jpeg_mod_LDFLAGS): Likewise.
41548 (png_mod_SOURCES): Likewise.
41549 (png_mod_CFLAGS): Likewise.
41550 (png_mod_LDFLAGS): Likewise.
41551 (gfxterm_mod_SOURCES): Likewise.
41552 (gfxterm_mod_CFLAGS): Likewise.
41553 (gfxterm_mod_LDFLAGS): Likewise.
41555 * term/gfxterm.c: Removed include to grub/machine/memory.h,
41556 grub/machine/console.h.
41558 2009-01-04 Jerone Young <jerone@gmail.com>
41560 Make on screen instructions clearer
41562 Based on patch created by Jidanni <jidanni@jidanni.org>
41564 * normal/menu.c: print clearer instructions on the screen
41566 2009-01-02 Colin D Bennett <colin@gibibit.com>
41570 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
41571 build system and fixed gfxterm.c to work with different sized fonts.
41573 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
41575 * configure: Re-generated.
41577 * DISTLIST: Removed font/manager.c.
41579 Added font/font_cmd.c.
41581 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
41584 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
41586 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
41588 * kern/term.c: Changed users of grub_utf8_to_ucs4.
41590 * normal/menu.c: Likewise.
41592 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
41593 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
41595 * include/grub/font.h: Replaced with new file.
41597 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
41598 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
41599 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
41600 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
41601 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
41602 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
41603 fg_red, fg_green, fg_blue, fg_alpha.
41604 (grub_video_adapter): Removed blit_glyph.
41605 (grub_video_blit_glyph): Removed.
41607 * font/manager.c: Removed file.
41609 * font/font.c: New file.
41611 * font/font_cmd.c: Likewise.
41613 * video/video.c (grub_video_blit_glyph): Removed.
41615 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
41616 (grub_video_vbe_map_rgba): Likewise.
41617 (grub_video_vbe_unmap_color_int): Likewise.
41618 (grub_video_vbe_blit_glyph): Removed.
41619 (grub_video_vbe_adapter): Removed blit_glyph.
41621 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
41622 (get_pixel): Likewise.
41623 (set_pixel): Likewise.
41625 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
41627 * term/gfxterm.c: Adapted to new font engine.
41629 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
41631 * term/i386/pc/vga.c: Likewise.
41633 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
41635 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41637 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41639 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41641 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41643 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41645 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41647 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41649 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41651 * util/grub.d/00_header.in: Changed to use new loadfont command.
41653 * util/grub-mkconfig_lib.in: Changed font extension.
41655 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
41657 * util/getroot.c (grub_util_get_grub_dev): Add support for
41658 /dev/md/dNNpNN style partitionable mdraid devices.
41660 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
41662 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
41663 at a time limit of the PXE TFTP API correctly.
41664 (grub_pxefs_close): Likewise.
41666 2008-11-29 Robert Millan <rmh@aybabtu.com>
41668 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
41669 grub_ata_device_initialize() calls.
41671 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
41673 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
41675 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
41677 2008-11-28 Robert Millan <rmh@aybabtu.com>
41679 Fix build on powerpc-ieee1275. Based on patch created by
41680 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
41681 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41682 `kern/ieee1275/mmap.c'.
41683 * include/grub/powerpc/ieee1275/memory.h: New file.
41685 Provide grub-install on coreboot.
41686 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
41687 (grub_install_SOURCES): New variable.
41688 * util/i386/pc/grub-install.in: Add a few condition checks to make it
41689 usable on coreboot.
41691 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
41693 * util/grub-fstest.c (grub_term_get_current_input): Change return type
41694 to `grub_term_input_t'.
41695 (grub_term_get_current_output): Change return type to
41696 `grub_term_output_t'.
41698 2008-11-22 Robert Millan <rmh@aybabtu.com>
41700 Fix breakage on coreboot due to declaration mismatch.
41701 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
41702 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
41703 grub_vga_text_cls().
41705 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
41706 comments. Avoid copying one more byte than necessary (just in case).
41708 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
41709 to 0x200000 (avoids trouble with some OFW implementations, and matches
41710 with the one in Yaboot).
41711 Reported by Manoel Abranches
41713 2008-11-20 Robert Millan <rmh@aybabtu.com>
41715 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
41716 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
41718 * util/grub-mkconfig_lib.in (grub_warn): New function.
41719 (convert_system_path_to_grub_path): Use grub_warn() when issuing
41720 warnings, to obtain consistent formatting.
41721 * util/grub.d/00_header.in: Likewise.
41722 * util/update-grub_lib.in: Likewise.
41724 * loader/i386/linux.c (allocate_pages): Fix a warning.
41725 Move comment text to `#error' stanza.
41727 Harmonize ieee1275's grub_available_iterate() with the generic
41728 grub_machine_mmap_iterate() interface (fixes a recently-introduced
41729 build problem on i386-ieee1275):
41730 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
41731 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
41732 parameter `type'. Update all users of this function.
41733 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41734 `kern/ieee1275/mmap.c'.
41735 * kern/ieee1275/init.c
41736 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
41738 (grub_machine_mmap_iterate): ... this.
41739 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
41740 return type to `grub_err_t'. Update all implementations of this
41741 function prototype.
41742 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
41745 Add `lsmmap' command (lists firmware-provided memory map):
41746 * commands/lsmmap.c: New file.
41747 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
41748 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
41750 * conf/powerpc-ieee1275.rmk: Likewise.
41751 * conf/i386-coreboot.rmk: Likewise.
41752 * conf/i386-ieee1275.rmk: Likewise.
41754 2008-11-19 Robert Millan <rmh@aybabtu.com>
41756 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
41757 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
41758 constraints to initrd allocation (based on code from
41759 loader/i386/pc/linux.c). Without them, initrd was allocated too high
41760 for Linux to find it.
41762 2008-11-14 Robert Millan <rmh@aybabtu.com>
41764 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
41765 order to cope with duplicate slashes.
41767 2008-11-14 Robert Millan <rmh@aybabtu.com>
41769 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
41770 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
41771 don't want to mess with lower memory, because it is used in the Linux
41774 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
41775 an appropriate place in lower memory, between 0x10000 and 0x90000,
41776 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41777 is in our heap (probably as a result of it being corrupted during
41778 decompression). Add #error instance with comment to explain why this
41779 loader isn't currently usable on PC/BIOS.
41781 2008-11-14 Robert Millan <rmh@aybabtu.com>
41783 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
41784 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
41786 2008-11-12 Robert Millan <rmh@aybabtu.com>
41788 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41790 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41791 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41793 * include/grub/i386/pc/memory.h: ... to here.
41795 2008-11-12 Robert Millan <rmh@aybabtu.com>
41797 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41800 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41801 (grub_console_cur_color, grub_console_real_putchar)
41802 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41803 (grub_console_setcolorstate, grub_console_setcolor)
41804 (grub_console_getcolor): Move from here ...
41805 * include/grub/i386/vga_common.h: ... to here (new file).
41807 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41808 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41809 `<grub/i386/io.h>'.
41810 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41811 `<grub/i386/vga_common.h>'.
41813 2008-11-12 Robert Millan <rmh@aybabtu.com>
41815 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41816 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41817 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41819 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41820 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41822 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41823 grub_console_init() with call to grub_vga_text_init().
41824 (grub_machine_fini): Replace call to
41825 grub_console_fini() with call to grub_vga_text_fini() and
41826 grub_at_keyboard_fini().
41828 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41829 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41830 (grub_console_setcolorstate, grub_console_setcolor)
41831 (grub_console_getcolor): New function prototypes.
41833 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41834 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41835 (grub_vga_text_setcursor): Static-ize.
41836 (grub_vga_text_term): New structure.
41837 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41839 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41840 (grub_console_cur_color, grub_console_standard_color)
41841 (grub_console_normal_color, grub_console_highlight_color)
41842 (map_char, grub_console_putchar, grub_console_getcharwidth)
41843 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41844 (grub_console_getcolor): Move from here ...
41845 * term/i386/vga_common.c: ... to here (same function names).
41847 2008-11-12 Robert Millan <rmh@aybabtu.com>
41849 Use newly-added Multiboot support in coreboot.
41851 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41852 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
41854 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
41855 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
41856 (codestart): Store the MBI in `startup_multiboot_info' when we're
41857 being loaded using Multiboot.
41859 * kern/i386/coreboot/init.c (grub_machine_init): Move
41860 grub_at_keyboard_init() call to beginning of function (useful for
41861 debugging). Call grub_machine_mmap_init() before attempting to use
41862 grub_machine_mmap_iterate().
41863 (grub_lower_mem, grub_upper_mem): Move from here ...
41864 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
41867 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
41868 function prototype.
41870 2008-11-12 Robert Millan <rmh@aybabtu.com>
41872 Fix a regression introduced by the at_keyboard.mod split. Because
41873 some terminals are default on some platforms and non-default on
41874 others, the first terminal being registered determines which is
41875 going to be default.
41877 * kern/term.c (grub_term_register_input): If this is the first
41878 terminal being registered, set it as the current one.
41879 (grub_term_register_output): Likewise.
41881 * term/efi/console.c (grub_console_init): Do not call
41882 grub_term_set_current_output() or grub_term_set_current_input().
41883 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
41884 * term/i386/pc/console.c (grub_console_init): Likewise.
41885 (grub_console_fini): Do not call grub_term_set_current_input()
41886 (but leave grub_term_set_current_output() to restore text mode).
41888 2008-11-10 Robert Millan <rmh@aybabtu.com>
41890 * util/grub.d/00_header.in: Add backward compatibility check for
41891 versions of terminal.mod that don't understand `terminal_input' or
41894 2008-11-09 Robert Millan <rmh@aybabtu.com>
41896 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
41897 `terminal_input' / `terminal_output', not `terminal'.
41899 2008-11-08 Robert Millan <rmh@aybabtu.com>
41901 * Makefile.in (include_DATA): Fix srcdir=. assumption.
41902 (DISTCLEANFILES): Add `build_env.mk'.
41904 2008-11-08 Robert Millan <rmh@aybabtu.com>
41906 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
41907 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41908 members. Update all users.
41909 * util/console.c (grub_ncurses_term): Split in ...
41910 (grub_ncurses_term_input): ... this, and ...
41911 (grub_ncurses_term_output): ... this. Update all users.
41912 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
41914 2008-11-08 Robert Millan <rmh@aybabtu.com>
41916 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
41917 (PKGDATA): Add $(pkgdata_SRCDIR).
41918 (pkglib_BUILDDIR): New variable.
41919 (pkgdata_SRCDIR): New variable.
41920 (build_env.mk): New target.
41921 (include_DATA): New variable.
41922 (install-local): Install $(include_DATA) files in $(includedir).
41924 2008-11-07 Pavel Roskin <proski@gnu.org>
41926 * gendistlist.sh: Use C locale for sorting to ensure consistent
41927 output on all systems.
41929 * util/grub.d/00_header.in: Remove incorrect space before
41932 2008-11-07 Robert Millan <rmh@aybabtu.com>
41934 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
41936 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
41937 * loader/multiboot_loader.c (find_multi_boot2_header): New function
41938 (based on find_multi_boot1_header).
41939 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
41940 using find_multi_boot2_header(), and abort if neither Multiboot or
41941 Multiboot headers were found.
41943 2008-11-07 Robert Millan <rmh@aybabtu.com>
41945 Modularize at_keyboard.mod:
41947 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
41948 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
41949 (at_keyboard_mod_LDFLAGS): New variables.
41951 Actual terminal split:
41953 * include/grub/term.h (struct grub_term): Split in ...
41954 (struct grub_term_input): ... this, and ...
41955 (struct grub_term_output): ... this. Update all users.
41956 (grub_term_set_current): Split in ...
41957 (grub_term_set_current_input): ... this, and ...
41958 (grub_term_set_current_output): ... this.
41959 (grub_term_get_current): Split in ...
41960 (grub_term_get_current_input): ... this, and ...
41961 (grub_term_get_current_output): ... this.
41962 (grub_term_register): Split in ...
41963 (grub_term_register_input): ... this, and ...
41964 (grub_term_register_output): ... this.
41965 (grub_term_unregister): Split in ...
41966 (grub_term_unregister_input): ... this, and ...
41967 (grub_term_unregister_output): ... this.
41968 (grub_term_iterate): Split in ...
41969 (grub_term_iterate_input): ... this, and ...
41970 (grub_term_iterate_output): ... this.
41972 * kern/term.c (grub_term_list): Split in ...
41973 (grub_term_list_input): ... this, and ...
41974 (grub_term_list_output): ... this. Update all users.
41975 (grub_cur_term): Split in ...
41976 (grub_cur_term_input): ... this, and ...
41977 (grub_cur_term_output): ... this. Update all users.
41978 (grub_term_set_current): Split in ...
41979 (grub_term_set_current_input): ... this, and ...
41980 (grub_term_set_current_output): ... this.
41981 (grub_term_get_current): Split in ...
41982 (grub_term_get_current_input): ... this, and ...
41983 (grub_term_get_current_output): ... this.
41984 (grub_term_register): Split in ...
41985 (grub_term_register_input): ... this, and ...
41986 (grub_term_register_output): ... this.
41987 (grub_term_unregister): Split in ...
41988 (grub_term_unregister_input): ... this, and ...
41989 (grub_term_unregister_output): ... this.
41990 (grub_term_iterate): Split in ...
41991 (grub_term_iterate_input): ... this, and ...
41992 (grub_term_iterate_output): ... this.
41994 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
41995 a check for input and one for output (and only attempt to get keys
41996 from user when input works).
41998 * util/grub-probe.c (grub_term_get_current): Split in ...
41999 (grub_term_get_current_input): ... this, and ...
42000 (grub_term_get_current_output): ... this.
42001 * util/grub-fstest.c: Likewise.
42002 * util/i386/pc/grub-setup.c: Likewise.
42003 * util/grub-editenv.c: Likewise.
42005 Portability adjustments:
42007 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
42008 `term/i386/pc/at_keyboard.c'.
42009 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
42010 grub_keyboard_controller_init() (now handled by terminal .init).
42011 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
42012 grub_at_keyboard_init().
42013 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
42014 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
42015 at_keyboard.mod via input terminal interface).
42016 * include/grub/i386/coreboot/console.h: Convert into a stub for
42017 `<grub/i386/pc/console.h>'.
42019 Migrate full terminals to new API:
42021 * term/efi/console.c (grub_console_term): Split into ...
42022 (grub_console_term_input): ... this, and ...
42023 (grub_console_term_output): ... this. Update all users.
42024 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
42025 (grub_ofconsole_init): Split into ...
42026 (grub_ofconsole_init_input): ... this, and ...
42027 (grub_ofconsole_init_output): ... this.
42028 (grub_ofconsole_term): Split into ...
42029 (grub_ofconsole_term_input): ... this, and ...
42030 (grub_ofconsole_term_output): ... this. Update all users.
42031 * term/i386/pc/serial.c (grub_serial_term): Split into ...
42032 (grub_serial_term_input): ... this, and ...
42033 (grub_serial_term_output): ... this. Update all users.
42034 * term/i386/pc/console.c (grub_console_term): Split into ...
42035 (grub_console_term_input): ... this, and ...
42036 (grub_console_term_output): ... this. Update all users.
42037 (grub_console_term_input): Only enable it on PC/BIOS platform.
42038 (grub_console_init): Remove grub_keyboard_controller_init() call.
42040 Migrate input terminals to new API:
42042 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
42043 `i386' and `i386/pc' to enable build on x86_64 (this driver is
42044 i386-specific anyway).
42045 (grub_console_checkkey): Rename to ...
42046 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
42048 (grub_keyboard_controller_orig): New variable.
42049 (grub_console_getkey): Rename to ...
42050 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
42052 (grub_keyboard_controller_init): Static-ize. Save original
42053 controller value so that it can be restored ...
42054 (grub_keyboard_controller_fini): ... here (new function).
42055 (grub_at_keyboard_term): New structure.
42056 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
42059 Migrate output terminals to new API:
42061 * term/i386/pc/vga.c (grub_vga_term): Change type to
42062 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42063 members. Update all users.
42064 * term/gfxterm.c (grub_video_term): Change type to
42065 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42066 members. Update all users.
42067 * include/grub/i386/pc/console.h (grub_console_checkkey)
42068 (grub_console_getkey): Do not export (no longer needed by gfxterm,
42071 Migrate `terminal' command and userland tools to new API:
42073 * commands/terminal.c (grub_cmd_terminal): Split into ...
42074 (grub_cmd_terminal_input): ... this, and ...
42075 (grub_cmd_terminal_output): ... this.
42076 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
42077 `terminal_input' and `terminal_output'.
42078 * util/grub.d/00_header.in: Adjust `terminal' calls to new
42079 `terminal_input' / `terminal_output' API.
42080 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
42081 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
42082 provided ${GRUB_TERMINAL}, convert it).
42084 2008-11-04 Robert Millan <rmh@aybabtu.com>
42086 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
42088 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
42090 2008-11-03 Bean <bean123ch@gmail.com>
42092 * kern/elf.c (grub_elf32_load): Revert to previous code.
42093 (grub_elf64_load): Likewise.
42095 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
42097 2008-11-01 Robert Millan <rmh@aybabtu.com>
42099 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
42100 (TARGET_CPPFLAGS): Likewise.
42101 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
42103 2008-11-01 Carles Pina i Estany <carles@pina.cat>
42105 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
42107 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42109 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
42110 addition of objects until the code is not going to be able to fail.
42112 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42114 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
42115 (add a missing NULL check, and correct them by moving the pointer
42116 operations after the actual check).
42118 2008-10-29 Robert Millan <rmh@aybabtu.com>
42120 * util/i386/pc/grub-install.in: Handle empty string as output from
42121 make_system_path_relative_to_its_root().
42123 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
42125 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
42126 circular metadata worst case scenario. If the metadata is circular
42127 then copy the wrap in place.
42128 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
42129 project lib/format_text/layout.h
42130 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
42132 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42134 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
42136 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42138 * util/update-grub_lib.in: Mention filename in warning message.
42140 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42142 * NEWS: Update for rename of update-grub to grub-mkconfig.
42144 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42146 * util/update-grub_lib.in: Copy to ...
42147 * util/grub-mkconfig_lib.in: ... this. Update all users.
42148 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
42149 * util/update-grub.in: Rename to ...
42150 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
42151 option. Add `--output' option to allow users to specify the generated
42152 configuration file. Default to stdout.
42153 (update_grub_dir): Rename to ...
42154 (grub_mkconfig_dir): ... this.
42155 (grub_cfg): Default to an empty string.
42156 * conf/common.rmk (update-grub): Rename to ...
42157 (grub-mkconfig): ... this.
42158 (update-grub_lib): Copy to ...
42159 (grub-mkconfig_lib): ... this.
42160 (update-grub_SCRIPTS): Copy to ...
42161 (grub-mkconfig_SCRIPTS): ... this. Update all users.
42162 (update-grub_DATA): Rename to ...
42163 (grub-mkconfig_DATA): ... this.
42165 2008-09-28 Robert Millan <rmh@aybabtu.com>
42167 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
42168 to `modified'. Add the real `created' field.
42169 (grub_iso9660_uuid): Use `modified' rather than `created' for
42170 constructing the UUID.
42172 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
42174 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
42175 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
42177 2008-09-28 Bean <bean123ch@gmail.com>
42179 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
42180 Thanks to Christian Franke for finding this bug.
42182 2008-09-25 Robert Millan <rmh@aybabtu.com>
42184 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
42185 instances of grub_util_get_disk_name() (see previous commit).
42187 2008-09-25 Robert Millan <rmh@aybabtu.com>
42189 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
42190 `util/i386/get_disk_name.c'.
42191 * conf/i386-efi.rmk: Likewise.
42192 * conf/x86_64-efi.rmk: Likewise.
42193 * conf/i386-coreboot.rmk: Likewise.
42194 * conf/i386-ieee1275.rmk: Likewise.
42195 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
42196 `util/ieee1275/get_disk_name.c'.
42197 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
42198 * util/ieee1275/get_disk_name.c: Remove file.
42199 * util/i386/get_disk_name.c: Remove file.
42200 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
42201 "hd%d" for device.map entries, rather than using
42202 grub_util_get_disk_name().
42204 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42206 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
42208 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
42210 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42212 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
42214 (GRUB_TERM_PPAGE): Changed to 0x4900.
42216 2008-09-24 Robert Millan <rmh@aybabtu.com>
42218 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
42219 macros (they were i386-pc specific).
42220 * include/grub/sparc64/ieee1275/console.h: Likewise.
42221 * include/grub/efi/console.h: Likewise.
42223 2008-09-22 Bean <bean123ch@gmail.com>
42225 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
42226 resident and in attribute list.
42228 * include/grub/ntfs.h (BMP_LEN): Removed.
42230 2008-09-22 Bean <bean123ch@gmail.com>
42232 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
42233 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
42235 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
42236 error occurs, as grub_disk_open will call grub_disk_close, which will
42237 call p->close (scsi).
42239 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42241 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
42242 (AC_PREREQ): Bumped to 2.59.
42243 (AC_TRY_COMPILE): Replace obsolete macro with ...
42244 (AC_COMPILE_IFELSE): ... this.
42245 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
42246 (AC_LINK_IFELSE): ... this.
42248 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42250 * autogen.sh: Add a call to `gendistlist.sh'.
42252 2008-09-19 Christian Franke <franke@computer.org>
42254 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
42255 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
42256 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
42257 Export __enable_execute_stack() to modules.
42258 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
42261 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42263 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
42266 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42268 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
42269 #include <grub/util/hostdisk.h>.
42271 2008-09-08 Robert Millan <rmh@aybabtu.com>
42273 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
42274 segments when their filesz is zero (grub_file_read() interprets
42275 zero-size as "read until EOF", which results in memory corruption).
42276 Use `lowest_segment' rather than 0 for calculating the current
42277 segment load address.
42279 2008-09-08 Robert Millan <rmh@aybabtu.com>
42281 * util/hostdisk.c (open_device): Replace a grub_util_info() call
42282 with grub_dprintf("hostdisk", ...), as it was so verbose that it
42283 clobbered useful information.
42285 2008-09-08 Robert Millan <rmh@aybabtu.com>
42287 * include/grub/util/biosdisk.h: Move to ...
42288 * include/grub/util/hostdisk.h: ... here. Update all users.
42289 * util/biosdisk.c: Move to ...
42290 * util/hostdisk.c: ... here. Update all users.
42292 2008-09-07 Robert Millan <rmh@aybabtu.com>
42294 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
42296 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
42297 and length can be stored directly in the `mbi->mmap_addr' and
42298 `mbi->mmap_length' struct fields.
42300 2008-09-07 Robert Millan <rmh@aybabtu.com>
42302 * conf/i386.rmk: New file. Provides declaration for building
42304 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
42305 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
42307 Include `conf/i386.mk'.
42308 * conf/i386-efi.rmk: Likewise.
42309 * conf/x86_64-efi.rmk: Likewise.
42310 * conf/i386-coreboot.rmk: Likewise.
42311 * conf/i386-ieee1275.rmk: Likewise.
42313 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
42315 Based on patch created by Colin D Bennett <colin@gibibit.com>.
42316 Adds optimization support for BGR based modes.
42318 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
42319 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42320 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42321 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42322 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42323 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42324 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42325 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42326 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42327 (grub_video_i386_vbeblit_index_index): Likewise.
42328 (grub_video_i386_vbeblit_replace_directN): Added.
42329 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42330 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42331 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42332 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42333 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42334 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42335 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42336 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42337 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42338 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42339 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42340 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42341 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42343 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
42344 (grub_video_i386_vbefill_R8G8B8): Likewise.
42345 (grub_video_i386_vbefill_index): Likewise.
42346 (grub_video_i386_vbefill_direct32): Added.
42347 (grub_video_i386_vbefill_direct24): Likewise.
42348 (grub_video_i386_vbefill_direct16): Likewise.
42349 (grub_video_i386_vbefill_direct8): Likewise.
42351 * include/grub/video.h (grub_video_blit_format): Removed
42352 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
42353 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
42354 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
42355 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
42356 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
42358 * video/video.c (grub_video_get_blit_format): Updated to use new
42359 blit formats. Added handling for 16 bit color modes.
42361 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
42363 (common_blitter): Updated to use new blitters.
42365 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
42367 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42368 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42369 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42370 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42371 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42372 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42373 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42374 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42375 (grub_video_i386_vbeblit_index_index): Likewise.
42376 (grub_video_i386_vbeblit_replace_directN): Added.
42377 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42378 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42379 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42380 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42381 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42382 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42383 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42384 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42385 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42386 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42387 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42388 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42389 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42391 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
42392 (grub_video_i386_vbefill_R8G8B8): Likewise.
42393 (grub_video_i386_vbefill_index): Likewise.
42394 (grub_video_i386_vbefill_direct32): Added.
42395 (grub_video_i386_vbefill_direct24): Likewise.
42396 (grub_video_i386_vbefill_direct16): Likewise.
42397 (grub_video_i386_vbefill_direct8): Likewise.
42399 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
42402 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
42405 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
42408 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
42411 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42413 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
42416 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42418 * fs/iso9660.c (grub_iso9660_date): New structure.
42419 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
42420 (grub_iso9660_uuid): New function.
42422 2008-09-05 Bean <bean123ch@gmail.com>
42424 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
42426 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
42427 insensitive bit for names in Win32 and Win32 & DOS namespace.
42429 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
42431 * include/grub/types.h (LONG_MAX): Likewise.
42433 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42435 * util/getroot.c: Include <config.h>.
42436 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
42437 add support for /dev/md/N devices and handle LVM double dash escaping.
42439 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42441 * config.guess: Update to latest version from config git.
42442 * config.sub: Likewise.
42444 2008-09-03 Robert Millan <rmh@aybabtu.com>
42446 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
42447 `disk->total_sectors'.
42449 2008-09-01 Colin D Bennett <colin@gibibit.com>
42451 * include/grub/normal.h: Fixed incorrect comment for
42452 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
42454 2008-09-01 Colin D Bennett <colin@gibibit.com>
42456 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
42457 values with defines.
42459 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
42460 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
42461 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
42462 (GRUB_VBE_MODEATTR_COLOR): Likewise.
42463 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
42464 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
42465 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
42466 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
42467 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
42468 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
42469 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
42470 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
42471 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
42472 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
42473 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
42474 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
42475 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
42476 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
42477 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
42479 2008-08-31 Robert Millan <rmh@aybabtu.com>
42481 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
42483 (grub_multiboot): Fix a few warnings.
42485 2008-08-31 Robert Millan <rmh@aybabtu.com>
42487 * loader/i386/pc/multiboot.c: Update comment not to say that
42488 boot_device support is unimplemented.
42490 2008-08-31 Robert Millan <rmh@aybabtu.com>
42492 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
42493 or memory map support are unimplemented.
42495 2008-08-31 Colin D Bennett <colin@gibibit.com>
42497 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
42499 2008-08-31 Colin D Bennett <colin@gibibit.com>
42501 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
42502 total video memory in 'vbeinfo' output; show color format details for
42505 2008-08-30 Pavel Roskin <proski@gnu.org>
42507 * util/genmoddep.c: Remove for real this time.
42508 * DISTLIST: Remove util/genmoddep.c.
42510 2008-08-30 Robert Millan <rmh@aybabtu.com>
42512 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
42513 as required by Multiboot spec (it was already 4-byte aligned, but
42516 2008-08-29 Pavel Roskin <proski@gnu.org>
42518 * kern/powerpc/ieee1275/crt0.S: Rename to ...
42519 * kern/powerpc/ieee1275/startup.S: ... this.
42520 * conf/powerpc-ieee1275.rmk: Adjust for the above.
42521 * DISTLIST: Likewise.
42523 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
42524 grub/cpu/kernel.h. Add start label for consistency with other
42525 platforms. Add grub_prefix immediately after start. Add jump
42526 to the code after grub_prefix.
42527 * include/grub/powerpc/kernel.h: Provide valid values for
42528 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
42530 2008-08-29 Bean <bean123ch@gmail.com>
42532 * configure.ac: Change host_os to cygwin for mingw.
42533 (asprintf): New check for function.
42535 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
42536 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
42538 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
42539 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
42540 sync, sleep and grub_util_get_disk_size for mingw.
42542 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
42543 to get size in mingw.
42544 (open_device): Use flag O_BINARY if it's defined.
42545 (find_root_device): Add dummy code for mingw.
42547 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
42548 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
42549 (get_scsi_disk_name): Return 0 for mingw.
42551 * util/hostfs.c: #include <grub/util/misc.h>.
42552 (grub_hostfs_open): Use "rb" flag to open file, use
42553 grub_util_get_disk_size to get disk size for mingw.
42555 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
42556 (asprintf): New function if HAVE_ASPRINTF is not set.
42557 (sync): New function for mingw.
42559 (grub_util_get_disk_size): Likewise.
42561 2008-08-28 Pavel Roskin <proski@gnu.org>
42563 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42566 2008-08-28 Robert Millan <rmh@aybabtu.com>
42568 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
42570 2008-08-28 Robert Millan <rmh@aybabtu.com>
42572 Change find_grub_drive() syntax so it doesn't prevent it from
42573 detecting NULL names as errors.
42575 * util/biosdisk.c (find_grub_drive): Move free slot search code
42577 (find_free_slot): ... to here.
42578 (read_device_map): Use find_free_slot() to search for free slots.
42580 2008-08-27 Marco Gerards <marco@gnu.org>
42582 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
42583 (scsi_mod_SOURCES): New variable.
42584 (scsi_mod_CFLAGS): Likewise
42585 (scsi_mod_LDFLAGS): Likewise.
42587 * disk/scsi.c: New file.
42589 * include/grub/scsi.h: Likewise.
42591 * include/grub/scsicmd.h: Likewise.
42593 * disk/ata.c: Include <grub/scsi.h>.
42594 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
42596 (grub_ata_iterate): Skip ATAPI devices.
42597 (grub_ata_open): Only handle ATAPI devices.
42598 (struct grub_atapi_read): Removed.
42599 (grub_atapi_readsector): Likewise.
42600 (grub_ata_read): No longer handle ATAPI devices.
42601 (grub_ata_write): Likewise.
42602 (grub_atapi_iterate): New function.
42603 (grub_atapi_read): Likewise.
42604 (grub_atapi_write): Likewise.
42605 (grub_atapi_open): Likewise.
42606 (grub_atapi_close): Likewise.
42607 (grub_atapi_dev): New variable.
42608 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
42609 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
42611 * include/grub/disk.h (enum grub_disk_dev_id): Add
42612 `GRUB_DISK_DEVICE_SCSI_ID'.
42614 2008-08-26 Robert Millan <rmh@aybabtu.com>
42616 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
42617 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
42620 2008-08-23 Bean <bean123ch@gmail.com>
42622 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
42623 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42624 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
42625 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
42627 (raid5rec_mod_SOURCES): New macro.
42628 (raid5rec_mod_CFLAGS): Likewise.
42629 (raid5rec_mod_LDFLAGS): Likewise.
42630 (raid6rec_mod_SOURCES): Likewise.
42631 (raid6rec_mod_CFLAGS): Likewise.
42632 (raid6rec_mod_LDFLAGS): Likewise.
42633 (mdraid_mod_SOURCES): Likewise.
42634 (mdraid_mod_CFLAGS): Likewise.
42635 (mdraid_mod_LDFLAGS): Likewise.
42636 (dm_nv_mod_SOURCES): Likewise.
42637 (dm_nv_mod_CFLAGS): Likewise.
42638 (dm_nv_mod_LDFLAGS): Likewise.
42640 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
42641 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42642 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42644 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
42645 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42647 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42649 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42651 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42653 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42655 * disk/raid5_recover.c: New file.
42657 * disk/raid6_recover.c: Likewise.
42659 * disk/mdraid_linux.c: Likewise.
42661 * disk/dmraid_nvidia.c: Likewise.
42663 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
42666 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
42667 calculate the size of raid device.
42668 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
42669 different layout of raid5.
42670 (grub_raid_scan_device): Remove code specific to mdraid.
42671 (grub_raid_list): New variable.
42672 (free_array): New function.
42673 (grub_raid_register): Likewise.
42674 (grub_raid_unregister): Likewise.
42675 (grub_raid_rescan): Likewise.
42676 (GRUB_MOD_INIT): Don't iterate device here.
42677 (GRUB_MOD_FINI): Use free_array to release resource.
42679 * include/grub/raid.h: Remove macro and structure specific to mdraid.
42680 (grub_raid5_recover_func_t): New function variable type.
42681 (grub_raid6_recover_func_t): Likewise.
42682 (grub_raid5_recover_func): New variable.
42683 (grub_raid6_recover_func): Likewise.
42684 (grub_raid_register): New function.
42685 (grub_raid_unregister): Likewise.
42686 (grub_raid_rescan): Likewise.
42687 (grub_raid_block_xor): Likewise.
42689 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
42690 (CMD_CRC): New macro.
42692 (read_file): Handle device as well as file.
42693 (cmd_crc): New function.
42694 (fstest): Handle multiple disks.
42695 (options): Remove part, raw and long, add root and diskcount.
42696 (usage): Add crc, remove -p, -r, -l, add -r and -c.
42697 (main): Find the first non option entry and ignore subsequent options,
42698 add handling for the new options, support multiple disks.
42700 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
42702 2008-08-23 Bean <bean123ch@gmail.com>
42704 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
42706 * genfslist.sh: Ignore kernel.mod.
42708 * genpartmaplist.sh: Likewise.
42710 2008-08-23 Robert Millan <rmh@aybabtu.com>
42712 * util/getroot.c (find_root_device): Skip anything that starts with
42713 a dot, not just directories. This avoids things like /dev/.tmp.md0.
42715 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
42717 * util/update-grub.in (GRUB_GFXMODE): Export variable.
42718 * util/grub.d/00_header.in: Allow the administrator to change default
42719 gfxmode via ${GRUB_GFXMODE}.
42721 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
42723 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
42725 2008-08-21 Robert Millan <rmh@aybabtu.com>
42727 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
42729 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
42730 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
42732 2008-08-20 Carles Pina i Estany <carles@pina.cat>
42734 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
42735 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
42737 2008-08-19 Robert Millan <rmh@aybabtu.com>
42739 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
42740 (struct grub_virtual_screen): Remove `cursor_color'.
42741 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
42743 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
42745 2008-08-18 Robert Millan <rmh@aybabtu.com>
42747 Unify (identical) linux_normal.c files.
42748 * loader/i386/efi/linux_normal.c: Move from here ...
42749 * loader/linux_normal.c: ... to here. Update all users.
42750 * loader/i386/pc/linux_normal.c: Delete. Update all users.
42751 * loader/i386/ieee1275/linux_normal.c: Likewise.
42753 2008-08-18 Robert Millan <rmh@aybabtu.com>
42755 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
42756 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
42757 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
42758 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
42759 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
42761 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
42762 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
42763 (GRUB_LINUX_CL_END_OFFSET): ... to here.
42764 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
42765 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
42766 (GRUB_EFI_CL_END_OFFSET): Rename to ...
42767 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
42768 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
42769 Initialize `params->video_cursor_x' and `params->video_cursor_y'
42770 portably using grub_getxy().
42771 Replace `-EFI' with `-bzImage' in boot message.
42773 2008-08-17 Robert Millan <rmh@aybabtu.com>
42775 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42777 2008-08-17 Robert Millan <rmh@aybabtu.com>
42779 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42781 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42782 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42783 (grub_machine_mmap_iterate): New function declaration.
42784 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42786 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42789 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42790 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42791 Move e820 parsing from here ...
42792 * kern/i386/pc/mmap.c: New file.
42793 (grub_machine_mmap_iterate): ... to here.
42795 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42796 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42797 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42798 (grub_available_iterate): Redeclare to return `void', and redeclare
42799 its hook to use grub_uint64_t as addr and size parameters, and rename
42801 (grub_machine_mmap_iterate): ... this. Update all users.
42803 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42804 to make it more readable. Rename to ...
42805 (grub_machine_mmap_iterate): ... this.
42807 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42808 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42809 (grub_multiboot): Allocate an extra region after the payload, and fill
42810 it with a Multiboot memory map. Adjust a.out loader to calculate size
42811 with the extra space.
42812 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42813 with the extra space.
42815 2008-08-17 Carles Pina i Estany <carles@pina.cat>
42817 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
42819 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
42821 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42822 mdate-sh to the list `find' searches for.
42823 * DISTLIST: Regenerated.
42825 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
42827 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42828 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
42829 genmoddep.awk, gensymlist.sh.in.
42830 (DISTDIRS): Add bus, docs, hook, lib.
42831 * DISTLIST: Regenerated.
42832 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
42834 2008-08-16 Robert Millan <rmh@aybabtu.com>
42836 * disk/raid.c (grub_raid_init): Handle/report errors set by
42837 grub_device_iterate().
42838 * disk/lvm.c (grub_lvm_init): Likewise.
42840 2008-08-15 Bean <bean123ch@gmail.com>
42842 * conf/i386-pc.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/i386-coreboot.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 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42868 (datetime_mod_SOURCES): New macro.
42869 (datetime_mod_CFLAGS): Likewise.
42870 (datetime_mod_LDFLAGS): Likewise.
42871 (date_mod_SOURCES): Likewise.
42872 (date_mod_CFLAGS): Likewise.
42873 (date_mod_LDFLAGS): Likewise.
42874 (datehook_mod_SOURCES): Likewise.
42875 (datehook_mod_CFLAGS): Likewise.
42876 (datehook_mod_LDFLAGS): Likewise.
42878 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42880 (datetime_mod_SOURCES): New macro.
42881 (datetime_mod_CFLAGS): Likewise.
42882 (datetime_mod_LDFLAGS): Likewise.
42883 (date_mod_SOURCES): Likewise.
42884 (date_mod_CFLAGS): Likewise.
42885 (date_mod_LDFLAGS): Likewise.
42886 (datehook_mod_SOURCES): Likewise.
42887 (datehook_mod_CFLAGS): Likewise.
42888 (datehook_mod_LDFLAGS): Likewise.
42890 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42892 (datetime_mod_SOURCES): New macro.
42893 (datetime_mod_CFLAGS): Likewise.
42894 (datetime_mod_LDFLAGS): Likewise.
42895 (date_mod_SOURCES): Likewise.
42896 (date_mod_CFLAGS): Likewise.
42897 (date_mod_LDFLAGS): Likewise.
42898 (datehook_mod_SOURCES): Likewise.
42899 (datehook_mod_CFLAGS): Likewise.
42900 (datehook_mod_LDFLAGS): Likewise.
42902 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
42904 * commands/date.c: New file.
42906 * hook/datehook.c: Likewise.
42908 * include/grub/lib/datetime.h: Likewise.
42910 * include/grub/i386/cmos.h: Likewise.
42912 * lib/datetime.c: Likewise.
42914 * lib/i386/datetime.c: Likewise.
42916 * lib/efi/datetime.c: Likewise.
42918 2008-08-14 Robert Millan <rmh@aybabtu.com>
42920 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
42921 (grub_mkelfimage_SOURCES): New variable.
42922 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
42924 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
42925 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
42926 * conf/powerpc-ieee1275.rmk: Likewise.
42927 * conf/i386-ieee1275.rmk: Likewise.
42929 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
42930 * kern/i386/coreboot/init.c: Likewise.
42932 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
42933 with `<grub/cpu/kernel.h>'.
42934 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
42936 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
42937 * kern/i386/coreboot/startup.S: Likewise.
42939 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
42940 (GRUB_MOD_GAP): Remove.
42941 * include/grub/powerpc/kernel.h: New file.
42942 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
42943 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42944 * include/grub/i386/kernel.h: New file.
42945 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
42946 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
42947 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42949 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
42951 Use --directory when invoking grub_mkimage.
42953 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
42954 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
42955 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
42956 and GRUB_KERNEL_CPU_PREFIX.
42958 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
42960 * include/grub/err.h (grub_err_printf): New function prototype.
42961 * util/misc.c (grub_err_printf): New function.
42962 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
42964 * kern/err.c (grub_print_error): Use grub_err_printf.
42966 2008-08-13 Robert Millan <rmh@aybabtu.com>
42968 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
42970 2008-08-13 Robert Millan <rmh@aybabtu.com>
42972 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
42975 2008-08-12 Robert Millan <rmh@aybabtu.com>
42977 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
42978 of the relocation code from here ...
42979 (grub_multiboot): ... to here.
42980 (forward_relocator, backward_relocator): Move from here ...
42981 * kern/i386/loader.S (grub_multiboot_forward_relocator)
42982 (grub_multiboot_backward_relocator): ... to here.
42983 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
42984 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
42985 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
42986 (grub_multiboot_forward_relocator_end)
42987 (grub_multiboot_backward_relocator)
42988 (grub_multiboot_backward_relocator_end): New variables.
42990 2008-08-12 Bean <bean123ch@gmail.com>
42992 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
42994 2008-08-11 Robert Millan <rmh@aybabtu.com>
42996 * kern/i386/linuxbios/startup.S: Move from here ...
42997 * kern/i386/coreboot/startup.S: ... to here.
42999 * kern/i386/linuxbios/init.c: Move from here ...
43000 * kern/i386/coreboot/init.c: ... to here.
43002 * kern/i386/linuxbios/table.c: Move from here ...
43003 * kern/i386/coreboot/mmap.c: ... to here.
43005 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
43007 2008-08-11 Robert Millan <rmh@aybabtu.com>
43009 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
43010 errors. Leave it to the upper layer to handle them.
43012 2008-08-09 Christian Franke <franke@computer.org>
43014 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
43015 * conf/common.rmk: Install `grub-pe2elf' only if requested.
43016 Install `grub.d/10_windows' only on Cygwin.
43017 * configure.ac: Add subst of `target_os'.
43018 Check `target_os' also before setting TARGET_OBJ2ELF.
43019 Add `--enable-grub-pe2elf'.
43021 2008-08-08 Robert Millan <rmh@aybabtu.com>
43023 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
43024 (grub_last_time): Change type to grub_uint64_t.
43025 (grub_disk_open): Migrate code from to using grub_get_time_ms().
43026 (grub_disk_close): Likewise.
43028 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
43029 (run_menu): Migrate code from to using grub_get_time_ms().
43031 * util/misc.c (grub_get_time_ms): New function.
43033 2008-08-08 Marco Gerards <marco@gnu.org>
43035 * disk/ata.c (grub_ata_regget): Change return type to
43037 (grub_ata_regget2): Likewise.
43038 (grub_ata_wait_status): New function.
43039 (grub_ata_wait_busy): Removed function, updated all users to use
43040 `grub_ata_wait_status'.
43041 (grub_ata_wait_drq): Likewise.
43042 (grub_ata_cmd): New function.
43043 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
43045 (grub_ata_pio_write): Add error handling.
43046 (grub_atapi_identify): Likewise.
43047 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
43049 (grub_ata_identify): Use `grub_ata_cmd' and improve error
43050 handling. Actually use the detected registers. Reorder the
43051 detection logic such that it is easier to read.
43052 (grub_ata_pciinit): Do not assign the same ID to each controller.
43053 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
43055 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
43057 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
43059 2008-08-08 Marco Gerards <marco@gnu.org>
43063 2008-08-07 Bean <bean123ch@gmail.com>
43065 * include/grub/x86_64/pci.h: New file.
43067 2008-08-07 Christian Franke <franke@computer.org>
43069 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
43070 (TIMER2_GATE): Likewise.
43071 (grub_pit_wait): Add enable/disable of the timer2 gate
43072 bit of port 0x61. This fixes a possible infinite loop.
43074 2008-08-07 Bean <bean123ch@gmail.com>
43076 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
43077 kern/i386/tsc.c and kern/i386/pit.c.
43079 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
43082 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
43085 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
43087 2008-08-07 Bean <bean123ch@gmail.com>
43089 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
43091 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
43093 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
43094 multiple inclusion. Add #include <grub/types.h>.
43096 2008-08-06 Christian Franke <franke@computer.org>
43098 * conf/common.rmk: Build and install `10_windows'.
43099 * util/grub.d/10_windows.in: New script.
43101 2008-08-06 Pavel Roskin <proski@gnu.org>
43103 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
43105 2008-08-06 Robert Millan <rmh@aybabtu.com>
43107 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
43108 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
43110 2008-08-06 Bean <bean123ch@gmail.com>
43112 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
43113 (grub_pxefs_fs_int): Remove dummy definition.
43114 (grub_pxefs_open): Use data->block_size to store the current block
43116 (grub_pxefs_read): Use block size stored in data->block_size. As the
43117 value of grub_pxe_blksize can be changed after the file is opened.
43119 2008-08-06 Bean <bean123ch@gmail.com>
43121 * fs/i386/pc/pxe.c (curr_file): new variable.
43122 (grub_pxefs_open): Simply the handling of pxe file system. Don't
43123 require the dummy internal file system anymore.
43124 (grub_pxefs_read): Removed.
43125 (grub_pxefs_close): Likewise.
43126 (grub_pxefs_fs_int): Likewise.
43127 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
43128 connection when we switch file.
43129 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
43131 2008-08-06 Robert Millan <rmh@aybabtu.com>
43133 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
43135 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
43136 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
43138 * kern/i386/halt.c: New file.
43139 * kern/i386/reboot.c: Likewise.
43140 * include/grub/i386/reboot.h: Likewise.
43141 * include/grub/i386/halt.h: Likewise.
43143 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
43144 Include `<grub/cpu/halt.h>'.
43145 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
43146 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
43148 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
43149 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
43150 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
43151 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
43152 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
43153 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
43155 * include/grub/i386/at_keyboard.h: ... to here.
43157 2008-08-05 Robert Millan <rmh@aybabtu.com>
43159 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
43160 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
43161 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
43162 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43163 `kern/generic/millisleep.c'.
43165 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
43166 instead of grub_get_rtc().
43167 (grub_tsc_init): Initialize `tsc_boot_time'.
43169 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
43170 (grub_machine_init): Use grub_tsc_init() rather than
43171 installing an RTC-based handler via grub_install_get_time_ms().
43173 * kern/i386/pit.c: New file.
43174 * include/grub/i386/pit.h: Likewise.
43176 2008-08-05 Bean <bean123ch@gmail.com>
43178 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
43180 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
43181 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
43182 (pxe_mod_SOURCES): New macro.
43183 (pxe_mod_CFLAGS): Likewise.
43184 (pxe_mod_LDFLAGS): Likewise.
43185 (pxecmd_mod_SOURCES): Likewise.
43186 (pxecmd_mod_CFLAGS): Likewise.
43187 (pxecmd_mod_LDFLAGS): Likewise.
43189 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
43190 (grub_pxe_call): Likewise.
43192 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
43194 * commands/i386/pc/pxecmd.c: New file.
43196 * fs/i386/pc/pxe.c: Likewise.
43198 * include/grub/i386/pc/pxe.h: Likewise.
43200 2008-08-05 Bean <bean123ch@gmail.com>
43202 * util/console.c (grub_console_cur_color): New variable.
43203 (grub_console_standard_color): Likewise.
43204 (grub_console_normal_color): Likewise.
43205 (grub_console_highlight_color): Likewise.
43206 (color_map): Likewise.
43207 (use_color): Likewise.
43208 (NUM_COLORS): New macro.
43209 (grub_ncurses_setcolorstate): Handle color properly.
43210 (grub_ncurses_setcolor): Don't change color here, just remember the
43211 settings, color will be set in grub_ncurses_setcolorstate.
43212 (grub_ncurses_getcolor): New function.
43213 (grub_ncurses_init): Initialize color pairs.
43214 (grub_ncurses_term): New member grub_ncurses_getcolor.
43216 2008-08-05 Colin D Bennett <colin@gibibit.com>
43218 High resolution timer support. Implemented for x86 CPUs using TSC.
43219 Extracted generic grub_millisleep() so it's linked in only as needed.
43220 This requires a Pentium compatible CPU; if the RDTSC instruction is
43221 not supported, then it falls back on the generic grub_get_time_ms()
43222 implementation that uses the machine's RTC.
43224 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
43225 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43226 `kern/generic/millisleep.c'.
43228 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
43229 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
43231 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
43232 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
43234 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43236 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
43237 `kern/generic/millisleep.c'.
43239 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43241 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
43243 * kern/generic/rtc_get_time_ms.c: New file.
43245 * kern/generic/millisleep.c: New file.
43247 * kern/misc.c: Don't include
43248 <kern/time.h> anymore.
43249 (grub_millisleep_generic): Removed.
43251 * commands/sleep.c (grub_interruptible_millisleep): Uses
43252 grub_get_time_ms() instead of grub_get_rtc().
43254 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
43256 (grub_cpu_is_cpuid_supported): New inline function.
43257 (grub_cpu_is_tsc_supported): New inline function.
43258 (grub_tsc_init): New function prototype.
43259 (grub_tsc_get_time_ms): New function prototype.
43261 * kern/i386/tsc.c (grub_get_time_ms): New file.
43263 * include/grub/time.h: Include <grub/types.h.
43264 (grub_millisleep_generic): Removed.
43265 (grub_get_time_ms): New prototype.
43266 (grub_install_get_time_ms): New prototype.
43267 (grub_rtc_get_time_ms): New prototype.
43269 * kern/time.c (grub_get_time_ms): New function.
43270 (grub_install_get_time_ms): New function.
43272 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
43273 <grub/time.h> anymore.
43274 (grub_millisleep): Removed.
43275 (grub_machine_init): Call grub_tsc_init.
43277 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
43278 get_time_ms() implementation.
43280 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
43281 (ieee1275_get_time_ms): New function.
43282 (grub_machine_init): Install get_time_ms() implementation.
43284 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
43285 (grub_machine_init): Call grub_tsc_init().
43286 (grub_millisleep): Removed.
43288 * kern/ieee1275/init.c (grub_millisleep): Removed.
43289 (grub_machine_init): Install ieee1275_get_time_ms()
43291 (ieee1275_get_time_ms): New function.
43292 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
43295 2008-08-05 Marco Gerards <marco@gnu.org>
43297 * disk/ata.c: Include <grub/pci.h>.
43298 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
43299 (grub_ata_initialize): Rewritten.
43300 (grub_ata_device_initialize): New function.
43302 2008-08-04 Pavel Roskin <proski@gnu.org>
43304 * kern/main.c: Include grub/mm.h.
43306 2008-08-04 Robert Millan <rmh@aybabtu.com>
43308 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
43309 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
43310 corruption problem).
43312 2008-08-04 Robert Millan <rmh@aybabtu.com>
43314 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
43315 warnings introduced in my last commit.
43317 2008-08-03 Robert Millan <rmh@aybabtu.com>
43319 Make PCI available on all i386 architectures.
43321 * include/grub/i386/pc/pci.h: Move from here ...
43322 * include/grub/i386/pci.h: ... to here.
43324 * include/grub/i386/pc/pci.h: Remove.
43325 * include/grub/i386/efi/pci.h: Remove.
43326 * include/grub/x86_64/efi/pci.h: Remove.
43328 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
43329 `<grub/cpu/pci.h>'.
43331 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
43332 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
43333 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
43335 * conf/i386-ieee1275.rmk: Likewise.
43337 2008-08-03 Robert Millan <rmh@aybabtu.com>
43339 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
43340 (grub_console_setcursor): Make it possible to set cursor off.
43342 2008-08-03 Robert Millan <rmh@aybabtu.com>
43344 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
43345 of modules instead of assuming which platform provides what.
43346 * util/update-grub.in: Likewise.
43348 2008-08-03 Robert Millan <rmh@aybabtu.com>
43350 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
43351 instead of `grub_install_dos_part' to determine whether a drive needs
43352 to be prepended to prefix (`grub_install_dos_part' is not reliable,
43353 because it can be overridden when loading GRUB via Multiboot).
43355 2008-08-02 Robert Millan <rmh@aybabtu.com>
43357 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
43359 2008-08-02 Robert Millan <rmh@aybabtu.com>
43361 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
43362 of informational grub_dprintf() calls.
43364 2008-08-02 Robert Millan <rmh@aybabtu.com>
43366 * disk/memdisk.c (memdisk_size): Don't initialize.
43367 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
43369 * include/grub/i386/pc/kernel.h
43370 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
43371 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
43372 (grub_memdisk_image_size, grub_arch_memdisk_addr)
43373 (grub_arch_memdisk_size): Remove.
43375 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
43376 field (was only used to transfer a constant). Add `type' field to
43377 support multiple module types.
43378 (grub_module_iterate): New function.
43380 * kern/device.c (grub_device_open): Do not hide error messages
43381 when grub_disk_open() fails. Use grub_print_error() instead.
43383 * kern/i386/pc/init.c (grub_arch_modules_addr)
43384 (grub_arch_memdisk_size): Remove functions.
43385 (grub_arch_modules_addr): Return the module address in high memory
43386 (now that it isn't copied anymore).
43388 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
43389 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
43390 decompression routine (grub_total_module_size already includes that
43391 now). Don't copy modules back to low memory.
43393 * kern/main.c: Include `<grub/mm.h>'.
43394 (grub_load_modules): Split out (and use) ...
43395 (grub_module_iterate): ... this function, which iterates through
43396 module objects and runs a hook.
43397 Comment out grub_mm_init_region() call, as it would cause non-ELF
43398 modules to be overwritten.
43400 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
43401 the memdisk image in its own region, make it part of the module list.
43402 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
43403 (main): Parse --memdisk|-m option, and pass user-provided path as
43404 parameter to generate_image().
43405 (add_segments): Pass `memdisk_path' down to load_modules().
43406 (load_modules): Embed memdisk image in module section when requested.
43407 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
43408 `header.type' instead of `header.offset'.
43410 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
43411 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
43412 (memdisk_mod_LDFLAGS): New variables.
43413 * conf/i386-coreboot.rmk: Likewise.
43414 * conf/i386-ieee1275.rmk: Likewise.
43416 2008-08-02 Robert Millan <rmh@aybabtu.com>
43418 * loader/i386/pc/multiboot.c (playground, forward_relocator)
43419 (backward_relocator): New variables. Used to allocate and relocate
43420 the payload, respectively.
43421 (grub_multiboot_load_elf32): Load into heap instead of requested
43422 address, install the appropriate relocator code in each bound of
43423 the payload, and set the entry point such that
43424 grub_multiboot_real_boot() will jump to one of them.
43426 * kern/i386/loader.S (grub_multiboot_payload_size)
43427 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43428 (grub_multiboot_payload_entry_offset): New variables.
43429 (grub_multiboot_real_boot): Set cpu context to what the relocator
43430 expects, and jump to the relocator instead of the payload.
43432 * include/grub/i386/loader.h (grub_multiboot_payload_size)
43433 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43434 (grub_multiboot_payload_entry_offset): Export.
43436 2008-08-01 Bean <bean123ch@gmail.com>
43438 * normal/menu_entry.c (editor_getline): Don't return the original
43439 string as result, as it will be released by lexer once it has done
43442 2008-08-01 Robert Millan <rmh@aybabtu.com>
43444 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
43445 within menuentries, not before them.
43446 util/grub.d/10_hurd.in: Likewise.
43448 2008-08-01 Bean <bean123ch@gmail.com>
43450 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
43451 (bufio_mod_SOURCES): New macro.
43452 (bufio_mod_CFLAGS): Likewise.
43453 (bufio_mod_LDFLAGS): Likewise.
43455 * include/grub/bufio.h: New file.
43457 * io/bufio.c: Likewise.
43459 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
43460 (grub_video_reader_png): Use grub_buffile_open to open file.
43462 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
43463 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
43465 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
43466 (grub_video_reader_tga): Use grub_buffile_open to open file.
43468 * font/manager.c: Include <grub/bufio.h>.
43469 (add_font): Use grub_buffile_open to open file.
43471 2008-07-31 Robert Millan <rmh@aybabtu.com>
43473 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
43474 ELF segments, use a macro for arbitrarily accessing any of them instead
43475 of preparing a pointer that allows access to one at a time.
43476 (grub_multiboot_load_elf64): Likewise.
43478 2008-07-31 Bean <bean123ch@gmail.com>
43480 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
43481 GRUB_KERNEL_MACHINE_DATA_END.
43483 2008-07-30 Robert Millan <rmh@aybabtu.com>
43485 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
43486 Increase from 0x50 to 0x60.
43487 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
43488 use UUIDs to identify the root drive for them. If that's not
43490 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
43491 check, for cross-disk installs.
43493 2008-07-30 Robert Millan <rmh@aybabtu.com>
43495 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
43496 is non-empty, use it to set the `prefix' environment variable instead
43497 of the usual approach.
43498 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
43499 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
43500 environment variable instead of dummy make_install_device().
43502 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
43503 (start): Insert a data section, with `grub_prefix' variable.
43504 * kern/i386/linuxbios/startup.S: Likewise.
43506 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
43507 New variable reference.
43508 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
43509 New macro. Defines offset of `grub_prefix' within startup.S (relative
43511 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
43512 section within startup.S (relative to `start').
43513 * include/grub/i386/coreboot/kernel.h: Likewise.
43515 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
43516 Overwrite grub_prefix with its contents, at the beginning of the
43518 (main): Understand -p|--prefix.
43520 2008-07-30 Robert Millan <rmh@aybabtu.com>
43522 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
43524 2008-07-30 Robert Millan <rmh@aybabtu.com>
43526 * term/i386/pc/vga_text.c (grub_console_cls): Use
43527 grub_console_gotoxy() to go back to beginning of the screen.
43528 Found by Patrick Georgi <patrick.georgi@coresystems.de>
43530 2008-07-29 Christian Franke <franke@computer.org>
43532 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43533 Add conversion of emulated mount points on Cygwin.
43535 2008-07-29 Christian Franke <franke@computer.org>
43537 * util/update-grub.in: Add a check for admin
43539 Remove old `grub.cfg.new' before creation.
43540 Add `-f' to `mv' to handle the different filesystem
43541 semantics of Windows.
43543 2008-07-29 Bean <bean123ch@gmail.com>
43545 * normal/main.c (get_line): Fix buffer overflow bug.
43547 2008-07-28 Robert Millan <rmh@aybabtu.com>
43549 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
43550 (struct grub_apple_header): New struct. Describes the layout of
43551 the partmap header.
43552 (apple_partition_map_iterate): Check the header magic as well as the
43553 partition magic (which was already being checked).
43555 2008-07-28 Pavel Roskin <proski@gnu.org>
43557 * genmk.rb: Add a warning to the beginning of the output that
43558 it's a generated file and should not be edited.
43560 2008-07-28 Robert Millan <rmh@aybabtu.com>
43562 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
43563 with the same number are found, just use issue a warning with
43564 grub_dprintf(), as this error has been reported to be non-fatal.
43566 2008-07-27 Robert Millan <rmh@aybabtu.com>
43568 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
43571 2008-07-27 Bean <bean123ch@gmail.com>
43573 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
43574 (grub_fat_find_dir): Ignore case when comparing filename.
43576 2008-07-27 Bean <bean123ch@gmail.com>
43578 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
43579 smallino, as it's more descriptive, and i8count can be confused with
43580 the other field count.
43581 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
43584 2008-07-27 Bean <bean123ch@gmail.com>
43586 * commands/crc.c: New file.
43588 * lib/crc.c: Likewise.
43590 * include/grub/lib/crc.h: Likewise.
43592 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
43594 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
43595 (hexdump): Move this function to ...
43597 * lib/hexdump.c: ... here.
43599 * include/grub/hexdump.h: Renamed to ...
43601 * include/grub/lib/hexdump.h: ... this.
43603 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
43605 * util/grub-editenv.c: Likewise.
43607 * include/envblk.h: Renamed to ...
43609 * include/lib/envblk.h: ... this.
43611 * util/envblk.c: Renamed to ...
43613 * lib/envblk.c: ... this.
43615 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
43617 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
43618 (pkglib_MODULES): Add crc.mod.
43619 (hexdump_mod_SOURCES): Add lib/hexdump.c.
43620 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
43621 (crc_mod_SOURCES): New macro.
43622 (crc_mod_CFLAGS): Likewise.
43623 (crc_mod_LDFLAGS): Likewise.
43625 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
43627 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43629 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43631 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43633 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
43635 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
43637 * commands/help.c: Include <grub/term.h>.
43638 (TERM_WIDTH): Removed. Updated all users.
43640 2008-07-27 Pavel Roskin <proski@gnu.org>
43642 * util/getroot.c (find_root_device): Rephrase a comment to avoid
43643 spurious warnings about a comment within a comment.
43645 2008-07-25 Robert Millan <rmh@aybabtu.com>
43647 * util/getroot.c (find_root_device): Skip devices that match
43648 /dev/dm-[0-9]. This lets the real device be found for any type of
43649 abstraction (LVM, EVMS, RAID..).
43650 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
43651 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
43652 device is found first, find_root_device() will now skip it.
43654 2008-07-24 Pavel Roskin <proski@gnu.org>
43656 * include/grub/types.h: Use __builtin_bswap32() and
43657 __builtin_bswap64() with gcc 4.3 and newer.
43659 2008-07-24 Christian Franke <franke@computer.org>
43661 * util/i386/pc/grub-install.in: If `--debug' is specified,
43662 pass `--verbose' to grub-setup.
43663 Abort script if make_system_path_relative_to_its_root() fails.
43665 2008-07-24 Bean <bean123ch@gmail.com>
43667 * configure.ac: Fixed a bug caused by the previous cygwin patch,
43668 variable `target_platform' should be `platform'.
43670 2008-07-24 Bean <bean123ch@gmail.com>
43672 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
43673 (grub_png_init_fixed_block): New function.
43674 (grub_png_decode_image_data): Handle fixed huffman code compression.
43676 2008-07-24 Bean <bean123ch@gmail.com>
43678 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
43679 (grub_pe2elf_SOURCES): New macro.
43680 (CLEANFILES): Add grub-pe2elf.
43682 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
43683 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
43684 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
43685 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
43686 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
43687 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
43688 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
43689 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
43690 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
43691 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
43692 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
43693 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
43694 (GRUB_PE32_DT_FUNCTION): Likewise.
43695 (GRUB_PE32_REL_I386_DIR32): Likewise.
43696 (GRUB_PE32_REL_I386_REL32): Likewise.
43697 (grub_pe32_symbol): New structure.
43698 (grub_pe32_reloc): Likewise.
43700 * util/grub-pe2elf.c: New file.
43702 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
43703 start symbol in non pc platform.
43705 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
43707 The following patches are from Christian Franke.
43709 * include/grub/dl.h: Remove .previous, gas supports this only
43712 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
43713 Remove .type, gas supports this only for ELF format.
43715 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
43716 nullbytes in symbol table. This fixes an infinite loop if table is
43719 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
43720 TARGET_IMG_LDFLAGS and EXEEXT.
43722 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
43723 TARGET_IMG_LDFLAGS_AC.
43724 (grub_CHECK_STACK_ARG_PROBE): New function.
43726 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
43728 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
43730 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
43731 to set TARGET_IMG_LD* accordingly.
43732 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
43733 Add call to grub_CHECK_STACK_ARG_PROBE.
43734 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
43736 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
43738 * genmk.rb: Add EXEEXT to CLEANFILES.
43740 2008-07-23 Robert Millan <rmh@aybabtu.com>
43742 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
43743 define the codes for arrows and lines used for the menu).
43744 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
43747 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
43748 fonts, because the latter are too slow.
43750 2008-07-21 Bean <bean123ch@gmail.com>
43752 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
43753 a20. Run keyboard test last, as it will cause macbook to halt.
43755 2008-07-18 Pavel Roskin <proski@gnu.org>
43757 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
43758 load foreign architecture modules correctly anyway. Keep
43759 support for loading host architecture modules, whether we
43760 compile them or not.
43762 2008-07-17 Pavel Roskin <proski@gnu.org>
43764 * configure.ac: Use -m32 or -m64 regardless of whether we had to
43765 change target_cpu. The compiler default can mismatch target_cpu
43768 * disk/efi/efidisk.c: Fix format warnings on x86_64.
43769 * kern/efi/efi.c: Likewise.
43771 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43772 target compiler is functional.
43773 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43776 * configure.ac: Default to efi platform for x86_64-apple. Allow
43777 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43778 adjustments from the rest, only do them if target is not
43779 explicitly given. Merge other adjustments with the final sanity
43780 check. Remove an extraneous check for supported CPU. Be
43781 specific which CPU and which platform is not supported.
43783 * configure.ac: Default to pc platform for x86_64.
43785 2008-07-17 Robert Millan <rmh@aybabtu.com>
43787 Partial LinuxBIOS -> Coreboot rename.
43789 * conf/i386-linuxbios.rmk: Renamed to ...
43790 * conf/i386-coreboot.rmk: ... this.
43791 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43792 * configure.ac: Accept "coreboot" as input platform (but maintain
43793 compatibility with "linuxbios").
43794 * include/grub/i386/linuxbios: Renamed to ...
43795 * include/grub/i386/coreboot: ... this.
43797 2008-07-17 Bean <bean123ch@gmail.com>
43799 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
43800 (appleldr_mod_SOURCE): New variable.
43801 (appleldr_mod_CFLAGS): Likewise.
43802 (appleldr_mod_LDFLAGS): Likewise.
43803 (pci_mod_SOURCES): Likewise.
43804 (pci_mod_CFLAGS): Likewise.
43805 (pci_mod_LDFLAGS): Likewise.
43806 (lspci_mod_SOURCES): Likewise.
43807 (lspci_mod_CFLAGS): Likewise.
43808 (lspci_mod_LDFLAGS): Likewise.
43810 * conf/x86_64-efi.rmk: New file.
43812 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43814 (grub_efidisk_write): Likewise.
43816 * include/efi/api.h (efi_call_0): New macro.
43817 (efi_call_1): Likewise.
43818 (efi_call_2): Likewise.
43819 (efi_call_3): Likewise.
43820 (efi_call_4): Likewise.
43821 (efi_call_5): Likewise.
43822 (efi_call_6): Likewise.
43824 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43825 grub_rescue_cmd_chainloader.
43827 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43828 (grub_pe32_optional_header): Change some fields based on i386 or
43830 (GRUB_PE32_PE32_MAGIC): Likewise.
43832 * include/grub/efi/uga_draw.h: New file.
43834 * include/grub/elf.h (STN_ABS): New constant.
43835 (R_X86_64_NONE): Relocation constant for x86_64.
43836 (R_X86_64_64): Likewise.
43837 (R_X86_64_PC32): Likewise.
43838 (R_X86_64_GOT32): Likewise.
43839 (R_X86_64_PLT32): Likewise.
43840 (R_X86_64_COPY): Likewise.
43841 (R_X86_64_GLOB_DAT): Likewise.
43842 (R_X86_64_JUMP_SLOT): Likewise.
43843 (R_X86_64_RELATIVE): Likewise.
43844 (R_X86_64_GOTPCREL): Likewise.
43845 (R_X86_64_32): Likewise.
43846 (R_X86_64_32S): Likewise.
43847 (R_X86_64_16): Likewise.
43848 (R_X86_64_PC16): Likewise.
43849 (R_X86_64_8): Likewise.
43850 (R_X86_64_PC8): Likewise.
43852 * include/grub/i386/efi/pci.h: New file.
43854 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
43855 Change it value based on platform.
43856 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
43857 (GRUB_E820_RAM): Likewise.
43858 (GRUB_E820_RESERVED): Likewise.
43859 (GRUB_E820_ACPI): Likewise.
43860 (GRUB_E820_NVS): Likewise.
43861 (GRUB_E820_EXEC_CODE): Likewise.
43862 (GRUB_E820_MAX_ENTRY): Likewise.
43863 (grub_e820_mmap): New structure.
43864 (linux_kernel_header): Change the efi field according to different
43865 kernel version, also field from linux_kernel_header.
43867 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
43869 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
43870 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
43871 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
43872 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
43873 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
43874 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
43875 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
43876 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
43877 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
43878 (GRUB_PCI_ADDR_IO_MASK): Likewise.
43880 * include/grub/x86_64/efi/kernel.h: New file.
43882 * include/grub/x86_64/efi/loader.h: Likewise.
43884 * include/grub/x86_64/efi/machine.h: Likewise.
43886 * include/grub/x86_64/efi/pci.h: Likewise.
43888 * include/grub/x86_64/efi/time.h: Likewise.
43890 * include/grub/x86_64/linux.h: Likewise.
43892 * include/grub/x86_64/setjmp.h: Likewise.
43894 * include/grub/x86_64/time.h: Likewise.
43896 * include/grub/x86_64/types.h: Likewise.
43898 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
43899 GRUB_TARGET_SIZEOF_VOID_P.
43901 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
43902 (grub_efi_locate_handle): Likewise.
43903 (grub_efi_open_protocol): Likewise.
43904 (grub_efi_set_text_mode): Likewise.
43905 (grub_efi_stall): Likewise.
43906 (grub_exit): Likewise.
43907 (grub_reboot): Likewise.
43908 (grub_halt): Likewise.
43909 (grub_efi_exit_boot_services): Likewise.
43910 (grub_get_rtc): Likewise.
43912 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
43913 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
43914 (grub_efi_allocate_pages): Wrap efi calls.
43915 (grub_efi_free_pages): Wrap efi calls.
43916 (grub_efi_get_memory_map): Wrap efi calls.
43918 * kern/x86_64/dl.c: New file.
43920 * kern/x86_64/efi/callwrap.S: Likewise.
43922 * kern/x86_64/efi/startup.S: Likewise.
43924 * loader/efi/appleloader.c: Likewise.
43926 * loader/efi/chainloader.c (cmdline): New variable.
43927 (grub_chainloader_unload): Wrap efi calls.
43928 (grub_chainloader_boot): Likewise.
43929 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
43932 * loader/efi/chainloader_normal.c (chainloader_command):
43933 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
43936 * loader/i386/efi/linux.c (allocate_pages): Change allocation
43938 (grub_e820_add_region): New function.
43939 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
43941 (grub_find_video_card): New function.
43942 (grub_linux_setup_video): New function.
43943 (grub_rescue_cmd_linux): Probe for video information.
43945 * normal/x86_64/setjmp.S: New file.
43947 * term/efi/console.c (map_char): New function.
43948 (grub_console_putchar): Map unicode char.
43949 (grub_console_checkkey): Wrap efi calls.
43950 (grub_console_getkey): Likewise.
43951 (grub_console_getwh): Likewise.
43952 (grub_console_gotoxy): Likewise.
43953 (grub_console_cls): Likewise.
43954 (grub_console_setcolorstate): Likewise.
43955 (grub_console_setcursor): Likewise.
43957 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
43959 2008-07-16 Pavel Roskin <proski@gnu.org>
43961 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
43964 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
43965 pointer, not an integer. This fixes a warning and prevents
43966 precision loss on 64-bit systems.
43967 (relocate_addresses): Remove unneeded cast.
43969 2008-07-15 Pavel Roskin <proski@gnu.org>
43971 * kern/i386/ieee1275/init.c: Include grub/cache.h.
43973 * term/ieee1275/ofconsole.c: Disable code unused on i386.
43975 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
43976 Fix comparison between signed and unsigned.
43978 * include/grub/i386/ieee1275/console.h: Declare
43979 grub_console_init() and grub_console_fini().
43981 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
43982 It's empty and unused.
43984 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
43985 beginning to avoid warnings with some compilers.
43987 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
43988 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
43990 2008-07-14 Pavel Roskin <proski@gnu.org>
43992 * kern/env.c (grub_register_variable_hook): Don't copy empty
43993 string, it leaks memory. Pass "" to grub_env_set(), it should
43994 handle constant strings.
43996 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
43997 * commands/cmp.c (grub_cmd_cmp): Likewise.
43998 * kern/dl.c (grub_dl_flush_cache): Likewise.
43999 (grub_dl_load_core): Likewise.
44000 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
44001 (grub_elf64_load_phdrs): Likewise.
44003 2008-07-13 Pavel Roskin <proski@gnu.org>
44005 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
44006 between signed and unsigned.
44007 (LzmaEnc_Finish): Fix warning about an unused parameter.
44009 2008-07-13 Bean <bean123ch@gmail.com>
44011 * Makefile.in (enable_lzo): New rule.
44013 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
44015 * configure.ac (ENABLE_LZO): New option --enable-lzo.
44017 * boot/i386/pc/lnxboot.S: #include <config.h>.
44019 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
44020 its value according to the compression algorithm used, lzo or lzma.
44022 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
44023 compression algorithm according to configure macro.
44025 * kern/i386/pc/startup.S (codestart): Likewise.
44027 * kern/i386/pc/lzma_decode.S: New file.
44029 * include/grub/lib/LzFind.h: Likewise.
44031 * include/grub/lib/LzHash.h: Likewise.
44033 * include/grub/lib/LzmaDec.h: Likewise.
44035 * include/grub/lib/LzmaEnc.h: Likewise.
44037 * include/grub/lib/LzmaTypes.h: Likewise.
44039 * lib/LzFind.c: Likewise.
44041 * lib/LzmaDec.c: Likewise.
44043 * lib/LzmaEnc.c: Likewise.
44045 2008-07-13 Bean <bean123ch@gmail.com>
44047 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
44048 (grub_ext4_extent_header): New structure.
44049 (grub_ext4_extent): Likewise.
44050 (grub_ext4_extent_idx): Likewise.
44051 (grub_ext4_find_leaf): New function.
44052 (grub_ext2_read_block): Handle extents.
44054 2008-07-12 Robert Millan <rmh@aybabtu.com>
44056 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
44058 2008-07-11 Robert Millan <rmh@aybabtu.com>
44060 * util/grub.d/40_custom.in: New file. Example on how to add custom
44061 entries to /etc/grub.d.
44062 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
44063 40_custom (implicitly, by merging all the grub.d rules).
44065 2008-07-11 Pavel Roskin <proski@gnu.org>
44067 * commands/read.c (grub_getline): Fix invalid memory access.
44068 Don't add newline to the variable value.
44070 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
44071 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
44072 (serial_hw_get_port): Check validity of the port number.
44073 (grub_cmd_serial): Check return value of serial_hw_get_port().
44075 2008-07-07 Pavel Roskin <proski@gnu.org>
44077 * boot/i386/pc/diskboot.S (notification_string): Replace
44078 "Loading kernel" with just "loading". This is shorter, less
44079 confusing and saves a few bytes for possible future changes.
44081 2008-07-05 Pavel Roskin <proski@gnu.org>
44083 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
44084 size for ATAPI devices, they are undefined. Output sector
44085 number in decimal form.
44087 * disk/ata.c: Use named constants for status bits.
44089 2008-07-04 Pavel Roskin <proski@gnu.org>
44091 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
44092 grub_addr_t before casting it to the void pointer to fix a
44093 warning. Non-addressable regions are discarded earlier.
44094 (grub_arch_modules_addr): Cast _end to grub_addr_t.
44095 * kern/i386/linuxbios/table.c: Include grub/misc.h.
44096 (check_signature): Don't shadow table_header.
44097 (grub_linuxbios_table_iterate): Cast numeric constants to
44098 grub_linuxbios_table_header_t.
44099 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
44102 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
44105 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
44106 pointer, which can cause warnings. Support 64-bit addresses.
44108 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
44109 of sizeof(long). This fixes PowerPC image generation on x86_64.
44111 2008-07-04 Robert Millan <rmh@aybabtu.com>
44113 This fixes a performance issue when pc & gpt partmap iterators
44114 didn't abort iteration even after our hook found what it was
44115 looking for (often causing expensive probes of non-existent drives).
44117 Some callers relied on previous buggy behaviour, since they would
44118 raise an error when their own hooks caused early abortion of its
44121 * kern/device.c (grub_device_open): Improve error message.
44122 * disk/lvm.c (grub_lvm_open): Likewise.
44123 * disk/raid.c (grub_raid_open): Likewise.
44125 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
44126 when hook requests it, independently of grub_errno.
44127 (pc_partition_map_probe): Do not fail when find_func() caused
44128 early abortion of pc_partition_map_iterate().
44130 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
44131 when hook requests it, independently of grub_errno.
44132 (gpt_partition_map_probe): Do not fail when find_func() caused
44133 early abortion of gpt_partition_map_iterate().
44135 * kern/partition.c (grub_partition_iterate): Abort parent iteration
44136 when hook requests it, independently of grub_errno. Do not fail when
44137 part_map_iterate_hook() caused early abortion of p->iterate().
44139 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
44140 when grub_partition_iterate() returned with non-zero.
44142 2008-07-03 Pavel Roskin <proski@gnu.org>
44144 * disk/ata.c (grub_ata_pio_write): Check status before writing,
44145 like we do in grub_ata_pio_read().
44146 (grub_ata_readwrite): Always write individual sectors. Fix the
44147 sector count for the remainder.
44148 (grub_ata_write): Enable writing to ATA devices. Correctly
44149 report error for ATAPI devices.
44151 2008-07-02 Pavel Roskin <proski@gnu.org>
44153 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
44156 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
44157 for every read sector, we already increment it for the whole
44158 batch. This fixes reading more than 256 sectors at once.
44160 * util/grub-editenv.c (cmd_info): Cast argument to long
44161 explicitly. ptrdiff_t reduces to int on i386.
44163 * util/grub-editenv.c (main): Be specific which parameter is
44166 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
44167 (memdisk): Make memdisk_orig_addr a pointer.
44169 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
44170 for file offsets, use grub_off_t instead. Fix printf format
44173 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
44174 there. Real unexpected warnings should not drown in the noise
44175 about known problems.
44177 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
44178 grub_disk_addr_t for memory addresses.
44180 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
44181 explicitly to fix a warning.
44183 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
44185 * Makefile.in (MODULE_LDFLAGS): New variable.
44186 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
44187 the linker accepts --build-id=none.
44188 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
44190 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
44192 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
44193 those in Linux XFS code. Provide a way to access 64-bit parent
44195 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
44196 the end of struct grub_xfs_dir_header.
44198 2008-07-02 Bean <bean123ch@gmail.com>
44200 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
44201 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44202 and GRUB_IEEE1275_FLAG_NO_ANSI.
44204 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
44205 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44206 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
44208 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
44209 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
44211 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
44212 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
44214 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
44215 esc sequence on non ANSI terminal.
44216 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
44218 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
44221 2008-07-02 Bean <bean123ch@gmail.com>
44223 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
44224 (grub_editenv_SOURCES): New variable.
44225 (pkglib_MODULES): Add loadenv.mod.
44226 (loadenv_mod_SOURCES): New variable.
44227 (loadenv_mod_CFLAGS): Likewise.
44228 (loadenv_mod_LDFLAGS): Likewise.
44230 * include/grub/envblk.h: New file.
44232 * util/envblk.c: New file.
44234 * util/grub-editenv.c: New file.
44236 * commands/loadenv.c: New file.
44238 2008-07-01 Pavel Roskin <proski@gnu.org>
44240 * include/multiboot2.h (struct multiboot_tag_module): Use char,
44241 not unsigned char. This fixes warnings and is consistent with
44244 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
44246 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
44248 * term/tparm.c (analyze): Always set *popcount.
44250 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
44251 cast to fix a warning.
44253 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
44254 cast to suppress a warning.
44256 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
44257 grub_fshelp_read_file() expects.
44259 * fs/fat.c: Fix UUID calculation on big-endian systems. We
44260 write uuid as a 32-bit value in CPU byte order, so declare and
44263 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
44264 long if the format specifier expects it.
44265 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
44266 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44267 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
44268 long to fix a warning.
44269 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
44270 grub_dprintf() arguments to fix warnings.
44272 2008-06-30 Pavel Roskin <proski@gnu.org>
44274 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
44275 install_bsd_part immediately before core.img is embedded or
44276 modified on disk. This fixes core.img verification if core.img
44277 cannot be embedded.
44279 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
44280 core_path to calculate the blocklist.
44281 Patch from Javier Martín <lordhabbit@gmail.com>
44283 2008-06-29 Robert Millan <rmh@aybabtu.com>
44285 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
44286 block to disk block.
44287 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
44288 Patch from Niels Böhm <bitbucket@arcor.de>
44290 2008-06-29 Robert Millan <rmh@aybabtu.com>
44292 * util/update-grub_lib.in (font_path): Search for fonts in
44293 /boot/grub first, which is more likely to be readable (we aren't
44294 deciding where fonts live, just looking for them).
44296 2008-06-26 Pavel Roskin <proski@gnu.org>
44298 * util/biosdisk.c (read_device_map): Don't leave dead map
44299 entries for devices failing stat() check.
44301 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
44302 core_path_dev for the core.img path on the target device.
44304 2008-06-26 Robert Millan <rmh@aybabtu.com>
44306 * disk/fs_uuid.c: New file.
44307 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
44308 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
44309 (fs_uuid_mod_LDFLAGS): New variables.
44310 * include/grub/disk.h (grub_disk_dev_id): Add
44311 `GRUB_DISK_DEVICE_UUID_ID'.
44312 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
44313 implement iterate().
44315 2008-06-26 Robert Millan <rmh@aybabtu.com>
44317 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
44318 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
44319 Linux image includes no initrd.
44321 2008-06-21 Javier Martín <lordhabbit@gmail.com>
44323 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
44324 call to resolve the core image location that effectively appended the
44327 2008-06-21 Robert Millan <rmh@aybabtu.com>
44329 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
44332 * util/grub.d/10_hurd.in: ... to here ...
44333 * util/grub.d/10_linux.in: ... and here.
44335 2008-06-19 Robert Millan <rmh@aybabtu.com>
44337 * kern/main.c (grub_main): Export `prefix' variable immediately
44338 after it has been set by grub_machine_set_prefix().
44340 2008-06-19 Robert Millan <rmh@aybabtu.com>
44342 * commands/search.c (search_label, search_fs_uuid, search_file): Print
44343 search result when not saving to variable, not the other way around.
44344 When saving to variable, abort iteration as soon as a match is found.
44346 2008-06-19 Robert Millan <rmh@aybabtu.com>
44348 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
44349 check for partition that provides /boot/grub. Its logic is flawed,
44350 as it prevents prepare_grub_to_access_device() from being called
44353 2008-06-19 Robert Millan <rmh@aybabtu.com>
44355 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
44356 "insmod" command directly when abstraction modules are needed,
44357 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
44358 since it had already been processed).
44360 2008-06-19 Pavel Roskin <proski@gnu.org>
44362 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
44363 changed. This is needed in case GRUB_LIBDIR changes.
44364 * conf/i386-ieee1275.rmk: Likewise.
44365 * conf/i386-linuxbios.rmk: Likewise.
44366 * conf/i386-pc.rmk: Likewise.
44367 * conf/powerpc-ieee1275.rmk: Likewise.
44369 2008-06-18 Pavel Roskin <proski@gnu.org>
44371 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
44372 kernel_elf_symlist.c to symlist.c for consistency with other
44373 architectures. Update all users.
44374 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
44376 2008-06-18 Robert Millan <rmh@aybabtu.com>
44378 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
44381 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
44382 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
44383 a RAID device, run setup() for all members independently on whether
44384 LVM abstraction is being used.
44385 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
44386 If grub-mkimage has set `*install_dos_part == -2', don't override this
44388 Perform *install_dos_part adjustments independently on whether
44389 we're embedding or not.
44390 Clarify error message when image is too big for embedding.
44391 Remove duplicate *install_dos_part stanza.
44393 2008-06-17 Robert Millan <rmh@aybabtu.com>
44395 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
44396 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
44398 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
44399 values in grub_ofconsole_normal_color and
44400 grub_ofconsole_highlight_color (they're not directly related to
44401 background and foreground).
44402 (grub_ofconsole_setcolorstate): Extract background and foreground
44403 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
44405 2008-06-17 Robert Millan <rmh@aybabtu.com>
44407 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
44408 /boot/grub for the check in last commit, not /boot (they could be
44409 different partitions).
44411 2008-06-16 Robert Millan <rmh@aybabtu.com>
44413 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
44414 asked to setup access for the same partition that provides /boot,
44415 don't bother using UUIDs since our root already has the value we
44418 2008-06-16 Robert Millan <rmh@aybabtu.com>
44420 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
44422 Patch from Sven Mueller <sven@debian.org>.
44424 2008-06-16 Robert Millan <rmh@aybabtu.com>
44426 * util/update-grub.in: Check for $EUID instead of $UID.
44427 Reported by Vincent Zweije.
44429 2008-06-16 Bean <bean123ch@gmail.com>
44431 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
44432 (grub_ext2_read_block): Likewise.
44433 (grub_ext2_read_inode): Likewise.
44434 (grub_ext2_mount): Likewise.
44435 (grub_ext2_close): Likewise.
44436 (grub_ext3_get_journal): Removed.
44438 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
44439 (grub_reiserfs_read_symlink): Likewise.
44440 (grub_reiserfs_mount): Likewise.
44441 (grub_reiserfs_open): Likewise.
44442 (grub_reiserfs_read): Likewise.
44443 (grub_reiserfs_close): Likewise.
44444 (grub_reiserfs_get_journal): Removed.
44446 * fs/fshelp.c (grub_fshelp_read): Removed.
44447 (grub_fshelp_map_block): Likewise.
44449 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
44450 (grub_fshelp_journal): Likewise.
44451 (grub_fshelp_read): Likewise.
44452 (grub_fshelp_map_block): Likewise.
44454 2008-06-16 Pavel Roskin <proski@gnu.org>
44456 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
44457 floating point anymore.
44458 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
44460 2008-06-15 Pavel Roskin <proski@gnu.org>
44462 * commands/ls.c (grub_ls_list_files): Use integer calculations
44463 for human readable format, avoid floating point use.
44464 * kern/misc.c (grub_ftoa): Remove.
44465 (grub_vsprintf): Remove floating point support.
44467 2008-06-15 Robert Millan <rmh@aybabtu.com>
44469 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
44471 Reported by Max Vozeler.
44473 2008-06-15 Robert Millan <rmh@aybabtu.com>
44475 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
44476 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
44478 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
44479 the beginning of the prefix.
44481 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
44482 It is assumed that if we have a memdisk, grub-mkimage has set
44483 grub_prefix to include the "(memdisk)" drive in it.
44485 2008-06-15 Robert Millan <rmh@aybabtu.com>
44487 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
44488 Initialize keyboard controller after registering the terminal, so that
44489 grub_printf() can be called from grub_keyboard_controller_init().
44491 2008-06-15 Robert Millan <rmh@aybabtu.com>
44493 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
44494 extent-btree which is written as big endian on disk.
44495 Reported by Alain Greppin <al@chilibi.org>.
44497 2008-06-14 Robert Millan <rmh@aybabtu.com>
44499 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
44500 * util/i386/pc/grub-install.in (modules): Likewise.
44502 2008-06-13 Pavel Roskin <proski@gnu.org>
44504 * commands/ls.c (grub_ls_list_files): Fix format warnings.
44506 2008-06-13 Bean <bean123ch@gmail.com>
44508 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
44510 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
44512 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
44513 to indicate sparse block.
44515 2008-06-12 Pavel Roskin <proski@gnu.org>
44517 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
44518 number, grub_fshelp_read() does it for us.
44520 * fs/fshelp.c (grub_fshelp_read): New function. Implement
44521 linear disk read with journal translation.
44522 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
44523 * include/grub/fshelp.h: Declare grub_fshelp_read().
44525 2008-06-09 Pavel Roskin <proski@gnu.org>
44527 * fs/minix.c (grub_minix_mount): Handle error reading
44530 2008-06-08 Robert Millan <rmh@aybabtu.com>
44532 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
44533 don't append the RAID prefix afterwards.
44534 Reported by Clint Adams.
44536 2008-06-08 Robert Millan <rmh@aybabtu.com>
44538 Based on description from Pavel:
44539 * kern/disk.c (grub_disk_check_range): Rename to ...
44540 (grub_disk_adjust_range): ... this. Add a comment explaining the
44541 tasks performed by this function.
44543 2008-06-08 Robert Millan <rmh@aybabtu.com>
44545 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
44546 `num_serial' (for consistency with other variables).
44547 (struct grub_ntfs_data): Add `uuid' member.
44548 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
44549 (grub_ntfs_uuid): New function.
44550 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
44552 2008-06-07 Pavel Roskin <proski@gnu.org>
44554 * util/biosdisk.c (open_device): Revert last change to the
44555 function, it broke installation. The sector needs to be
44556 different dependent on which device is opened.
44558 2008-06-06 Robert Millan <rmh@aybabtu.com>
44560 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
44561 rest of GRUB, and breakage doesn't happen if its value were modified.
44563 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44564 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
44565 a constant (same value).
44566 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
44567 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
44569 2008-06-06 Robert Millan <rmh@aybabtu.com>
44571 * util/biosdisk.c (open_device): Do not modify sector offset when
44572 accessing a partition. kern/disk.c already handles this for us.
44574 2008-06-06 Robert Millan <rmh@aybabtu.com>
44576 * util/grub-emu.c (grub_machine_init): Move code in this function from
44578 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
44579 segfault in case grub_printf() is called).
44581 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
44582 grub_probe. Update all users not to explicitly add it again.
44583 (grub_device): New variable; contains corresponding device for grubdir.
44584 (fs_module, partmap_module, devabstraction_module): Pass
44585 `--device ${grub_device}' to grub_probe to avoid traversing /dev
44588 2008-06-05 Robert Millan <rmh@aybabtu.com>
44590 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
44591 is found, print it (same layout as with labels).
44593 2008-06-04 Robert Millan <rmh@aybabtu.com>
44595 * util/biosdisk.c (get_drive): Rename to ...
44596 (find_grub_drive): ... this. Update all users.
44598 (get_os_disk): Rename to ...
44599 (convert_system_partition_to_system_disk): ... this. Update all users.
44601 (find_drive): Rename to ...
44602 (find_system_device): ... this. Update all users.
44604 2008-06-04 Robert Millan <rmh@aybabtu.com>
44606 * util/biosdisk.c (get_os_disk): Handle IDA devices.
44607 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44608 (make_device_map): Likewise.
44610 2008-06-01 Robert Millan <rmh@aybabtu.com>
44612 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
44613 before dereferencing it.
44615 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
44616 union with fat12/fat16-specific ones. Add some new fields, including
44617 `num_serial' for both versions.
44618 (struct grub_fat_data): Add `uuid' member.
44619 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
44620 names. Initialize `data->uuid' using `num_serial'.
44621 (grub_fat_uuid): New function.
44622 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
44624 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
44625 (grub_reiserfs_uuid): New function.
44626 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
44629 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
44630 (grub_xfs_uuid): New function.
44631 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
44633 2008-06-01 Robert Millan <rmh@aybabtu.com>
44635 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
44636 code that is backward compatible with pre-uuid search command.
44638 2008-05-31 Robert Millan <rmh@aybabtu.com>
44640 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
44641 floppies after everything else, to ensure floppy drive isn't accessed
44642 unnecessarily (patch from Bean).
44644 2008-05-31 Robert Millan <rmh@aybabtu.com>
44646 * commands/search.c (search_label, search_fs_uuid, search_file): Do
44647 not print device names when we were asked to set a variable.
44649 2008-05-31 Robert Millan <rmh@aybabtu.com>
44651 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
44652 using "cursor-on" and "cursor-off" commands (understood at least by
44653 the Open Firmware flavour on OLPC).
44655 2008-05-31 Michael Gorven <michael@gorven.za.net>
44657 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
44658 on and off sequences.
44660 2008-05-31 Robert Millan <rmh@aybabtu.com>
44662 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
44663 * util/update-grub.in: Likewise.
44665 2008-05-30 Pavel Roskin <proski@gnu.org>
44667 * util/biosdisk.c (linux_find_partition): Simplify logic and
44668 make the code more universal. Keep special processing for
44669 devfs, but use a simple rule for all other devices. If the
44670 device ends with a number, append 'p' and the partition number.
44671 Otherwise, append only the partition number.
44673 2008-05-30 Robert Millan <rmh@aybabtu.com>
44675 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
44676 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
44677 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
44678 the `root' parameter to Linux.
44680 2008-05-30 Robert Millan <rmh@aybabtu.com>
44682 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
44683 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
44684 --fs_uuid with --fs-uuid.
44685 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
44686 all filesystems support them).
44688 2008-05-30 Robert Millan <rmh@aybabtu.com>
44690 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
44691 grub_printf() flags, since we're printing in units of 2 bytes.
44693 2008-05-30 Robert Millan <rmh@aybabtu.com>
44695 * util/grub.d/00_header.in: Remove obsolete comment referencing
44696 convert_system_path_to_grub_path().
44697 * util/update-grub.in: Likewise.
44698 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
44699 (convert_system_path_to_grub_path): Add a warning message explaining
44700 that this function is deprecated. Rely on is_path_readable_by_grub()
44701 for the readability checks.
44702 (font_path): Use is_path_readable_by_grub() for the readability
44703 check rather than convert_system_path_to_grub_path().
44705 2008-05-30 Robert Millan <rmh@aybabtu.com>
44707 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
44708 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
44709 converting it first.
44710 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
44711 grub.cfg for access to font file, and afterwards call it again to set
44714 2008-05-30 Robert Millan <rmh@aybabtu.com>
44716 * commands/search.c (options): Add --fs_uuid option.
44717 (search_fs_uuid): New function.
44718 (grub_cmd_search): Fix --set argument passing.
44719 Use search_fs_uuid() when requested via --fs_uuid.
44720 (grub_search_init): Update help message.
44721 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
44722 and redeclare it as an array of 16-bit words.
44723 (grub_ext2_uuid): New function.
44724 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
44725 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
44726 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
44727 (GRUB_DEVICE_BOOT_UUID): New variables.
44728 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
44729 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
44731 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
44732 just assume `root' variable has the right value.
44733 * util/grub.d/10_linux.in: Likewise.
44734 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
44736 (main): Recognise `-t fs_uuid' argument.
44738 2008-05-30 Robert Millan <rmh@aybabtu.com>
44740 * util/biosdisk.c (map): Redefine structure to hold information
44741 about GRUB drive name.
44742 (get_drive): Reimplement without assuming (and verifying) BIOS-like
44744 (call_hook): Remove.
44745 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
44746 member. Assume drive has partitions.
44747 (grub_util_biosdisk_open): Access device names via `.device' struct
44749 (open_device): Likewise.
44750 (find_drive): Likewise.
44751 (read_device_map): Adjust map[] usage to match the new struct
44752 definition. Don't check for duplicates (still possible, but not cheap
44754 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
44755 (make_device_name): Remove assumption of BIOS-like drive names.
44757 2008-05-30 Pavel Roskin <proski@gnu.org>
44759 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
44760 compiling execute.c doesn't need grub_script.tab.h anymore.
44761 (normal/command.c_DEPENDENCIES): Likewise.
44762 (normal/function.c_DEPENDENCIES): Likewise.
44763 * conf/i386-ieee1275.rmk: Likewise.
44764 * conf/i386-linuxbios.rmk: Likewise.
44765 * conf/i386-pc.rmk: Likewise.
44766 * conf/powerpc-ieee1275.rmk: Likewise.
44767 * conf/sparc64-ieee1275.rmk: Likewise.
44769 2008-05-29 Pavel Roskin <proski@gnu.org>
44771 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44772 when scanning metadata for volume group name.
44774 * include/grub/script.h: Don't include grub_script.tab.h. It's
44775 a generated file, which may only be included from the files with
44776 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44777 use union YYSTYPE, as the later allows forward declaration.
44778 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44780 2008-05-29 Robert Millan <rmh@aybabtu.com>
44782 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44783 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44784 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44785 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44788 2008-05-29 Robert Millan <rmh@aybabtu.com>
44790 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44791 control key combinations.
44793 2008-05-29 Robert Millan <rmh@aybabtu.com>
44795 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44796 * util/ieee1275/grub-install.in: ... to here.
44797 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44798 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44799 (grub_install_SOURCES): Likewise.
44801 2008-05-29 Robert Millan <rmh@aybabtu.com>
44803 * fs/affs.c: Update copyright year.
44804 * fs/ext2.c: Likewise.
44805 * fs/fshelp.c: Likewise.
44806 * fs/hfsplus.c: Likewise.
44807 * fs/ntfs.c: Likewise.
44808 * fs/xfs.c: Likewise.
44809 * include/grub/fshelp.h: Likewise.
44810 * util/grub-mkdevicemap.c: Likewise.
44812 2008-05-28 Robert Millan <rmh@aybabtu.com>
44814 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44815 might need to be fatfs to support some firmware implementations
44818 2008-05-28 Robert Millan <rmh@aybabtu.com>
44820 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44822 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44823 (make_device_map): Likewise.
44825 2008-05-20 Bean <bean123ch@gmail.com>
44827 * fs/fshelp.c (grub_fshelp_map_block): New function.
44828 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44829 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44831 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44832 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44833 (grub_fshelp_journal): New structure.
44834 (grub_fshelp_map_block): New function prototype.
44835 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44836 (grub_fshelp_map_block): Likewise.
44838 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44839 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44840 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44841 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44842 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44843 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44844 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44845 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
44846 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
44847 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
44848 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
44849 (grub_ext2_sblock): New members for journal support.
44850 (grub_ext3_journal_header): New structure.
44851 (grub_ext3_journal_revoke_header): Likewise.
44852 (grub_ext3_journal_block_tag): Likewise.
44853 (grub_ext3_journal_sblock): Likewise.
44854 (grub_fshelp_node): New members logfile and journal.
44855 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
44856 grub_fshelp_map_block to get real block number.
44857 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
44859 (grub_ext2_read_inode): Likewise.
44860 (grub_ext3_get_journal): New function.
44861 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
44862 (grub_ext2_close): Release memory used by journal.
44864 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
44865 (REISERFS_MAGIC_DESC_BLOCK): New macro.
44866 (grub_reiserfs_transaction_header): Renamed to
44867 grub_reiserfs_description_block, replace field data with real_blocks.
44868 (grub_reiserfs_commit_block): New structure.
44869 (grub_reiserfs_data): New member journal.
44870 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
44872 (grub_reiserfs_read_symlink): Likewise.
44873 (grub_reiserfs_iterate_dir): Likewise.
44874 (grub_reiserfs_open): Likewise.
44875 (grub_reiserfs_read): Likewise.
44876 (grub_reiserfs_get_journal): New function.
44877 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
44878 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
44879 using grub_reiserfs_get_journal.
44880 (grub_reiserfs_close): Release memory used by journal.
44882 * fs/affs.c (grub_affs_read_block): Change block type to
44883 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
44885 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
44887 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
44889 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
44891 * fs/udf.c (grub_udf_read_block): Change block type to
44892 grub_disk_addr_t. Use type cast to avoid warning.
44894 * fs/xfs.c (grub_xfs_read_block): Likewise.
44896 2008-05-16 Christian Franke <franke@computer.org>
44898 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
44899 to ensure that break with ESC will always work.
44900 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
44901 Remove ESC from keyboard queue.
44903 2008-05-16 Christian Franke <franke@computer.org>
44905 * util/biosdisk.c: [__CYGWIN__] Add includes.
44906 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
44907 (get_os_disk): Move variable declarations to OS specific
44908 parts to avoid warning.
44909 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
44910 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
44911 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
44913 * util/getroot.c: [__CYGWIN__] Add includes.
44914 (strip_extra_slashes): Fix "/" case.
44915 [__CYGWIN__] (get_win32_path): New function.
44916 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
44917 [__CYGWIN__] (find_root_device): Disable.
44918 [__CYGWIN__] (get_bootsec_serial): New function.
44919 [__CYGWIN__] (find_cygwin_root_device): Likewise.
44920 [__linux__] (grub_guess_root_device): Add early returns to simplify
44922 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
44923 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
44924 check for Linux only.
44926 2008-05-15 Bean <bean123ch@gmail.com>
44928 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
44929 keyboard hang problem in apple's intel mac.
44931 2008-05-09 Robert Millan <rmh@aybabtu.com>
44933 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
44935 * util/grub-mkdevicemap.c (get_virtio_disk_name)
44936 (make_device_map): Likewise.
44937 Reported by Aurelien Jarno <aurel32@debian.org>
44939 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
44941 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
44942 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
44943 (make_device_map): Output entries for xvd type disks.
44945 2008-05-07 Robert Millan <rmh@aybabtu.com>
44947 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
44949 * util/grub-mkdevicemap.c (get_cciss_disk_name)
44950 (make_device_map): Likewise.
44951 Reported by Roland Dreier <rdreier@cisco.com>
44953 2008-05-07 Robert Millan <rmh@aybabtu.com>
44955 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
44956 grub_strstr() call. Correct a few mistakes in failure path handling.
44958 2008-05-06 Robert Millan <rmh@aybabtu.com>
44960 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
44961 Do not print a trailing slash (therefore, the root directory is an
44963 (convert_system_path_to_grub_path): Do not remove trailing slash
44964 from make_system_path_relative_to_its_root() output.
44966 * util/i386/pc/grub-install.in: Add trailing slash to output from
44967 make_system_path_relative_to_its_root().
44969 2008-05-06 Robert Millan <rmh@aybabtu.com>
44971 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
44972 ensures that output lines aren't intermangled with those sent to
44973 stderr (via grub_util_info()).
44974 * util/grub-probe.c (grub_refresh): Likewise.
44975 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
44977 2008-05-05 Christian Franke <franke@computer.org>
44979 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
44980 Add Cygwin device names.
44981 (get_ide_disk_name) [__CYGWIN__]: Likewise.
44982 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
44983 (check_device): Return error instead of success on empty name.
44984 (make_device_map): Move label inside linux specific code to
44985 prevent compiler warning.
44987 2008-04-30 Robert Millan <rmh@aybabtu.com>
44989 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
44990 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
44992 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
44994 2008-04-29 Robert Millan <rmh@aybabtu.com>
44996 * docs/grub.cfg: New file (example GRUB configuration).
44998 2008-04-26 Robert Millan <rmh@aybabtu.com>
45000 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
45001 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
45002 and `disk/ieee1275/nand.c'.
45004 2008-04-25 Bean <bean123ch@gmail.com>
45006 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
45009 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
45010 change the buffer size to 4096 for cdrom device.
45012 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
45014 (_linux_mod_SOURCES): New variable.
45015 (_linux_mod_CFLAGS): Likewise.
45016 (_linux_mod_LDFLAGS): Likewise.
45017 (linux_mod_SOURCES): Likewise.
45018 (linux_mod_CFLAGS): Likewise.
45019 (linux_mod_LDFLAGS): Likewise.
45020 (nand_mod_SOURCES): Likewise.
45021 (nand_mod_CFLAGS): Likewise.
45022 (nand_mod_LDFLAGS): Likewise.
45024 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
45025 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
45026 type property. (nand device in olpc don't have this property)
45028 * include/grub/disk.h (grub_disk_dev_id): New macro
45029 GRUB_DISK_DEVICE_NAND_ID.
45031 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
45032 function prototype.
45033 (grub_rescue_cmd_initrd): Likewise.
45035 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
45036 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
45037 ofw_cif_handler and ofw_idt, adjust padding number.
45039 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
45040 GRUB_MACHINE_IEEE1275 is defined.
45042 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
45043 Use NESTED_FUNC_ATTR attribute on the hook parameter.
45045 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
45046 on nested function heap_init.
45047 (grub_upper_mem): New variable for i386-ieee1275.
45048 (grub_get_extended_memory): New function for i386-ieee1275.
45049 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
45051 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
45052 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
45055 * loader/i386/ieee1275/linux.c: New file.
45057 * loader/i386/ieee1275/linux_normal.c: New file.
45059 * disk/ieee1275/nand.c: New file.
45061 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
45063 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
45065 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
45067 2008-04-18 Robert Millan <rmh@aybabtu.com>
45069 Restructures early code path on ieee1275 to unify grub_main() as
45070 the first C function that is executed in every platform.
45072 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
45073 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
45075 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
45076 * kern/ieee1275/cmain.c (cmain): Rename to ...
45077 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
45078 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
45081 2008-04-18 Robert Millan <rmh@aybabtu.com>
45083 * util/update-grub.in: Fix syntax error when setting
45084 `GRUB_PRELOAD_MODULES'.
45085 Reported by Stephane Chazelas <stephane@artesyncp.com>
45087 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
45089 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
45090 section into account, newer toolchains generate unique build ids
45091 * configure.ac: remove the test for --build-id=none acceptance,
45092 we want build ids to be preserved
45093 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
45094 far from other sections don't cause the raw binary images grow
45097 2008-04-15 Robert Millan <rmh@aybabtu.com>
45099 * disk/lvm.c: Update copyright year.
45100 * kern/misc.c: Likewise.
45102 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45104 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
45105 there is no memory left for physical volume name.
45107 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45109 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
45110 volume name mapping to support bigger than 9 character names properly.
45112 2008-04-13 Robert Millan <rmh@aybabtu.com>
45114 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
45115 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
45117 2008-04-13 Christian Franke <franke@computer.org>
45119 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
45120 to create a floppy emulation boot CD when non emulation mode
45122 Enable Joliet CD filesystem extension.
45124 2008-04-13 Robert Millan <rmh@aybabtu.com>
45126 * kern/misc.c (grub_strncat): Fix off-by-one error.
45127 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
45129 * kern/env.c (grub_env_context_close): Clear current context, not
45131 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
45133 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
45135 2008-04-13 Robert Millan <rmh@aybabtu.com>
45137 Improve robustness when handling LVM.
45139 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
45140 (and leave `*p' unmodified).
45141 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
45143 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
45144 iterating through it.
45145 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
45147 (grub_lvm_scan_device): Check the return value (and fail gracefully
45148 when due) on each grub_lvm_getvalue() or grub_strstr() call.
45149 Don't assume `vg->pvs != NULL' when iterating through it.
45151 2008-04-13 Robert Millan <rmh@aybabtu.com>
45153 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
45154 * genmk.rb (partmap): New variable.
45155 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
45156 (#{partmap}): New target rule.
45157 * genpartmaplist.sh: New file.
45158 * Makefile.in (pkglib_DATA): Add partmap.lst.
45159 (partmap.lst): New target rule.
45160 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
45161 modules (including all partition maps), instead of preloading them.
45163 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
45165 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
45166 `linux-boot-prober' (if installed) to detect other operating
45167 systems which are installed on the computer and add them to
45169 * conf/common.rmk: Build and install 30_os-prober.
45171 2008-04-12 Robert Millan <rmh@aybabtu.com>
45173 * kern/powerpc/ieee1275/init.c: Move from here ...
45174 * kern/ieee1275/init.c: ... to here. Update all users.
45176 * kern/powerpc/ieee1275/cmain.c: Move from here ...
45177 * kern/ieee1275/cmain.c: ... to here. Update all users.
45179 * kern/powerpc/ieee1275/openfw.c: Move from here ...
45180 * kern/ieee1275/openfw.c: ... to here. Update all users.
45182 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
45183 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
45185 2008-04-10 Pavel Roskin <proski@gnu.org>
45187 * configure.ac: Always use "_cv_" in cache variables for
45188 compatibility with Autoconf 2.62.
45190 2008-04-07 Robert Millan <rmh@aybabtu.com>
45192 Revert grub/machine/init.h addition by Pavel (since it breaks on
45193 i386-ieee1275 and others):
45194 * util/i386/pc/misc.c: Remove grub/machine/init.h.
45195 * util/powerpc/ieee1275/misc.c: Likewise.
45197 2008-04-07 Robert Millan <rmh@aybabtu.com>
45199 * util/grub-probe.c (probe): Improve error message.
45201 2008-04-07 Robert Millan <rmh@aybabtu.com>
45203 * util/biosdisk.c (read_device_map): Skip devices that don't exist
45204 (this prevents the presence of a bogus entry from ruining the whole
45207 2008-04-06 Pavel Roskin <proski@gnu.org>
45209 * util/biosdisk.c: Include grub/util/biosdisk.h.
45210 * util/grub-fstest.c (execute_command): Make static.
45211 * util/grub-mkdevicemap.c (check_device): Likewise.
45212 * util/i386/pc/misc.c: Include grub/machine/init.h.
45213 * util/powerpc/ieee1275/misc.c: Likewise.
45214 * util/lvm.c: Include grub/util/lvm.h.
45215 * util/misc.c: Include grub/kernel.h, grub/misc.h and
45217 * util/raid.c: Include grub/util/raid.h.
45218 (grub_util_getdiskname): Make static.
45220 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
45221 grub_hostfs_fini(), as they are called from grub_init_all() and
45222 grub_fini_all() respectively. This fixes an infinite loop in
45223 grub-fstest due to double registration of hostfs.
45224 Reported by Christian Franke <Christian.Franke@t-online.de>
45226 2008-04-05 Pavel Roskin <proski@gnu.org>
45228 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
45229 all 8 functions. Otherwise, probe function 0 only.
45231 2008-04-04 Pavel Roskin <proski@gnu.org>
45233 * commands/lspci.c (grub_lspci_iter): Print the bus number
45236 * commands/lspci.c (grub_pci_classes): Fix typos.
45237 (grub_lspci_iter): Don't print func twice. Print vendor ID
45238 before device ID, as it's normally done.
45240 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45241 Fix signedness warnings.
45242 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
45244 * util/ieee1275/get_disk_name.c: Include config.h so that
45245 _GNU_SOURCE is defined and getline() is declared. Mark an
45246 unused argument as such. Fix a signedness warning.
45248 2008-04-02 Pavel Roskin <proski@gnu.org>
45250 * genkernsyms.sh.in: Use more robust assignments for CC and
45251 srcdir. Quote srcdir.
45252 * gensymlist.sh.in: Likewise. Assert at the compile time that
45253 the symbol table is not empty.
45255 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
45256 * fs/cpio.c (grub_cpio_read): Likewise.
45258 2008-04-01 Pavel Roskin <proski@gnu.org>
45260 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
45261 * disk/host.c (grub_host_open): Likewise.
45262 * disk/loopback.c (grub_loopback_open): Likewise.
45263 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
45264 disk->id as in disk/host.c, not a multi-character constant.
45266 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
45267 later is obsolete, potentially dangerous and sets a bad example.
45268 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
45269 * util/misc.c (grub_util_get_image_size): Likewise.
45271 * disk/loopback.c (options): Improve help for "--partitions".
45273 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
45274 options to align them with the short options, e.g. "echo -e".
45276 2008-03-31 Bean <bean123ch@gmail.com>
45278 * video/reader/png.c (grub_png_data): New member is_16bit and
45280 (grub_png_decode_image_header): Detect 16 bit png image.
45281 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
45282 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
45283 (grub_video_reader_png): Release memory occupied by image_data.
45285 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
45287 (grub_nfs_mount): Skip the test for sector per cluster.
45289 * include/grub/ntfs.h (MAX_SPC): Removed.
45291 2008-03-31 Bean <bean123ch@gmail.com>
45293 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
45294 (grub_probe_SOURCES): Add fs/afs.c.
45295 (grub_fstest_SOURCES): Likewise.
45296 (afs_mod_SOURCES): New variable.
45297 (afs_mod_CFLAGS): Likewise.
45298 (afs_mod_LDFLAGS): Likewise.
45300 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
45301 (grub_emu_SOURCES): Likewise.
45303 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45305 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45307 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45309 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45311 * fs/afs.c: New file.
45313 2008-03-30 Pavel Roskin <proski@gnu.org>
45315 * disk/host.c: Include grub/misc.h to fix a warning.
45316 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
45317 warnings about implicit declarations.
45319 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
45321 * include/grub/i386/loader.h: Change declaration of
45322 grub_linux_boot() to match what grub_loader_set() expects.
45323 * util/getroot.c (grub_guess_root_device): Return const char* to
45325 * util/grub-probe.c (probe): Fix a warning about uninitialized
45326 abstraction_name variable.
45327 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
45328 second argument as unused to fix a warning.
45330 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
45331 missing grub_error() call.
45333 * util/update-grub_lib.in: Define datarootdir, since Autoconf
45334 2.60 and newer uses it to define datadir.
45336 * commands/sleep.c: Fix warning about implicit declaration.
45337 * disk/memdisk.c: Likewise.
45338 * loader/aout.c: Likewise.
45339 * loader/i386/bsd_normal.c: Likewise.
45340 * util/grub-probe.c: Likewise.
45342 * commands/i386/cpuid.c (has_longmode): Make static.
45343 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
45344 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
45346 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
45347 GDT. This is more robust, as %ds can change.
45348 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
45349 calling real_to_prot().
45350 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
45352 2008-03-28 Pavel Roskin <proski@gnu.org>
45354 * kern/i386/pc/startup.S: Assert that uncompressed functions
45355 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
45356 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
45357 code, as they push parts of the code (error handlers) beyond
45358 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
45359 code as correctness and size.
45361 2008-03-28 Pavel Roskin <proski@gnu.org>
45363 * kern/i386/pc/startup.S
45364 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
45365 data block address to the real mode, keep offset minimal. This
45366 works around a bug in AWARD BIOS on old Athlon systems, which
45367 makes CD detection hang.
45369 2008-03-26 Pavel Roskin <proski@gnu.org>
45371 * normal/color.c (grub_parse_color_name_pair): Make `name' a
45373 * include/grub/normal.h: Add grub_parse_color_name_pair()
45376 2008-03-24 Bean <bean123ch@gmail.com>
45378 * disk/i386/pc/biosdisk.c (cd_start): Removed.
45379 (cd_count): Removed.
45380 (cd_drive): New variable.
45381 (grub_biosdisk_get_drive): Don't check for (cdN) device.
45382 (grub_biosdisk_call_hook): Likewise.
45383 (grub_biosdisk_iterate): Change cdrom detection method.
45384 (grub_biosdisk_open): Replace cd_start with cd_drive.
45385 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
45386 detect cdrom device.
45388 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
45390 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
45391 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
45392 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
45393 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
45394 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
45395 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
45396 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
45397 (grub_biosdisk_cdrp): New structure.
45398 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
45400 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
45402 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
45405 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
45408 2008-03-20 Robert Millan <rmh@aybabtu.com>
45410 Remove 2 TiB limit in ata.mod.
45411 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
45412 (grub_ata_dumpinfo): Print sector count with 0x%llx.
45413 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
45414 grub_uint64_t instead of grub_uint32_t.
45416 2008-03-05 Bean <bean123ch@gmail.com>
45418 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
45419 (grub_multiboot): Set boot device.
45421 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
45423 2008-03-02 Bean <bean123ch@gmail.com>
45425 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
45428 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
45430 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
45433 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
45436 * docs/fdl.texi: New file.
45438 * docs/mdate-sh: New file. Copied from gnulib.
45439 * docs/texinfo.tex: Likewise.
45441 * config.guess: Updated from gnulib.
45442 * install-sh: Likewise.
45444 2008-02-28 Robert Millan <rmh@aybabtu.com>
45446 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
45447 (aout_mod_SOURCES): New variable.
45448 (aout_mod_CFLAGS): Likewise.
45449 (aout_mod_LDFLAGS): Likewise.
45451 * conf/i386-ieee1275.rmk: Likewise.
45453 2008-02-28 Robert Millan <rmh@aybabtu.com>
45455 * util/update-grub.in: Reorganise terminal validity check. Accept
45456 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
45457 Based on suggestion by Franklin PIAT.
45459 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
45461 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
45463 * util/getroot.c (grub_util_check_block_device): New function that
45464 returns the given argument if it is a block device and returns NULL else.
45465 * util/grub-probe.c (argument_is_device): New variable.
45466 (probe): Promote device_name from a variable to an argument. Receive
45467 device_name from grub_util_check_block_device() if path is NULL and from
45468 grub_guess_root_device() else. Do not free() device_name anymore.
45469 (options): Introduce new parameter '-d, --device'.
45470 (main): Add description of the new parameter to the help screen.
45471 Rename path variable to argument. Set argument_is_device if the '-d'
45472 option is given. Pass argument to probe() depending on
45473 argument_is_device.
45475 2008-02-24 Bean <bean123ch@gmail.com>
45477 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
45478 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
45479 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
45480 (GRUB_ISO9660_VOLDESC_PART): Likewise.
45481 (GRUB_ISO9660_VOLDESC_END): Likewise.
45482 (grub_iso9660_primary_voldesc): New member escape.
45483 (grub_iso9660_data): New member joliet.
45484 (grub_iso9660_convert_string): New function.
45485 (grub_iso9660_mount): Detect joliet extension.
45486 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
45487 (grub_iso9660_iso9660_label): Likewise.
45489 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
45490 (grub_setup_SOURCES): Add fs/udf.c.
45491 (grub_fstest_SOURCES): Likewise.
45492 (udf_mod_SOURCES): New variable.
45493 (udf_mod_CFLAGS): Likewise.
45494 (udf_mod_LDFLAGS): Likewise.
45496 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
45497 (grub_emu_SOURCES): Likewise.
45499 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45501 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45503 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45505 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45507 * fs/udf.c: New file.
45509 2008-02-24 Robert Millan <rmh@aybabtu.com>
45511 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
45512 (normal/lexer.c_DEPENDENCIES): New variables.
45513 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45514 (normal/lexer.c_DEPENDENCIES): Likewise.
45515 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
45516 (normal/lexer.c_DEPENDENCIES): Likewise.
45517 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
45518 (normal/lexer.c_DEPENDENCIES): Likewise.
45519 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45520 (normal/lexer.c_DEPENDENCIES): Likewise.
45521 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45522 (normal/lexer.c_DEPENDENCIES): Likewise.
45524 2008-02-23 Robert Millan <rmh@aybabtu.com>
45526 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
45527 since they were intended to be in hex. This didn't break previously
45528 because of a bug in gpt_partition_map_iterate() (see below).
45530 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
45531 when checking the validity of GPT header.
45532 Remove `partno', since it always provides the same information as `i'.
45534 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
45536 * include/grub/efi/time.h: Fix a wrong comment.
45538 2008-02-19 Pavel Roskin <proski@gnu.org>
45540 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
45543 2008-02-19 Bean <bean123ch@gmail.com>
45545 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
45546 (aout_mod_SOURCES): New variable.
45547 (aout_mod_CFLAGS): Likewise.
45548 (aout_mod_LDFLAGS): Likewise.
45549 (_bsd_mod_SOURCES): New variable.
45550 (_bsd_mod_CFLAGS): Likewise.
45551 (_bsd_mod_LDFLAGS): Likewise.
45552 (bsd_mod_SOURCES): New variable.
45553 (bsd_mod_CFLAGS): Likewise.
45554 (bsd_mod_LDFLAGS): Likewise.
45556 * include/grub/aout.h: New file.
45558 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
45560 * include/grub/i386/bsd.h: New file.
45562 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
45565 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
45566 function is called, so that it's possible to change it inside the hook.
45567 (grub_elf64_load): Likewise.
45568 (grub_elf_file): Don't close the file if elf header is not found.
45569 (grub_elf_close): Close the file if grub_elf_file fails (The new
45570 grub_elf_file won't close it).
45571 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
45572 (grub_elf64_size): Likewise.
45574 * kern/i386/loader.S (grub_unix_real_boot): New function.
45576 * loader/aout.c: New file.
45578 * loader/i386/bsd.c: New file.
45580 * loader/i386/bsd_normal.c: New file.
45582 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
45584 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
45585 can test other formats.
45587 2008-02-19 Robert Millan <rmh@aybabtu.com>
45589 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
45590 (grub_gpt_partition_type_empty): Redefine with macro from
45591 `<grub/gpt_partition.h>'.
45592 (gpt_partition_map_iterate): Adjust partition type comparison.
45594 Export `entry' as partmap-specific `part.data' struct.
45595 (grub_gpt_header, grub_gpt_partentry): Move from here ...
45597 * include/grub/gpt_partition.h (grub_gpt_header)
45598 (grub_gpt_partentry): ... to here (new file).
45600 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
45602 (grub_gpt_partition_type_bios_boot): New const variable, defined
45603 with macro from `<grub/gpt_partition.h>'.
45605 (setup): Replace `first_start' with `embed_region', which keeps
45606 track of the embed region (and is partmap-agnostic).
45608 Replace find_first_partition_start() with find_usable_region(),
45609 which finds a usable region for embedding using partmap-specific
45610 knowledge (supports PC/MSDOS and GPT).
45612 Fix all assumptions that the embed region start at sector 1, using
45613 `embed_region.start' from now on. Similarly, use `embed_region.end'
45614 rather than `first_start' to calculate available size.
45616 In grub_util_info() message, replace "into after the MBR" with an
45617 indication of the specific sector our embed region starts at.
45619 2008-02-19 Robert Millan <rmh@aybabtu.com>
45621 * DISTLIST: Replace `commands/ieee1275/halt.c' and
45622 `commands/ieee1275/reboot.c' with `commands/halt.c' and
45623 `commands/reboot.c'.
45624 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45625 (halt_mod_SOURCES): Likewise.
45626 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45627 (halt_mod_SOURCES): Likewise.
45629 2008-02-17 Christian Franke <franke@computer.org>
45631 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
45633 2008-02-17 Robert Millan <rmh@aybabtu.com>
45635 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45636 set `first_start' to 0 for non-PC/MSDOS partition maps.
45638 2008-02-16 Robert Millan <rmh@aybabtu.com>
45640 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45641 do not assume partition map is PC/MSDOS before performing checks that
45642 are specific to that layout.
45644 2008-02-13 Robert Millan <rmh@aybabtu.com>
45646 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
45647 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
45648 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
45650 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
45652 * configure.ac: Only a cosmetic change on the handling of
45653 -fno-stack-protector.
45655 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
45657 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
45658 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
45660 (grub_install_SOURCES): Add halt.mod and reboot.mod.
45661 (halt_mod_SOURCES): New variable.
45662 (halt_mod_CFLAGS): Likewise.
45663 (halt_mod_LDFLAGS): Likewise.
45664 (reboot_mod_SOURCES): Likewise.
45665 (reboot_mod_CFLAGS): Likewise.
45666 (reboot_mod_LDFLAGS): Likewise.
45668 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
45669 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
45671 (halt_mod_SOURCES): Likewise.
45672 (reboot_mod_SOURCES): Likewise.
45674 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
45675 commands/i386/pc/reboot.c by commands/reboot.c.
45676 (reboot_mod_SOURCES): Likewise.
45678 * commands/i386/pc/reboot.c: merge this file ...
45680 * commands/ieee1275/reboot.c: ... and this file ...
45682 * commands/reboot.c: ... to this file.
45683 Add some precompiler directive to include the correct header for
45686 * commands/ieee1275/halt.c: move this file ...
45688 * commands/halt.c: ... to here.
45689 Add some precompiler directive to include the correct header for
45692 * include/grub/efi/efi.h (grub_reboot): New function declaration.
45693 (grub_halt): Likewise.
45695 * kern/efi/efi.c (grub_reboot): New function.
45696 (grub_halt): Likewise.
45698 2008-02-12 Robert Millan <rmh@aybabtu.com>
45700 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
45701 /dev (like it is done for /dev/mapper). This doesn't provide support
45702 for EVMS, but at least it is now easy to identify the problem when it
45705 2008-02-11 Robert Millan <rmh@aybabtu.com>
45707 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
45708 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
45709 comparing it with -1, not 0.
45711 2008-02-10 Robert Millan <rmh@aybabtu.com>
45713 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
45715 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45716 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45718 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
45719 `disk/lvm.c' to the end of the list.
45720 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45721 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45723 2008-02-10 Robert Millan <rmh@aybabtu.com>
45725 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
45726 grub_print_error() instead. This will let user know why we're entering
45728 Based on suggestions from Sam Morris.
45730 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
45732 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
45733 on remaining N args, instead of "--" arg N times.
45735 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
45737 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
45738 (fill_with_default_glyph): Changed to use unknown_glyph for fill
45739 pattern for unknown glyphs.
45741 2008-02-09 Robert Millan <rmh@aybabtu.com>
45743 * configure.ac: Probe for `help2man'.
45744 * Makefile.in (builddir): New variable.
45745 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
45746 or otherwise add a few flags/options to it.
45747 (install-local): For every executable utility or script that is
45748 installed, invoke $(HELP2MAN) to install a manpage based on --help
45751 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
45752 that it doesn't prevent --help from working in build tree.
45754 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
45755 with `bug-grub@gnu.org'.
45756 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
45757 * util/update-grub.in (usage): New function.
45758 Implement proper argument check, with support for --help and --version
45759 (as well as existing -y).
45761 2008-02-09 Christian Franke <franke@computer.org>
45763 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
45764 avoid overwriting previous output.
45765 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
45767 2008-02-09 Robert Millan <rmh@aybabtu.com>
45769 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45772 2008-02-09 Robert Millan <rmh@aybabtu.com>
45774 * commands/sleep.c: New file.
45775 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45776 (sleep_mod_SOURCES): New variable.
45777 (sleep_mod_CFLAGS): Likewise.
45778 (sleep_mod_LDFLAGS): Likewise.
45780 2008-02-09 Robert Millan <rmh@aybabtu.com>
45782 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45783 situations in which we can deduce the RAID size and the superblock
45786 2008-02-09 Robert Millan <rmh@aybabtu.com>
45788 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45789 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45790 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45792 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45793 and return a grub_diskmemberlist_t composed of physical array members.
45794 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45796 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45798 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45799 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45800 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45802 * util/grub-probe.c (probe): Move partmap probing code from here ...
45803 (probe_partmap): ... to here.
45804 (probe): Use probe_partmap() once for the disk we're probing, and
45805 additionally, when such disk contains a memberlist() struct member,
45806 once for each disk that is contained in the structure returned by
45809 2008-02-09 Robert Millan <rmh@aybabtu.com>
45811 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45812 environment variable to 'all' in order to obtain debug output from
45814 * util/i386/pc/grub-setup.c (main): Likewise.
45816 2008-02-08 Robert Millan <rmh@aybabtu.com>
45818 * disk/raid.c (grub_raid_scan_device): Check for
45819 `array->device[sb.this_disk.number]' rather than for
45820 `array->device[sb.this_disk.number]->name', since the latter is not
45821 guaranteed to be accessible.
45823 2008-02-08 Robert Millan <rmh@aybabtu.com>
45825 * disk/raid.c: Update copyright.
45826 * fs/cpio.c: Likewise.
45827 * include/grub/raid.h: Likewise.
45828 * loader/i386/pc/multiboot.c: Likewise.
45829 * util/hostfs.c: Likewise.
45831 2008-02-08 Robert Millan <rmh@aybabtu.com>
45833 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45834 to a grub_disk_t array.
45835 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45837 (grub_raid_scan_device): Replace `device[x].name' accesses with
45838 `device[x]->name'. Simplify initialization of `array->device[x]'.
45840 2008-02-08 Robert Millan <rmh@aybabtu.com>
45842 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45843 grub_dprintf() calls.
45844 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
45847 2008-02-07 Christian Franke <franke@computer.org>
45849 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
45850 instead of fseek and ftell to support large files.
45851 (grub_hostfs_read): Likewise.
45853 2008-02-07 Robert Millan <rmh@aybabtu.com>
45855 Patch from Jeroen Dekkers.
45856 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
45857 failure, since successfully reading all array members might not be
45860 2008-02-06 Robert Millan <rmh@aybabtu.com>
45862 * util/grub-probe.c (probe): Simplify partmap probing (with the
45863 assumption that the first word up to the underscore equals to
45866 2008-02-06 Christian Franke <franke@computer.org>
45868 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
45869 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
45870 last block of a cpio or tar stream.
45871 Check for "TRAILER!!!" instead of any empty data
45872 block to detect last block of a cpio stream.
45873 (grub_cpio_dir): Fix constness of variable np.
45874 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
45875 cpio or tar trailer is detected. This fixes a crash
45876 on open of a non existing file.
45878 2008-02-05 Bean <bean123ch@gmail.com>
45880 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
45882 (grub_multiboot_load_elf64): Likewise.
45883 (grub_multiboot): Initialize mbi structure.
45885 * util/grub-fstest.c: Don't include unused header file script.h.
45887 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
45889 (grub_fstest_SOURCES): Likewise.
45891 2008-02-05 Robert Millan <rmh@aybabtu.com>
45893 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
45894 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
45895 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
45896 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
45898 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
45899 (translation_table): Replace hardcoded values with macros
45900 provided by `<grub/term.h>'.
45902 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
45903 (keyboard_map): Correct/add a few values, with macros provided
45904 by `<grub/term.h>'.
45905 (keyboard_map_shift): Zero values that don't differ from their
45906 `keyboard_map' equivalents.
45907 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
45908 Discard the second scan code that is always sent by Caps lock.
45909 Only use `keyboard_map_shift' when it provides a non-zero value,
45910 otherwise fallback to `keyboard_map'.
45912 2008-02-04 Bean <bean123ch@gmail.com>
45914 * Makefile.in (enable_grub_fstest): New variable.
45916 * conf/common.rmk (grub_fstest_init.lst): New rule.
45917 (grub_fstest_init.h): Likewise.
45918 (grub_fstest_init.c): Likewise.
45919 (util/grub-fstest.c_DEPENDENCIES): New variable.
45920 (grub_fstest_SOURCES): Likewise.
45922 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
45924 * util/grub-fstest.c: New file.
45926 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45928 Make grub-setup handle a separate root device.
45930 * util/i386/pc/grub-setup.c (setup): Always open the root device,
45931 so that the root device can be compared with the destination
45933 When embedding the core image, if the root and destination devices
45934 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
45936 When not embedding, set ROOT_DRIVE to 0xFF.
45938 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45940 Add support for having a grub directory in a different drive. This
45941 is still only the data handling part.
45943 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
45944 (codestart): Save %dh in GRUB_ROOT_DRIVE.
45945 (grub_root_drive): New variable.
45947 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
45948 instead of GRUB_BOOT_DRIVE to construct a device name. Set
45949 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
45952 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
45954 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
45956 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
45958 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
45959 is bogus, because PXE booting does not specify any drive
45962 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
45963 am not sure if this is really correct.
45965 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
45966 is always identical to the boot drive when booting from a CD.
45968 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
45970 (root_drive): New variable.
45971 (real_start): Unconditionally set %dh to ROOT_DRIVE.
45972 (setup_sectors): Push %dx right after popping it, because %dh will
45974 (copy_buffer): Restore %dx.
45976 2008-02-03 Robert Millan <rmh@aybabtu.com>
45978 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
45979 use `cdboot.img' for cdrom images.
45981 2008-02-03 Robert Millan <rmh@aybabtu.com>
45983 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
45984 only setup gfxterm when `font' command has succeeded.
45986 2008-02-03 Robert Millan <rmh@aybabtu.com>
45988 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
45989 (grub_rescue_cmd_multiboot_loader)
45990 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
45992 2008-02-03 Pavel Roskin <proski@gnu.org>
45994 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
45995 %edx and %esi from stack only after grub_gate_a20() is called.
45996 grub_gate_a20() clobbers %edx.
45998 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
46000 * configure.ac (AC_INIT): Bumped to 1.96.
46002 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
46003 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
46004 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
46005 video/readers/png.c.
46007 2008-02-03 Bean <bean123ch@gmail.com>
46009 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
46010 (cdboot_img_SOURCES): New variable.
46011 (cdboot_img_ASFLAGS): New variable.
46012 (cdboot_img_LDFLAGS): New variable.
46014 * boot/i386/pc/cdboot.S: New file.
46016 * disk/i386/pc/biosdisk.c (cd_start): New variable.
46017 (cd_count): Likewise.
46018 (grub_biosdisk_get_drive): Add support for cd device.
46019 (grub_biosdisk_call_hook): Likewise.
46020 (grub_biosdisk_iterate): Likewise.
46021 (grub_biosdisk_open): Likewise.
46022 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
46023 (grub_biosdisk_rw): Support reading from cd device.
46024 (GRUB_MOD_INIT): Iterate cd devices.
46026 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
46027 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
46028 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
46030 * kern/i386/pc/init.c (make_install_device): Check for cd device.
46032 2008-02-02 Robert Millan <rmh@aybabtu.com>
46034 * commands/read.c: New file.
46035 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
46036 (read_mod_SOURCES): New variable.
46037 (read_mod_CFLAGS): Likewise.
46038 (read_mod_LDFLAGS): Likewise.
46040 2008-02-02 Robert Millan <rmh@aybabtu.com>
46042 * normal/main.c (grub_normal_execute): Check for `menu->size' when
46043 determining whether menu has to be displayed.
46045 2008-02-02 Marco Gerards <marco@gnu.org>
46047 * bus/pci.c: New file.
46049 * include/grub/pci.h: Likewise.
46051 * include/grub/i386/pc/pci.h: Likewise.
46053 * commands/lspci.c: Likewise.
46055 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
46057 (pci_mod_SOURCES): New variable.
46058 (pci_mod_CFLAGS): Likewise.
46059 (pci_mod_LDFLAGS): Likewise.
46060 (lspci_mod_SOURCES): Likewise.
46061 (lspci_mod_CFLAGS): Likewise.
46062 (lspci_mod_LDFLAGS): Likewise.
46064 2008-02-02 Bean <bean123ch@gmail.com>
46066 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
46067 (grub_ufs_get_file_block): Fix indirect block calculation problem.
46069 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
46070 (grub_xfs_btree_node): New structure.
46071 (grub_xfs_btree_root): New structure.
46072 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
46073 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
46074 (GRUB_XFS_EXTENT_BLOCK): Likewise.
46075 (GRUB_XFS_EXTENT_SIZE): Likewise.
46076 (grub_xfs_read_block): Support btree format type.
46077 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
46078 Use directory block as basic unit.
46080 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
46082 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
46083 __attribute__ ((__regparm__ (1))).
46085 2008-02-01 Robert Millan <rmh@aybabtu.com>
46087 Correct a mistake in previous commit.
46089 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
46091 (normal/command.c_DEPENDENCIES): New variable.
46093 2008-02-01 Robert Millan <rmh@aybabtu.com>
46095 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
46097 (normal/command.c_DEPENDENCIES): New variable.
46098 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
46099 * conf/i386-ieee1275.rmk: Likewise.
46100 * conf/i386-linuxbios.rmk: Likewise.
46101 * conf/i386-pc.rmk: Likewise.
46102 * conf/sparc64-ieee1275.rmk: Likewise.
46103 * conf/powerpc-ieee1275.rmk: Likewise.
46104 (grub_emu_SOURCES): Add `fs/fshelp.c'.
46106 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
46108 2008-02-01 Robert Millan <rmh@aybabtu.com>
46110 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
46111 call at beginning of function.
46113 2008-01-31 Pavel Roskin <proski@gnu.org>
46115 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
46116 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
46117 (grub_mkrescue_SOURCES): Likewise.
46118 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
46120 2008-01-30 Robert Millan <rmh@aybabtu.com>
46122 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
46123 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
46124 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
46125 (grub_probe_SOURCES): ... to here.
46127 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
46128 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
46129 * conf/i386-ieee1275.rmk: Likewise.
46130 * conf/i386-linuxbios.rmk: Likewise.
46131 * conf/powerpc-ieee1275.rmk: Likewise.
46133 2008-01-30 Tristan Gingold <gingold@free.fr>
46135 * kern/rescue.c: Silently accept empty lines.
46137 2008-01-29 Bean <bean123ch@gmail.com>
46139 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
46140 (real_code_2): Code cleanup and change comment style.
46141 (move_memory): Avoid using 32-bit address mode.
46143 2008-01-29 Bean <bean123ch@gmail.com>
46145 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
46146 (png_mod_SOURCES): New variable.
46147 (png_mod_CFLAGS): Likewise.
46148 (png_mod_LDFLAGS): Likewise.
46150 * video/readers/png.c: New file.
46152 2008-01-28 Robert Millan <rmh@aybabtu.com>
46154 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
46155 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
46156 `ifndef GRUB_MOD_GAP' hack.
46157 * util/elf/grub-mkimage.c (add_segments): Likewise.
46159 2008-01-27 Robert Millan <rmh@aybabtu.com>
46161 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
46162 `GRUB_MOD_GAP' for platforms in which it's not defined.
46163 * util/elf/grub-mkimage.c (add_segments): Likewise.
46165 2008-01-27 Robert Millan <rmh@aybabtu.com>
46167 Get grub-emu to build again (including parallel builds).
46169 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
46171 (util/grub-emu.c_DEPENDENCIES): ... this, ...
46172 (normal/execute.c_DEPENDENCIES): ... this, ...
46173 (grub-emu_DEPENDENCIES): ... and this.
46175 * conf/i386-efi.rmk: Likewise.
46176 * conf/i386-linuxbios.rmk: Likewise.
46177 * conf/i386-ieee1275.rmk: Likewise.
46178 * conf/powerpc-ieee1275.rmk: Likewise.
46179 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
46181 2008-01-27 Robert Millan <rmh@aybabtu.com>
46183 * NEWS: Add a few items.
46185 2008-01-27 Robert Millan <rmh@aybabtu.com>
46187 Fix parallel builds with grub-emu. Based on earlier commit for
46188 grub-probe and grub-setup.
46190 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46191 (util/grub-emu.c_DEPENDENCIES): ... this.
46192 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46193 (util/grub-emu.c_DEPENDENCIES): ... this.
46194 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46195 (util/grub-emu.c_DEPENDENCIES): ... this.
46196 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46197 (util/grub-emu.c_DEPENDENCIES): ... this.
46198 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46199 (util/grub-emu.c_DEPENDENCIES): ... this.
46201 2008-01-27 Pavel Roskin <proski@gnu.org>
46203 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
46204 to create a gap between _end and the modules added to the image
46205 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
46206 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
46207 * util/elf/grub-mkimage.c (add_segments): Likewise.
46209 2008-01-26 Pavel Roskin <proski@gnu.org>
46211 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
46212 just return an error.
46214 2008-01-26 Bean <bean123ch@gmail.com>
46216 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
46217 (grub_reiserfs_get_item): Save offset of the next item.
46218 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
46220 2008-01-25 Robert Millan <rmh@aybabtu.com>
46222 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
46223 make all filesystem sources appear together (possibly fixing omissions
46225 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46226 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46227 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46228 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46230 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
46232 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
46233 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46234 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
46235 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46237 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
46238 (probe): Add a sanity check to make sure of our ability to read
46239 requested files when probing for filesystem type.
46241 * genmk.rb: Update copyright year (2007).
46243 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
46244 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
46245 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
46246 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
46247 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
46248 : Remove function prototypes.
46250 2008-01-25 Robert Millan <rmh@aybabtu.com>
46252 Revert my previous commits (based on wrong assumption of how grub_errno
46255 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
46256 * kern/file.c (grub_file_open): Likewise.
46258 2008-01-24 Pavel Roskin <proski@gnu.org>
46260 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
46261 that hang if GRUB tries to setup colors.
46262 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
46263 colors for firmwares that don't support it.
46264 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
46265 Recognize Open Hack'Ware, set flags to work around its
46268 2008-01-24 Robert Millan <rmh@aybabtu.com>
46270 * kern/file.c (grub_file_open): Do not account previous failures of
46271 unrelated functions when grub_errno is checked for.
46272 Reported by Oleg Strikov.
46274 2008-01-24 Bean <bean123ch@gmail.com>
46276 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
46277 (grub_ufs_sblock): New member volume name.
46278 (grub_ufs_find_file): Fix string copy bug.
46279 (grub_ufs_label): Implement this function properly.
46281 * fs/hfs.c (grub_hfs_cnid_type): New enum.
46282 (grub_hfs_iterate_records): Use the correct file number for extents
46283 and catalog file. Fix problem in next index calculation.
46284 (grub_hfs_find_node): Replace recursive function call with loop.
46285 (grub_hfs_iterate_dir): Replace recursive function call with loop.
46287 2008-01-23 Robert Millan <rmh@aybabtu.com>
46289 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
46290 `<grub/symbol.h>' and `<grub/multiboot.h>'.
46291 (grub_multiboot2_real_boot): New function prototype.
46293 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
46294 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
46296 * kern/i386/ieee1275/init.c (grub_os_area_addr)
46297 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
46299 2008-01-23 Robert Millan <rmh@aybabtu.com>
46301 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
46302 #ifdef'ed out grub_printf().
46304 2008-01-23 Robert Millan <rmh@aybabtu.com>
46306 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
46307 grub_dprintf calls, since they make "debug=all" mode unusable.
46308 (grub_console_checkkey): Likewise.
46310 2008-01-23 Robert Millan <rmh@aybabtu.com>
46312 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
46313 `term/i386/pc/at_keyboard.c'.
46314 (pkglib_MODULES): Add `serial.mod'.
46315 (serial_mod_SOURCES): New variable.
46316 (serial_mod_CFLAGS): Likewise.
46317 (serial_mod_LDFLAGS): Likewise.
46319 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
46320 `<grub/powerpc/ieee1275/console.h>'.
46321 (grub_keyboard_controller_init): New function prototype.
46322 (grub_console_checkkey): Likewise.
46323 (grub_console_getkey): Likewise.
46325 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
46328 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
46329 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
46331 2008-01-23 Robert Millan <rmh@aybabtu.com>
46333 * kern/i386/pc/init.c (make_install_device): When memdisk image is
46334 present, "(memdisk)/boot/grub" becomes the default prefix.
46336 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
46337 a memdisk tarball with all the modules. Add --overlay=DIR option that
46338 allows users to overlay additional files into the image.
46340 2008-01-23 Robert Millan <rmh@aybabtu.com>
46342 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
46343 and `machine/memory.h'.
46344 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
46345 (_multiboot_mod_SOURCES): New variable.
46346 (_multiboot_mod_CFLAGS): Likewise.
46347 (_multiboot_mod_LDFLAGS): Likewise.
46348 (multiboot_mod_SOURCES): Likewise.
46349 (multiboot_mod_CFLAGS): Likewise.
46350 (multiboot_mod_LDFLAGS): Likewise.
46352 * include/grub/i386/ieee1275/loader.h: New file.
46354 * include/grub/i386/ieee1275/machine.h: Likewise.
46356 * include/grub/i386/ieee1275/memory.h: Likewise.
46358 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
46359 variable declaration.
46360 (grub_os_area_size): Likewise.
46362 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
46363 (grub_lower_mem, grub_upper_mem): New variables.
46364 (grub_stop_floppy): New function (just to make
46365 grub_multiboot2_real_boot() happy).
46367 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
46368 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
46369 (grub_stop): New function.
46370 Include `"../realmode.S"' and `"../loader.S"'.
46372 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
46373 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
46375 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
46376 rely on grub_multiboot2_real_boot() for final boot.
46378 2008-01-22 Robert Millan <rmh@aybabtu.com>
46380 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
46381 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
46382 device that doesn't look like an SD card.
46383 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46384 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
46385 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
46386 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
46389 2008-01-22 Robert Millan <rmh@aybabtu.com>
46391 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
46392 avoid claiming over our own code.
46394 2008-01-22 Bean <bean123ch@gmail.com>
46396 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
46397 (jpeg_mod_SOURCES): New variable.
46398 (jpeg_mod_CFLAGS): Likewise.
46399 (jpeg_mod_LDFLAGS): Likewise.
46401 * video/readers/jpeg.c : New file.
46403 2008-01-22 Bean <bean123ch@gmail.com>
46405 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
46406 there are no more items.
46408 2008-01-21 Robert Millan <rmh@aybabtu.com>
46410 * kern/mm.c (grub_mm_init_region): Improve debug message.
46412 2008-01-21 Robert Millan <rmh@aybabtu.com>
46414 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
46415 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
46417 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
46419 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
46420 Indicates start of upper memory.
46421 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
46422 (generate_image): Abort when image size is big enough to corrupt
46425 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
46426 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
46427 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46428 instead of hardcoding 0xA0000.
46429 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
46430 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46431 instead of hardcoding 0xA0000.
46433 2008-01-21 Robert Millan <rmh@aybabtu.com>
46435 * disk/memdisk.c (memdisk_size): New variable.
46436 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
46438 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
46439 image to dynamic memory.
46440 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
46441 `memdisk_size'. Free memdisk block.
46443 2008-01-21 Robert Millan <rmh@aybabtu.com>
46445 Fix detection of very small filesystems (like tar).
46447 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
46448 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
46449 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
46450 a problem with this disk).
46452 2008-01-21 Robert Millan <rmh@aybabtu.com>
46454 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
46455 on grub_biosdisk_rw_standard() error.
46457 2008-01-21 Robert Millan <rmh@aybabtu.com>
46459 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
46461 * kern/elf.c: Likewise.
46462 * kern/ieee1275/ieee1275.c: Likewise.
46463 * kern/powerpc/ieee1275/openfw.c: Likewise.
46464 * term/ieee1275/ofconsole.c: Likewise.
46466 2008-01-21 Robert Millan <rmh@aybabtu.com>
46468 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
46470 * include/grub/kernel.h (grub_arch_memdisk_addr)
46471 (grub_arch_memdisk_size): Moved from here ...
46473 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
46474 (grub_arch_memdisk_size): ... to here.
46476 2008-01-21 Robert Millan <rmh@aybabtu.com>
46478 Mostly based on bugfix from Bean.
46480 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
46481 attribute with hook() parameter.
46482 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
46484 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
46485 attribute with hook() parameter.
46486 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
46489 2008-01-21 Robert Millan <rmh@aybabtu.com>
46491 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
46492 (pkglib_MODULES): Add `memdisk.mod'.
46493 (memdisk_mod_SOURCES): New variable.
46494 (memdisk_mod_CFLAGS): Likewise.
46495 (memdisk_mod_LDFLAGS): Likewise.
46497 * disk/memdisk.c: New file.
46499 * include/grub/disk.h (grub_disk_dev_id): Add
46500 `GRUB_DISK_DEVICE_MEMDISK_ID'.
46502 * include/grub/i386/pc/kernel.h
46503 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
46504 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
46505 (grub_kernel_image_size): New variable declaration.
46506 (grub_total_module_size): Likewise.
46507 (grub_memdisk_image_size): Likewise.
46509 * include/grub/i386/pc/memory.h
46510 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
46512 * include/grub/kernel.h: Include `<grub/symbol.h>'.
46513 (grub_arch_memdisk_addr): New variable declaration.
46514 (grub_arch_memdisk_size): Likewise.
46516 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
46517 (grub_arch_memdisk_size): Likewise.
46519 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
46520 (codestart): Replace hardcoded `0x100000' with
46521 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
46523 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
46524 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
46525 not NULL, append the contents of the file it refers to, at the end of
46526 the compressed kernel image. Initialize `grub_memdisk_image_size'
46527 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
46528 (options): Add "memdisk"|'m' option.
46529 (main): Parse --memdisk|-m option, and pass user-provided path as
46530 parameter to generate_image().
46532 2008-01-20 Robert Millan <rmh@aybabtu.com>
46534 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
46535 grub_dprintf() calls from here ...
46536 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
46538 2008-01-20 Robert Millan <rmh@aybabtu.com>
46540 Fix detection of "real mode" when /options/real-mode? doesn't exist.
46542 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
46544 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
46545 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
46546 `GRUB_IEEE1275_FLAG_REAL_MODE'.
46547 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
46549 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
46550 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
46552 2008-01-19 Robert Millan <rmh@aybabtu.com>
46554 Get rid of confusing function (superseded by
46555 `grub_ieee1275_get_integer_property')
46556 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
46558 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
46560 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
46561 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
46562 in native endianness from grub_ieee1275_get_integer_property().
46564 2008-01-19 Robert Millan <rmh@aybabtu.com>
46566 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
46567 command after "shut-down", since implementations differ on which
46568 the command for halt is.
46570 2008-01-19 Robert Millan <rmh@aybabtu.com>
46572 * include/grub/i386/linuxbios/console.h: Add header protection.
46573 (grub_keyboard_controller_init): New function prototype.
46574 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
46575 (KEYBOARD_COMMAND_READ): Likewise.
46576 (KEYBOARD_COMMAND_WRITE): Likewise.
46577 (KEYBOARD_SCANCODE_SET1): Likewise.
46578 (grub_keyboard_controller_write): New function.
46579 (grub_keyboard_controller_read): Likewise.
46580 (grub_keyboard_controller_init): Likewise.
46582 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
46583 (grub_console_init): On coreboot/LinuxBIOS, call
46584 grub_keyboard_controller_init().
46586 2008-01-19 Robert Millan <rmh@aybabtu.com>
46588 PowerPC changes provided by Pavel Roskin.
46590 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
46591 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
46592 don't rely on cmain() doing it.
46593 * kern/i386/ieee1275/startup.S (_start): Store %eax in
46594 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
46596 2008-01-16 Robert Millan <rmh@aybabtu.com>
46598 * include/grub/i386/linuxbios/memory.h
46599 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
46600 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
46601 receive `table_header' as argument. Instead, probe for it in the
46602 known memory ranges where it can be present.
46603 (grub_available_iterate): Do not pass a fixed `table_header' address
46604 to grub_linuxbios_table_iterate().
46606 2008-01-15 Robert Millan <rmh@aybabtu.com>
46608 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
46609 * conf/i386-ieee1275.rmk: New file.
46610 * include/grub/i386/ieee1275/console.h: Likewise.
46611 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
46612 * include/grub/i386/ieee1275/kernel.h: Likewise.
46613 * include/grub/i386/ieee1275/time.h: Likewise.
46614 * kern/i386/ieee1275/init.c: Likewise.
46615 * kern/i386/ieee1275/startup.S: Likewise.
46617 2008-01-15 Robert Millan <rmh@aybabtu.com>
46619 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
46620 when pointers are 32-bit (but still do set it to one when they are
46623 2008-01-15 Robert Millan <rmh@aybabtu.com>
46625 * include/grub/ieee1275/ieee1275.h
46626 (grub_ieee1275_get_integer_property): New function prototype.
46628 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
46629 (grub_ieee1275_get_integer_property): New function. Wraps around
46630 grub_ieee1275_get_property() to handle endianness.
46632 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
46633 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
46635 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
46636 (grub_map): Likewise.
46637 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
46639 2008-01-15 Bean <bean123ch@gmail.com>
46641 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
46642 (grub_script_execute_cmdline): Reset grub_errno.
46644 * normal/main.c (read_config_file): Reset grub_errno.
46646 * normal/parse.y (script_init): New.
46647 (script): Move function and menuentry here.
46649 (command): Add delimiter at the end of command.
46650 (commands): Adjust to match the new command.
46651 (commandblock): Remove grub_script_lexer_record_start.
46652 (menuentry): Add grub_script_lexer_record_start, use the new commands.
46653 (if): Use the new commands.
46655 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
46657 2008-01-15 Robert Millan <rmh@aybabtu.com>
46659 * normal/menu.c (run_menu): Move timeout message from here ...
46660 (print_timeout): ... to here.
46661 (run_menu): Use print_timeout() once during initial draw to print
46662 the whole message, and again in every clock tick to update only
46663 the number of seconds.
46665 2008-01-15 Robert Millan <rmh@aybabtu.com>
46667 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
46668 actual size of `available' from grub_ieee1275_get_property(), and
46669 restrict parsing to that bound.
46671 2008-01-15 Christian Franke <franke@computer.org>
46673 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
46674 (argp_program_version): Remove variable.
46675 (argp_program_bug_address): Likewise.
46676 (options): Convert from struct argp_option to struct option.
46677 (struct arguments): Remove.
46678 (parse_opt): Remove.
46679 (usage): New function.
46680 (main): Replace struct args members by simple variables.
46681 Replace argp_parse() by getopt_long().
46682 Add switch to evaluate options.
46683 Add missing "(...)" around root_dev in prefix string.
46685 2008-01-14 Robert Millan <rmh@aybabtu.com>
46687 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
46688 for grub_ieee1275_exit(), in order to improve portability.
46690 2008-01-14 Robert Millan <rmh@aybabtu.com>
46692 * util/grub.d/10_linux.in (prefix): Define.
46693 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
46695 2008-01-13 Pavel Roskin <proski@gnu.org>
46697 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
46698 grub_errno if no errors have been detected.
46700 2008-01-12 Robert Millan <rmh@aybabtu.com>
46702 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
46703 (grub_util_get_dev_abstraction): New function prototype.
46705 * util/getroot.c: Include `<grub/util/getroot.h>'
46706 (grub_util_get_grub_dev): Move detection of abstraction type to ...
46707 (grub_util_get_dev_abstraction): ... here (new function).
46709 * util/grub-probe.c: Convert PRINT_* to an enum. Add
46710 `PRINT_ABSTRACTION'.
46711 (probe): Probe for abstraction type when requested.
46712 (main): Understand `--target=abstraction'.
46714 * util/i386/efi/grub-install.in: Add abstraction module to core
46715 image when it is found to be necessary.
46716 * util/i386/pc/grub-install.in: Likewise.
46717 * util/powerpc/ieee1275/grub-install.in: Likewise.
46719 * util/update-grub_lib.in (font_path): Return system path without
46720 converting to GRUB path.
46721 * util/update-grub.in: Convert system path returned by font_path()
46722 to a GRUB path. Use `grub-probe -t abstraction' to determine what
46723 abstraction module is needed for loading fonts (if any). Export
46724 that as `GRUB_PRELOAD_MODULES'.
46725 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
46728 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
46730 Remove some unused code from reiserfs.
46732 * fs/reiserfs.c (struct grub_reiserfs_key)
46733 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
46734 (struct grub_reiserfs_node_body): Removed.
46735 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46737 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46739 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46741 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46743 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46745 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
46747 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46748 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46749 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46751 2008-01-10 Robert Millan <rmh@aybabtu.com>
46753 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
46754 Determines if a file is garbage left by packaging systems, etc.
46755 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
46756 for processing /etc/grub.d scripts.
46757 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
46758 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
46759 as a condition for processing Linux images.
46761 2008-01-10 Pavel Roskin <proski@gnu.org>
46763 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
46764 to compile reiserfs.c on PowerPC.
46766 2008-01-10 Robert Millan <rmh@aybabtu.com>
46768 * kern/device.c (grub_device_iterate): Do not abort device iteration
46769 when one of the devices cannot be opened.
46770 * kern/disk.c (grub_disk_open): Do not account previous failures of
46771 unrelated functions when grub_errno is checked for.
46773 2008-01-08 Robert Millan <rmh@aybabtu.com>
46775 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46776 `! grub_linux_is_bzimage', change order of address comparison to make
46777 it more intuitive, and improve "too big zImage" error message.
46779 2008-01-08 Robert Millan <rmh@aybabtu.com>
46781 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46782 `$(update-grub_DATA)'.
46783 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46786 2008-01-07 Robert Millan <rmh@aybabtu.com>
46788 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46789 which instruction is modified by grub-setup during installation
46790 (since it wasn't obvious by only looking at this file).
46792 2008-01-07 Robert Millan <rmh@aybabtu.com>
46794 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46795 listing actual TODO items.
46797 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46799 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46801 (grub_reiserfs_get_key_offset): Likewise.
46802 (grub_reiserfs_set_key_offset): Likewise.
46803 (grub_reiserfs_set_key_type): Likewise.
46804 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
46806 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46807 better to remove the bitfield version completely.
46809 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46811 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46812 allocated from the heap, due to the fshelp implementation.
46813 (grub_reiserfs_dir): Free NODE, due to the same reason.
46815 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46817 Mostly from Vincent Pelletier:
46819 * fs/reiserfs.c: New file.
46821 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46822 (reiserfs_mod_SOURCES): New variable.
46823 (reiserfs_mod_CFLAGS): Likewise.
46824 (reiserfs_mod_LDFLAGS): Likewise.
46826 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46827 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46828 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46831 2008-01-06 Robert Millan <rmh@aybabtu.com>
46833 * normal/color.c: Remove `<grub/env.h>'.
46835 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46837 * include/grub/normal.h: Include <grub/env.h>.
46839 2008-01-05 Robert Millan <rmh@aybabtu.com>
46841 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46842 usage example with `(hd0,1)'.
46843 Reported by Samuel Thibault.
46845 2008-01-05 Robert Millan <rmh@aybabtu.com>
46847 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
46848 (grub_linux_boot_zimage): Rename to ...
46849 (grub_linux_boot): ... this.
46850 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
46851 (grub_linux_boot_zimage): Conditionalize zImage copy.
46853 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
46854 (grub_linux_boot_bzimage): Remove prototype.
46855 (grub_linux_boot_zimage): Rename to ...
46856 (grub_linux_boot): ... this.
46858 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
46859 (grub_linux_boot): Remove function.
46861 2008-01-05 Robert Millan <rmh@aybabtu.com>
46863 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
46864 (grub_env_write_color_highlight): Likewise.
46865 (grub_wait_after_message): Likewise.
46867 * normal/color.c: New file.
46869 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46870 (normal_mod_DEPENDENCIES): Likewise.
46872 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46873 (normal_mod_DEPENDENCIES): Likewise.
46875 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46876 (normal_mod_DEPENDENCIES): Likewise.
46878 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46879 (normal_mod_DEPENDENCIES): Likewise.
46881 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
46882 for waiting after a message is printed.
46883 * normal/main.c (read_config_file): Likewise.
46884 (grub_normal_init): Register grub_env_write_color_normal() and
46885 grub_env_write_color_highlight() hooks. Mark `color_normal' and
46886 `color_highlight' variables as global.
46888 * normal/menu.c (grub_wait_after_message): New function.
46889 (grub_color_menu_normal): New variable. Replaces ...
46890 (GRUB_COLOR_MENU_NORMAL): ... this macro.
46891 (grub_color_menu_highlight): New variable. Replaces ...
46892 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
46893 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
46894 `GRUB_TERM_COLOR_STANDARD'.
46895 (print_message): Use `grub_setcolorstate' to reload colors. Rename
46896 `normal_code' and `highlight_code' to `old_color_normal' and
46897 `old_color_highlight', respectively.
46898 (grub_menu_init_page): Update colors when drawing the menu, based on
46899 `menu_color_normal' and `menu_color_highlight' variables.
46900 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
46901 a message is printed.
46903 2008-01-05 Robert Millan <rmh@aybabtu.com>
46905 * kern/env.c (grub_env_context_open): Propagate hooks for global
46906 variables to new context.
46908 * kern/main.c (grub_set_root_dev): Export `root' variable.
46910 2008-01-05 Robert Millan <rmh@aybabtu.com>
46912 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
46913 discs unconditionally, since udev and others have options to provide
46916 2008-01-05 Robert Millan <rmh@aybabtu.com>
46918 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
46920 2008-01-04 Christian Franke <franke@computer.org>
46922 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
46925 2008-01-03 Pavel Roskin <proski@gnu.org>
46927 * kern/i386/linuxbios/init.c: Put "void" to all function
46928 declarations with no arguments.
46929 * kern/powerpc/ieee1275/init.c: Likewise.
46930 * term/i386/pc/at_keyboard.c: Likewise.
46931 * term/i386/pc/vga_text.c: Likewise.
46932 * util/grub-mkdevicemap.c: Likewise.
46934 2008-01-02 Robert Millan <rmh@aybabtu.com>
46936 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
46937 message when loaded image is out of bounds.
46938 (grub_multiboot_load_elf64): Likewise.
46940 2008-01-02 Pavel Roskin <proski@gnu.org>
46942 * util/grub.d/10_linux.in: Try version without ".old" when
46943 looking for initrd. It's better to use initrd from the newer
46944 kernel of the same version than no initrd at all.
46946 2008-01-01 Robert Millan <rmh@aybabtu.com>
46948 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
46950 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
46952 * include/grub/video.h: Added grub_video_unmap_color and
46953 grub_video_get_active_render_target.
46954 (grub_video_adapter): Added unmap_color and get_active_render_target.
46956 * video/video.c: Added grub_video_unmap_color and
46957 grub_video_get_active_render_target.
46958 (grub_video_get_info): Changed method to accept NULL pointer as an
46959 argument to allow detection of active video adapter.
46961 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
46962 grub_video_vbe_unmap_color_int.
46963 Added grub_video_vbe_unmap_color and
46964 grub_video_vbe_get_active_render_target.
46965 (grub_video_vbe_adapter): Added unmap_color and
46966 get_active_render_target.
46968 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
46969 with grub_video_vbe_unmap_color_int.
46971 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
46972 (DEFAULT_NORMAL_COLOR): Likewise.
46973 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
46974 (DEFAULT_FG_COLOR): Removed.
46975 (DEFAULT_BG_COLOR): Likewise.
46976 (DEFAULT_CURSOR_COLOR): Changed value.
46977 (grub_virtual_screen): Added standard_color_setting,
46978 normal_color_setting, highlight_color_setting and term_color.
46979 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
46980 (bitmap_width): Added.
46981 (bitmap_height): Likewise.
46982 (bitmap): Likewise.
46983 (set_term_color): Likewise.
46984 (grub_virtual_screen_setup): Changed to use new terminal coloring
46986 (grub_gfxterm_init): Added init for bitmap.
46987 (grub_gfxterm_fini): Added destroy for bitmap.
46988 (redraw_screen_rect): Updated to use background bitmap and new
46990 (scroll_up): Added optimization for case when there is no bitmap.
46991 (grub_gfxterm_cls): Fixed to use correct background color.
46992 (grub_virtual_screen_setcolorstate): Changed to use new terminal
46994 (grub_virtual_screen_setcolor): Likewise.
46995 (grub_virtual_screen_getcolor): Added.
46996 (grub_gfxterm_background_image_cmd): Likewise.
46997 (grub_video_term): Added setcolor and getcolor.
46998 (MOD_INIT): Added registration of background_image command.
46999 (MOD_TERM): Added unregistration for background_image command.
47001 2007-12-30 Pavel Roskin <proski@gnu.org>
47003 * loader/multiboot_loader.c: Fix multiboot command
47004 unregistration. Fix all typos in the word "multiboot".
47006 2007-12-29 Pavel Roskin <proski@gnu.org>
47008 * util/grub.d/10_linux.in: Refactor search for initrd. Add
47009 support for initrd names used in Fedora.
47011 2007-12-26 Bean <bean123ch@gmail.com>
47013 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
47014 (cpio_mod_SOURCES): New variable.
47015 (cpio_mod_CFLAGS): Likewise.
47016 (cpio_mod_LDFLAGS): Likewise.
47018 * fs/cpio.c: New file.
47020 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
47022 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
47024 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
47026 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47028 2007-12-25 Robert Millan <rmh@aybabtu.com>
47030 * include/grub/term.h (struct grub_term): Add `getcolor' function.
47031 (grub_getcolor): New function.
47033 * kern/term.c (grub_getcolor): New function.
47034 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
47035 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
47036 (print_entry): Set normal and highlight colors to
47037 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
47038 respectively, before printing and restore them to old
47040 (grub_menu_init_page): Likewise. Fill an additional colored space
47041 that would otherwise be left blank.
47043 * term/efi/console.c (grub_console_getcolor): New function.
47044 (struct grub_console_term.getcolor): New variable.
47045 * term/i386/pc/console.c (grub_console_getcolor): New function.
47046 (struct grub_console_term.getcolor): New variable.
47047 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
47048 (struct grub_console_term.getcolor): New variable.
47050 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
47051 (struct grub_console_term.setcolor): Remove variable.
47052 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
47053 (struct grub_console_term.setcolor): Remove variable.
47054 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
47055 (struct grub_console_term.setcolor): Remove variable.
47056 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
47057 (struct grub_console_term.setcolor): Remove variable.
47059 2007-12-25 Robert Millan <rmh@aybabtu.com>
47061 * configure.ac: Search for possible unifont.hex locations, and
47062 define UNIFONT_HEX if found.
47064 * Makefile.in (UNIFONT_HEX): Define variable.
47065 (DATA): Rename to ...
47066 (PKGLIB): ... this. Update all users.
47067 (PKGDATA): New variable.
47068 (pkgdata_IMAGES): Rename to ...
47069 (pkglib_IMAGES): ... this. Update all users.
47070 (pkgdata_MODULES): Rename to ...
47071 (pkglib_MODULES): ... this. Update all users.
47072 (pkgdata_PROGRAMS): Rename to ...
47073 (pkglib_PROGRAMS): ... this. Update all users.
47074 (pkgdata_DATA): Rename to ...
47075 (pkglib_DATA): ... this. Update all users.
47076 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
47077 (unicode.pff, ascii.pff): New rules.
47078 (all-local): Add `$(PKGDATA)' dependency.
47079 (install-local): Process `$(PKGDATA)'.
47081 * util/update-grub_lib.in (font_path): Search for *.pff files in
47082 a few more locations, including `${pkgdata}'.
47084 2007-12-23 Robert Millan <rmh@aybabtu.com>
47086 Patch from Bean <bean123ch@gmail.com>:
47087 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
47090 2007-12-21 Bean <bean123ch@gmail.com>
47092 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
47093 (ntfscomp_mod_SOURCES): New variable.
47094 (ntfscomp_mod_CFLAGS): Likewise.
47095 (ntfscomp_mod_LDFLAGS): Likewise.
47097 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
47098 (grub_probe_SOURCES): Likewise.
47099 (grub_emu_SOURCES): Likewise.
47101 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47102 (grub_emu_SOURCES): Likewise.
47104 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47105 (grub_emu_SOURCES): Likewise.
47107 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47108 (grub_emu_SOURCES): Likewise.
47110 * fs/ntfs.c (grub_ntfscomp_func): New variable.
47111 (read_run_list): Renamed to grub_ntfs_read_run_list.
47112 (decomp_nextvcn): Moved to ntfscomp.c.
47113 (decomp_getch): Likewise.
47114 (decomp_get16): Likewise.
47115 (decomp_block): Likewise.
47116 (read_block): Likewise.
47117 (read_data): Partially moved to ntfscomp.c.
47118 (fixup): Change unsigned to grub_uint16_t.
47119 (read_mft): Change unsigned long to grub_uint32_t.
47120 (read_attr): Likewise.
47121 (read_data): Likewise.
47122 (read_run_data): Likewise.
47123 (read_run_list): Likewise.
47124 (read_mft): Likewise.
47126 * fs/ntfscomp.c: New file.
47128 * include/grub/ntfs.h: New file.
47130 2007-12-16 Robert Millan <rmh@aybabtu.com>
47132 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
47133 IDE disk check, since Linux is known to support 20 IDE disks.
47134 Reported by Colin Watson.
47136 2007-12-15 Bean <bean123ch@gmail.com>
47138 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
47139 (lnxboot_img_SOURCES): New variable.
47140 (lnxboot_img_ASFLAGS): Likewise.
47141 (lnxboot_img_LDFLAGS): Likewise.
47143 * boot/i386/pc/lnxboot.S: New file.
47145 2007-11-24 Pavel Roskin <proski@gnu.org>
47147 * configure.ac: Test if '--build-id=none' is supported by the
47148 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
47149 objcopy to generate incorrect binary files (binutils
47150 2.17.50.0.18-1 as shipped by Fedora 8).
47151 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
47152 linking, so that build ID doesn't break the test.
47154 2007-11-24 Pavel Roskin <proski@gnu.org>
47156 * include/grub/i386/time.h: use "void" in the argument list
47157 of grub_cpu_idle().
47158 * include/grub/powerpc/time.h: Likewise.
47159 * include/grub/sparc64/time.h: Likewise.
47161 2007-11-18 Christian Franke <franke@computer.org>
47163 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
47164 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
47165 This fixes the problem that function keys did not work in grub-emu.
47167 2007-11-18 Christian Franke <franke@computer.org>
47169 * disk/host.c (grub_host_open): Remove attribute unused from
47170 name parameter. Add check for "host". This fixes the problem
47171 that grub-emu does not find partitions.
47173 2007-11-18 Christian Franke <franke@computer.org>
47175 * util/hostfs.c (is_dir): New function.
47176 (grub_hostfs_dir): Handle missing dirent.d_type case.
47177 (grub_hostfs_read): Add missing fseek().
47178 (grub_hostfs_label): Clear label pointer. This fixes a crash
47179 of grub-emu on "ls (host)".
47181 2007-11-18 Christian Franke <franke@computer.org>
47183 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
47184 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
47185 to 64 bit boundary by default.
47187 2007-11-18 Bean <bean123ch@gmail.com>
47189 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
47190 (hexdump_mod_SOURCES): New variable.
47191 (hexdump_mod_CFLAGS): Likewise.
47192 (hexdump_mod_LDFLAGS): Likewise.
47194 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47196 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47198 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47200 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47202 * include/grub/hexdump.h: New file.
47204 * commands/hexdump.c: New file.
47206 2007-11-10 Robert Millan <rmh@aybabtu.com>
47208 * commands/i386/pc/play.c (beep_off): Switch order of arguments
47209 in grub_outb() calls.
47210 (beep_on): Likewise.
47212 2007-11-10 Christian Franke <franke@computer.org>
47214 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
47215 (grub_menu_run): Likewise.
47217 2007-11-10 Robert Millan <rmh@aybabtu.com>
47219 * include/grub/i386/efi/machine.h: New file.
47220 * include/grub/i386/linuxbios/machine.h: Likewise.
47221 * include/grub/i386/pc/machine.h: Likewise.
47222 * include/grub/powerpc/ieee1275/machine.h: Likewise.
47223 * include/grub/sparc64/ieee1275/machine.h: Likewise.
47225 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
47226 (serial_hw_io_addr): New variable.
47227 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
47228 instead of `(unsigned short *) 0x400'.
47230 2007-11-10 Bean <bean123ch@gmail.com>
47232 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
47234 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47236 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
47237 (vga_mod_SOURCES): Added.
47238 (vga_mod_CFLAGS): Likewise.
47239 (vga_mod_LDFLAGS): Likewise.
47241 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
47243 (set_map_mask): Likewise.
47244 (set_read_map): Likewise.
47245 (set_read_address): Likewise.
47246 (vga_font): Removed variable.
47247 (get_vga_glyph): Removed function.
47248 (invalidate_char): Likewise.
47249 (write_char): Changed to use grub_font_get_glyph() for font
47251 (grub_vga_putchar): Likewise.
47252 (grub_vga_getcharwidth): Likewise.
47254 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47256 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
47258 (pxeboot_img_LDFLAGS): Likewise.
47259 (diskboot_img_LDFLAGS): Likewise.
47260 (kernel_img_LDFLAGS): Likewise.
47262 2007-11-06 Robert Millan <rmh@aybabtu.com>
47264 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
47265 in grub_outb() calls.
47266 (serial_hw_init): Likewise.
47268 2007-11-05 Robert Millan <rmh@aybabtu.com>
47270 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
47271 spaces. Skip non-regular files.
47273 2007-11-05 Robert Millan <rmh@aybabtu.com>
47275 * kern/disk.c (grub_disk_firmware_fini)
47276 (grub_disk_firmware_is_tainted): New variables.
47278 * include/grub/disk.h (grub_disk_firmware_fini)
47279 (grub_disk_firmware_is_tainted): Likewise.
47281 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
47282 (grub_disk_biosdisk_fini): ... to here.
47283 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
47284 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
47285 is set. Register grub_disk_biosdisk_fini() in
47286 `grub_disk_firmware_fini'.
47288 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
47289 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
47290 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
47291 to finish existing firmware disk interface.
47293 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
47294 (ata_mod_SOURCES): New variable.
47295 (ata_mod_CFLAGS): Likewise.
47296 (ata_mod_LDFLAGS): Likewise.
47298 2007-11-05 Robert Millan <rmh@aybabtu.com>
47300 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
47301 (grub_ata_wait): Reimplement using grub_millisleep().
47303 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
47304 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
47306 2007-11-03 Marco Gerards <marco@gnu.org>
47308 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
47309 (CRTC_ADDR_PORT): New macro.
47310 (CRTC_DATA_PORT): Likewise.
47311 (CRTC_CURSOR): Likewise.
47312 (CRTC_CURSOR_ADDR_HIGH): Likewise.
47313 (CRTC_CURSOR_ADDR_LOW): Likewise.
47314 (update_cursor): New function.
47315 (grub_console_real_putchar): Call `update_cursor'.
47316 (grub_console_gotoxy): Likewise.
47317 (grub_console_cls): Set the default color when clearing the
47319 (grub_console_setcursor): Implemented.
47321 2007-11-03 Marco Gerards <marco@gnu.org>
47323 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
47325 (grub_ata_pio_write): Likewise.
47327 (grub_atapi_identify): Wait after issuing an ATA command.
47328 (grub_atapi_packet): Likewise.
47329 (grub_ata_identify): Likewise.
47330 (grub_ata_readwrite): Likewise.
47332 2007-11-03 Marco Gerards <marco@gnu.org>
47334 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
47335 (grub_ata_pio_write): Likewise.
47336 (grub_ata_readwrite): Use `grub_error', instead of
47337 returning `grub_errno'.
47339 2007-11-03 Marco Gerards <marco@gnu.org>
47341 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
47342 grub_ata_pio_write once for every single sector, instead of for
47345 2007-10-31 Robert Millan <rmh@aybabtu.com>
47347 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
47349 * conf/i386-linuxbios.rmk: New file.
47351 * kern/i386/pc/hardware.c: Likewise.
47352 * term/i386/pc/at_keyboard.c: Likewise.
47353 * term/i386/pc/vga_text.c: Likewise.
47355 * include/grub/i386/linuxbios/boot.h: Likewise.
47356 * include/grub/i386/linuxbios/console.h: Likewise.
47357 * include/grub/i386/linuxbios/init.h: Likewise.
47358 * include/grub/i386/linuxbios/kernel.h: Likewise.
47359 * include/grub/i386/linuxbios/loader.h: Likewise.
47360 * include/grub/i386/linuxbios/memory.h: Likewise.
47361 * include/grub/i386/linuxbios/serial.h: Likewise.
47362 * include/grub/i386/linuxbios/time.h: Likewise.
47364 * kern/i386/linuxbios/init.c: Likewise.
47365 * kern/i386/linuxbios/startup.S: Likewise.
47366 * kern/i386/linuxbios/table.c: Likewise.
47368 2007-10-31 Marco Gerards <marco@gnu.org>
47370 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
47371 (ata_mod_SOURCES): New variable.
47372 (ata_mod_CFLAGS): Likewise.
47373 (ata_mod_LDFLAGS): Likewise.
47375 * disk/ata.c: New file.
47377 * include/grub/disk.h (grub_disk_dev_id): Add
47378 `GRUB_DISK_DEV_ATA_ID'.
47380 2007-10-31 Robert Millan <rmh@aybabtu.com>
47382 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
47383 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
47385 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
47386 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
47388 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
47391 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
47393 2007-10-27 Robert Millan <rmh@aybabtu.com>
47395 * include/grub/types.h (ULONG_MAX): Define macro.
47397 2007-10-22 Robert Millan <rmh@aybabtu.com>
47399 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
47401 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
47403 2007-10-22 Robert Millan <rmh@aybabtu.com>
47405 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
47406 (pkgdata_MODULES): Add `biosdisk.mod'.
47407 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
47410 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
47411 (grub_biosdisk_init): Replace with ...
47412 (GRUB_MOD_INIT(biosdisk)): ... this.
47413 (grub_biosdisk_fini): Replace with ...
47414 (GRUB_MOD_FINI(biosdisk)): ... this.
47416 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
47417 (grub_machine_init): Remove call to grub_biosdisk_init().
47418 (grub_machine_fini): Remove call to grub_machine_fini().
47420 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
47422 2007-10-22 Robert Millan <rmh@aybabtu.com>
47424 * include/grub/time.h: New file.
47425 * include/grub/i386/time.h: Likewise.
47426 * include/grub/powerpc/time.h: Likewise.
47427 * include/grub/sparc64/time.h: Likewise.
47429 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
47431 (KERNEL_MACHINE_TIME_HEADER): ... this.
47432 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47434 (KERNEL_MACHINE_TIME_HEADER): ... this.
47435 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47437 (KERNEL_MACHINE_TIME_HEADER): ... this.
47439 * kern/i386/efi/init.c: Include `<grub/time.h>'.
47440 (grub_millisleep): New function.
47441 * kern/i386/pc/init.c: Include `<grub/time.h>'.
47442 (grub_millisleep): New function.
47443 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
47444 Remove `grub/machine/time.h' include.
47445 (grub_millisleep): New function.
47446 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
47447 Remove `grub/machine/time.h' include.
47448 (grub_millisleep): New function.
47450 * include/grub/misc.h (grub_div_roundup): New function.
47452 * kern/misc.c: Include `<grub/time.h>'.
47453 (grub_millisleep_generic): New function.
47455 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
47457 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
47459 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
47460 `machine/time.h'. Add `time.h'.
47461 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47463 2007-10-21 Robert Millan <rmh@aybabtu.com>
47465 * include/grub/misc.h (grub_max): New function.
47467 2007-10-21 Robert Millan <rmh@aybabtu.com>
47469 * util/misc.c (grub_util_info): Call fflush() before returning.
47471 2007-10-20 Robert Millan <rmh@aybabtu.com>
47473 * genmk.rb (Image): Copy `extra_flags' from here ...
47474 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
47476 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
47477 to `argc' and `args' arguments.
47479 2007-10-17 Robert Millan <rmh@aybabtu.com>
47481 * kern/i386/loader.S: New file.
47483 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
47484 * kern/i386/loader.S (grub_linux_prot_size)... to here.
47485 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
47486 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
47487 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
47488 * kern/i386/loader.S (grub_linux_real_addr)... to here.
47489 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
47490 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
47491 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
47492 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
47493 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
47494 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
47495 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
47496 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
47498 * kern/i386/realmode.S: New file.
47500 * kern/i386/pc/startup.S (protstack): Moved from here ...
47501 * kern/i386/realmode.S (protstack)... to here.
47502 * kern/i386/pc/startup.S (gdt): Moved from here ...
47503 * kern/i386/realmode.S (gdt)... to here.
47504 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
47505 * kern/i386/realmode.S (prot_to_real)... to here.
47507 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
47508 `kern/i386/realmode.S'.
47510 2007-10-17 Robert Millan <rmh@aybabtu.com>
47512 * include/grub/i386/loader.h: New file.
47514 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
47515 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47516 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47517 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47518 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
47519 * include/grub/i386/loader.h (grub_linux_prot_size)
47520 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47521 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47522 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47523 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
47525 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
47527 2007-10-15 Robert Millan <rmh@aybabtu.com>
47529 * normal/misc.c (grub_normal_print_device_info): Do not probe for
47530 filesystem when dev->disk is unset.
47531 Do probe for filesystem even when dev->disk->has_partitions is set.
47532 In case a filesystem is found, always report it.
47533 In case it isn't, if dev->disk->has_partitions is set, report that
47534 a partition table was found instead of reporting that no filesystem
47535 could be identified.
47537 2007-10-12 Robert Millan <rmh@aybabtu.com>
47539 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
47540 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
47542 * include/grub/types.h (grub_host_to_target16): New macro.
47543 (grub_host_to_target32): Likewise.
47544 (grub_host_to_target64): Likewise.
47545 (grub_target_to_host16): Likewise.
47546 (grub_target_to_host32): Likewise.
47547 (grub_target_to_host64): Likewise.
47549 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47550 Renamed from to ...
47551 (GRUB_MOD_ALIGN): ...this. Update all users.
47553 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
47554 grub_host_to_target32.
47555 Replace grub_be_to_cpu32 with grub_target_to_host32.
47556 (load_modules): Likewise.
47557 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
47558 Replace grub_be_to_cpu32 with grub_target_to_host32.
47559 Replace grub_cpu_to_be16 with grub_host_to_target16.
47560 Replace grub_cpu_to_be32 grub_host_to_target32.
47562 2007-10-12 Robert Millan <rmh@aybabtu.com>
47564 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
47565 * util/elf/grub-mkimage.c: ... here.
47567 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
47568 `util/powerpc/ieee1275/grub-mkimage.c'.
47570 2007-10-07 Robert Millan <rmh@aybabtu.com>
47572 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
47573 and make it easier to figure out.
47574 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
47575 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
47576 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
47577 leave us with less than HEAP_MIN_SIZE total heap.
47578 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
47580 2007-10-03 Robert Millan <rmh@aybabtu.com>
47582 * include/grub/i386/io.h: New file.
47583 * commands/i386/pc/play.c (inb): Removed.
47585 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47587 * term/i386/pc/serial.c (inb): Removed.
47589 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47591 * term/i386/pc/vga.c (inb): Removed.
47593 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47596 2007-10-02 Robert Millan <rmh@aybabtu.com>
47598 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
47599 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47600 Reported by Marcin Kurek.
47602 2007-09-07 Robert Millan <rmh@aybabtu.com>
47604 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
47605 SmartFirmware version updates (as released by Sven Luther), and avoid
47606 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
47607 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
47610 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47612 From Hitoshi Ozeki:
47613 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
47614 when merging two regions.
47616 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47618 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
47619 * normal/completion.c (grub_normal_do_completion): Likewise.
47620 Reported by Hitoshi Ozeki.
47622 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47624 Do not use devices at boot in chainloading.
47626 * loader/i386/pc/chainloader.c (boot_drive): New variable.
47627 (boot_part_addr): Likewise.
47628 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
47629 with BOOT_DRIVE and BOOT_PART_ADDR.
47630 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
47631 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
47633 2007-08-29 Robert Millan <rmh@aybabtu.com>
47635 Patch from Simon Peter <dn.tlp@gmx.net>:
47636 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
47637 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
47638 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
47639 util/i386/pc/grub-setup.c_DEPENDENCIES.
47640 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
47641 util/grub-probe.c_DEPENDENCIES.
47642 * conf/powerpc-ieee1275.rmk: Likewise.
47644 2007-08-28 Robert Millan <rmh@aybabtu.com>
47646 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
47647 to tell grub-mkdevicemap how to name devices.
47648 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
47651 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
47652 util/i386/get_disk_name.c.
47653 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
47654 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
47655 util/ieee1275/get_disk_name.c.
47657 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
47659 * DISTLIST: Add util/i386/get_disk_name.c and
47660 util/ieee1275/get_disk_name.c.
47662 * util/grub-mkdevicemap.c: Replace device naming logic with
47663 grub_util_get_disk_name() calls.
47665 2007-08-20 Robert Millan <rmh@aybabtu.com>
47667 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
47668 (so that it works for both plural and singular quantities).
47670 2007-08-05 Robert Millan <rmh@aybabtu.com>
47672 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
47673 so that [xz] isn't taken into account when determining order.
47675 2007-08-02 Marco Gerards <marco@gnu.org>
47677 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
47678 `include/multiboot2.h', `include/grub/elfload.h',
47679 `include/multiboot.h', `include/grub/multiboot.h',
47680 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
47681 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
47682 `kern/elf.c', `loader/multiboot_loader.c',
47683 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
47684 `loader/i386/pc/multiboot2.c',
47685 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
47686 `util/i386/pc/grub-mkrescue.in'. Remove
47687 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
47688 `include/grub/i386/pc/util/biosdisk.h' and
47689 `include/grub/powerpc/ieee1275/multiboot.h'.
47691 2007-08-02 Bean <bean123ch@gmail.com>
47693 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
47694 (ntfs_mod_SOURCES): New variable.
47695 (ntfs_mod_CFLAGS): Likewise.
47696 (ntfs_mod_LDFLAGS): Likewise.
47698 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
47699 (grub_probe_SOURCES): Likewise.
47700 (grub_emu_SOURCES): Likewise.
47702 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47703 (grub_emu_SOURCES): Likewise.
47705 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47706 (grub_emu_SOURCES): Likewise.
47708 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
47710 * fs/ntfs.c: New file.
47712 2007-08-02 Bean <bean123ch@gmail.com>
47714 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
47716 * file.h (grub_file): Likewise.
47718 * fshelp.h (grub_fshelp_read_file): Likewise.
47720 * util/i386/pc/grub-setup.c (setup): Likewise.
47721 (save_first_sector): Likewise.
47722 (save_blocklists): Likewise.
47724 * fs/affs.c (grub_affs_read_file): Likewise.
47726 * fs/ext2.c (grub_ext2_read_file): Likewise.
47728 * fs/fat.c (grub_fat_read_data): Likewise.
47730 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
47732 * fs/hfs.c (grub_hfs_read_file): Likewise.
47734 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47736 * fs/jfs.c (grub_jfs_read_file): Likewise.
47738 * fs/minix.c (grub_minix_read_file): Likewise.
47740 * fs/sfs.c (grub_sfs_read_file): Likewise.
47742 * fs/ufs.c (grub_ufs_read_file): Likewise.
47744 * fs/xfs.c (grub_xfs_read_file): Likewise.
47746 * command/blocklist.c (read_blocklist): Likewise.
47747 (print_blocklist): Likewise.
47749 2007-08-02 Marco Gerards <marco@gnu.org>
47751 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
47754 * disk/host.c: New file.
47756 * util/hostfs.c: Likewise.
47758 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
47759 return `GRUB_ERR_BAD_FS'.
47760 * fs/sfs.c (grub_sfs_mount): Likewise.
47761 * fs/xfs.c (grub_xfs_mount): Likewise.
47763 * include/grub/disk.h (enum grub_disk_dev_id): Add
47764 `GRUB_DISK_DEVICE_HOST_ID'.
47766 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
47768 2007-07-24 Jerone Young <jerone@gmail.com>
47770 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
47771 modules for compilation.
47772 * conf/powerpc-ieee1275.rmk: Likewise.
47774 * include/multiboot.h: Move multiboot definitions to one file. Rename
47775 many definitions to not get grub specific.
47776 * include/multiboot2.h: Create header with multiboot 2 definitions.
47777 * include/grub/multiboot.h: Header for grub specific function
47778 prototypes and definitions.
47779 * include/grub/multiboot2.h: Likewise.
47780 * include/grub/multiboot_loader.h: Likewise.
47781 * include/grub/i386/pc/multiboot.h: Removed.
47782 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47784 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47785 and 2 to allow for one multiboot and module commands.
47786 * loader/multiboot2.c: Add multiboot2 functionality.
47787 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47788 and definition names.
47789 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47791 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47792 ieee1275 specific multiboot2 code.
47794 * kern/i386/pc/startup.S: Change headers and definition names for
47795 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47797 2007-07-22 Robert Millan <rmh@aybabtu.com>
47799 * geninitheader.sh: Process file specified in first parameter rather
47800 than hardcoding grub_modules_init.lst.
47801 * geninit.sh: Likewise. Also, construct header name dynamically rather
47802 than hardcoding grub_modules_init.h.
47804 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47805 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47806 grub_probe_init.[ch] and grub_setup_init.[ch].
47808 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47809 grub_modules_init.h with grub_emu_init.h.
47810 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47811 grub_probe_init.[ch] files.
47812 * conf/i386-efi.rmk: Likewise.
47813 * conf/i386-pc.rmk: Likewise.
47814 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47815 grub_setup_init.[ch] files.
47817 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47818 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47819 to initialize modules rather than a list of hardcoded functions.
47820 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47821 grub_init_all() to initialize modules rather than a list of hardcoded
47824 2007-07-22 Robert Millan <rmh@aybabtu.com>
47826 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47827 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47829 2007-07-22 Robert Millan <rmh@aybabtu.com>
47831 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47832 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47833 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47834 flag when running on SmartFirmware.
47835 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47836 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47839 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47840 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47841 rather than decreasing it.
47843 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47844 there's not enough space to do it, fail in the same way as when it
47845 can't be done because there are no partitions.
47847 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
47848 when nvsetenv failed.
47850 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47852 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
47853 because this rule is automatically generated.
47854 (grub-mkrescue): Removed for the same reason as above.
47856 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47858 Migrate to GNU General Public License Version 3.
47860 * COPYING: Replaced with the plain text version of GPLv3.
47862 * config.guess: Updated from gnulib.
47863 * config.sub: Likewise.
47865 * geninit.sh: Output a GPLv3 copyright notice.
47866 * geninitheader.sh: Likewise.
47867 * genmodsrc.sh: Likewise.
47868 * gensymlist.sh.in: Likewise.
47870 * boot/i386/pc/boot.S: Upgraded to GPLv3.
47871 * boot/i386/pc/diskboot.S: Likewise.
47872 * boot/i386/pc/pxeboot.S: Likewise.
47873 * commands/blocklist.c: Likewise.
47874 * commands/boot.c: Likewise.
47875 * commands/cat.c: Likewise.
47876 * commands/cmp.c: Likewise.
47877 * commands/configfile.c: Likewise.
47878 * commands/echo.c: Likewise.
47879 * commands/help.c: Likewise.
47880 * commands/ls.c: Likewise.
47881 * commands/search.c: Likewise.
47882 * commands/terminal.c: Likewise.
47883 * commands/test.c: Likewise.
47884 * commands/videotest.c: Likewise.
47885 * commands/i386/cpuid.c: Likewise.
47886 * commands/i386/pc/halt.c: Likewise.
47887 * commands/i386/pc/play.c: Likewise.
47888 * commands/i386/pc/reboot.c: Likewise.
47889 * commands/i386/pc/vbeinfo.c: Likewise.
47890 * commands/i386/pc/vbetest.c: Likewise.
47891 * commands/ieee1275/halt.c: Likewise.
47892 * commands/ieee1275/reboot.c: Likewise.
47893 * commands/ieee1275/suspend.c: Likewise.
47894 * disk/loopback.c: Likewise.
47895 * disk/lvm.c: Likewise.
47896 * disk/raid.c: Likewise.
47897 * disk/efi/efidisk.c: Likewise.
47898 * disk/i386/pc/biosdisk.c: Likewise.
47899 * disk/ieee1275/ofdisk.c: Likewise.
47900 * font/manager.c: Likewise.
47901 * fs/affs.c: Likewise.
47902 * fs/ext2.c: Likewise.
47903 * fs/fat.c: Likewise.
47904 * fs/fshelp.c: Likewise.
47905 * fs/hfs.c: Likewise.
47906 * fs/hfsplus.c: Likewise.
47907 * fs/iso9660.c: Likewise.
47908 * fs/jfs.c: Likewise.
47909 * fs/minix.c: Likewise.
47910 * fs/sfs.c: Likewise.
47911 * fs/ufs.c: Likewise.
47912 * fs/xfs.c: Likewise.
47913 * hello/hello.c: Likewise.
47914 * include/grub/acorn_filecore.h: Likewise.
47915 * include/grub/arg.h: Likewise.
47916 * include/grub/bitmap.h: Likewise.
47917 * include/grub/boot.h: Likewise.
47918 * include/grub/cache.h: Likewise.
47919 * include/grub/device.h: Likewise.
47920 * include/grub/disk.h: Likewise.
47921 * include/grub/dl.h: Likewise.
47922 * include/grub/elfload.h: Likewise.
47923 * include/grub/env.h: Likewise.
47924 * include/grub/err.h: Likewise.
47925 * include/grub/file.h: Likewise.
47926 * include/grub/font.h: Likewise.
47927 * include/grub/fs.h: Likewise.
47928 * include/grub/fshelp.h: Likewise.
47929 * include/grub/gzio.h: Likewise.
47930 * include/grub/hfs.h: Likewise.
47931 * include/grub/kernel.h: Likewise.
47932 * include/grub/loader.h: Likewise.
47933 * include/grub/lvm.h: Likewise.
47934 * include/grub/misc.h: Likewise.
47935 * include/grub/mm.h: Likewise.
47936 * include/grub/net.h: Likewise.
47937 * include/grub/normal.h: Likewise.
47938 * include/grub/parser.h: Likewise.
47939 * include/grub/partition.h: Likewise.
47940 * include/grub/pc_partition.h: Likewise.
47941 * include/grub/raid.h: Likewise.
47942 * include/grub/rescue.h: Likewise.
47943 * include/grub/script.h: Likewise.
47944 * include/grub/setjmp.h: Likewise.
47945 * include/grub/symbol.h: Likewise.
47946 * include/grub/term.h: Likewise.
47947 * include/grub/terminfo.h: Likewise.
47948 * include/grub/tparm.h: Likewise.
47949 * include/grub/types.h: Likewise.
47950 * include/grub/video.h: Likewise.
47951 * include/grub/efi/api.h: Likewise.
47952 * include/grub/efi/chainloader.h: Likewise.
47953 * include/grub/efi/console.h: Likewise.
47954 * include/grub/efi/console_control.h: Likewise.
47955 * include/grub/efi/disk.h: Likewise.
47956 * include/grub/efi/efi.h: Likewise.
47957 * include/grub/efi/pe32.h: Likewise.
47958 * include/grub/efi/time.h: Likewise.
47959 * include/grub/i386/linux.h: Likewise.
47960 * include/grub/i386/setjmp.h: Likewise.
47961 * include/grub/i386/types.h: Likewise.
47962 * include/grub/i386/efi/kernel.h: Likewise.
47963 * include/grub/i386/efi/loader.h: Likewise.
47964 * include/grub/i386/efi/time.h: Likewise.
47965 * include/grub/i386/pc/biosdisk.h: Likewise.
47966 * include/grub/i386/pc/boot.h: Likewise.
47967 * include/grub/i386/pc/chainloader.h: Likewise.
47968 * include/grub/i386/pc/console.h: Likewise.
47969 * include/grub/i386/pc/init.h: Likewise.
47970 * include/grub/i386/pc/kernel.h: Likewise.
47971 * include/grub/i386/pc/loader.h: Likewise.
47972 * include/grub/i386/pc/memory.h: Likewise.
47973 * include/grub/i386/pc/multiboot.h: Likewise.
47974 * include/grub/i386/pc/serial.h: Likewise.
47975 * include/grub/i386/pc/time.h: Likewise.
47976 * include/grub/i386/pc/vbe.h: Likewise.
47977 * include/grub/i386/pc/vbeblit.h: Likewise.
47978 * include/grub/i386/pc/vbefill.h: Likewise.
47979 * include/grub/i386/pc/vbeutil.h: Likewise.
47980 * include/grub/i386/pc/vga.h: Likewise.
47981 * include/grub/ieee1275/ieee1275.h: Likewise.
47982 * include/grub/ieee1275/ofdisk.h: Likewise.
47983 * include/grub/powerpc/libgcc.h: Likewise.
47984 * include/grub/powerpc/setjmp.h: Likewise.
47985 * include/grub/powerpc/types.h: Likewise.
47986 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
47987 * include/grub/powerpc/ieee1275/console.h: Likewise.
47988 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
47989 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
47990 * include/grub/powerpc/ieee1275/loader.h: Likewise.
47991 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
47992 * include/grub/powerpc/ieee1275/time.h: Likewise.
47993 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
47994 * include/grub/sparc64/libgcc.h: Likewise.
47995 * include/grub/sparc64/setjmp.h: Likewise.
47996 * include/grub/sparc64/types.h: Likewise.
47997 * include/grub/sparc64/ieee1275/console.h: Likewise.
47998 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
47999 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
48000 * include/grub/sparc64/ieee1275/time.h: Likewise.
48001 * include/grub/util/biosdisk.h: Likewise.
48002 * include/grub/util/getroot.h: Likewise.
48003 * include/grub/util/lvm.h: Likewise.
48004 * include/grub/util/misc.h: Likewise.
48005 * include/grub/util/raid.h: Likewise.
48006 * include/grub/util/resolve.h: Likewise.
48007 * io/gzio.c: Likewise.
48008 * kern/device.c: Likewise.
48009 * kern/disk.c: Likewise.
48010 * kern/dl.c: Likewise.
48011 * kern/elf.c: Likewise.
48012 * kern/env.c: Likewise.
48013 * kern/err.c: Likewise.
48014 * kern/file.c: Likewise.
48015 * kern/fs.c: Likewise.
48016 * kern/loader.c: Likewise.
48017 * kern/main.c: Likewise.
48018 * kern/misc.c: Likewise.
48019 * kern/mm.c: Likewise.
48020 * kern/parser.c: Likewise.
48021 * kern/partition.c: Likewise.
48022 * kern/rescue.c: Likewise.
48023 * kern/term.c: Likewise.
48024 * kern/efi/efi.c: Likewise.
48025 * kern/efi/init.c: Likewise.
48026 * kern/efi/mm.c: Likewise.
48027 * kern/i386/dl.c: Likewise.
48028 * kern/i386/efi/init.c: Likewise.
48029 * kern/i386/efi/startup.S: Likewise.
48030 * kern/i386/pc/init.c: Likewise.
48031 * kern/i386/pc/lzo1x.S: Likewise.
48032 * kern/i386/pc/startup.S: Likewise.
48033 * kern/ieee1275/ieee1275.c: Likewise.
48034 * kern/powerpc/cache.S: Likewise.
48035 * kern/powerpc/dl.c: Likewise.
48036 * kern/powerpc/ieee1275/cmain.c: Likewise.
48037 * kern/powerpc/ieee1275/crt0.S: Likewise.
48038 * kern/powerpc/ieee1275/init.c: Likewise.
48039 * kern/powerpc/ieee1275/openfw.c: Likewise.
48040 * kern/sparc64/cache.S: Likewise.
48041 * kern/sparc64/dl.c: Likewise.
48042 * kern/sparc64/ieee1275/init.c: Likewise.
48043 * kern/sparc64/ieee1275/openfw.c: Likewise.
48044 * loader/efi/chainloader.c: Likewise.
48045 * loader/efi/chainloader_normal.c: Likewise.
48046 * loader/i386/efi/linux.c: Likewise.
48047 * loader/i386/efi/linux_normal.c: Likewise.
48048 * loader/i386/pc/chainloader.c: Likewise.
48049 * loader/i386/pc/chainloader_normal.c: Likewise.
48050 * loader/i386/pc/linux.c: Likewise.
48051 * loader/i386/pc/linux_normal.c: Likewise.
48052 * loader/i386/pc/multiboot.c: Likewise.
48053 * loader/i386/pc/multiboot_normal.c: Likewise.
48054 * loader/powerpc/ieee1275/linux.c: Likewise.
48055 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
48056 * normal/arg.c: Likewise.
48057 * normal/cmdline.c: Likewise.
48058 * normal/command.c: Likewise.
48059 * normal/completion.c: Likewise.
48060 * normal/execute.c: Likewise.
48061 * normal/function.c: Likewise.
48062 * normal/lexer.c: Likewise.
48063 * normal/main.c: Likewise.
48064 * normal/menu.c: Likewise.
48065 * normal/menu_entry.c: Likewise.
48066 * normal/misc.c: Likewise.
48067 * normal/parser.y: Likewise.
48068 * normal/script.c: Likewise.
48069 * normal/i386/setjmp.S: Likewise.
48070 * normal/powerpc/setjmp.S: Likewise.
48071 * normal/sparc64/setjmp.S: Likewise.
48072 * partmap/acorn.c: Likewise.
48073 * partmap/amiga.c: Likewise.
48074 * partmap/apple.c: Likewise.
48075 * partmap/gpt.c: Likewise.
48076 * partmap/pc.c: Likewise.
48077 * partmap/sun.c: Likewise.
48078 * term/gfxterm.c: Likewise.
48079 * term/terminfo.c: Likewise.
48080 * term/efi/console.c: Likewise.
48081 * term/i386/pc/console.c: Likewise.
48082 * term/i386/pc/serial.c: Likewise.
48083 * term/i386/pc/vesafb.c: Likewise.
48084 * term/i386/pc/vga.c: Likewise.
48085 * term/ieee1275/ofconsole.c: Likewise.
48086 * util/biosdisk.c: Likewise.
48087 * util/console.c: Likewise.
48088 * util/genmoddep.c: Likewise.
48089 * util/getroot.c: Likewise.
48090 * util/grub-emu.c: Likewise.
48091 * util/grub-mkdevicemap.c: Likewise.
48092 * util/grub-probe.c: Likewise.
48093 * util/lvm.c: Likewise.
48094 * util/misc.c: Likewise.
48095 * util/raid.c: Likewise.
48096 * util/resolve.c: Likewise.
48097 * util/update-grub.in: Likewise.
48098 * util/update-grub_lib.in: Likewise.
48099 * util/grub.d/00_header.in: Likewise.
48100 * util/grub.d/10_hurd.in: Likewise.
48101 * util/grub.d/10_linux.in: Likewise.
48102 * util/i386/efi/grub-install.in: Likewise.
48103 * util/i386/efi/grub-mkimage.c: Likewise.
48104 * util/i386/pc/grub-install.in: Likewise.
48105 * util/i386/pc/grub-mkimage.c: Likewise.
48106 * util/i386/pc/grub-mkrescue.in: Likewise.
48107 * util/i386/pc/grub-setup.c: Likewise.
48108 * util/i386/pc/misc.c: Likewise.
48109 * util/powerpc/ieee1275/grub-install.in: Likewise.
48110 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
48111 * util/powerpc/ieee1275/misc.c: Likewise.
48112 * video/bitmap.c: Likewise.
48113 * video/video.c: Likewise.
48114 * video/i386/pc/vbe.c: Likewise.
48115 * video/i386/pc/vbeblit.c: Likewise.
48116 * video/i386/pc/vbefill.c: Likewise.
48117 * video/i386/pc/vbeutil.c: Likewise.
48118 * video/readers/tga.c: Likewise.
48120 2007-07-02 Robert Millan <rmh@aybabtu.com>
48122 * conf/i386-efi.rmk: Replace obsolete reference to
48123 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
48124 with util/getroot.c.
48125 * conf/powerpc-ieee1275.rmk: Likewise.
48126 * conf/sparc64-ieee1275.rmk: Likewise.
48128 * util/grub-emu.c (main): Fix unchecked pointer handling.
48130 2007-07-02 Robert Millan <rmh@aybabtu.com>
48132 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
48133 invocation to fail, in order to support partition-less media.
48135 * util/i386/pc/grub-install.in: Likewise.
48137 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
48138 which fs or partmap modules are needed (akin to its sister scripts).
48140 Also use grub-probe to get rid of unportable /proc/mounts check.
48142 Print the same informational message that the other scripts do, before
48145 2007-06-23 Robert Millan <rmh@aybabtu.com>
48147 * util/update-grub_lib.in (font_path): New function. Determine whether
48148 a font file can be found and, if so, echo the GRUB path to it.
48150 * util/update-grub.in: Handle multiple terminals depending on user
48151 input, platform availability and font file presence. Propagate
48152 variables of our findings to /etc/grub.d/ children.
48154 * util/grub.d/00_header.in: Handle multiple terminals, based on
48155 environment setup by update-grub.
48157 2007-06-23 Robert Millan <rmh@aybabtu.com>
48159 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
48161 2007-06-21 Robert Millan <rmh@aybabtu.com>
48163 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
48164 indicate end of data section in kernel image.
48165 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
48166 GRUB_KERNEL_MACHINE_DATA_END.
48168 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
48170 * kern/i386/efi/startup.S: Likewise.
48172 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
48173 during image generation. Implement --prefix option to override this
48175 * util/i386/efi/grub-mkimage.c: Likewise.
48177 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
48178 code to make path relative to its root into a separate function.
48180 * util/i386/pc/grub-install.in: Use newly provided
48181 make_system_path_relative_to_its_root() to convert ${grubdir}, then
48182 pass the result to grub-install --prefix.
48184 2007-06-13 Robert Millan <rmh@aybabtu.com>
48186 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
48187 DEFAULT_DEVICE_MAP.
48188 * util/grub-emu.c: Use above definitions from misc.h instead of
48190 * util/grub-mkdevicemap.c: Likewise.
48191 * util/i386/pc/grub-setup.c: Likewise.
48192 * util/grub-probe.c: Likewise.
48193 (probe): Abort with grub_util_error() when either
48194 grub_guess_root_device or grub_util_get_grub_dev fails.
48196 2007-06-12 Robert Millan <rmh@aybabtu.com>
48198 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
48199 "pager" assignment.
48200 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
48202 * util/grub-probe.c (probe): Likewise for "drive_name".
48204 2007-06-11 Robert Millan <rmh@aybabtu.com>
48206 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
48207 not just the cdrom one.
48209 2007-06-11 Robert Millan <rmh@aybabtu.com>
48211 * util/i386/pc/grub-mkrescue.in: Add "set -e".
48212 Add --pkglibdir=DIR option to override pkglibdir.
48213 Mention --image-type=TYPE in help output.
48214 Fix --grub-mkimage (it was a no-op).
48215 Abort gracefully when no parameter is given.
48217 2007-06-11 Robert Millan <rmh@aybabtu.com>
48219 * util/i386/pc/grub-mkrescue.in: New file.
48220 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
48221 * Makefile.in: Handle bin_SCRIPTS.
48223 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
48225 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
48226 list of video modes.
48228 2007-06-06 Robert Millan <rmh@aybabtu.com>
48230 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
48231 file doesn't exist, or if it is in a filesystem grub can't read.
48233 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
48234 not abort if GRUB_DRIVE could not be defined. Rearrange generated
48235 header comment to fit in 80 columns when the variables are resolved.
48237 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
48238 could be identified by update-grub. Remove redundant check for
48239 unifont.pff existence (since convert_system_path_to_grub_path now
48242 2007-06-04 Robert Millan <rmh@aybabtu.com>
48244 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
48246 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
48248 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
48250 2007-06-04 Robert Millan <rmh@aybabtu.com>
48252 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
48254 * include/grub/partition.h: Declare grub_apple_partition_map_init and
48255 grub_apple_partition_map_fini.
48258 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
48259 to access >2 TiB disks).
48261 Print disk->total_sectors with %llu instead of %lu, since this
48262 variable is always 64-bit (prevents wrong disk size from being displayed
48263 on either >2 TiB disk or big-endian CPU).
48265 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
48266 into a generic case that supports all (sane) partition maps.
48268 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
48271 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
48272 and grub_apple_partition_map_fini() after that.
48274 2007-06-01 Robert Millan <rmh@aybabtu.com>
48276 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
48278 * util/grub.d/00_header.in: Only enable gfxterm when
48279 convert_system_path_to_grub_path() succeeds.
48281 2007-05-20 Robert Millan <rmh@aybabtu.com>
48283 * util/update-grub_lib.in: New file.
48284 * DISTLIST: Add update-grub_lib.in.
48285 * conf/common.rmk: Generate update-grub_lib and install it in
48287 * Makefile.in: Add install routine for $(lib_DATA).
48289 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
48290 function provided by update-grub_lib to support arbitrary paths of
48292 * util/update-grub.in: Use convert_system_path_to_grub_path() to
48293 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
48295 2007-05-19 Robert Millan <rmh@aybabtu.com>
48297 * commands/i386/cpuid.c: New module.
48298 * DISTLIST: Add it.
48299 * conf/i386-efi.rmk: Enable cpuid.mod.
48300 * conf/i386-pc.rmk: Likewise.
48302 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48304 * kern/disk.c (grub_disk_read): Check return value of
48307 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48309 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
48311 * disk/raid.c (grub_raid_open): Likewise.
48313 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48315 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
48316 stack instead of on the heap.
48318 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
48319 before doing a read on it.
48321 * configure.ac: Only use -fno-stack-protector for the target
48324 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48326 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
48327 __attribute_ ((unused)) to mode_type argument.
48329 * util/getroot.c (grub_guess_root_device): Fix #endif.
48331 * kern/misc.c (memcmp): Fix prototype.
48333 * include/grub/partition.h [GRUB_UTIL]
48334 (grub_gpt_partition_map_init): Add prototype.
48335 (grub_gpt_partition_map_fini): Likewise.
48337 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
48338 at the right place.
48340 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
48341 (grub_fat_read_data): Likewise.
48342 (grub_fat_find_dir): Likewise.
48344 * font/manager.c (find_glyph): Make table a const.
48345 (grub_font_get_glyph): Remove bitmap from if statement.
48347 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
48349 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
48350 code, first search for device in /dev/mapper, then in /dev.
48351 (grub_util_get_grub_dev): New function.
48352 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
48354 * util/grub-probe.c (probe): Remove check for RAID, call
48355 grub_util_get_grub_dev() instead of
48356 grub_util_biosdisk_get_grub_dev().
48357 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
48358 grub_util_biosdisk_get_grub_dev().
48359 * util/i386/pc/grub-setup.c (main): Likewise.
48361 2007-05-16 Robert Millan <rmh@aybabtu.com>
48363 * DISTLIST: Update for the latest changes.
48364 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
48365 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
48366 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
48367 grub/util/biosdisk.h.
48368 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
48369 grub/util/biosdisk.h.
48371 2007-05-16 Robert Millan <rmh@aybabtu.com>
48373 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
48375 2007-05-16 Robert Millan <rmh@aybabtu.com>
48377 * util/i386/efi/grub-install.in: New.
48378 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
48379 newly added grub-install.
48380 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
48382 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
48383 grub/util/biosdisk.h.
48384 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
48385 grub/util/biosdisk.h.
48387 2007-05-16 Robert Millan <rmh@aybabtu.com>
48389 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
48390 * include/grub/util/biosdisk.h: ... here.
48391 * util/i386/pc/biosdisk.c: Moved to ...
48392 * util/biosdisk.c: ... here.
48393 * util/i386/pc/getroot.c: Moved to ...
48394 * util/getroot.c: ... here.
48395 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
48396 * util/grub-mkdevicemap.c: ... here.
48397 * util/i386/pc/grub-probe.c: Moved to ...
48398 * util/grub-probe.c: ... here.
48400 2007-05-15 Robert Millan <rmh@aybabtu.com>
48402 * util/update-grub.in: Remove duplicated line in grub.cfg header
48405 2007-05-13 Robert Millan <rmh@aybabtu.com>
48407 * util/update-grub.in: Fix a few assumptions about the devices holding
48408 /, /boot and /boot/grub being the same.
48409 * util/grub.d/00_header.in: Likewise.
48410 * util/grub.d/10_hurd.in: Likewise.
48411 * util/grub.d/10_linux.in: Likewise.
48413 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
48414 patterns. Use that to define the `.old' suffix as older than `'.
48416 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
48418 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
48419 the grub.cfg header message.
48421 2007-05-11 Robert Millan <rmh@aybabtu.com>
48423 * util/update-grub.in: Create device.map if it doesn't already exist,
48424 before attempting to run grub-probe.
48425 Check for grub-probe and grub-mkdevicemap with the same code
48426 grub-install is using.
48429 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
48431 * Makefile.in: Add the datarootdir autoconf variable.
48433 2007-05-09 Robert Millan <rmh@aybabtu.com>
48435 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
48436 fail gracefully if dev->disk->partition == NULL.
48438 2007-05-07 Robert Millan <rmh@aybabtu.com>
48440 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
48441 determine partition map module.
48442 * util/i386/pc/grub-install.in: Use this feature to decide which
48443 partition module to load, instead of hardcoding pc and gpt.
48445 2007-05-07 Robert Millan <rmh@aybabtu.com>
48447 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
48448 source directory differs from build directory.
48450 2007-05-05 Robert Millan <rmh@aybabtu.com>
48452 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
48455 2007-05-05 Robert Millan <rmh@aybabtu.com>
48457 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
48459 2007-05-05 Robert Millan <rmh@aybabtu.com>
48461 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
48462 command-line arguments via ${GRUB_CMDLINE_LINUX}.
48464 2007-05-05 Robert Millan <rmh@aybabtu.com>
48466 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
48467 (grub_probe_SOURCES): Likewise.
48468 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
48469 GPT and initialize dos_part and bsd_part accordingly.
48470 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
48472 (main): Activate gpt module for use during partition identification,
48473 and deactivate it afterwards.
48474 * util/i386/pc/grub-install.in: Add gpt module to core.img.
48475 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
48476 partition identification, and deactivate it afterwards.
48478 2007-05-05 Robert Millan <rmh@aybabtu.com>
48480 * term/i386/pc/console.c (grub_console_fini): Call
48481 grub_term_set_current() before grub_term_unregister().
48483 2007-05-04 Robert Millan <rmh@aybabtu.com>
48485 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
48486 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
48487 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
48488 and update-grub_DATA.
48489 * conf/common.rmk: Build and install update-grub components.
48490 * conf/common.mk: Regenerate.
48491 * util/update-grub.in: New. Core of update-grub.
48492 * util/grub.d/00_header.in: New. Generates grub.cfg header.
48493 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
48494 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
48495 * util/grub.d/README: New. Document grub.d directory layout.
48497 2007-05-01 Robert Millan <rmh@aybabtu.com>
48499 * util/grub-emu.c: Move initialization functions
48500 grub_util_biosdisk_init() and grub_init_all() before
48501 grub_util_biosdisk_get_grub_dev(), which relies on them.
48503 2007-04-19 Robert Millan <rmh@aybabtu.com>
48505 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
48508 2007-04-18 Jerone Young <jerone@gmail.com>
48510 * kernel/elf.c: Add missing parenthesis for conditional statement
48513 2007-04-10 Jerone Young <jerone@gmail.com>
48515 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
48516 continue on and look for device node with real device name.
48518 2007-04-10 Jerone Young <jerone@gmail.com>
48520 * configure.ac: Add argument for autoconf to use transformation
48522 * Makefile.in: Add autoconf package transformation code.
48523 * util/i386/pc/grub-install.in: Likewise.
48524 * util/powerpc/ieee1275/grub-install.in: Likewise.
48526 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48528 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
48529 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
48530 (EXT2_REVISION): Likewise.
48531 (EXT2_INODE_SIZE): Likewise.
48532 (struct grub_ext2_block_group): Added a missing member
48534 (grub_ext2_read_inode): Divide by the inode size in a superblock
48535 instead of 128 to obtain INODES_PER_BLOCK.
48536 Use the macro EXT2_INODE_SIZE instead of directly using
48537 SBLOCK->INODE_SIZE.
48539 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48541 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
48542 superblock instead of the structure size to compute an
48543 offset. This fixes the problem that GRUB could not read a
48544 filesystem when inode size is different from 128-byte.
48546 2007-03-05 Marco Gerards <marco@gnu.org>
48548 * normal/main.c (read_config_file): When "menu" is not set, create
48549 an initial context.
48551 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48553 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
48554 (HEAP_LIMIT): New macro.
48555 (grub_claim_heap): Claim memory up to `heaplimit'.
48557 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48559 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
48560 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
48561 (_start): Likewise.
48562 (grub_arch_modules_addr): Return address after `_end'.
48563 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
48564 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
48565 (add_segments): Calculate `_end' from phdr size and location.
48566 (ALIGN_UP): Moved to ...
48567 * include/grub/misc.h: here.
48568 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
48570 (GRUB_IEEE1275_MODULE_BASE): Removed.
48572 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48574 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
48577 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48579 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
48581 (grub_elf64_load_hook_t): Likewise.
48582 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
48585 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48587 * kern/mm.c: Update copyright.
48588 (grub_mm_debug): Correct syntax error.
48589 (grub_mm_dump_free): New function.
48590 (grub_debug_free): Call `grub_free'.
48591 * include/grub/mm.h: Update copyright.
48592 (grub_mm_dump_free): Add declaration.
48594 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48596 * include/grub/ieee1275/ieee1275.h: Update copyright.
48597 * kern/powerpc/ieee1275/init.c: Likewise.
48598 * kern/powerpc/ieee1275/openfw.c: Likewise.
48600 * loader/powerpc/ieee1275/linux.c: Likewise.
48601 * include/grub/elfload.h: Likewise.
48602 * kern/elf.c: Likewise.
48603 (grub_elf32_load): Pass `base' and `size' parameters. Update all
48605 (grub_elf64_load): Likewise.
48606 (grub_elf32_load_segment): Move to a nested function.
48607 (grub_elf64_load_segment): Likewise.
48609 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48611 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
48613 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
48614 (grub_heap_len): Likewise.
48615 (HEAP_SIZE): New macro.
48616 (grub_claim_heap): New function.
48617 (grub_machine_init): Don't claim heap directly. Call
48619 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
48620 (grub_available_iterate): New function.
48622 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
48624 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
48625 * configure.ac: Use it for testing the HOST and TARGET compilers.
48627 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
48629 * Makefile.in (enable_grub_emu): New variable.
48630 * configure.ac (--enable-grub-emu): New option.
48631 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
48632 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
48633 * conf/i386-pc.rmk: Likewise.
48634 * conf/powerpc-ieee1275.rmk: Likewise.
48635 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
48637 2006-12-12 Marco Gerards <marco@gnu.org>
48639 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
48641 * kern/env.c (grub_env_unset): Don't free the member `value' when
48642 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
48645 * normal/main.c (current_menu): Removed.
48646 (free_menu): Unset the `menu' environment variable.
48647 (grub_normal_menu_addentry): Make use of the environment variable
48648 `menu', instead of using the global `current_menu'. Allocate
48649 memory for the sourcecode of this entry.
48650 (read_config_file): New argument `nested', changed all callers.
48651 Only in the case of a new context, initialize a new menu. Set the
48652 `menu' environment variable.
48653 (grub_normal_execute): Don't set and unset the environment
48654 variable `menu' here anymore. Only free the menu when leaving the
48657 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
48660 2006-12-11 Marco Gerards <marco@gnu.org>
48662 * normal/menu_entry.c (run): Fix off by one bug so the last line
48663 is executed. Move the loader check to outside the loop.
48665 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
48667 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
48669 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
48671 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
48672 the number of sectors. Reported by Andrey Shuvikov
48673 <mr_hyro@yahoo.com>.
48675 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
48677 * kern/disk.c (grub_disk_read): When there is a read error, always
48678 try to read only the necessary data.
48680 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
48682 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
48684 [GRUB_UTIL] (grub_raid_fini): Likewise.
48685 [GRUB_UTIL] (grub_lvm_init): Likewise.
48686 [GRUB_UTIL] (grub_lvm_fini): Likewise.
48687 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
48688 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
48689 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
48690 and grub_raid_fini().
48692 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48694 * include/grub/types.h (__unused): Rename to UNUSED.
48695 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
48696 (grub_elf64_size): Likewise.
48698 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48700 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
48701 grub_error_push and grub_error_pop in the error-handling path.
48702 (grub_elf32_load_segment): Only call grub_file_read with non-zero
48705 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48707 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
48708 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48709 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48710 (kernel_elf_SOURCES): Likewise.
48711 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
48712 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
48713 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48714 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48715 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
48716 (elf_mod_SOURCES): New variable.
48717 (elf_mod_CFLAGS): Likewise.
48718 (elf_mod_LDFLAGS): Likewise.
48719 * include/grub/types.h (__unused): New macro.
48720 * include/grub/elfload.h: New file.
48721 * kern/elf.c: Likewise.
48722 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
48723 (ELF32_LOADMASK): New macro.
48724 (ELF64_LOADMASK): Likewise.
48725 (vmlinux): Removed.
48726 (grub_linux_load32): New function.
48727 (grub_linux_load64): Likewise.
48728 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
48729 Use grub_elf_t instead of grub_file_t.
48731 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
48733 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
48734 `catch_result' to struct set_color_args.
48736 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48738 * normal/menu.c: Include grub/script.h.
48739 * normal/menu_entry.c: Likewise.
48740 * include/grub/normal.h: Do not include grub/script.h.
48742 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48744 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
48746 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48748 * kern/disk.c (grub_disk_open): Print debug messages when opening a
48750 (grub_disk_close): Print debug messages when closing a disk.
48751 (grub_disk_read): Print debug messages when disk read fails.
48752 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
48754 * kern/partition.c: Include misc.h.
48755 (grub_partition_iterate): Print debug messages when detecting
48758 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48760 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
48762 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
48764 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
48766 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48767 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
48769 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
48771 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48772 instead of sizeof(lv). Patch by Michael Guntsche.
48774 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48776 * disk/lvm.c: Rename VGS to VG_LIST.
48777 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48778 (grub_lvm_open): Likewise.
48779 Thanks to Michael Guntsche for finding this bug.
48781 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48783 * configure.ac (AC_INIT): Bumped to 1.95.
48785 2006-10-14 Robert Millan <rmh@aybabtu.com>
48787 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48788 with "/dev/.static/dev/md".
48790 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48792 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48793 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48794 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48795 DRIVE_NAME are always freed.
48797 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48798 DOS_PART, as a DOS partition is counted from one instead of zero
48799 now. Reported by Robert Millan.
48801 2006-10-14 Robert Millan <rmh@aybabtu.com>
48803 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48804 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48805 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48806 string returned by grub_guess_root_device.
48807 * util/i386/pc/grub-setup.c: Likewise.
48808 * util/i386/pc/grub-probefs.c: Likewise.
48810 * util/i386/pc/grub-probefs.c: Rename to ...
48811 * util/i386/pc/grub-probe.c: ... this.
48812 * DISTLIST: Remove grub-probefs, add grub-probe.
48813 * conf/i386-efi.rmk: Likewise.
48814 * conf/i386-pc.rmk: Likewise.
48815 * util/i386/pc/grub-install.in: Likewise.
48817 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48818 choose which information we want to print.
48820 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48822 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48823 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48824 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48825 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48826 video/readers/tga.c and video/i386/pc/vbeutil.c.
48828 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48830 Added support for RAID and LVM.
48832 * disk/lvm.c: New file.
48833 * disk/raid.c: Likewise.
48834 * include/grub/lvm.h: Likewise.
48835 * include/grub/raid.h: Likewise.
48836 * include/grub/util/lvm.h: Likewise.
48837 * include/grub/util/raid.h: Likewise.
48838 * util/lvm.c: Likewise.
48839 * util/raid.c: Likewise.
48841 * include/grub/disk.h (grub_disk_dev_id): Add
48842 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48843 (grub_disk_get_size): New prototype.
48844 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48845 returns a partition.
48846 (grub_disk_get_size): New function.
48848 * kern/i386/pc/init.c (make_install_device): Copy the prefix
48849 verbatim if grub_install_dos_part is -2.
48851 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
48854 * util/i386/pc/grub-setup.c (setup): New argument
48855 MUST_EMBED. Force embedding of GRUB when the argument is
48856 true. Close FILE before returning.
48857 (main): Add support for RAID and LVM.
48859 * conf/common.rmk: Add RAID and LVM modules.
48860 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
48862 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
48864 * kern/misc.c (grub_strstr): New function.
48865 * include/grub/misc.h (grub_strstr): New prototype.
48867 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
48869 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
48871 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
48873 * kern/misc.c (grub_strtoull): Guess the base only if not
48876 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48878 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
48881 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48883 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
48885 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
48886 Remove `flags' argument. All callers changed.
48887 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
48888 (IEEE1275_IHANDLE_INVALID): New variable.
48889 (IEEE1275_CELL_INVALID): New variable.
48890 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
48891 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
48892 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
48893 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
48894 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
48895 codes from Open Firmware. All callers updated.
48896 (grub_ieee1275_next_property): Directly return Open Firmware return
48898 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
48899 Standardize error checking from `grub_ieee1275_get_property'.
48900 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
48901 `devalias' to `aliases'. Correct comments. Consolidate error paths.
48903 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48905 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
48906 `instance_to_package_args' to `instance_to_path_args'.
48908 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
48909 `grub_ieee1275_chosen'.
48911 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
48912 `grub_ieee1275_interpret'.
48914 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48916 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
48918 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48920 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
48921 (__cmpdi): Likewise.
48923 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
48924 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
48927 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
48929 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
48930 to type `grub_ssize_t'.
48931 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
48933 2006-09-22 Marco Gerards <marco@gnu.org>
48935 * normal/script.c (grub_script_create_cmdmenu): Skip leading
48938 2006-09-22 Marco Gerards <marco@gnu.org>
48940 * commands/echo.c: New file.
48942 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
48944 * conf/common.rmk (echo_mod_SOURCES): New variable.
48945 (echo_mod_CFLAGS): Likewise.
48946 (echo_mod_LDFLAGS): Likewise.
48948 2006-09-22 Marco Gerards <marco@gnu.org>
48950 * normal/main.c (get_line): Malloc memory instead of using
48951 preallocated memory. Removed the arguments `cmdline' and
48952 `max_len'. Updated all callers.
48954 2006-09-22 Marco Gerards <marco@gnu.org>
48956 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
48957 (normal_mod_DEPENDENCIES): Likewise.
48959 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
48960 (normal_mod_DEPENDENCIES): Likewise.
48962 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
48964 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
48966 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
48968 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
48969 (normal_mod_DEPENDENCIES): Likewise.
48970 * conf/i386-pc.mk: Regenerate.
48971 * conf/i386-efi.mk: Likewise
48972 * conf/common.mk: Likewise.
48973 * conf/powerpc-ieee1275.mk: Likewise.
48974 * conf/sparc64-ieee1275.mk: Likewise.
48976 2006-09-22 Robert Millan <rmh@aybabtu.com>
48978 Sync with i386 version.
48979 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
48980 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
48982 2006-09-21 Robert Millan <rmh@aybabtu.com>
48984 Import from GRUB Legacy (lib/device.c):
48985 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
48986 (init_device_map) [__linux__]: Add support for I2O devices.
48988 2006-09-14 Marco Gerards <marco@gnu.org>
48990 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
48993 2006-09-14 Robert Millan <rmh@aybabtu.com>
48995 * util/i386/pc/grub-install.in: Skip menu.lst when removing
48998 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
49000 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
49001 before adding it to device.map.
49003 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
49005 * genmk.rb: Let GCC generate dependencies the first time it
49006 compiles a file; using the -MD option.
49007 * conf/common.mk: Regenerate.
49008 * conf/i386-pc.mk: Likewise.
49009 * conf/i386-efi.mk: Likewise.
49010 * conf/powerpc-ieee1275.mk: Likewise.
49011 * conf/sparc64-ieee1275.mk: Likewise.
49013 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
49015 Move the prototypes of grub_setjmp and grub_longjmp to
49016 cpu/setjmp.h, so that each architecture may specify different
49019 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
49020 (grub_longjmp): Likewise.
49021 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
49022 (grub_longjmp): Likewise.
49023 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
49024 (grub_longjmp): Likewise.
49026 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
49027 [!GRUB_UTIL] (grub_longjmp): Removed.
49029 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
49031 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
49032 "color!" method does not return any value.
49034 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49036 * include/grub/bitmap.h: New file.
49038 * include/grub/i386/pc/vbeutil.h: Likewise.
49040 * video/bitmap.c: Likewise.
49042 * video/readers/tga.c: Likewise.
49044 * video/i386/pc/vbeutil.c: Likewise.
49046 * commands/videotest.c: Code cleanup and updated to reflect to new
49049 * term/gfxterm.c: Likewise.
49051 * video/video.c: Likewise.
49053 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
49054 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
49055 (bitmap_mod_SOURCES): New entry.
49056 (bitmap_mod_CFLAGS): Likewise.
49057 (bitmap_mod_LDFLAGS): Likewise.
49058 (tga_mod_SOURCES): Likewise.
49059 (tga_mod_CFLAGS): Likewise.
49060 (tga_mod_LDFLAGS): Likewise.
49062 * include/grub/video.h (grub_video_blit_operators): New enum type.
49063 (grub_video_render_target): Changed as forward declaration and moved
49064 actual definition to be video driver specific.
49065 (grub_video_adapter.blit_bitmap): Added blitting operator.
49066 (grub_video_adapter.blit_render_target): Likewise.
49067 (grub_video_blit_bitmap): Likewise.
49068 (grub_video_blit_render_target): Likewise.
49070 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
49071 driver specific render target definition.
49072 (grub_video_vbe_map_rgba): Added driver internal helper.
49073 (grub_video_vbe_unmap_color): Updated to use
49074 grub_video_i386_vbeblit_info.
49075 (grub_video_vbe_get_video_ptr): Likewise.
49077 * include/grub/i386/pc/vbeblit.h
49078 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
49079 grub_video_i386_vbeblit_info.
49080 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
49081 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
49082 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
49083 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
49084 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
49085 (grub_video_i386_vbeblit_index_index): Likewise.
49086 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
49087 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
49088 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
49089 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
49091 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
49094 * video/i386/pc/vbeblit.c: Updated to reflect changes on
49095 include/grub/i386/pc/vbeblit.h.
49097 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
49098 Updated to use grub_video_i386_vbeblit_info.
49099 (grub_video_i386_vbefill_R8G8B8): Likewise.
49100 (grub_video_i386_vbefill_index): Likewise.
49101 (grub_video_i386_vbefill): Added generic filler.
49103 * video/i386/pc/vbefill.c: Updated to reflect changes on
49104 include/grub/i386/pc/vbefill.h.
49106 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
49107 grub_video_i386_vbeblit_info.
49108 (grub_video_vbe_unmap_color): Likewise.
49109 (grub_video_vbe_blit_glyph): Likewise.
49110 (grub_video_vbe_scroll): Likewise.
49111 (grub_video_vbe_draw_pixel): Removed function.
49112 (grub_video_vbe_get_pixel): Likewise.
49113 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
49114 updated code to use it.
49115 (common_blitter): Added common blitter for render target and bitmap.
49116 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
49117 (grub_video_vbe_blit_render_target): Likewise.
49119 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
49121 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
49122 is in text mode if there is no console control protocol instance
49125 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49127 * include/grub/video.h: Code cleanup.
49129 * include/grub/i386/pc/vbe.h: Likewise.
49131 * video/i386/pc/vbe.c: Likewise.
49133 * video/i386/pc/vbeblit.c: Likewise.
49135 * video/i386/pc/vbefill.c: Likewise.
49137 * video/video.c: Likewise. Also added more comments.
49139 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49141 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
49142 (struct grub_biosdisk_dap): Likewise.
49144 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
49145 linkage settings for all functions.
49147 2006-07-12 Marco Gerards <marco@gnu.org>
49149 * configure.ac (--enable-mm-debug): Fix typo.
49151 * genkernsyms.sh.in: Use proper quoting for `CC'.
49153 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
49155 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
49156 (normal_mod_ASFLAGS): Remove "-m32".
49158 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
49160 * util/misc.c: Include config.h.
49161 [!HAVE_MEMALIGN]: Do not include malloc.h.
49162 (grub_memalign): Use posix_memalign, if present. Then, use
49163 memalign, if present. Otherwise, emit an error.
49165 * util/grub-emu.c: Do not include malloc.h.
49167 * include/grub/util/misc.h: Include unistd.h. This is required for
49168 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
49169 D. Eades III <hde@foobar-qux.org>.
49171 * configure.ac (AC_GNU_SOURCE): Added.
49172 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
49175 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
49177 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
49178 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
49180 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
49182 * include/grub/types.h (grub_host_addr_t): Rename to
49183 grub_target_addr_t.
49184 (grub_host_off_t): Rename to grub_target_off_t.
49185 (grub_host_size_t): Rename to grub_target_size_t.
49186 (grub_host_ssize_t): Rename to grub_target_ssize_t.
49187 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
49189 * include/grub/kernel.h (struct grub_module_header): Change type
49190 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
49191 (grub_module_info): Likewise.
49193 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49195 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
49196 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
49197 Velazquez <jesus.velazquez@gmail.com>.
49199 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49201 Count partitions from 1 instead of 0 in the string representation
49202 of partitions. Still use 0-based internally.
49204 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
49205 (sun_partition_map_iterate): Use grub_partition_t instead of
49206 struct grub_partition *. Cast DESC->START_CYLINDER to
49207 grub_uint64_t after converting the endian.
49208 (sun_partition_map_probe): Subtract 1 for PARTNUM.
49209 (sun_partition_map_get_name): Add 1 to P->INDEX.
49211 * partmap/pc.c (grub_partition_parse): Subtract 1 for
49213 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
49215 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
49216 zero instead of one.
49217 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
49218 (gpt_partition_map_get_name): Add 1 into P->INDEX.
49220 * partmap/apple.c (apple_partition_map_iterate): Change the type
49221 of POS to unsigned.
49222 (apple_partition_map_probe): Subtract 1 for PARTNUM.
49223 (apple_partition_map_get_name): Add 1 into P->INDEX.
49225 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
49226 of POS to unsigned.
49227 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
49228 calculate the offset of a partition.
49229 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
49230 (amiga_partition_map_get_name): Add 1 into P->INDEX.
49232 * partmap/acorn.c (acorn_partition_map_find): Change the type of
49233 SECTOR to grub_disk_addr_t.
49234 (acorn_partition_map_iterate): Likewise.
49235 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
49236 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
49238 (acorn_partition_map_get_name): Add 1 into P->INDEX.
49240 * kern/i386/pc/init.c (make_install_device): Add 1 into
49241 GRUB_INSTALL_DOS_PART.
49243 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
49246 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49248 Clean up the code to support 64-bit addressing in disks and
49249 files. This change is not enough for filesystems yet.
49251 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
49252 type of "start" to grub_uint64_t.
49253 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
49254 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
49255 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
49258 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
49259 to grub_disk_addr_t.
49261 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
49264 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49266 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
49269 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
49271 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
49273 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
49275 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
49276 to grub_off_t, to detect an error from grub_file_seek.
49277 (grub_multiboot_load_elf32): Likewise.
49279 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
49280 maximum unsigned long value when an overflow is detected.
49281 (grub_strtoull): New function.
49282 (grub_divmod64): Likewise.
49283 (grub_lltoa): use grub_divmod64.
49285 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
49287 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
49288 the pointer to next character. Use grub_strtoull instead of
49290 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
49291 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
49294 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
49295 return value is signed.
49296 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
49297 test if OFFSET is less than zero, as OFFSET is unsigned now.
49299 * kern/disk.c (struct grub_disk_cache): Change the type of
49300 "sector" to grub_disk_addr_t.
49301 (grub_disk_cache_get_index): Change the type of SECTOR to
49302 grub_disk_addr_t. Calculate the hash with SECTOR casted to
49303 unsigned after shifting.
49304 (grub_disk_cache_invalidate): Change the type of SECTOR to
49306 (grub_disk_cache_unlock): Likewise.
49307 (grub_disk_cache_store): Likewise.
49308 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
49309 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
49310 grub_disk_addr_t and grub_uint64_t, respectively.
49311 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
49312 body, as the value of OFFSET is tweaked by
49313 grub_disk_check_range. Change the types of START_SECTOR, LEN and
49314 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
49316 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
49317 body, as the value of OFFSET is tweaked by
49318 grub_disk_check_range. Change the types of LEN and N to
49321 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
49322 and "saved_offset" to grub_off_t.
49323 (test_header): Cast BUF to char *.
49324 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
49326 (grub_gzio_read): Change the types of OFFSET and SIZE to
49327 grub_off_t and grub_size_t, respectively.
49329 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
49331 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
49332 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
49333 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
49334 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
49335 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
49337 * include/grub/types.h (grub_off_t): Unconditionally set to
49339 (grub_disk_addr_t): Changed to grub_uint64_t.
49341 * include/grub/partition.h (struct grub_partition): Change the
49342 types of "start", "len" and "offset" to grub_disk_addr_t,
49343 grub_uint64_t and grub_disk_addr_t, respectively.
49344 (grub_partition_get_start): Return grub_disk_addr_t.
49345 (grub_partition_get_len): Return grub_uint64_t.
49347 * include/grub/misc.h (grub_strtoull): New prototype.
49348 (grub_divmod64): Likewise.
49350 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
49351 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
49352 grub_off_t, respectively.
49353 All callers and references changed.
49355 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
49356 grub_size_t in "read".
49357 All callers and references changed.
49359 * include/grub/file.h (struct grub_file): Change the types of
49360 "offset" and "size" to grub_off_t and grub_off_t,
49361 respectively. Change the type of SECTOR to grub_disk_addr_t in
49363 (grub_file_read): Change the type of LEN to grub_size_t.
49364 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
49366 (grub_file_size): Return grub_off_t.
49367 (grub_file_tell): Likewise.
49368 All callers and references changed.
49370 * include/grub/disk.h (struct grub_disk_dev): Change the types of
49371 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
49373 (struct grub_disk): Change the type of "total_sectors" to
49374 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
49376 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
49377 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
49378 (grub_disk_write): Likewise.
49379 All callers and references changed.
49381 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
49382 char * for grub_strncmp to silence gcc.
49383 (grub_iso9660_mount): Likewise.
49384 (grub_iso9660_mount): Likewise.
49385 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
49387 (grub_iso9660_iterate_dir): Likewise.
49388 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
49390 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
49391 LEN to grub_disk_addr_t and grub_size_t, respectively.
49393 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
49395 * fs/jfs.c (grub_jfs_read_file): Likewise.
49397 * fs/minix.c (grub_jfs_read_file): Likewise.
49399 * fs/sfs.c (grub_jfs_read_file): Likewise.
49401 * fs/ufs.c (grub_jfs_read_file): Likewise.
49403 * fs/xfs.c (grub_jfs_read_file): Likewise.
49405 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
49406 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
49409 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
49410 BLKNR to -1 instead of returning GRUB_ERRNO.
49411 (grub_ext2_read_file): Change the types of SECTOR and
49412 LEN to grub_disk_addr_t and grub_size_t, respectively.
49414 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
49415 LEN to grub_disk_addr_t and grub_size_t, respectively.
49417 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
49420 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
49421 string. Do not cast SECTOR explicitly.
49423 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
49424 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
49425 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
49426 grub_disk_addr_t and grub_size_t, respectively. If the sector is
49427 over 2TB and LBA mode is not supported, raise an error.
49428 (get_safe_sectors): New function.
49429 (grub_biosdisk_read): Use get_safe_sectors.
49430 (grub_biosdisk_write): Likewise.
49432 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
49433 (grub_efidisk_write): Likewise.
49435 * disk/loopback.c (delete_loopback): Cosmetic changes.
49436 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
49438 (grub_loopback_open): Likewise.
49439 (grub_loopback_read): Likewise. Also, change the type of POS to
49440 grub_off_t, and fix the usage of grub_memset.
49442 * commands/i386/pc/play.c: Include grub/machine/time.h.
49444 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
49447 * commands/configfile.c: Include grub/env.h.
49449 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
49450 GRUB_ERRNO directly instead. Change the type of POS to
49451 grub_off_t. Follow the coding standard.
49453 * commands/blocklist.c: Include grub/partition.h.
49454 (grub_cmd_blocklist): Return an error if the underlying device is
49455 not a disk. Take the starting sector of a partition into account,
49456 if a partition is used.
49458 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
49460 (lba_mode): Support 64-bit addresses.
49461 (chs_mode): Likewise.
49462 (copy_buffer): Adapted to the new offsets of a length field and a
49464 (blocklist_default_start): Allocate 64-bit space.
49466 * boot/i386/pc/boot.S (force_lba): Removed.
49467 (boot_drive): Moved to under KERNEL_SECTOR.
49468 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
49470 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
49472 (lba_mode): Refactored to support a 64-bit address. More size
49474 (setup_sectors): Likewise.
49476 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49478 * DISTLIST: Added include/grub/i386/linux.h. Removed
49479 include/grub/i386/pc/linux.h
49481 * configure.ac (AC_INIT): Bumped to 1.94.
49483 * config.guess: Updated from gnulib.
49484 * config.sub: Likewise.
49485 * install-sh: Likewise.
49486 * mkinstalldirs: Likewise.
49488 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49490 * conf/common.rmk (grub_modules_init.lst): Depended on
49491 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
49494 * genmk.rb (PModule::rule): Reverted the previous change.
49496 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49498 * conf/common.rmk (grub_modules_init.lst): Depends on
49499 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
49500 that the target does not exist before producing.
49501 (grub_modules_init.h): Remove the target before generating.
49502 (grub_emu_init.c): Likewise.
49504 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
49506 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
49508 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
49509 for the target-specific tests. Make sure that we also have the
49510 up-to-date target variables for those tests.
49512 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49514 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
49515 (PModule::rule): Likewise.
49517 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49519 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
49520 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
49521 target-specific flags should be prefixed.
49522 (PModule::rule): Likewise.
49524 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
49526 * configure.ac (CMP): Check if cmp is available explicitly.
49528 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
49530 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
49531 (target_cpu): New variable.
49532 (pkglibdir): Use target_cpu instead of host_cpu.
49534 * util/i386/pc/grub-install.in (host_cpu): Removed.
49535 (target_cpu): New variable.
49536 (pkglibdir): Use target_cpu instead of host_cpu.
49538 * util/genmoddep.c: Removed.
49540 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
49541 instead of GRUB_HOST_SIZEOF_VOID_P.
49542 * kern/dl.c: Likewise.
49544 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
49546 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49547 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49548 (GRUB_TARGET_SIZEOF_LONG): ... this.
49549 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49550 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49551 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49553 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49554 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49555 (GRUB_TARGET_SIZEOF_LONG): ... this.
49556 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49557 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49558 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49560 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49561 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49562 (GRUB_TARGET_SIZEOF_LONG): ... this.
49563 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49564 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49566 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
49567 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
49568 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
49569 instead of GRUB_HOST_SIZEOF_LONG.
49570 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
49571 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
49572 GRUB_CPU_WORDS_BIGENDIAN.
49573 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
49574 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
49577 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
49578 (genmoddep_SOURCES): Likewise.
49579 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
49580 (genmoddep_SOURCES): Likewise.
49581 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
49582 (genmoddep_SOURCES): Likewise.
49583 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
49585 (genmoddep_SOURCES): Likewise.
49587 * genmoddep.awk: New file.
49589 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
49590 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
49591 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
49592 (PModule::rule): Likewise.
49593 (Program::rule): Likewise.
49594 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
49595 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
49598 * configure.ac: Rewritten intensively to use host and target
49599 instead of build and host, respectively.
49601 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
49602 (host_cpu): Removed.
49603 (target_cpu): New variable.
49604 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
49605 (BUILD_CC): Removed.
49606 (BUILD_CFLAGS): Likewise.
49607 (BUILD_CPPFLAGS): Likewise.
49608 (TARGET_CC): New variable.
49609 (TARGET_CFLAGS): Likewise.
49610 (TARGET_CPPFLAGS): Likewise.
49611 (TARGET_LDFLAGS): Likewise.
49613 (include): Use target_cpu instead of host_cpu.
49614 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
49616 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
49618 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
49620 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
49621 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
49622 field 'false' to 'exec_on_false'.
49623 (grub_script_create_cmdif): Renamed argument names to reflect above
49626 * normal/execute.c (grub_script_execute_cmdif): Likewise.
49628 * normal/script.c (grub_script_create_cmdif): Likewise.
49630 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
49632 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
49634 (grub_hfsplus_btree_recptr): Likewise.
49635 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
49636 FILEBLOCK both to pass a block number and store next block
49638 (grub_hfsplus_read_block): Rewritten heavily to support an extent
49639 overflow file correctly. Specify errors appropriately, because
49640 fshelp expects that GRUB_ERRNO is set when fails. Reuse
49641 grub_hfsplus_btree_recptr to get the pointer to a found key.
49642 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
49645 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
49647 (_linux_mod_SOURCES): New variable.
49648 (_linux_mod_CFLAGS): Likewise.
49649 (_linux_mod_LDFLAGS): Likewise.
49650 (linux_mod_SOURCES): Likewise.
49651 (linux_mod_CFLAGS): Likewise.
49652 (linux_mod_LDFLAGS): Likewise.
49654 * DISTLIST: Added loader/i386/efi/linux.c,
49655 loader/i386/efi/linux_normal.c and
49656 include/grub/i386/efi/loader.h.
49658 * loader/i386/efi/linux.c: New file.
49659 * loader/i386/efi/linux_normal.c: Likewise.
49660 * include/grub/i386/efi/loader.h: Likewise.
49662 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
49664 * commands/blocklist.c: New file.
49666 * DISTLIST: Added commands/blocklist.c.
49668 * term/efi/console.c (grub_console_highlight_color): Use a lighter
49669 color for the background, and a darker color for the foreground.
49670 (grub_console_checkkey): Return READ_KEY.
49671 (grub_console_cls): Set the background to
49672 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
49674 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
49676 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
49677 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
49679 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
49682 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
49683 BG. The spec is wrong again.
49685 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
49687 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
49689 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49690 commands/blocklist.c.
49691 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49693 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
49694 (blocklist_mod_SOURCES): New variable.
49695 (blocklist_mod_CFLAGS): Likewise.
49696 (blocklist_mod_LDFLAGS): Likewise.
49698 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
49700 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
49702 (lba_mode): Use %eax more intensively to reduce the code size.
49704 2006-05-20 Marco Gerards <marco@gnu.org>
49706 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
49708 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
49710 (script): Accept leading newlines.
49711 (newlines): New rule to describe 0 or more newlines.
49712 (commands): Accept `command' with trailing newline. Fixed the
49713 order in which arguments were passed to `grub_script_add_cmd'.
49714 Accept commands separated by newlines.
49715 (function): Changed to accept newlines.
49716 (menuentry) Rewritten.
49718 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
49719 front of the list, instead of to the end.
49721 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
49723 * util/i386/pc/grub-install.in (bindir): New variable.
49724 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
49725 Shaver <lbgwjl@gmail.com>.
49727 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
49729 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
49730 grub/machine/linux.h
49731 * loader/i386/pc/linux.c: Likewise.
49733 * include/grub/i386/pc/linux.h: Moved to ...
49734 * include/grub/i386/linux.h: ... here.
49736 * include/grub/i386/linux.h (struct linux_kernel_params): New
49739 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
49741 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
49743 (grub_video_vbe_blit_glyph): Likewise.
49744 (grub_video_vbe_blit_bitmap): Likewise.
49745 (grub_video_vbe_blit_render_target): Likewise.
49747 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
49749 * configure.ac (--with-platform): Properly quote the square
49752 2006-05-08 Marco Gerards <marco@gnu.org>
49754 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
49756 (kernel_elf_HEADERS): ...to this. Updated all users.
49757 (grubof_symlist.c): Renamed from this...
49758 (kernel_elf_symlist.c): ...to this. Updated all users.
49759 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49760 (grubof_SOURCES): Renamed from this...
49761 (kernel_elf_SOURCES): ...to this.
49762 (grubof_HEADERS): Renamed from this...
49763 (kernel_elf_HEADERS): ...to this.
49764 (grubof_CFLAGS): Renamed from this...
49765 (kernel_elf_CFLAGS): ...to this.
49766 (grubof_ASFLAGS): Renamed from this...
49767 (kernel_elf_ASFLAGS): ...to this.
49768 (grubof_LDFLAGS): Renamed from this...
49769 (kernel_elf_LDFLAGS): ...to this.
49771 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49773 (kernel_elf_HEADERS): ...to this. Updated all users.
49774 (grubof_symlist.c): Renamed from this...
49775 (kernel_elf_symlist.c): ...to this. Updated all users.
49776 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49777 (grubof_SOURCES): Renamed from this...
49778 (kernel_elf_SOURCES): ...to this.
49779 (grubof_HEADERS): Renamed from this...
49780 (kernel_elf_HEADERS): ...to this.
49781 (grubof_CFLAGS): Renamed from this...
49782 (kernel_elf_CFLAGS): ...to this.
49783 (grubof_ASFLAGS): Renamed from this...
49784 (kernel_elf_ASFLAGS): ...to this.
49785 (grubof_LDFLAGS): Renamed from this...
49786 (kernel_elf_LDFLAGS): ...to this.
49788 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49789 `kernel.elf' instead of `grubof'.
49791 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49793 Add --with-platform to configure. Use pkglibdir instead of
49794 pkgdatadir. This is reported by Roger Leigh.
49796 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49797 (host_vendor): Likewise.
49798 (host_os): Likewise.
49799 (pkgdatadir): Likewise.
49800 (platform): New variable.
49801 (pkglibdir): Likewise.
49802 Use PKGLIBDIR instead of PKGDATADIR.
49804 * util/i386/pc/grub-install.in (datadir): Removed.
49805 (host_vendor): Likewise.
49806 (host_os): Likewise.
49807 (pkgdatadir): Likewise.
49808 (platform): New variable.
49809 (pkglibdir): Likewise.
49810 Use PKGLIBDIR instead of PKGDATADIR.
49812 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49813 instead of GRUB_DATADIR.
49815 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49817 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49820 * configure.ac (--with-platform): New option.
49821 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49823 * Makefile.in: Include a makefile based on PLATFORM instead of
49825 (pkgdatadir): Not appended by the machine type.
49826 (pkglibdir): Appended by the machine type.
49827 (host_vendor): Removed.
49828 (platform): New variable.
49829 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49830 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49831 (uninstall): Likewise.
49833 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49835 Use the environment context in the menu. Remove the commands
49836 "default" and "timeout", and use variables instead.
49838 * normal/menu.c: Include grub/env.h.
49839 (print_entry): Cast TITLE to silence gcc.
49840 (get_timeout): New function.
49841 (set_timeout): Likewise.
49842 (get_entry_number): Likewise.
49843 (run_menu): Use a default entry, a fallback entry and a timeout
49844 in the environment variables "default", "fallback" and
49845 "timeout". Also, tweak the default entry if it is not within the
49846 current menu entries.
49847 (grub_menu_run): Use a fallback entry in the environment variable
49850 * normal/main.c (read_config_file): Do not initialize
49851 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
49853 (grub_normal_execute): Use a data slot to store the menu.
49855 * include/grub/normal.h (struct grub_menu): Removed default_entry,
49856 fallback_entry and timeout.
49857 (struct grub_menu_list): Removed.
49858 (grub_menu_list_t): Likewise.
49859 (struct grub_context): Likewise.
49860 (grub_context_t): Likewise.
49861 (grub_context_get): Likewise.
49862 (grub_context_get_current_menu): Likewise.
49863 (grub_context_push_menu): Likewise.
49864 (grub_context_pop_menu): Likewise.
49865 (grub_default_init): Likewise.
49866 (grub_default_fini): Likewise.
49867 (grub_timeout_init): Likewise.
49868 (grub_timeout_fini): Likewise.
49870 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
49872 (normal_mod_SOURCES): Removed normal/context.c.
49874 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
49875 commands/default.c, commands/timeout.c and normal/context.c.
49876 (normal_mod_SOURCES): Removed normal/context.c.
49878 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
49879 commands/timeout.c and normal/context.c.
49880 (normal_mod_SOURCES): Removed normal/context.c.
49882 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
49883 commands/default.c, commands/timeout.c and normal/context.c.
49884 (normal_mod_SOURCES): Removed normal/context.c.
49886 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
49888 (default_mod_SOURCES): Removed.
49889 (default_mod_CFLAGS): Likewise.
49890 (default_mod_LDFLAGS): Likewise.
49891 (timeout_mod_SOURCES): Removed.
49892 (timeout_mod_CFLAGS): Likewise.
49893 (timeout_mod_LDFLAGS): Likewise.
49895 * DISTLIST: Removed commands/default.c, commands/timeout.c and
49898 * commands/default.c: Removed.
49899 * commands/timeout.c: Likewise.
49900 * normal/context.c: Likewise.
49902 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
49904 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
49906 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
49908 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
49909 "next" to "prev" for readability.
49910 (struct grub_env_sorted_var): New struct.
49911 (grub_env_context): Renamed to ...
49912 (initial_context): ... this.
49913 (grub_env_var_context): Renamed to ...
49914 (current_context): ... this.
49915 (grub_env_find): Look only at CURRENT_CONTEXT.
49916 (grub_env_context_open): Rewritten to copy exported variables from
49918 (grub_env_context_close): Rewritten according to the new
49919 scheme. Also, add an assertion to prevent the initial context from
49921 (grub_env_insert): Removed the code for the sorted list.
49922 (grub_env_remove): Likewise.
49923 (grub_env_export): Simply mark the variable with
49924 GRUB_ENV_VAR_GLOBAL.
49925 (grub_env_set): A cosmetic change for naming consistency.
49926 (grub_env_get): Likewise.
49927 (grub_env_unset): Likewise.
49928 (grub_env_iterate): Rewritten to sort variables within this
49930 (grub_register_variable_hook): Fixed for naming consistency. Call
49931 grub_env_find again, only if NAME is not found at the first time.
49932 (mangle_data_slot_name): New function.
49933 (grub_env_set_data_slot): Likewise.
49934 (grub_env_get_data_slot): Likewise.
49935 (grub_env_unset_data_slot): Likewise.
49937 * include/grub/env.h (grub_env_var_type): New enum.
49938 (GRUB_ENV_VAR_LOCAL): New constant.
49939 (GRUB_ENV_VAR_GLOBAL): Likewise.
49940 (GRUB_ENV_VAR_DATA): Likewise.
49941 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
49943 (grub_env_set): Replace VAR with NAME for consistency.
49944 (grub_register_variable_hook): Likewise.
49945 (grub_env_export): Specify the name of the argument.
49946 (grub_env_set_data_slot): New prototype.
49947 (grub_env_get_data_slot): Likewise.
49948 (grub_env_unset_data_slot): Likewise.
49950 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49952 Extend the loader so that GRUB can accept a loader which comes
49953 back to GRUB when a loaded image exits. Also, this change adds
49954 support for a chainloader on EFI.
49956 * term/efi/console.c: Include grub/misc.h.
49957 (grub_console_checkkey): Display a scan code on the top for
49958 debugging. This will be removed once the EFI port gets stable.
49959 Correct the scan code mapping.
49961 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
49962 allocate memory from larger regions, in order to reduce the number
49963 of allocated regions. Otherwise, the MacOSX loader panics.
49964 (filter_memory_map): Avoid less than 1MB for compatibility with
49966 (add_memory_regions): Allocate from the tail of a region, if
49967 possible, to avoid allocating a region near to 1MB, for the MacOSX
49970 * kern/efi/init.c (grub_efi_set_prefix): Specify
49971 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
49973 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
49974 argument IMAGE_HANDLE and specify it to get a loaded image.
49975 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
49976 grub_efi_get_loaded_image.
49977 (grub_efi_get_filename): Divide the length by the size of
49979 (grub_efi_get_device_path): New function.
49980 (grub_efi_print_device_path): Print End Device Path nodes. Divide
49981 the length by the size of grub_efi_char16_t for a file path device
49984 * kern/loader.c (grub_loader_noreturn): New variable.
49985 (grub_loader_set): Accept a new argument NORETURN. Set
49986 GRUB_LOADER_NORETURN to NORETURN.
49987 All callers changed.
49988 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
49991 * include/grub/efi/efi.h (grub_efi_get_device_path): New
49993 (grub_efi_get_loaded_image): Take an argument to specify an image
49996 * include/grub/loader.h (grub_loader_set): Added one more argument
49999 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
50000 instead of grub_efi_open_protocol.
50001 (grub_efidisk_get_device_name): Likewise.
50002 (grub_efidisk_close): Print a newline.
50003 (grub_efidisk_get_device_handle): Fixed to use
50004 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
50005 GRUB_EFI_DEVICE_PATH_TYPE.
50007 * disk/efi/efidisk.c (device_path_guid): Moved to ...
50008 * kern/efi/efi.c (device_path_guid): ... here.
50010 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
50012 (kernel_mod_HEADERS): Added efi/disk.h.
50013 (_chain_mod_SOURCES): New variable.
50014 (_chain_mod_CFLAGS): Likewise.
50015 (_chain_mod_LDFLAGS): Likewise.
50016 (chain_mod_SOURCES): Likewise.
50017 (chain_mod_CFLAGS): Likewise.
50018 (chain_mod_LDFLAGS): Likewise.
50020 * DISTLIST: Added include/grub/efi/chainloader.h,
50021 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
50023 * include/grub/efi/chainloader.h: New file.
50024 * loader/efi/chainloader.c: Likewise.
50025 * loader/efi/chainloader_normal.c: Likewise.
50027 2006-04-30 Marco Gerards <marco@gnu.org>
50029 * commands/configfile.c (grub_cmd_source): New function.
50030 (GRUB_MOD_INIT): Register the commands `source' and `.'.
50031 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
50033 2006-04-30 Marco Gerards <marco@gnu.org>
50035 * normal/execute.c (grub_script_execute_cmd): Change the return
50036 type to `grub_err_t'. Correctly return the error.
50037 (grub_script_execute_cmdline): In case a command line is not a
50038 command or a function, try to interpret it as an assignment.
50040 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
50042 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
50043 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
50044 skip a node whose name is obviously invalid as UTF-16,
50045 i.e. contains a NUL character. Stop the iteration when the last
50046 directory entry is found. Instead of using the return value of
50047 grub_hfsplus_btree_iterate_node, store the value in RET and use
50048 it, because the iterator can be stopped by the last directory
50051 2006-04-30 Marco Gerards <marco@gnu.org>
50053 * include/grub/env.h (grub_env_export): New prototype. Reported
50054 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
50056 2006-04-30 Marco Gerards <marco@gnu.org>
50058 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
50059 size of the extents in a catalog file record.
50061 2006-04-29 Marco Gerards <marco@gnu.org>
50063 * commands/configfile.c (grub_cmd_configfile): Execute the
50064 configfile within its own context.
50066 * include/grub/env.h (grub_env_context_open): New prototype.
50067 (grub_env_context_close): Likewise.
50069 * kern/env.c (grub_env): Removed.
50070 (grub_env_sorted): Likewise.
50071 (grub_env_context): New variable.
50072 (grub_env_var_context): Likewise.
50073 (grub_env_find): Search both the active context and the global
50075 (grub_env_context_open): New function.
50076 (grub_env_context_close): Likewise.
50077 (grub_env_insert): Likewise.
50078 (grub_env_remove): Likewise.
50079 (grub_env_export): Likewise.
50080 (grub_env_set): Changed to use helper functions to avoid code
50082 (grub_env_iterate): Rewritten so both the current context and the
50083 global context are being used.
50085 * normal/command.c (export_command): New function.
50086 (grub_command_init): Register the `export' function.
50088 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
50090 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
50091 explicitly to suppress gcc's warnings.
50092 * fs/fat.c (grub_fat_find_dir): Likewise.
50093 (grub_fat_label): Likewise.
50094 * fs/xfs.c (grub_xfs_read_inode): Likewise.
50095 (grub_xfs_mount): Likewise.
50096 (grub_xfs_label): Likewise.
50097 * fs/affs.c (grub_affs_mount): Likewise.
50098 (grub_affs_label): Likewise.
50099 (grub_affs_iterate_dir): Likewise.
50100 * fs/sfs.c (grub_sfs_mount): Likewise.
50101 (grub_sfs_iterate_dir): Likewise.
50102 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
50103 * fs/hfs.c (grub_hfs_mount): Likewise.
50104 (grub_hfs_cmp_catkeys): Likewise.
50105 (grub_hfs_find_dir): Likewise.
50106 (grub_hfs_dir): Likewise.
50107 (grub_hfs_label): Likewise.
50108 * fs/jfs.c (grub_jfs_mount): Likewise.
50109 (grub_jfs_opendir): Likewise.
50110 (grub_jfs_getent): Likewise.
50111 (grub_jfs_lookup_symlink): Likewise.
50112 (grub_jfs_label): Likewise.
50113 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
50114 (grub_hfsplus_iterate_dir): Likewise.
50115 (grub_hfsplus_btree_iterate_node): Made static.
50117 * util/grub-emu.c (prefix): New variable.
50118 (grub_machine_set_prefix): New function.
50119 (main): Do not set the environment variable "prefix" here. Only
50120 set PREFIX, which is used later by grub_machine_set_prefix.
50122 * include/grub/video.h: Do not include grub/symbol.h.
50123 (grub_video_register): Not exported. This symbol is not defined in
50125 (grub_video_unregister): Likewise.
50126 (grub_video_iterate): Likewise.
50127 (grub_video_setup): Likewise.
50128 (grub_video_restore): Likewise.
50129 (grub_video_get_info): Likewise.
50130 (grub_video_get_blit_format): Likewise.
50131 (grub_video_set_palette): Likewise.
50132 (grub_video_get_palette): Likewise.
50133 (grub_video_set_viewport): Likewise.
50134 (grub_video_get_viewport): Likewise.
50135 (grub_video_map_color): Likewise.
50136 (grub_video_map_rgb): Likewise.
50137 (grub_video_map_rgba): Likewise.
50138 (grub_video_fill_rect): Likewise.
50139 (grub_video_blit_glyph): Likewise.
50140 (grub_video_blit_bitmap): Likewise.
50141 (grub_video_blit_render_target): Likewise.
50142 (grub_video_scroll): Likewise.
50143 (grub_video_swap_buffers): Likewise.
50144 (grub_video_create_render_target): Likewise.
50145 (grub_video_delete_render_target): Likewise.
50146 (grub_video_set_active_render_target): Likewise.
50148 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
50150 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
50152 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
50153 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50154 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50155 instead of $(srcdir)/genkernsyms.sh.
50157 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
50158 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50159 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50160 instead of $(srcdir)/genkernsyms.sh.
50162 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
50163 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50164 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50165 instead of $(srcdir)/genkernsyms.sh.
50167 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
50168 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50169 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50170 instead of $(srcdir)/genkernsyms.sh.
50172 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
50175 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
50177 (gensymlist.sh): New target.
50178 (genkernsyms.sh): Likewise.
50180 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
50181 genkernsyms.sh.in and gensymlist.sh.in.
50183 * genkernsyms.sh: Removed.
50184 * gensymlist.sh: Likewise.
50186 * genkernsyms.sh.in: New file.
50187 * gensymlist.sh.in: Likewise.
50189 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50191 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
50192 clobber "prefix", since we may have already set it manually.
50194 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50196 * kern/misc.c (abort): New alias for grub_abort.
50198 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
50200 A new machine-specific function "grub_machine_set_prefix" is
50201 defined. This is called after loading modules, so that a prefix
50202 initialization can use modules. Also, this change adds an
50203 intensive debugging feature for the memory manager via the
50204 configure option "--enable-mm-debug".
50206 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
50209 * kern/sparc64/ieee1275/init.c (abort): Removed.
50210 (grub_stop): Likewise.
50211 (grub_exit): New function.
50212 (grub_set_prefix): Renamed to ...
50213 (grub_machine_set_prefix): ... this.
50214 (grub_machine_init): Do not call grub_set_prefix.
50216 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
50217 (grub_machine_set_prefix): ... this.
50218 (grub_machine_init): Do not call grub_set_prefix.
50220 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
50221 (grub_machine_init): Do not set the prefix here.
50223 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
50225 * kern/efi/init.c: Include grub/mm.h.
50226 (grub_efi_set_prefix): New function.
50228 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
50229 (grub_efi_get_filename): New function.
50230 (grub_print_device_path): Renamed to ...
50231 (grub_efi_print_device_path): ... this.
50233 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
50234 [MM_DEBUG] (grub_realloc): Likewise.
50235 [MM_DEBUG] (grub_free): Likewise.
50236 [MM_DEBUG] (grub_memalign): Likewise.
50237 [MM_DEBUG] (grub_mm_debug): New variable.
50238 [MM_DEBUG] (grub_debug_malloc): New function.
50239 [MM_DEBUG] (grub_debug_free): New function.
50240 [MM_DEBUG] (grub_debug_realloc): New function.
50241 [MM_DEBUG] (grub_debug_memalign): New function.
50243 * kern/misc.c (grub_abort): Print a newline to distinguish
50246 * kern/main.c (grub_main): Call grub_machine_set_prefix and
50247 grub_set_root_dev after loading modules. This is necessary when
50248 setting a prefix depends on modules.
50250 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
50251 (grub_efi_print_device_path): ... this.
50252 (grub_efi_get_filename): New prototype.
50253 (grub_efi_set_prefix): Likewise.
50255 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
50257 (grub_efidisk_get_device_handle): New prototype.
50258 (grub_efidisk_get_device_name): Likewise.
50260 * include/grub/mm.h: Include config.h.
50261 (MM_DEBUG): Removed.
50262 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
50263 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
50264 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
50265 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
50266 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
50267 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
50268 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
50269 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
50270 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
50272 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
50274 * disk/efi/efidisk.c: Include grub/partition.h.
50275 (iterate_child_devices): New function.
50276 (add_device): First, compare only last device path nodes, so that
50277 devices are sorted by the types.
50278 (grub_efidisk_get_device_handle): New function.
50279 (grub_efidisk_get_device_name): Likewise.
50281 * configure.ac (--enable-mm-debug): New option to enable the
50282 memory manager debugging feature. This makes the binary much
50283 bigger, so is disabled by default.
50285 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
50287 Use grub_abort instead of grub_stop, and grub_exit must be
50288 define in each architecture now. Also, this change adds support
50291 * util/i386/pc/grub-probefs.c: Include grub/term.h.
50292 (grub_getkey): New function.
50293 (grub_term_get_current): Likewise.
50295 * util/i386/pc/grub-setup.c: Include grub/term.h.
50296 (grub_getkey): New function.
50297 (grub_term_get_current): Likewise.
50299 * util/misc.c (grub_stop): Renamed to ...
50300 (grub_exit): ... this.
50302 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
50303 (grub_exit): ... this.
50304 (grub_machine_init): Use grub_abort instead of abort.
50305 (grub_stop): Removed.
50307 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
50310 * kern/i386/pc/startup.S (grub_exit): New function.
50311 (cold_reboot): New label.
50313 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
50314 (grub_efi_init): Call grub_efidisk_init.
50315 (grub_efi_fini): Call grub_efidisk_fini.
50317 * kern/efi/efi.c: Include grub/mm.h.
50318 (grub_efi_console_control_guid): Renamed to ...
50319 (console_control_guid): ... this.
50320 (grub_efi_loaded_image_guid): Renamed to ...
50321 (loaded_image_guid): ... this.
50322 (grub_efi_locate_handle): New function.
50323 (grub_efi_open_protocol): Likewise.
50324 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
50325 GRUB_EFI_CONSOLE_CONTROL_GUID.
50326 (grub_efi_exit): Removed.
50327 (grub_stop): Likewise.
50328 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
50329 (grub_exit): New function.
50330 (grub_print_device_path): Likewise.
50332 * kern/rescue.c (grub_rescue_cmd_exit): New function.
50333 (grub_enter_rescue_mode): Register "exit".
50335 * kern/misc.c (grub_real_dprintf): A cosmetic change.
50336 (grub_abort): New function.
50338 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
50340 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
50342 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
50344 * include/grub/efi/efi.h (grub_efi_exit): Removed.
50345 (grub_print_device_path): New prototype.
50346 (grub_efi_locate_handle): Likewise.
50347 (grub_efi_open_protocol): Likewise.
50349 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
50350 * disk/efi/efidisk.c: Likewise.
50352 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
50354 * include/grub/efi/console_control.h
50355 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
50357 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
50358 last 8 bytes as an array.
50359 (GRUB_EFI_DISK_IO_GUID): New macro.
50360 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
50361 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
50362 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
50364 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
50365 (struct grub_efi_device_path): Rename the member "sub_type" to
50367 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
50368 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
50369 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
50370 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
50371 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
50372 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
50373 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
50374 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
50375 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
50376 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
50377 (struct grub_efi_pci_device_path): New structure.
50378 (grub_efi_pci_device_path_t): New type.
50379 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
50380 (struct grub_efi_pccard_device_path): New structure.
50381 (grub_efi_pccard_device_path_t): New type.
50382 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
50383 (struct grub_efi_memory_mapped_device_path): New structure.
50384 (grub_efi_memory_mapped_device_path_t): New type.
50385 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
50386 (struct grub_efi_vendor_device_path): New structure.
50387 (grub_efi_vendor_device_path_t): New type.
50388 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
50389 (struct grub_efi_controller_device_path): New structure.
50390 (grub_efi_controller_device_path_t): New type.
50391 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
50392 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
50393 (struct grub_efi_acpi_device_path): New structure.
50394 (grub_efi_acpi_device_path_t): New type.
50395 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
50396 (struct grub_efi_expanded_acpi_device_path): New structure.
50397 (grub_efi_expanded_acpi_device_path_t): New type.
50398 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
50399 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
50400 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
50401 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
50402 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
50403 (struct grub_efi_atapi_device_path): New structure.
50404 (grub_efi_atapi_device_path_t): New type.
50405 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
50406 (struct grub_efi_fibre_channel_device_path): New structure.
50407 (grub_efi_fibre_channel_device_path_t): New type.
50408 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
50409 (struct grub_efi_1394_device_path): New structure.
50410 (grub_efi_1394_device_path_t): New type.
50411 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
50412 (struct grub_efi_usb_device_path): New structure.
50413 (grub_efi_usb_device_path_t): New type.
50414 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
50415 (struct grub_efi_usb_class_device_path): New structure.
50416 (grub_efi_usb_class_device_path_t): New type.
50417 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
50418 (struct grub_efi_i2o_device_path): New structure.
50419 (grub_efi_i2o_device_path_t): New type.
50420 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
50421 (struct grub_efi_mac_address_device_path): New structure.
50422 (grub_efi_mac_address_device_path_t): New type.
50423 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
50424 (struct grub_efi_ipv4_device_path): New structure.
50425 (grub_efi_ipv4_device_path_t): New type.
50426 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
50427 (struct grub_efi_ipv6_device_path): New structure.
50428 (grub_efi_ipv6_device_path_t): New type.
50429 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
50430 (struct grub_efi_infiniband_device_path): New structure.
50431 (grub_efi_infiniband_device_path_t): New type.
50432 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
50433 (struct grub_efi_uart_device_path): New structure.
50434 (grub_efi_uart_device_path_t): New type.
50435 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
50436 (struct grub_efi_vendor_messaging_device_path): New structure.
50437 (grub_efi_vendor_messaging_device_path_t): New type.
50438 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
50439 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
50440 (struct grub_efi_hard_drive_device_path): New structure.
50441 (grub_efi_hard_drive_device_path_t): New type.
50442 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
50443 (struct grub_efi_cdrom_device_path): New structure.
50444 (grub_efi_cdrom_device_path_t): New type.
50445 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
50446 (struct grub_efi_vendor_media_device_path): New structure.
50447 (grub_efi_vendor_media_device_path_t): New type.
50448 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
50449 (struct grub_efi_file_path_device_path): New structure.
50450 (grub_efi_file_path_device_path_t): New type.
50451 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
50452 (struct grub_efi_protocol_device_path): New structure.
50453 (grub_efi_protocol_device_path_t): New type.
50454 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
50455 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
50456 (struct grub_efi_bios_device_path): New structure.
50457 (grub_efi_bios_device_path_t): New type.
50458 (struct grub_efi_disk_io): New structure.
50459 (grub_efi_disk_io_t): New type.
50460 (struct grub_efi_block_io_media): New structure.
50461 (grub_efi_block_io_media_t): New type.
50462 (struct grub_efi_block_io): New structure.
50463 (grub_efi_block_io_t): New type.
50465 * include/grub/misc.h (grub_stop): Removed.
50466 (grub_exit): New prototype.
50467 (grub_abort): Likewise.
50469 * include/grub/disk.h (enum grub_disk_dev_id): Added
50470 GRUB_DISK_DEVICE_EFIDISK_ID.
50472 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
50473 disk/efi/efidisk.c.
50474 (kernel_syms.lst): Remove the target if an error occurs.
50476 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
50478 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
50479 as it was simply too buggy.
50481 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
50483 * kern/misc.c (grub_lltoa): New function.
50484 (grub_vsprintf): Added support for the long long suffix,
50487 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
50489 * Makefile.in (LDFLAGS): Add variable.
50490 (LD): Remove variable.
50491 * configure.ac: Add -m32 to LDFLAGS.
50492 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
50493 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
50494 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
50495 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
50496 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
50498 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
50499 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
50500 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
50502 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
50504 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
50505 length for unknown glyph.
50507 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50509 Add support for pre-loaded modules into the EFI port.
50511 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
50512 completely. Accept one more argument DIR. The caller has changed.
50514 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
50516 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
50517 (grub_efi_loaded_image_guid): New variable.
50518 (grub_efi_get_loaded_image): New function.
50519 (grub_arch_modules_addr): Likewise.
50521 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
50524 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
50525 (struct grub_efi_loaded_image): New structure.
50526 (grub_efi_loaded_image_t): New type.
50528 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50530 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
50531 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
50532 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
50534 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
50536 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
50538 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
50540 * DISTLIST: Added include/grub/efi/console.h,
50541 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
50542 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50544 * include/grub/efi/console.h: New file.
50545 * include/grub/efi/time.h: Likewise.
50546 * include/grub/i386/efi/kernel.h: Likewise.
50547 * kern/efi/init.c: Likewise.
50548 * kern/efi/mm.c: Likewise.
50549 * term/efi/console.c: Likewise.
50551 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
50552 (grub_stop): Removed.
50553 (grub_get_rtc): Likewise.
50554 (grub_machine_init): Simply call grub_efi_init.
50555 (grub_machine_fini): Call grub_efi_fini.
50557 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
50558 (grub_efi_output_string): Removed.
50559 (grub_efi_stall): New function.
50560 (grub_stop): Likewise.
50561 (grub_get_rtc): Likewise.
50563 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
50564 (grub_efi_stall): New prototype.
50565 (grub_efi_allocate_pages): Likewise.
50566 (grub_efi_free_pages): Likewise.
50567 (grub_efi_get_memory_map): Likewise.
50568 (grub_efi_mm_init): Likewise.
50569 (grub_efi_mm_fini): Likewise.
50570 (grub_efi_init): Likewise.
50571 (grub_efi_fini): Likewise.
50573 * include/grub/i386/efi/time.h: Do not include
50574 grub/symbol.h. Include grub/efi/time.h.
50575 (GRUB_TICKS_PER_SECOND): Removed.
50576 (grub_get_rtc): Likewise.
50578 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
50579 Added padding. The EFI spec is buggy.
50580 (GRUB_EFI_BLACK): New macro.
50581 (GRUB_EFI_BLUE): Likewise.
50582 (GRUB_EFI_GREEN): Likewise.
50583 (GRUB_EFI_CYAN): Likewise.
50584 (GRUB_EFI_RED): Likewise.
50585 (GRUB_EFI_MAGENTA): Likewise.
50586 (GRUB_EFI_BROWN): Likewise.
50587 (GRUB_EFI_LIGHTGRAY): Likewise.
50588 (GRUB_EFI_BRIGHT): Likewise.
50589 (GRUB_EFI_DARKGRAY): Likewise.
50590 (GRUB_EFI_LIGHTBLUE): Likewise.
50591 (GRUB_EFI_LIGHTGREEN): Likewise.
50592 (GRUB_EFI_LIGHTCYAN): Likewise.
50593 (GRUB_EFI_LIGHTRED): Likewise.
50594 (GRUB_EFI_LIGHTMAGENTA): Likewise.
50595 (GRUB_EFI_YELLOW): Likewise.
50596 (GRUB_EFI_WHITE): Likewise.
50597 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
50598 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
50599 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
50600 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
50601 (GRUB_EFI_BACKGROUND_RED): Likewise.
50602 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
50603 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
50604 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
50605 (GRUB_EFI_TEXT_ATTR): Likewise.
50607 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
50608 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50609 (kernel_mod_HEADERS): Added efi/time.h.
50611 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
50613 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
50614 include/grub/efi/api.h, include/grub/efi/console_control.h,
50615 include/grub/efi/efi.h, include/grub/efi/pe32.h,
50616 include/grub/i386/efi/time.h, kern/efi/efi.c,
50617 kern/i386/efi/init.c, kern/i386/efi/startup.S,
50618 and util/i386/efi/grub-mkimage.c.
50620 * Makefile.in (RMKFILES): Added i386-efi.rmk.
50622 * genmk.rb (PModule#rule): Do not export symbols if
50623 #{prefix}_EXPORTS is set to "no".
50625 * conf/i386-efi.mk: New file.
50626 * conf/i386-efi.rmk: Likewise.
50627 * include/grub/efi/api.h: Likewise.
50628 * include/grub/efi/console_control.h: Likewise.
50629 * include/grub/efi/efi.h: Likewise.
50630 * include/grub/efi/pe32.h: Likewise.
50631 * include/grub/i386/efi/time.h: Likewise.
50632 * kern/efi/efi.c: Likewise.
50633 * kern/i386/efi/init.c: Likewise.
50634 * kern/i386/efi/startup.S: Likewise.
50635 * util/i386/efi/grub-mkimage.c: Likewise.
50637 2006-04-17 Marco Gerards <marco@gnu.org>
50639 * include/grub/script.h: Include <grub/parser.h> and
50640 "grub_script.tab.h".
50641 (struct grub_lexer_param): New struct.
50642 (struct grub_parser_param): Likewise.
50643 (grub_script_create_arglist): Pass the state in an argument.
50644 (grub_script_add_arglist): Likewise.
50645 (grub_script_create_cmdline): Likewise.
50646 (grub_script_create_cmdblock): Likewise.
50647 (grub_script_create_cmdif): Likewise.
50648 (grub_script_create_cmdmenu): Likewise.
50649 (grub_script_add_cmd): Likewise.
50650 (grub_script_arg_add): Likewise.
50651 (grub_script_lexer_ref): Likewise.
50652 (grub_script_lexer_deref): Likewise.
50653 (grub_script_lexer_record_start): Likewise.
50654 (grub_script_lexer_record_stop): Likewise.
50655 (grub_script_mem_record): Likewise.
50656 (grub_script_mem_record_stop): Likewise.
50657 (grub_script_malloc): Likewise.
50658 (grub_script_yylex): Likewise.
50659 (grub_script_yyparse): Likewise.
50660 (grub_script_yyerror): Likewise.
50661 (grub_script_yylex): Likewise.
50662 (grub_script_lexer_init): Return the state.
50664 * normal/lexer.c (grub_script_lexer_state): Removed variable.
50665 (grub_script_lexer_done): Likewise.
50666 (grub_script_lexer_getline): Likewise.
50667 (grub_script_lexer_refs): Likewise.
50668 (script): Likewise.
50669 (newscript): Likewise.
50670 (record): Likewise.
50671 (recording): Likewise.
50672 (recordpos): Likewise.
50673 (recordlen): Likewise.
50674 (grub_script_lexer_init): Return the state instead of setting
50676 (grub_script_lexer_ref): Use the newly added argument for state
50677 instead of globals.
50678 (grub_script_lexer_deref): Likewise.
50679 (grub_script_lexer_record_start): Likewise.
50680 (grub_script_lexer_record_stop): Likewise.
50681 (recordchar): Likewise.
50682 (nextchar): Likewise.
50683 (grub_script_yylex2): Likewise.
50684 (grub_script_yylex): Likewise.
50685 (grub_script_yyerror): Likewise.
50687 * normal/parser.y (func_mem): Removed variable.
50688 (menu_entry): Likewise.
50690 (%lex-param): New parser option.
50691 (%parse-param): Likewise.
50692 (script): Always return the AST.
50693 (argument): Pass the state around.
50694 (arguments): Likewise.
50695 (grubcmd): Likewise.
50696 (commands): Likewise.
50697 (function): Likewise.
50698 (menuentry): Likewise.
50699 (if_statement): Likewise.
50702 * normal/script.c (grub_script_memused): Removed variable.
50703 (grub_script_parsed): Likewise.
50704 (grub_script_malloc): Added a state argument. Use that instead of
50706 (grub_script_mem_record): Likewise.
50707 (grub_script_mem_record_stop): Likewise.
50708 (grub_script_arg_add): Likewise.
50709 (grub_script_add_arglist): Likewise.
50710 (grub_script_create_cmdline): Likewise.
50711 (grub_script_create_cmdif): Likewise.
50712 (grub_script_create_cmdmenu): Likewise.
50713 (grub_script_add_cmd): Likewise.
50714 (grub_script_parse): Setup the state before calling the parser.
50716 2006-04-16 Marco Gerards <marco@gnu.org>
50718 * normal/command.c (grub_command_init): Remove the title command.
50720 * normal/lexer.c (grub_script_yylex): Renamed from this...
50721 (grub_script_yylex2): ... to this.
50722 (grub_script_yylex): New function. Temporary
50723 introduced to filter some tokens.
50724 (grub_script_yyerror): Print a newline.
50726 * normal/main.c (read_config_file): Output information about the
50727 lines that contain errors. Wait for a key after all lines have
50728 been processed. Don't return an empty menu.
50730 * normal/parser.y (func_mem): Don't initialize.
50731 (menu_entry): Likewise.
50732 (err): New variable.
50733 (script): Don't return anything when an error was encountered.
50734 (ws, returns): Removed rules.
50735 (argument): Disabled concatenated variable support.
50736 (arguments): Remove explicit separators.
50737 (grubcmd): Likewise.
50738 (function): Likewise.
50739 (menuentry): Likewise.
50741 (commands): Likewise. Add error handling.
50743 * normal/script.c (grub_script_create_cmdline): If
50744 `grub_script_parsed' is 0, assume the parser encountered an error.
50746 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
50748 * configure.ac: Add support for EFI. Fix the typo
50749 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
50751 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50753 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
50754 foreign multibyte characters should be shown correctly.
50756 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50758 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
50760 (read_config_file): Made it to close file before returning.
50762 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
50764 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
50765 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
50766 video/i386/pc/vbefill.c.
50768 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
50769 video/i386/pc/vbefill.c.
50771 * include/grub/video.h (grub_video_blit_format): New enum.
50772 (grub_video_mode_info): Added new member blit_format.
50773 (grub_video_get_blit_format): New function prototype.
50775 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50776 function prototype.
50777 (grub_video_vbe_map_rgb): Likewise.
50778 (grub_video_vbe_unmap_color): Likewise.
50780 * include/grub/i386/pc/vbeblit.h: New file.
50782 * include/grub/i386/pc/vbefill.h: New file.
50784 * video/video.c (grub_video_get_blit_format): New function.
50785 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50786 (grub_video_vbe_map_rgb): Likewise.
50787 (grub_video_vbe_unmap_color): Likewise.
50789 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50791 (grub_video_vbe_blit_render_target): Changed to use more optimized
50793 (grub_video_vbe_setup): Added detection for optimized settings.
50794 (grub_video_vbe_create_render_target): Likewise.
50796 * video/i386/pc/vbeblit.c: New file.
50798 * video/i386/pc/vbefill.c: New file.
50800 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50802 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50805 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50806 parsing to support both hex and dec ranges. If filename was missing
50807 show usage information.
50809 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50811 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50812 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50814 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50815 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50816 (video_mod_SOURCES): Added.
50817 (video_mod_CFLAGS): Likewise.
50818 (video_mod_LDFLAGS): Likewise.
50819 (gfxterm_mod_SOURCES): Likewise.
50820 (gfxterm_mod_CFLAGS): Likewise.
50821 (gfxterm_mod_LDFLAGS): Likewise.
50822 (videotest_mod_SOURCES): Likewise.
50823 (videotest_mod_CFLAGS): Likewise.
50824 (videotest_mod_LDFLAGS): Likewise.
50825 (vesafb_mod_SOURCES): Removed.
50826 (vesafb_mod_CFLAGS): Likewise.
50827 (vesafb_mod_LDFLAGS): Likewise.
50828 (vga_mod_SOURCES): Likewise.
50829 (vga_mod_CFLAGS): Likewise.
50830 (vga_mod_LDFLAGS): Likewise.
50832 * commands/videotest.c: New file.
50834 * font/manager.c (fill_with_default_glyph): Modified to use
50836 (grub_font_get_glyph): Likewise.
50837 (fontmanager): Renamed from this...
50838 (font_manager): ... to this.
50840 * include/grub/font.h (grub_font_glyph): Added new structure.
50841 (grub_font_get_glyph): Modified to use grub_font_glyph.
50843 * include/grub/misc.h (grub_abs): Added as inline function.
50845 * include/grub/video.h: New file.
50847 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
50848 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
50849 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
50850 (grub_vbe_get_controller_info): Renamed from this...
50851 (grub_vbe_bios_get_controller_info): ... to this.
50852 (grub_vbe_get_mode_info): Renamed from this...
50853 (grub_vbe_bios_get_mode_info): ... to this.
50854 (grub_vbe_set_mode): Renamed from this...
50855 (grub_vbe_bios_set_mode): ... to this.
50856 (grub_vbe_get_mode): Renamed from this...
50857 (grub_vbe_bios_get_mode): ... to this.
50858 (grub_vbe_set_memory_window): Renamed from this...
50859 (grub_vbe_bios_set_memory_window): ... to this.
50860 (grub_vbe_get_memory_window): Renamed from this...
50861 (grub_vbe_bios_get_memory_window): ... to this.
50862 (grub_vbe_set_scanline_length): Renamed from this...
50863 (grub_vbe_set_scanline_length): ... to this.
50864 (grub_vbe_get_scanline_length): Renamed from this...
50865 (grub_vbe_bios_get_scanline_length): ... to this.
50866 (grub_vbe_set_display_start): Renamed from this...
50867 (grub_vbe_bios_set_display_start): ... to this.
50868 (grub_vbe_get_display_start): Renamed from this...
50869 (grub_vbe_bios_get_display_start): ... to this.
50870 (grub_vbe_set_palette_data): Renamed from this...
50871 (grub_vbe_bios_set_palette_data): ... to this.
50872 (grub_vbe_set_pixel_rgb): Removed.
50873 (grub_vbe_set_pixel_index): Likewise.
50875 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
50877 (grub_vbe_bios_get_controller_info): ... to this.
50878 (grub_vbe_get_mode_info): Renamed from this...
50879 (grub_vbe_bios_get_mode_info): ... to this.
50880 (grub_vbe_set_mode): Renamed from this...
50881 (grub_vbe_bios_set_mode): ... to this.
50882 (grub_vbe_get_mode): Renamed from this...
50883 (grub_vbe_bios_get_mode): ... to this.
50884 (grub_vbe_set_memory_window): Renamed from this...
50885 (grub_vbe_bios_set_memory_window): ... to this.
50886 (grub_vbe_get_memory_window): Renamed from this...
50887 (grub_vbe_bios_get_memory_window): ... to this.
50888 (grub_vbe_set_scanline_length): Renamed from this...
50889 (grub_vbe_set_scanline_length): ... to this.
50890 (grub_vbe_get_scanline_length): Renamed from this...
50891 (grub_vbe_bios_get_scanline_length): ... to this.
50892 (grub_vbe_set_display_start): Renamed from this...
50893 (grub_vbe_bios_set_display_start): ... to this.
50894 (grub_vbe_get_display_start): Renamed from this...
50895 (grub_vbe_bios_get_display_start): ... to this.
50896 (grub_vbe_set_palette_data): Renamed from this...
50897 (grub_vbe_bios_set_palette_data): ... to this.
50898 (grub_vbe_bios_get_controller_info): Fixed problem with registers
50899 getting corrupted after calling it. Added more pushes and pops.
50900 (grub_vbe_bios_set_mode): Likewise.
50901 (grub_vbe_bios_get_mode): Likewise.
50902 (grub_vbe_bios_get_memory_window): Likewise.
50903 (grub_vbe_bios_set_scanline_length): Likewise.
50904 (grub_vbe_bios_get_scanline_length): Likewise.
50905 (grub_vbe_bios_get_display_start): Likewise.
50906 (grub_vbe_bios_set_palette_data): Likewise.
50908 * normal/cmdline.c (cl_set_pos): Refresh the screen.
50909 (cl_insert): Likewise.
50910 (cl_delete): Likewise.
50912 * term/gfxterm.c: New file.
50914 * term/i386/pc/vesafb.c: Removed file.
50916 * video/video.c: New file.
50918 * video/i386/pc/vbe.c (real2pm): Added new function.
50919 (grub_video_vbe_draw_pixel): Likewise.
50920 (grub_video_vbe_get_video_ptr): Likewise.
50921 (grub_video_vbe_get_pixel): Likewise
50922 (grub_video_vbe_init): Likewise.
50923 (grub_video_vbe_fini): Likewise.
50924 (grub_video_vbe_setup): Likewise.
50925 (grub_video_vbe_get_info): Likewise.
50926 (grub_video_vbe_set_palette): Likewise.
50927 (grub_video_vbe_get_palette): Likewise.
50928 (grub_video_vbe_set_viewport): Likewise.
50929 (grub_video_vbe_get_viewport): Likewise.
50930 (grub_video_vbe_map_color): Likewise.
50931 (grub_video_vbe_map_rgb): Likewise.
50932 (grub_video_vbe_map_rgba): Likewise.
50933 (grub_video_vbe_unmap_color): Likewise.
50934 (grub_video_vbe_fill_rect): Likewise.
50935 (grub_video_vbe_blit_glyph): Likewise.
50936 (grub_video_vbe_blit_bitmap): Likewise.
50937 (grub_video_vbe_blit_render_target): Likewise.
50938 (grub_video_vbe_scroll): Likewise.
50939 (grub_video_vbe_swap_buffers): Likewise.
50940 (grub_video_vbe_create_render_target): Likewise.
50941 (grub_video_vbe_delete_render_target): Likewise.
50942 (grub_video_vbe_set_active_render_target): Likewise.
50943 (grub_vbe_set_pixel_rgb): Remove function.
50944 (grub_vbe_set_pixel_index): Likewise.
50945 (index_color_mode): Remove static variable.
50946 (active_mode): Likewise.
50947 (framebuffer): Likewise.
50948 (bytes_per_scan_line): Likewise.
50949 (grub_video_vbe_adapter): Added new static variable.
50950 (framebuffer): Likewise.
50951 (render_target): Likewise.
50952 (initial_mode): Likewise.
50953 (mode_in_use): Likewise.
50954 (mode_list): Likewise.
50956 2006-03-10 Marco Gerards <marco@gnu.org>
50958 * configure.ac (AC_INIT): Bumped to 1.93.
50960 * DISTLIST: Added `include/grub/hfs.h'.
50962 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
50964 * boot/i386/pc/boot.S (general_error): Before looping, try INT
50965 18H, which might help the BIOS falling back to next boot media.
50967 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
50969 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
50970 Poe Chen <poe.poechen@gmail.com>.
50972 2006-01-17 Marco Gerards <marco@gnu.org>
50974 * include/grub/normal.h: Include <grub/script.h>.
50975 (grub_command_list): Removed struct.
50976 (grub_command_list_t): Removed type.
50977 (grub_menu_entry): Remove members `num' and `command_list'. Add
50978 members `commands' and `sourcecode'.
50979 * include/grub/script.h: Add inclusion guards.
50980 (grub_script_cmd_menuentry): New struct.
50981 (grub_script_execute_menuentry): New prototype.
50982 (grub_script_lexer_record_start): Likewise.
50983 (grub_script_lexer_record_stop): Likewise.
50984 * normal/execute.c (grub_script_execute_menuentry): New function.
50985 * normal/lexer.c (record, recording, recordpos, recordlen): New
50987 (grub_script_lexer_record_start): New function.
50988 (grub_script_lexer_record_stop): Likewise.
50989 (recordchar): Likewise.
50990 (nextchar): Likewise.
50991 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
50992 2048 as the buffer size. Add the tokens `menuentry' and `@'.
50993 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
50994 (current_menu): New variable.
50995 (free_menu): Mainly rewritten.
50996 (grub_normal_menu_addentry): New function.
50997 (read_config_file): Rewritten.
50998 * normal/menu.c (run_menu_entry): Mainly rewritten.
50999 * normal/menu_entry.c (make_screen): Rewritten the code to insert
51001 (run): Mainly rewritten.
51002 * normal/parser.y (menu_entry): New variable.
51003 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
51004 (menuentry): New rule.
51005 (command): Add `menuentry'.
51006 (if_statement): Allow additional returns before `fi'.
51007 * normal/script.c (grub_script_create_cmdmenu): New function.
51009 2006-01-03 Marco Gerards <marco@gnu.org>
51011 * INSTALL: GNU Bison is required.
51012 * configure.ac: Rewritten the test to detect Bison.
51013 * Makefile.in (YACC): New variable. Reported by Xun Sun
51014 <xun.sun.cn@gmail.com>.
51016 2006-01-03 Marco Gerards <marco@gnu.org>
51018 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
51019 the HFS+ filesystem to filesystem blocks.
51020 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
51021 GCC warning is silenced.
51023 2006-01-03 Marco Gerards <marco@gnu.org>
51025 * partmap/apple.c (apple_partition_map_iterate): Convert the data
51026 read from disk from big endian to host byte order.
51028 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
51030 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
51032 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
51033 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
51034 embedded HFS+ filesystem.
51035 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
51036 (grub_hfs_sblock): Move from here...
51037 * include/grub/hfs.h: To here... New file.
51038 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
51040 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
51042 (grub_hfsplus_volheader): Change type of member `magic' to
51044 (grub_hfsplus_data): Add new member `embedded_offset'.
51045 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
51047 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
51048 Calculate the offset.
51050 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51052 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
51054 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
51056 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51058 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
51059 ENV->NAME is NULL after allocating ENV->VALUE.
51061 2005-12-25 Marco Gerards <marco@gnu.org>
51063 * kern/env.c (grub_env_set): Rewritten the error handling code.
51065 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51067 * geninit.sh: Made more robust, and more portable.
51069 2005-12-25 Marco Gerards <marco@gnu.org>
51071 Add support for Apple HFS+ filesystems.
51073 * fs/hfsplus.c: New file.
51075 * DISTLIST: Added `fs/hfsplus.c'.
51077 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
51078 (hfsplus_mod_SOURCES): New variable.
51079 (hfsplus_mod_CFLAGS): Likewise.
51080 (hfsplus_mod_LDFLAGS): Likewise.
51081 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
51082 (grub_setup_SOURCES): Likewise.
51083 (grub_mkdevicemap_SOURCES): Likewise.
51084 (grub_emu_SOURCES): Likewise.
51085 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
51087 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
51089 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
51091 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51093 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
51094 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
51095 include/grub/parser.h, include/grub/script.h, kern/parser.c,
51096 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
51097 normal/lexer.c, normal/parser.y, normal/script.c, and
51099 Removed kern/sparc64/cache.c.
51101 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
51102 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
51105 * configure.ac (AC_INIT): Bumped to 1.92.
51107 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
51109 * kern/err.c (grub_error_push): Added new function to support error
51111 (grub_error_pop): Likewise.
51112 (grub_error_stack_items): New local variable to support error stacks.
51113 (grub_error_stack_pos): Likewise.
51114 (grub_error_stack_assert): Likewise.
51115 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
51117 (grub_print_error): Added support to print errors from error stack.
51119 * include/grub/err.h (grub_error_push): Added function prototype.
51120 (grub_error_pop): Likewise.
51122 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
51124 * configure.ac: Accept `powerpc64' as host_cpu.
51125 (amd64): Rename to `biarch32'.
51127 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
51128 non-cacheline-aligned addresses.
51130 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
51131 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
51132 if `size' is non-zero.
51134 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
51136 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
51137 and `cd' to make sure the filename is not prefixed with a
51139 (pkgdata_MODULES): Add `gpt.mod'.
51140 (gpt_mod_SOURCES): New variable.
51141 (gpt_mod_CFLAGS): Likewise.
51142 (gpt_mod_LDFLAGS): Likewise.
51144 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
51146 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
51149 * partmap/gpt.c: New file.
51151 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
51152 GPT partition map is detected.
51154 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
51156 * commands/i386/pc/play.c: New file.
51157 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
51158 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
51161 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
51163 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
51164 ((unused))' to silence gcc warning.
51166 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
51168 * configure.ac: Correct `AC_PROG_YACC' test.
51170 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51172 * util/powerpc/ieee1275/grub-install.in: Run the mount point
51173 check before installing files.
51175 2005-11-22 Mike Small <smallm@panix.com>
51177 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
51178 number regex so multidigit numbers are recognized correctly.
51180 2005-11-22 Mike Small <smallm@panix.com>
51182 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
51183 debugging message before attempting to claim memory.
51184 (grub_rescue_cmd_initrd): Add a claim debugging message and try
51185 multiple addresses in case of failure.
51187 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51189 * term/tparm.c (get_space): Remove empty `if' statement.
51191 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
51193 * kern/parser.c (check_varstate): Rename `state' to 's'.
51195 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51197 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
51198 variable definitions to the beginning of each function. Sort stack
51200 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
51201 `buf' argument to `char *'.
51203 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51205 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
51206 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51207 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51208 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51209 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51210 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51211 configfile.mod, search.mod, gzio.mod and test.mod.
51212 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51213 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51214 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51215 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51216 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51217 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51218 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51219 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51220 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51221 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51222 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51223 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51224 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51225 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51226 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51227 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51228 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51229 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51230 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51231 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51232 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51233 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51234 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
51236 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
51238 (pkgdata_MODULES): Add test.mod.
51240 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51242 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
51243 appending to variables with "+=".
51244 (PModule): Use full pathname to generate *.lst filenames.
51246 * Makefile.in: Fixed list rules moved from genmk.rb.
51247 (.DELETE_ON_ERROR): New special target.
51248 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
51250 * conf/i386-pc.rmk: Include conf/common.mk.
51251 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51252 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51253 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51254 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51255 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51256 configfile.mod, search.mod, gzio.mod and test.mod.
51257 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51258 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51259 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51260 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51261 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51262 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51263 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51264 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51265 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51266 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51267 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51268 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51269 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51270 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51271 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51272 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51273 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51274 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51275 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51276 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51277 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51278 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51279 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
51281 * conf/common.rmk: ... to here. New file.
51283 * conf/common.mk: New file.
51285 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
51287 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
51288 (grub_script.tab.c): ... here.
51290 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
51291 (grub_script.tab.c): ... here.
51293 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
51294 (grub_script.tab.c): ... here.
51296 * normal/command.c (grub_command_find): Fixed a memory leak of
51297 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
51299 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51301 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
51302 "@" which marks the start of a comment on ARM.
51303 (VARIABLE): Likewise.
51305 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51307 Add support for Linux/ADFS partition tables.
51309 * partmap/acorn.c: New file.
51311 * include/grub/acorn_filecore.h: Likewise.
51313 * DISTLIST: Added `partmap/acorn.c' and
51314 `include/grub/acorn_filecore.h'.
51316 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51318 (pkgdata_MODULES): Add `acorn.mod'.
51319 (acorn_mod_SOURCES): New variable.
51320 (acorn_mod_CFLAGS): Likewise.
51322 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51324 (pkgdata_MODULES): Add `acorn.mod'.
51325 (acorn_mod_SOURCES): New variable.
51326 (acorn_mod_CFLAGS): Likewise.
51328 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
51329 (pkgdata_MODULES): Add `acorn.mod'.
51330 (acorn_mod_SOURCES): New variable.
51331 (acorn_mod_CFLAGS): Likewise.
51332 (acorn_mod_LDFLAGS): Likewise.
51334 * include/types.h (grub_disk_addr_t): New typedef.
51336 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
51338 * geninit.sh: New file.
51340 * geninitheader.sh: Likewise.
51342 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
51343 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
51344 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
51345 * commands/configfile.c (grub_configfile_init)
51346 (grub_configfile_fini): Likewise.
51347 * commands/default.c (grub_default_init, grub_default_fini):
51349 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
51350 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
51351 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
51352 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
51354 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
51355 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
51357 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
51358 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
51360 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
51362 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
51364 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
51365 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
51366 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
51367 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
51368 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
51369 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
51370 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
51371 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
51372 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
51373 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
51374 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
51375 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
51376 * partmap/amiga.c (grub_amiga_partition_map_init)
51377 (grub_amiga_partition_map_fini): Likewise.
51378 * partmap/apple.c (grub_apple_partition_map_init)
51379 (grub_apple_partition_map_fini): Likewise.
51380 * partmap/pc.c (grub_pc_partition_map_init)
51381 (grub_pc_partition_map_fini): Likewise.
51382 * partmap/sun.c (grub_sun_partition_map_init,
51383 grub_sun_partition_map_fini): Likewise.
51384 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
51387 * util/grub-emu.c: Include <grub_modules_init.h>.
51388 (main): Don't initialize and de-initialize any modules directly,
51389 use `grub_init_all' and `grub_fini_all' instead.
51391 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
51392 `grub_vesafb_mod_init'.
51393 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
51395 * term/i386/pc/vga.c (grub_vga_init): Renamed to
51396 `grub_vga_mod_init'. Updated all users.
51397 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
51399 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
51400 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
51403 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
51404 Generate a function to initialize the module in utilities.
51405 Updated all callers.
51406 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
51407 initialize the module in utilities. Updated all callers.
51409 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51411 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
51412 escape sequence and a literal ^L to clear the screen.
51414 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
51415 when returning from Open Firmware.
51417 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51419 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
51420 (grub_ofconsole_height): Likewise.
51421 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
51422 manually insert a '\n'.
51423 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
51424 `grub_ofconsole_height'. Return early if these are already set.
51426 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
51428 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51429 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
51430 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
51431 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
51432 and `normal/script.c'.
51433 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51434 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51435 (test_mod_SOURCES): New variable.
51436 (test_mod_CFLAGS): Likewise.
51437 (test_mod_LDFLAGS): Likewise.
51438 (pkgdata_MODULES): Add `test.mod'.
51439 (grub_script.tab.c): New rule.
51440 (grub_script.tab.h): Likewise.
51442 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
51444 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51445 `commands/test.c', `normal/execute.c', `normal/lexer.c',
51446 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51447 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51448 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51449 (test_mod_SOURCES): New variable.
51450 (test_mod_CFLAGS): Likewise.
51451 (pkgdata_MODULES): Add `test.mod'.
51452 (grub_script.tab.c): New rule.
51453 (grub_script.tab.h): Likewise.
51455 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
51457 Add initial scripting support.
51459 * commands/test.c: New file.
51460 * include/grub/script.h: Likewise.
51461 * normal/execute.c: Likewise.
51462 * normal/function.c: Likewise.
51463 * normal/lexer.c: Likewise.
51464 * normal/parser.y: Likewise.
51465 * normal/script.c: Likewise.
51467 * configure.ac: Add `AC_PROG_YACC' test.
51469 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
51470 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
51471 `normal/function.c' and `normal/script.c'.
51472 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51473 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51474 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
51476 (pkgdata_MODULES): Add `test.mod'.
51477 (grub_script.tab.c): New rule.
51478 (grub_script.tab.h): Likewise.
51480 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
51482 * include/grub/normal.h (grub_test_init): New prototype.
51483 (grub_test_fini): Likewise.
51485 * normal/command.c: Include <grub/script.h>.
51486 (grub_command_execute): Rewritten.
51488 * util/grub-emu.c (main): Call `grub_test_init' and
51491 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51493 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
51495 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
51496 there are no pending characters.
51498 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51500 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
51501 `grub_strndup' to drop device arguments. Replace unnecessary
51502 `grub_strndup' with `grub_strdup'.
51504 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51506 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
51507 `debug' environment variable has been set.
51509 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
51511 * Makefile.in (install-local): Use $(DATA).
51512 (uninstall): Likewise.
51513 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
51514 (sbin_UTILITIES): ... to here.
51515 (sbin_SCRIPTS): New variable.
51516 (grub_install_SOURCES): New variable.
51517 * util/powerpc/ieee1275/grub-install.in: New file.
51518 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
51520 (add_segments): Call `grub_util_get_path'.
51522 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
51524 From Timothy Baldwin:
51525 * commands/ls.c (grub_ls_list_files): Close FILE with
51527 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
51529 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
51531 * include/grub/parser.h: New file.
51533 * kern/parser.c: Likewise.
51535 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
51536 (grub_setup_SOURCES): Likewise.
51537 (grub_probefs_SOURCES): Likewise.
51538 (grub_emu_SOURCES): Likewise.
51539 (kernel_img_HEADERS): Add `parser.h'.
51541 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51542 (grub_emu_SOURCES): Add `kern/parser.c'.
51543 (grubof_SOURCES): Likewise.
51545 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51546 (grubof_SOURCES): Add `kern/parser.c'.
51548 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
51550 * kern/misc.c (grub_split_cmdline): Removed function.
51552 * kern/rescue.c: Include <grub/parser.h>.
51553 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
51554 of `grub_split_cmdline'.
51556 * normal/command.c: Include <grub/parser.h>.
51557 (grub_command_execute): Use `grub_parser_split_cmdline' instead
51558 of `grub_split_cmdline'.
51560 * normal/completion.c: Include <grub/parser.h>.
51561 (cmdline_state): New variable.
51562 (iterate_dir): End the filename with a quote depending on the
51563 command line state.
51564 (get_state): new function.
51565 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
51566 split the arguments and determine the current argument. When the
51567 argument string is not quoted, escape all spaces.
51569 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51571 * normal/sparc64/setjmp.S: New file.
51573 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51575 * include/grub/sparc64/libgcc.h: New file.
51576 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
51577 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
51578 normal/sparc64/setjmp.c.
51580 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51582 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
51583 * kern/sparc64/cache.S: New file.
51584 * kern/sparc64/cache.c: Removed.
51585 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
51586 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
51588 (COMMON_LDFLAGS): Add -melf64_sparc.
51589 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
51590 (grubof_SOURCES): Use cache.S instead of cache.c.
51591 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
51592 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
51593 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
51595 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
51596 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
51597 (linux_mod_CFLAGS): Commented out.
51598 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
51599 out because module isn't built.
51600 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
51601 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
51602 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
51603 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
51604 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
51605 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51606 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51607 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
51608 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
51609 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
51610 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51611 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51612 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
51613 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
51615 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
51617 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
51618 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
51619 longer, because HFS should not be used on PC.
51621 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51623 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
51624 consistently within the loop.
51626 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
51628 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
51629 directory can not be read.
51631 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51633 * configure.ac (AC_INIT): Increase the version number to 1.91.
51635 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
51636 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
51637 term/i386/pc/serial.c.
51639 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51641 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
51642 file size must be permitted.
51644 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
51645 between %ah and %al.
51647 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51649 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
51651 Call the hook with a NUL-terminated filename.
51652 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
51655 * kern/term.c (cursor_state): New variable.
51656 (grub_term_set_current): Reset the cursor state on a new
51658 (grub_setcursor): Rewritten to use CURSOR_STATE.
51659 (grub_getcursor): New function.
51661 * include/grub/term.h (grub_getcursor): New prototype.
51663 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
51664 integers on ARM. Reported by Timothy Baldwin
51665 <T.E.Baldwin99@members.leeds.ac.uk>.
51667 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
51669 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
51671 (grub_sfs_dir): Likewise.
51673 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
51675 Add support for the SFS filesystem.
51677 * fs/sfs.c: New file.
51679 * DISTLIST: Added `fs/sfs.c'.
51681 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
51682 (grub_probefs_SOURCES): Likewise.
51683 (grub_emu_SOURCES): Likewise.
51684 (pkgdata_MODULES): Add `sfs.mod'.
51685 (sfs_mod_SOURCES): New variable.
51686 (sfs_mod_CFLAGS): Likewise.
51687 (sfs_mod_LDFLAGS): Likewise.
51689 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
51690 (pkgdata_MODULES): Add `sfs.mod'.
51691 (sfs_mod_SOURCES): New variable.
51692 (sfs_mod_CFLAGS): Likewise.
51694 * util/grub-emu.c (main): Call `grub_sfs_init' and
51697 * include/grub/fs.h (grub_sfs_init): New prototype.
51698 (grub_sfs_fini): Likewise.
51700 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
51702 Add support for the AFFS filesystem.
51704 * fs/affs.c: New file.
51706 * DISTLIST: Added `fs/affs.c'.
51708 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
51709 (grub_probefs_SOURCES): Likewise.
51710 (grub_emu_SOURCES): Likewise.
51711 (pkgdata_MODULES): Add `affs.mod'.
51712 (affs_mod_SOURCES): New variable.
51713 (affs_mod_CFLAGS): Likewise.
51714 (affs_mod_LDFLAGS): Likewise.
51716 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
51717 (pkgdata_MODULES): Add `affs.mod'.
51718 (affs_mod_SOURCES): New variable.
51719 (affs_mod_CFLAGS): Likewise.
51721 * util/grub-emu.c (main): Call `grub_affs_init' and
51724 * include/grub/fs.h (grub_affs_init): New prototype.
51725 (grub_affs_fini): Likewise.
51727 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51729 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
51731 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51733 * configure.ac: Accept `x86_64' as host_cpu. In that case add
51736 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
51739 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
51740 (COMMON_LDFLAGS): New variable.
51741 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
51742 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
51743 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
51744 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
51745 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
51746 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
51747 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
51748 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
51749 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
51750 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
51751 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51752 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51753 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
51754 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
51755 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
51757 (normal_mod_ASFLAGS): Add `-m32'.
51759 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
51760 (grub_host_size_t, grub_host_ssize_t): New types.
51761 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
51762 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
51763 `GRUB_HOST_SIZEOF_VOID_P'.
51765 * include/grub/kernel.h (struct grub_module_header): Type of
51766 member offset changed to `grub_host_off_t'. Type of member size
51767 changed to `grub_host_size_t'.
51768 (struct grub_module_info): Type of member offset changed to
51769 `grub_host_off_t'. Type of member size changed to
51770 `grub_host_size_t'.
51772 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51774 Make GRUB's kernel compliant to Multiboot Specification.
51776 * kern/i386/pc/startup.S (multiboot_header): New label.
51777 (multiboot_entry): Likewise.
51778 (multiboot_trampoline): Likewise.
51780 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51781 Increased to 0x4A0.
51783 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51784 put parentheses after a question mark.
51785 [!GRUB_UTIL] (my_mod): New variable.
51787 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51789 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
51791 Adds support for the XFS filesystem. Btrees are not supported
51794 * fs/xfs.c: New file.
51796 * DISTLIST: Added `fs/xfs.c'.
51798 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51799 (grub_probefs_SOURCES): Likewise.
51800 (grub_emu_SOURCES): Likewise.
51801 (pkgdata_MODULES): Add `xfs.mod'.
51802 (xfs_mod_SOURCES): New variable.
51803 (xfs_mod_CFLAGS): Likewise.
51805 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51806 (pkgdata_MODULES): Add `xfs.mod'.
51807 (xfs_mod_SOURCES): New variable.
51808 (xfs_mod_CFLAGS): Likewise.
51810 * util/grub-emu.c (main): Call `grub_xfs_init' and
51813 * include/grub/fs.h (grub_xfs_init): New prototype.
51814 (grub_xfs_fini): Likewise.
51817 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51819 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51820 color modes, allow greater than 16 colors to be configured as
51823 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51825 * normal/completion.c (complete_arguments): Add the qualifier
51826 const into OPTIONS.
51828 From Omniflux <omniflux+lists@omniflux.com>:
51829 * include/grub/terminfo.h: New file.
51830 * include/grub/tparm.h: Likewise.
51831 * include/grub/i386/pc/serial.h: Likewise.
51832 * term/terminfo.c: Likewise.
51833 * term/tparm.c: Likewise.
51834 * term/i386/pc/serial.c: Likewise.
51835 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51837 (terminfo_mod_SOURCES): New variable.
51838 (terminfo_mod_CFLAGS): Likewise.
51839 (serial_mod_SOURCES): Likewise.
51840 (serial_mod_CFLAGS): Likewise.
51842 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51844 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51845 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
51846 and kern/powerpc/ieee1275/cmain.c, respectively.
51848 * boot/powerpc/ieee1275/crt0.S: Moved to ...
51849 * kern/powerpc/ieee1275/crt0.S: ... here.
51851 * boot/powerpc/ieee1275/cmain.c: Moved to ...
51852 * kern/powerpc/ieee1275/cmain.c: ... here.
51854 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
51855 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
51856 instead of boot/powerpc/ieee1275/crt0.S and
51857 boot/powerpc/ieee1275/cmain.c, respectively.
51859 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
51860 sectors. It was not used anyway.
51862 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51864 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
51865 `unused parameter' warning.
51867 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51869 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
51871 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
51874 2005-08-28 Marco Gerards <metgerards@student.han.nl>
51876 * include/grub/normal.h (enum grub_completion_type): Added
51877 `GRUB_COMPLETION_TYPE_ARGUMENT'.
51879 * normal/cmdline.c (print_completion): Handle
51880 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
51881 * normal/menu_entry.c (store_completion): Likewise.
51883 * normal/completion.c (complete_arguments): New function.
51884 (grub_normal_do_completion): Call `complete_arguments' when the
51885 current words start with a dash.
51887 2005-08-27 Marco Gerards <metgerards@student.han.nl>
51889 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
51890 `gzio.mod' instead of `io.mod').
51892 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
51894 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
51895 (DISTDIRS): Added io and video.
51896 Rewrite the search routine to make an output consistently.
51898 * DISTLIST: Added conf/sparc64-ieee1275.mk,
51899 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
51900 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
51901 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
51902 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
51903 util/powerpc/ieee1275/misc.c.
51905 * include/grub/gzio.h: New file.
51906 * io/gzio.c: Likewise.
51908 * kern/file.c (grub_file_close): Call grub_device_close only if
51909 FILE->DEVICE is not NULL.
51911 * include/grub/mm.h [!NULL] (NULL): New macro.
51913 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
51915 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
51916 (pkgdata_MODULES): Added gzio.mod.
51917 (gzio_mod_SOURCES): New variable.
51918 (gzio_mod_CFLAGS): Likewise.
51920 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
51921 (pkgdata_MODULES): Added gzio.mod.
51922 (gzio_mod_SOURCES): New variable.
51923 (gzio_mod_CFLAGS): Likewise.
51925 * commands/cat.c: Include grub/gzio.h.
51926 (grub_cmd_cat): Use grub_gzfile_open instead of
51929 * commands/cmp.c: Include grub/gzio.h.
51930 (grub_cmd_cmp): Use grub_gzfile_open instead of
51933 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
51934 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
51936 (grub_rescue_cmd_module): Likewise.
51938 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51940 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
51941 kern/sparc64/ieee1275/init.c because it contains _start.
51942 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
51944 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51946 * configure.ac: Add support for sparc64 host with ieee1275
51948 * configure: Generated from configure.ac.
51949 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
51951 (grub_ofdisk_read): Likewise.
51952 (grub_ofdisk_open): Use %p to print pointer values, and cast the
51953 pointers as (void *) to remove a warning.
51954 (grub_ofdisk_close): Likewise.
51955 (grub_ofdisk_read): Likewise.
51956 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
51957 returns, so make it return void to remove a warning.
51958 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
51959 Corresponding prototype change.
51960 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
51961 values, and cast the pointers as (void *) to remove a warning.
51962 (grub_mm_dump): Likewise.
51963 * conf/sparc64-ieee1275.mk: New file.
51964 * conf/sparc64-ieee1275.rmk: Likewise.
51965 * include/grub/sparc64/setjmp.h: Likewise.
51966 * include/grub/sparc64/types.h: Likewise.
51967 * include/grub/sparc64/ieee1275/console.h: Likewise.
51968 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
51969 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
51970 * include/grub/sparc64/ieee1275/time.h: Likewise.
51971 * kern/sparc64/cache.c: Likewise.
51972 * kern/sparc64/dl.c: Likewise.
51973 * kern/sparc64/ieee1275/init.c: Likewise.
51974 * kern/sparc64/ieee1275/openfw.c: Likewise.
51976 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
51978 * util/console.c (grub_ncurses_putchar): If C is greater than
51979 0x7f, set C to a question mark.
51980 (grub_ncurses_getcharwidth): New function.
51981 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
51984 * normal/menu.c (print_entry): Made aware of Unicode. First,
51985 convert TITLE to UCS-4, and predict the cursor position by
51988 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
51990 * kern/misc.c (grub_utf16_to_utf8): Likewise.
51992 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51994 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
51995 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51998 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
51999 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
52000 grub_strcpy and grub_strlen. Take it into account that a space
52001 character is inserted as a delimiter.
52003 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52005 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
52006 invalid magic in the error.
52008 * commands/search.c: New file.
52010 * util/grub-emu.c (main): Call grub_search_init and
52013 * kern/rescue.c (grub_rescue_print_disks): Removed.
52014 (grub_rescue_print_devices): New function.
52015 (grub_rescue_cmd_ls): Use grub_device_iterate with
52016 grub_rescue_print_devices instead of grub_disk_dev_iterate with
52017 grub_rescue_print_disks.
52019 * kern/partition.c (grub_partition_iterate): Return the result of
52020 PARTMAP->ITERATE instead of GRUB_ERRNO.
52022 * kern/device.c: Include grub/partition.h.
52023 (grub_device_iterate): New function.
52025 * include/grub/partition.h (grub_partition_iterate): Return int
52026 instead of grub_err_t.
52028 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
52030 [GRUB_UTIL] (grub_search_fini): Likewise.
52032 * include/grub/device.h (grub_device_iterate): New prototype.
52034 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52036 (pkgdata_MODULES): Added search.mod.
52037 (search_mod_SOURCES): New variable.
52038 (search_mod_CFLAGS): Likewise.
52040 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
52041 (pkgdata_MODULES): Added search.mod.
52042 (search_mod_SOURCES): New variable.
52043 (search_mod_CFLAGS): Likewise.
52045 * commands/ls.c (grub_ls_list_disks): Renamed to ...
52046 (grub_ls_list_devices): ... this, and use grub_device_iterate.
52047 All callers changed.
52049 * DISTLIST: Added commands/search.c.
52051 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52053 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
52055 (grub_getcharwidth): New function.
52057 * kern/misc.c (grub_utf8_to_ucs4): New function.
52059 * include/grub/term.h (struct grub_term): Added a new member
52061 (grub_getcharwidth): New prototype.
52063 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
52065 * term/i386/pc/console.c (map_char): New function. Segregated from
52066 grub_console_putchar.
52067 (grub_console_putchar): Use map_char.
52068 (grub_console_getcharwidth): New function.
52069 (grub_console_term): Specified grub_console_getcharwidth as
52072 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
52073 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
52075 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
52077 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
52078 on grub_strtoul completely.
52079 (write_char): Declare local variables in the beginning of the
52081 (grub_vesafb_getcharwidth): New function.
52082 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
52085 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
52087 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
52088 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
52089 commands/i386/pc/vbetest.c.
52091 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
52092 call grub_vbe_get_controller_info again, because the returned
52093 information is volatile.
52094 (grub_vbe_set_video_mode): Mostly rewritten.
52095 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
52096 grub_vbe_status_t correctly.
52097 (grub_vbe_get_video_mode_info): Likewise.
52098 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
52099 several if statements.
52101 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
52102 * commands/i386/pc/vbeinfo.c: ... this.
52104 * commands/i386/pc/vbe_test.c: Renamed to ...
52105 * commands/i386/pc/vbetest.c: ... this.
52107 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
52109 (grub_cmd_vbeinfo): ... this. Save video modes before
52110 iterating. Skip a video mode, if it is not available, not enough
52111 information is given or it is monochrome. Show the memory
52112 model. Leave the interpretation of MODEVAR to grub_strtoul
52114 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
52115 (GRUB_MOD_FINI): Likewise.
52117 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
52118 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
52119 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
52120 duplicated grub_env_get. Leave the interpretation of MODEVAR to
52121 grub_strtoul completely.
52122 (real2pm): Removed.
52123 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
52124 (GRUB_MOD_FINI): Likewise.
52126 * normal/misc.c: Include grub/mm.h.
52128 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
52129 vbe_list_modes with vbetest.mod and vbeinfo.mod.
52130 (vbe_list_modes_mod_SOURCES): Removed.
52131 (vbe_list_modes_mod_CFLAGS): Likewise.
52132 (vbe_test_mod_SOURCES): Likewise.
52133 (vbe_test_mod_CFLAGS): Likewise.
52134 (vbeinfo_mod_SOURCES): New variable.
52135 (vbeinfo_mod_CFLAGS): Likewise.
52136 (vbetest_mod_SOURCES): Likewise.
52137 (vbetest_mod_CFLAGS): Likewise.
52139 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
52141 * normal/misc.c: New file.
52143 * DISTLIST: Added normal/misc.c.
52145 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
52146 DISK to HOOK. Call HOOK with DISK.
52147 * partmap/apple.c (apple_partition_map_iterate): Likewise.
52148 * partmap/pc.c (pc_partition_map_iterate): Likewise.
52149 * partmap/sun.c (sun_partition_map_iterate): Likewise.
52151 * normal/menu_entry.c (struct screen): Added a new member
52152 "completion_shown".
52153 (completion_buffer): New global variable.
52154 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
52155 (store_completion): New function.
52156 (complete): Likewise.
52157 (clear_completions): Likewise.
52158 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
52159 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
52160 a tab, call complete.
52162 * normal/completion.c (disk_dev): Removed.
52163 (print_simple_completion): Likewise.
52164 (print_partition_completion): Likewise.
52165 (print_func): New global variable.
52166 (add_completion): Do not take the arguments WHAT or PRINT any
52167 longer. Added a new argument TYPE. Instead of printing directly,
52168 call PRINT_FUNC if not NULL.
52169 All callers changed.
52170 (complete_device): Use a local variable DEV instead of
52171 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
52172 (grub_normal_do_completion): Take a new argument HOOK. Do not
52173 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
52174 empty string, return NULL instead.
52175 All callers changed.
52177 * normal/cmdline.c (print_completion): New function.
52179 * kern/partition.c (grub_partition_iterate): Add an argument DISK
52181 All callers changed.
52183 * kern/disk.c (grub_print_partinfo): Removed.
52185 * include/grub/partition.h (struct grub_partition_map): Add a new
52186 argument DISK into HOOK of ITERATE.
52187 (grub_partition_iterate): Add a new argument DISK to HOOK.
52189 * include/grub/normal.h (enum grub_completion_type): New enum.
52190 (grub_completion_type_t): New type.
52191 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
52192 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
52193 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
52194 (GRUB_COMPLETION_TYPE_FILE): Likewise.
52195 (grub_normal_do_completion): Added a new argument HOOK.
52196 (grub_normal_print_device_info): New prototype.
52198 * include/grub/disk.h (grub_print_partinfo): Removed.
52200 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
52201 (normal_mod_SOURCES): Likewise.
52202 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
52203 (normal_mod_SOURCES): Likewise.
52205 * commands/ls.c (grub_ls_list_disks): Use
52206 grub_normal_print_device_info instead of grub_print_partinfo. Free
52208 (grub_ls_list_files): Use grub_normal_print_device_info instead of
52209 duplicating the code.
52211 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52213 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
52214 follow GCS more precisely.
52215 * commands/i386/pc/vbe_test.c: Likewise.
52216 * include/grub/i386/pc/vbe.h: Likewise.
52217 * term/i386/pc/vesafb.c: Likewise.
52218 * video/i386/pc/vbe.c: Likewise.
52220 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52222 * DISTLIST: Added term/i386/pc/vesafb.c
52223 DISTLIST: Added video/i386/pc/vbe.c
52224 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
52225 DISTLIST: Added commands/i386/pc/vbe_test.c.
52226 * commands/i386/pc/vbe_list_modes.c: New file.
52227 * commands/i386/pc/vbe_test.c: Likewise.
52228 * term/i386/pc/vesafb.c: Likewise.
52229 * video/i386/pc/vbe.c: Likewise.
52230 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
52231 (grub_vbe_probe) Added prototype.
52232 (grub_vbe_set_video_mode) Likewise.
52233 (grub_vbe_get_video_mode) Likewise.
52234 (grub_vbe_get_video_mode_info) Likewise.
52235 (grub_vbe_set_pixel_rgb) Likewise.
52236 (grub_vbe_set_pixel_index) Likewise.
52237 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
52238 (pkgdata_MODULES): Added vesafb.mod.
52239 (pkgdata_MODULES): Added vbe_list_modes.mod.
52240 (pkgdata_MODULES): Added vbe_test.mod.
52241 (vbe_mod_SOURCES): Added.
52242 (vbe_mod_CFLAGS): Likewise.
52243 (vesafb_mod_SOURCES): Likewise.
52244 (vesafb_mod_CFLAGS): Likewise.
52245 (vbe_list_modes_mod_SOURCES): Likewise.
52246 (vbe_list_modes_mod_CFLAGS): Likewise.
52247 (vbe_test_mod_SOURCES): Likewise.
52248 (vbe_test_mod_CFLAGS): Likewise.
52250 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
52252 * normal/command.c (grub_command_execute): If INTERACTIVE is
52253 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
52254 CMDLINE. Disable the pager if INTERACTIVE is true.
52255 All callers are changed.
52257 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
52258 before reading a config file.
52259 * normal/main.c (read_config_file): Even if a command is not
52260 found, register it if it is within an entry.
52262 * util/grub-emu.c: Include sys/types.h and unistd.h.
52263 (options): Added --hold.
52264 (struct arguments): Added a new member "hold".
52265 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
52267 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
52268 cleared by a debugger, if it is not zero.
52270 * include/grub/normal.h (grub_command_execute): Add an argument
52273 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
52275 * DISTLIST: Added include/grub/i386/pc/vbe.h.
52277 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
52279 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
52280 program with another one, because the old one didn't detect a bug
52281 in gcc-3.4. Always use regparm 2, because the new test is still
52282 not enough for gcc-4.0. Someone must investigate a simple test
52283 case which detects a bug in gcc-4.0.
52285 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
52287 * DISTLIST: Added normal/completion.c.
52289 * normal/completion.c: New file.
52291 * term/i386/pc/console.c (grub_console_getwh): New function.
52292 (grub_console_term): Assign grub_console_getwh to getwh.
52294 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
52295 function is defined in normal/completion.c as
52296 grub_normal_do_completion.
52297 (grub_cmdline_get): Use grub_normal_do_completion instead of
52300 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
52301 returns non-zero, otherwise return 0.
52302 (grub_partition_iterate): First, probe the partition map. Then,
52303 call ITERATE only for this partition map.
52305 * kern/misc.c (grub_strncmp): Rewritten.
52307 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
52308 returns non-zero. Otherwise return 0.
52310 * include/grub/partition.h (grub_partition_map_iterate): Return
52311 int instead of void.
52313 * include/grub/normal.h (grub_normal_do_completion): New prototype.
52315 * include/grub/misc.h (grub_strncmp): Change the type of N to
52318 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
52321 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
52322 unsigned explicitly before comparing it with I.
52324 * kern/main.c (grub_env_write_root): Add the attribute unused into
52327 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52328 normal/completion.c.
52329 (normal_mod_SOURCES): Likewise.
52330 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
52331 (normal_mod_SOURCES): Likewise.
52333 * normal/command.c (grub_iterate_commands): If ITERATE returns
52334 non-zero, return one immediately.
52336 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
52338 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
52339 * kern/i386/pc/startup.S: Updated Global Descriptor table's
52341 (grub_vbe_get_controller_info): New function.
52342 (grub_vbe_get_mode_info): Likewise.
52343 (grub_vbe_set_mode): Likewise.
52344 (grub_vbe_get_mode): Likewise.
52345 (grub_vbe_set_memory_window): Likewise.
52346 (grub_vbe_get_memory_window): Likewise.
52347 (grub_vbe_set_scanline_length): Likewise.
52348 (grub_vbe_get_scanline_length): Likewise.
52349 (grub_vbe_set_display_start): Likewise.
52350 (grub_vbe_get_display_start): Likewise.
52351 (grub_vbe_set_palette_data): Likewise.
52352 * include/grub/i386/pc/vbe.h: New file.
52354 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52356 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52357 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
52358 * DISTLIST: Likewise.
52359 * kern/ieee1275/of.c: Moved to ...
52360 * kern/ieee1275/ieee1275.c: ... here.
52362 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52364 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
52365 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
52366 Pass 0 as `end' parameter to grub_strtoul().
52368 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52370 * include/grub/powerpc/ieee1275/console.h: Do not include
52371 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
52373 (grub_console_cur_color): Remove i386-specific prototype.
52374 (grub_console_real_putchar): Likewise.
52375 (grub_console_checkkey): Likewise.
52376 (grub_console_getkey): Likewise.
52377 (grub_console_getxy): Likewise.
52378 (grub_console_gotoxy): Likewise.
52379 (grub_console_cls): Likewise.
52380 (grub_console_setcursor): Likewise.
52381 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
52382 Include <grub/machine/console.h>.
52383 * term/ieee1275/ofconsole.c: Likewise.
52385 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
52387 * Makefile.in (LIBLZO): New variable.
52389 * configure.ac: Check for LZO version 2.
52391 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
52392 lzo/lzo1x.h instead of lzo1x.h.
52394 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
52397 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
52398 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
52400 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
52401 copying the data from PARTITION to P.
52403 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52405 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
52406 negative, unload the module.
52408 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
52409 map is "pc_partition_map" but not "pc".
52410 (usage): Fix the description. The options are --boot-image and
52411 --core-image but not --boot-file or --core-file.
52412 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
52413 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
52416 * util/i386/pc/grub-install.in: Do not specify --boot-file or
52417 --core-file. Specify INSTALL_DEVICE as an argument.
52419 * util/console.c: Include config.h.
52420 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
52421 [HAVE_NCURSES_H]: Include ncurses.h.
52422 [HAVE_CURSES_H]: Include curses.h.
52423 [!A_NORMAL] (A_NORMAL): Defined as zero.
52424 [!A_STANDOUT] (A_STANDOUT): Likewise.
52426 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
52428 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
52430 * configure.ac: Check for curses libraries and headers.
52432 * Makefile.in (LIBCURSES): New variable.
52434 * genmk.rb (Script::rule): Set the executable bits.
52436 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
52437 name of the PC partition map is "pc_partition_map" but not "pc".
52439 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52441 * util/i386/pc/grub-install.in (grub_probefs): New variable.
52442 (modules): Likewise.
52443 (usage): Added descriptions for --modules and --grub-probefs.
52444 Handle --modules and --grub-probefs. Save the arguments in MODULES
52445 and GRUB_PROBEFS, respectively.
52446 Auto-detect a filesystem module against GRUBDIR. If the result is
52447 empty and modules are not specified explicitly, abort the
52448 installation. Add the result to MODULES.
52450 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
52451 disk/powerpc/ieee1275/ofdisk.c,
52452 include/grub/powerpc/ieee1275/init.h and
52453 term/powerpc/ieee1275/ofconsole.c.
52454 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
52455 term/ieee1275/ofconsole.c.
52457 * include/grub/powerpc/ieee1275/console.h: Resurrected.
52459 * COPYING: Upgraded to the latest version. Only the address of the
52460 FSF office has changed.
52462 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52464 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52465 kern/ieee1275.c with kern/ieee1275/of.c.
52467 * kern/ieee1275.c: Moved to ...
52468 * kern/ieee1275/of.c: ... here.
52470 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
52472 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
52475 * config.guess: Updated to the latest version from gnulib.
52476 * config.sub: Likewise.
52477 * install.sh: Likewise.
52478 * mkinstalldirs: Likewise.
52480 * include/grub/console.h: Removed. This file is arch-specific. Do
52481 not put this in include/grub.
52483 * include/grub/i386/pc/console.h: Resurrected.
52485 * util/console.c: Include grub/machine/console.h instead of
52487 * util/grub-emu.c: Likewise.
52489 2005-08-04 Marco Gerards <metgerards@student.han.nl>
52491 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
52494 From Vincent Pelletier <subdino2004@yahoo.fr>
52495 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
52496 Redefined to use grub_getwh.
52497 (grub_term): New member named getwh.
52498 (grub_getwh): New prototype.
52499 * kern/term.c (grub_getwh): New function.
52500 * term/i386/pc/console.c (grub_console_getwh): New function.
52501 (grub_console_term): New member `getwh'.
52502 * term/i386/pc/vga.c (grub_vga_getwh): New function.
52503 (grub_vga_term): New member `getwh'.
52504 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
52506 (grub_ofconsole_getw): New function.
52507 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
52508 (grub_ofconsole_term): New field named getwh and new initial
52511 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
52513 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
52514 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
52515 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
52516 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
52517 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
52518 of <grub/machine/ieee1275.h>.
52519 * commands/ieee1275/reboot.c: Likewise.
52520 * boot/powerpc/ieee1275/ieee1275.c: Move ...
52521 * kern/ieee1275.c: ... to here. All users updated. Change all
52522 parameter structs to use new type `grub_ieee1275_cell_t'.
52523 * term/powerpc/ieee1275/ofconsole.c: Move ...
52524 * term/ieee1275/ofconsole.c: ... to here. All users updated.
52525 * disk/powerpc/ieee1275/ofdisk.c: Move ...
52526 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
52527 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
52529 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
52530 Remove unused prototypes. All users updated.
52531 * include/grub/powerpc/ieee1275/console.h: Removed.
52532 * include/grub/powerpc/ieee1275/ieee1275.h: Define
52533 `grub_ieee1275_cell_t'.
52534 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
52535 Cast comparisons with -1 to the correct type.
52536 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
52537 type to match `grub_ieee1275_entry_fn'.
52539 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
52541 * DISTLIST: Added util/i386/pc/grub-probefs.c.
52543 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
52544 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
52546 (grub_probefs_SOURCES): New variable.
52548 * util/i386/pc/grub-probefs.c: New file.
52550 * util/i386/pc/grub-setup.c (main): Call
52551 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
52552 grub_hfs_init and grub_jfs_init to initialize the system. Call
52553 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
52554 grub_pc_partition_map_fini to finish the system.
52556 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
52558 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
52560 (grub_multiboot_load_elf32): Likewise.
52561 (grub_multiboot_is_elf64): Likewise.
52562 (grub_multiboot_load_elf64): Likewise.
52563 (grub_multiboot_load_elf): Likewise.
52564 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
52565 an ELF32 or ELF64 file.
52566 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
52568 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
52569 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
52570 NULL before calling FS->LABEL.
52571 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
52572 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
52573 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
52574 before calling FS->LABEL.
52576 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
52578 * util/i386/pc/grub-install.in (datadir): New variable.
52580 (pkgdatadir): New variable.
52581 (pkglibdir): Removed.
52583 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
52585 * DISTLIST: Added util/i386/pc/grub-install.in.
52587 * util/i386/pc/grub-install.in: New file.
52589 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
52590 (grub_install_SOURCES): Likewise.
52592 * genmk.rb: Added support for scripts.
52593 (Script): New class.
52594 (scripts): New variable.
52596 * Makefile.in (install-local): Install sbin_SCRIPTS by
52598 (uninstall): Remove sbin_SCRIPTS.
52600 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
52601 device, try to get a GRUB device by
52602 grub_util_biosdisk_get_grub_dev.
52605 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
52606 description for --device-map.
52608 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52610 Change the semantics of variable hooks. They now return strings
52611 instead of error values.
52613 * util/i386/pc/grub-setup.c: Include grub/env.h.
52614 (setup): Use grub_device_set_root instead of grub_env_set.
52616 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
52617 grub_env_get instead of grub_device_set_root and
52618 grub_device_get_root, respectively.
52620 * kern/main.c (grub_env_write_root): New function.
52621 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
52622 grub_env_set instead of grub_device_set_root.
52624 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
52626 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
52627 rather than calling ENV->WRITE_HOOK afterwards.
52628 (grub_env_get): Return the result of ENV->READ_HOOK rather than
52629 passing a pointer of a pointer.
52630 (grub_register_variable_hook): Change the types of "read_hook" and
52631 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
52633 Allocate the default empty string on the heap, because this string
52634 may be freed later.
52636 * kern/device.c: Include grub/env.h.
52637 (grub_device_set_root): Removed.
52638 (grub_device_get_root): Likewise.
52639 (grub_device_open): Use grub_env_get instead of
52640 grub_device_get_root.
52642 * include/grub/env.h (grub_env_read_hook_t): New type.
52643 (grub_env_write_hook_t): Likewise.
52644 (grub_env_var): Change the types of "read_hook" and "write_hook"
52645 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
52646 (grub_register_variable_hook): Likewise.
52648 * include/grub/device.h (grub_device_set_root): Removed.
52649 (grub_device_set_root): Likewise.
52651 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
52652 make sure that DIRNAME terminates with '/', so that
52653 grub_fat_find_dir will fail if PATH is not a directory.
52655 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
52657 Use the qualifier auto for print_files and print_files_long.
52658 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
52660 Put a newline only if there is no error.
52661 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
52664 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52666 * kern/partition.c (grub_partition_probe): Initialize PART to
52667 NULL. Otherwise, when no partition map is registered, this returns
52670 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
52672 * partmap/apple.c (apple_partition_map_iterate): Check if POS
52673 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
52676 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
52678 * commands/ls.c (grub_ls_list_disks): Print the filesystem
52679 information on each device, if it does not have partitions. Print
52680 "Device" instead of "Disk", because this function is not specific
52683 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
52684 static to ensure that it is put on the memory rather than a
52687 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52689 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
52690 (grub_cat_init): Likewise.
52691 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
52692 (options): Likewise.
52693 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
52694 (grub_configfile_init): Likewise.
52695 * font/manager.c (GRUB_MOD_INIT): Likewise.
52696 * commands/help.c (GRUB_MOD_INIT): Likewise.
52697 (grub_help_init): Likewise.
52698 * normal/command.c (grub_command_init): Likewise.
52699 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
52700 * disk/loopback.c (grub_loop_init): Likewise.
52701 (GRUB_MOD_INIT): Likewise.
52702 * commands/ls.c (grub_ls_init): Likewise.
52703 (GRUB_MOD_INIT): Likewise.
52704 (options): Likewise.
52705 * commands/boot.c (grub_boot_init): Likewise.
52706 (GRUB_MOD_INIT): Likewise.
52707 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
52708 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
52709 (GRUB_MOD_INIT): Likewise.
52710 * commands/cmp.c (grub_cmp_init): Likewise.
52711 (GRUB_MOD_INIT): Likewise.
52713 * normal/arg.c: Use <> instead of "" to include header files.
52714 (SHORT_ARG_HELP): New macro.
52715 (SHORT_ARG_USAGE): Likewise.
52716 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
52717 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
52719 (find_short): Check if C is 'h' or 'u' explicitly.
52720 (grub_arg_show_help): Use space characters instead of tabs. Treat
52721 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
52722 are shown with --help and --usage only if they are not used for
52723 the command itself.
52724 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
52727 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
52728 const into "longarg". Change the type of "shortarg" to int.
52730 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52732 * boot/i386/pc/boot.S (boot_drive_check): New label.
52734 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
52737 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
52738 which do not pass a boot drive correctly. Copied from GRUB Legacy.
52740 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52742 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
52743 When turning off Gate A20, skip the check and return immediately,
52744 because this is not fatal usually.
52746 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52748 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
52749 be 0x7C00 instead of 0x8000.
52751 * boot/i386/pc/pxeboot.S: Rewritten.
52753 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
52755 (gate_a20_check_state): Read a byte from 0x108000. Invert the
52758 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
52760 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
52761 robustness. This routine now supports a BIOS call and System
52762 Control Port A to modify the gate A20.
52764 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
52765 Increased to 0x440.
52767 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
52769 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
52770 device path and resulting ihandle.
52771 (grub_ofdisk_close): dprintf the ihandle being closed.
52772 (grub_ofdisk_read): dprintf function parameters.
52773 * kern/mm.c (grub_mm_init_region): Likewise.
52774 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52775 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52776 size, and boot arguments.
52777 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52778 before loading into memory.
52779 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52780 before loading into memory.
52782 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52784 * kern/mm.c: Added much documentation.
52785 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52786 8, set to 5 instead of 8.
52788 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52790 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52792 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52793 (grub_mkdevicemap_SOURCES): New variable.
52795 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52796 lib/device.c of GRUB Legacy.
52798 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52800 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52801 instead of PATH is NULL.
52803 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52805 * commands/cmp.c (BUFFER_SIZE): New macro.
52806 (grub_cmd_cmp): Close the right file at the right time. Compare
52807 only data just read. Don't report files of different size as
52808 identical. Dynamically allocate buffers. Move variable
52809 declarations at the beginning of function.
52811 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
52813 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52816 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52818 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52819 when backspace is pressed at beginning of line.
52821 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
52823 * DISTLIST: Added genfslist.sh.
52825 * normal/main.c (fs_module_list): New variable.
52826 (autoload_fs_module): New function.
52827 (read_fs_list): Likewise.
52828 (grub_normal_execute): Call read_fs_list.
52830 * kern/fs.c (grub_fs_autoload_hook): New variable.
52831 (grub_fs_probe): Added support for auto-loading.
52833 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52834 (grub_fs_module_list_t): New type.
52836 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52837 (grub_fs_autoload_hook): New prototype.
52839 * genfslist.sh: New file.
52841 * genmk.rb: Added a rule to generate a filesystem list.
52843 2005-06-30 Marco Gerards <metgerards@student.han.nl>
52845 * configure.ac: Fix the test for cross-compiling.
52847 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
52848 define GRUB_UTIL anymore.
52850 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
52851 so this function works on other systems than just big endian.
52852 (load_modules): Likewise.
52853 (add_segments): Likewise.
52855 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
52857 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
52858 contains `l' modifier, get a long from va_arg().
52860 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
52862 * kern/mm.c (grub_free): If the next free block which is being
52863 merged is the first free block, set the first block to the block
52865 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
52867 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52869 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
52870 `grub_ieee1275_chosen'.
52872 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52874 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
52875 (grub_ieee1275_chosen): New variable.
52876 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
52878 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
52879 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52880 Rename first argument to `phandle' for consistency.
52881 (grub_ieee1275_get_property_length): Likewise.
52882 (grub_ieee1275_next_property): Likewise. Change type of first argument
52883 to grub_ieee1275_phandle_t.
52884 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
52885 Move export next to declaration.
52886 (grub_ieee1275_chosen): New variable.
52887 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
52888 Correct cosmetic typo.
52889 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
52890 `grub_ieee1275_chosen'.
52891 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
52892 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
52893 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
52894 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
52895 `grub_ieee1275_chosen'.
52897 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
52899 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
52901 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
52902 /chosen/bootargs as "variable=value" pairs.
52904 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
52906 * include/grub/misc.h (grub_dprintf): New macro.
52907 (grub_real_dprintf): New prototype.
52908 (grub_strword): Likewise.
52909 (grub_iswordseparator): Likewise.
52910 * kern/misc.c (grub_real_dprintf): New function.
52911 (grub_strword): Likewise.
52912 (grub_iswordseparator): Likewise.
52914 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
52916 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
52917 (roundup): Remove macro.
52918 (grub_ieee1275_flags): Make static.
52919 (grub_ieee1275_realmode): Remove.
52920 (grub_ieee1275_test_flag): New function.
52921 (grub_ieee1275_set_flag): Likewise.
52922 (find_options): Rename to `grub_ieee1275_find_options'; update
52923 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
52924 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
52925 (cmain): New prototype.
52926 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
52927 `grub_ieee1275_flags' directly.
52928 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
52929 machine/biosdisk.h.
52930 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
52931 Don't include grub/machine/init.h.
52932 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
52933 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
52935 (grub_ieee1275_realmode): Likewise.
52936 (grub_ieee1275_flag): New enum.
52937 (grub_ieee1275_test_flag): New prototype.
52938 (grub_ieee1275_set_flag): New prototype.
52939 * include/grub/powerpc/ieee1275/init.h: Remove file.
52940 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
52941 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
52942 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
52943 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
52945 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
52946 `grub_ieee1275_test_flag'.
52947 (grub_ieee1275_encode_devname): Likewise.
52949 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
52951 * include/grub/powerpc/ieee1275/ieee1275.h
52952 (grub_ieee1275_encode_devname): New prototype.
52953 (grub_ieee1275_get_filename): Likewise.
52954 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
52956 (grub_set_prefix): Likewise.
52957 (grub_machine_init): Call grub_set_prefix.
52958 * kern/powerpc/ieee1275/openfw.c: Fix typos.
52959 (grub_parse_type): New enum.
52960 (grub_ieee1275_get_devargs): New function.
52961 (grub_ieee1275_get_devname): Likewise.
52962 (grub_ieee1275_parse_args): Likewise.
52963 (grub_ieee1275_get_filename): Likewise.
52964 (grub_ieee1275_encode_devname): Likewise.
52966 2005-03-30 Marco Gerards <metgerards@student.han.nl>
52968 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
52969 `grub_loader_unset'.
52971 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
52973 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
52974 instead of grub_ieee1275_interpret.
52975 (grub_halt_init): New function.
52976 (grub_halt_fini): Likewise.
52977 (GRUB_MOD_INIT): Correct message grammar.
52978 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
52979 instead of grub_ieee1275_interpret.
52980 (grub_reboot_init): New function.
52981 (grub_reboot_fini): Likewise.
52982 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
52983 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
52984 util/i386/pc/misc.c with commands/ieee1275/halt.c,
52985 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
52986 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
52988 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
52990 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
52992 (grub_halt): Likewise.
52993 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
52994 (cmain): Remove __attribute__((unused)).
52995 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
52996 (grub_heap_len): Likewise.
52997 (grub_machine_fini): New function.
52998 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
52999 (grub_halt): Likewise.
53000 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
53002 * util/powerpc/ieee1275/misc.c: New file.
53004 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
53006 * DISTLIST: New file.
53007 * gendistlist.sh: Likewise.
53009 * Makefile.in (COMMON_DISTFILES): Removed.
53010 (BOOT_DISTFILES): Likewise.
53011 (CONF_DISTFILES): Likewise.
53012 (DISK_DISTFILES): Likewise.
53013 (FS_DISTFILES): Likewise.
53014 (INCLUDE_DISTFILES): Likewise.
53015 (KERN_DISTFILES): Likewise.
53016 (LOADER_DISTFILES): Likewise.
53017 (TERM_DISTFILES): Likewise.
53018 (UTIL_DISTFILES): Likewise.
53019 (DISTFILES): Likewise.
53020 (uninstall): Uninstall files in $(pkgdata_DATA).
53021 (DISTLIST): New target.
53022 (distdir): Use the contents of the file DISTLIST to get a list of
53025 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
53027 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
53028 descriptor. This is ported from GRUB Legacy.
53030 * gencmdlist.sh: Added an extra semicolon to make it work with
53031 old sed versions. Reported by Robert Bihlmeyer
53032 <robbe@orcus.priv.at>.
53034 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
53036 Automatic loading of commands is supported.
53038 * normal/main.c (read_command_list): New function.
53039 (grub_normal_execute): Call read_command_list.
53041 * normal/command.c (grub_register_command): Return zero or CMD.
53042 Allocate CMD->NAME from the heap.
53043 Initialize CMD->MODULE_NAME to zero.
53044 Find the same name as well. If the same command is found and it is
53045 a dummy command, overwrite members. If it is not a dummy command,
53047 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
53048 (grub_command_find): If a dummy command is found, load a module
53049 and retry to find a command only once.
53051 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
53052 make sure that each command is loaded.
53054 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
53056 (struct grub_command): Remove const from the member `name'.
53057 Add a new member `module_name'.
53058 (grub_register_command): Return grub_command_t.
53060 * commands/help.c (grub_cmd_help): Call grub_command_find to make
53061 sure that each command is loaded.
53063 * genmk.rb (PModule::rule): Specify a module name without the
53064 suffix ".mod" to gencmdlist.sh.
53066 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53068 * gencmdlist.sh: New file.
53070 * genmk.rb (PModule::rule): Generate a rule for a command list.
53072 Generate command.lst from $(COMMANDFILES).
53074 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
53075 (DATA): Added $(pkgdata_DATA).
53076 (install-local): Install files in $(pkgdata_DATA).
53078 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53080 * term/i386/pc/vga.c (debug_command): Removed.
53081 (GRUB_MOD_INIT): Do not register the command "debug".
53083 From Hollis Blanchard:
53084 * commands/configfile.c: New file.
53085 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53086 commands/configfile.c.
53087 (pkgdata_MODULES): Added configfile.mod.
53088 (configfile_mod_SOURCES): New variable.
53089 (configfile_mod_CFLAGS): Likewise.
53090 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
53091 commands/configfile.c.
53092 (pkgdata_MODULES): Added configfile.mod.
53093 (configfile_mod_SOURCES): New variable.
53094 (configfile_mod_CFLAGS): Likewise.
53095 * util/grub-emu.c (main): Call grub_configfile_init and
53096 grub_configfile_fini.
53097 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
53099 [GRUB_UTIL] (grub_configfile_fini): Likewise.
53101 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53103 * normal/arg.c (grub_arg_show_help): Do not show the bug report
53106 * commands/help.c (grub_cmd_help): Do not print newlines after
53107 the last command in print_command_help.
53109 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53111 * commands/default.h: New file.
53112 * commands/timeout.h: Likewise.
53113 * normal/context.c: Likewise.
53115 * util/misc.c: Do not include sys/times.h.
53116 Include sys/time.h and grub/machine/time.h.
53117 (grub_get_rtc): Rewritten with gettimeofday.
53119 * util/grub-emu.c (main): Call grub_default_init and
53120 grub_timeout_init before grub_normal_init, and call
53121 grub_timeout_fini and grub_default_fini after grub_main.
53123 * util/console.c (grub_ncurses_checkkey): Return the read
53126 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
53129 * normal/main.c (read_config_file): Push MENU. If this fails,
53130 print an error and wait for a user input.
53131 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
53132 If a menu is empty or an error occurs, pop MENU.
53133 (grub_normal_execute): Pop and free MENU after grub_menu_run
53136 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
53138 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
53140 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53142 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
53144 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53147 * include/grub/normal.h (struct grub_menu_list): New struct.
53148 (grub_menu_list_t): New type.
53149 (struct grub_context): New struct.
53150 (grub_context_t): New type.
53151 (grub_register_command): Got rid of EXPORT_FUNC.
53152 (grub_unregister_command): Likewise.
53153 (grub_context_get): New prototype.
53154 (grub_context_get_current_menu): Likewise.
53155 (grub_context_push_menu): Likewise.
53156 (grub_context_pop_menu): Likewise.
53157 [GRUB_UTIL] (grub_default_init): Likewise.
53158 [GRUB_UTIL] (grub_default_fini): Likewise.
53159 [GRUB_UTIL] (grub_timeout_init): Likewise.
53160 [GRUB_UTIL] (grub_timeout_fini): Likewise.
53162 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
53163 commands/timeout.c and normal/context.c.
53164 (pkgdata_MODULES): Added default.mod and timeout.mod.
53165 (normal_mod_SOURCES): Added normal/context.c.
53166 (default_mod_SOURCES): New variable.
53167 (default_mod_CFLAGS): Likewise.
53168 (timeout_mod_SOURCES): Likewise.
53169 (timeout_mod_CFLAGS): Likewise.
53170 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
53172 (pkgdata_MODULES): Added default.mod and timeout.mod.
53173 (normal_mod_SOURCES): Added normal/context.c.
53174 (default_mod_SOURCES): New variable.
53175 (default_mod_CFLAGS): Likewise.
53176 (timeout_mod_SOURCES): Likewise.
53177 (timeout_mod_CFLAGS): Likewise.
53179 * Makefile.in (all-local): Added $(MKFILES).
53181 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
53183 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
53184 (grub_emu_SOURCES): Likewise.
53185 (pkgdata_MODULES): Add `sun.mod'.
53186 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53187 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53189 (pkgdata_MODULES): Add `sun.mod'.
53190 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53191 * include/grub/partition.h (grub_sun_partition_map_init): New
53193 (grub_sun_partition_map_fini): Likewise.
53194 * partmap/sun.c: New file.
53195 * util/grub-emu.c (main): Initialize and de-initialize the sun
53196 partitionmap support.
53198 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
53200 This implements an Emacs-like menu entry editor.
53202 * normal/menu_entry.c: New file.
53204 * util/console.c (grub_ncurses_putchar): Translate some Unicode
53205 characters to ASCII.
53206 (saved_char): New variable.
53207 (grub_ncurses_checkkey): Rewritten completely.
53208 (grub_ncurses_getkey): Likewise.
53209 (grub_ncurses_init): Call raw instead of cbreak.
53211 * normal/menu.c (print_entry): Do not put a space.
53212 (init_page): Renamed to ...
53213 (grub_menu_init_page): ... this. All callers changed.
53214 (edit_menu_entry): Removed.
53215 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
53217 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
53219 * kern/misc.c (grub_vprintf): Call grub_refresh.
53221 * normal/menu.c (DISP_LEFT): Renamed to ...
53222 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
53223 * normal/menu.c (DISP_UP): Renamed to ...
53224 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
53225 * normal/menu.c (DISP_RIGHT): Renamed to ...
53226 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
53227 * normal/menu.c (DISP_DOWN): Renamed to ...
53228 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
53229 * normal/menu.c (DISP_HLINE): Renamed to ...
53230 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
53231 * normal/menu.c (DISP_VLINE): Renamed to ...
53232 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
53233 * normal/menu.c (DISP_UL): Renamed to ...
53234 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
53235 * normal/menu.c (DISP_UR): Renamed to ...
53236 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
53237 * normal/menu.c (DISP_LL): Renamed to ...
53238 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
53239 * normal/menu.c (DISP_LR): Renamed to ...
53240 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
53241 * normal/menu.c (TERM_WIDTH): Renamed to ...
53242 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
53243 * normal/menu.c (TERM_HEIGHT): Renamed to ...
53244 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
53245 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
53246 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
53247 * normal/menu.c (TERM_MARGIN): Renamed to ...
53248 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
53249 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
53250 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
53251 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
53252 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
53253 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
53254 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
53255 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
53256 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
53257 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
53258 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
53259 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
53260 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
53261 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
53262 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
53263 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
53264 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
53265 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
53266 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
53267 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
53268 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
53269 All callers changed.
53271 * include/grub/normal.h: New prototype.
53273 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53274 normal/menu_entry.c.
53275 (normal_mod_SOURCES): Likewise.
53276 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
53277 (normal_mod_SOURCES): Likewise.
53279 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
53281 * include/grub/normal.h (grub_halt_init): New prototype.
53282 (grub_halt_fini): Likewise.
53283 (grub_reboot_init): Likewise.
53284 (grub_reboot_fini): Likewise.
53286 * util/grub-emu.c: Include signal.h.
53287 (main_env): New global variable.
53288 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
53290 (grub_machine_fini): New function.
53291 (main): Call grub_halt_init and grub_reboot_init before
53292 grub_main, and grub_reboot_fini and grub_halt_fini after it.
53293 Call setjmp with MAIN_ENV to go back afterwards.
53294 Call grub_machine_fini right before return.
53296 * include/grub/util/misc.h: Include setjmp.h.
53297 (main_env): New prototype.
53299 * include/grub/kernel.h (grub_machine_fini): New prototype.
53300 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
53301 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
53303 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
53304 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
53305 * term/i386/pc/console.c (grub_console_fini): Likewise.
53307 * util/i386/pc/misc.c: New file.
53309 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53310 util/i386/pc/misc.c, commands/i386/pc/halt.c and
53311 commands/i386/pc/reboot.c.
53313 2005-02-14 Guillem Jover <guillem@hadrons.org>
53315 * include/grub/dl.h (grub_dl_check_header): New prototype.
53316 (grub_arch_dl_check_header): Change return type to grub_err_t,
53317 remove size parameter and export function. Update all callers.
53318 * kern/dl.c (grub_dl_check_header): New function.
53319 (grub_dl_load_core): Use `grub_dl_check_header' instead of
53320 `grub_arch_dl_check_header'. Check ELF type. Check if sections
53321 are inside the core.
53322 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
53323 independent ELF header checks.
53324 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53325 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
53326 `grub_dl_check_header' instead of explicit checks. Check for the
53328 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
53329 `grub_dl_check_header' instead of explicit checks. Remove arch
53330 specific ELF header checks.
53332 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
53335 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
53337 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
53338 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
53340 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
53342 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
53343 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
53344 (part_map_iterate): Clear `grub_errno' and return 0 if
53345 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
53346 * partmap/amiga.c (amiga_partition_map_iterate): Return
53347 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
53348 * partmap/apple.c (apple_partition_map_iterate): Likewise.
53350 2005-02-01 Guillem Jover <guillem@hadrons.org>
53352 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
53355 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53357 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
53359 (grub_rescue_cmd_linux): New prototype.
53360 (grub_rescue_cmd_initrd): Likewise.
53361 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
53363 (grub_linux_release_mem): Release the memory for the initrd.
53364 (grub_load_linux): Renamed from this...
53365 (grub_rescue_cmd_linux): ...To this. Changed all callers.
53366 Changed `entry' not to be static. Loop over memory regions to
53367 find another one when the default fails.
53368 (grub_rescue_cmd_initrd): New function.
53369 (grub_linux_init): Remove function.
53370 (grub_linux_fini): Likewise.
53371 (GRUB_MOD_INIT): Register `initrd'.
53372 (GRUB_MOD_FINI): Unregister `initrd'.
53373 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
53375 (grub_linux_normal_fini): Likewise.
53376 (GRUB_MOD_INIT): Register `initrd'.
53377 (GRUB_MOD_FINI): Unregister `initrd'.
53379 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53381 * commands/help.c: New file.
53382 * normal/arg.c (show_help): Renamed to...
53383 (grub_arg_show_help): ... this.
53384 * commands/i386/pc/halt.c: New file.
53385 * commands/i386/pc/reboot.c: Likewise.
53386 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
53387 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
53388 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
53389 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
53391 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53393 (pkgdata_MODULES): Add `help.mod'.
53394 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
53395 * grub/i386/pc/init.h (grub_reboot): New prototype.
53396 (grub_halt): Likewise.
53397 * include/grub/normal.h (grub_arg_show_help): New prototype.
53398 (grub_help_init): Likewise.
53399 (grub_help_fini): Likewise.
53400 * util/grub-emu.c (main): Initialize and deinitialize the help
53403 * normal/cmdline.c (grub_cmdline_get): Doc fix.
53405 * normal/command.c (grub_command_init): Fixed the description of
53406 the `set' and `unset' commands.
53408 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53410 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
53412 * commands/ieee1275/halt.c: New file.
53413 * commands/ieee1275/reboot.c: Likewise.
53414 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
53415 `__attribute__ ((unused))'. Some GCS related fixed.
53416 (grub_suspend_init) [GRUB_UTIL]: Function removed.
53417 (grub_suspend_fini): Likewise.
53418 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
53420 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
53421 (halt_mod_CFLAGS): New variables.
53422 * include/grub/powerpc/ieee1275/ieee1275.h
53423 (grub_ieee1275_interpret): New prototype.
53425 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
53427 * include/grub/misc.h (memmove): New prototype.
53428 (memcpy): Likewise.
53430 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
53432 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
53433 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
53435 2005-01-22 Marco Gerards <metgerards@student.han.nl>
53437 * kern/misc.c (grub_strndup): Function rewritten.
53439 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
53441 * normal/menu.c (TERM_WIDTH): Macro redefined.
53442 (TERM_TOP_BORDER_Y): Likewise.
53443 (draw_border): Replaced while-loop by a for-loop. Make the number
53444 of lines consistent with the number of lines displayed in
53445 print_entries. Added a margin below the rectangle.
53446 (print_entry): Make the entry fit in the rectangle.
53447 (print_entries): Display the scroll arrows next to the right
53450 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53452 * fs/minix.c (grub_minix_find_file): Reserve more space for
53453 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
53454 `grub_strncpy' to copy `path' into it.
53456 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53458 Add the loopback device, a device via which files can be accessed
53461 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
53462 (pkgdata_MODULES): Add loopback.mod.
53463 (loopback_mod_SOURCES): New variable.
53464 (loopback_mod_CFLAGS): Likewise.
53465 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53467 (pkgdata_MODULES): Add loopback.mod.
53468 (loopback_mod_SOURCES): New variable.
53469 (loopback_mod_CFLAGS): Likewise.
53470 * disk/loopback.c: new file.
53471 * include/grub/normal.h (grub_loop_init): New prototype.
53472 (grub_loop_fini): New prototype.
53473 * util/grub-emu.c (main): Initialize and de-initialize loopback
53475 * include/grub/disk.h (grub_disk_dev_id): Add
53476 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
53478 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
53480 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
53482 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
53483 (suspend_mod_SOURCES): New variable.
53484 (suspend_mod_CFLAGS): Likewise.
53485 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
53487 * commands/ieee1275/suspend.c: New file.
53489 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
53491 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
53492 ((unused))' to `__attribute__ ((used))'.
53493 (GRUB_MOD_FINI): Likewise.
53494 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
53495 * genmk.rb (PModule): Assign space to common symbols when linking
53498 2005-01-20 Marco Gerards <metgerards@student.han.nl>
53500 * include/grub/mm.h (grub_mm_init_region): Change the type of the
53501 `unsigned' arguments to `grub_size_t'.
53502 (grub_malloc): Likewise.
53503 (grub_realloc): Likewise.
53504 (grub_memalign): Likewise.
53505 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
53506 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53507 * util/misc.c (grub_malloc): Likewise.
53508 (grub_realloc): Likewise.
53509 * kern/mm.c (get_header_from_pointer): Change the casts to
53510 `unsigned' into a cast to `grub_size_t'.
53512 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
53513 point to `currnode' when `currnode' is changed.
53515 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
53516 Schottelius <nico-linux@schottelius.org>.
53518 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
53520 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
53521 (note_path): Remove variable.
53522 (GRUB_IEEE1275_NOTE_NAME): New macro.
53523 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
53524 (grub_ieee1275_note_hdr): New structure.
53525 (grub_ieee1275_note_desc): Likewise.
53526 (grub_ieee1275_note): Likewise.
53527 (load_note): Remove `dir' argument. All callers updated. Remove
53528 `note_img' and `path'. Do not load a file from `note_path'.
53529 Initialize a struct grub_ieee1275_note and write that to `out'.
53530 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
53532 2005-01-05 Marco Gerards <metgerards@student.han.nl>
53534 * util/misc.c (grub_util_read_image): Revert last change. It
53535 called `grub_util_read_at', which seeks from the beginning of the
53538 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
53540 * TODO: Add note about endianness in grub-mkimage.
53541 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
53543 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
53544 (grub_mkimage_SOURCES): New target.
53545 * include/grub/kernel.h (grub_start_addr): Remove variable.
53546 (grub_end_addr): Likewise.
53547 (grub_total_module_size): Likewise.
53548 (grub_kernel_image_size): Likewise.
53549 (GRUB_MODULE_MAGIC): New constant.
53550 (grub_module_info): New structure.
53551 (grub_arch_modules_addr): New prototype.
53552 (grub_get_end_addr): Remove prototype.
53553 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
53554 * include/grub/powerpc/ieee1275/kernel.h: New file.
53555 * include/grub/util/misc.h (grub_util_get_fp_size): New
53557 (grub_util_read_at): Likewise.
53558 (grub_util_write_image_at): Likewise.
53559 * kern/main.c (grub_get_end_addr): Remove function.
53560 (grub_load_modules): Call grub_arch_modules_addr instead of using
53561 grub_end_addr. Look for a grub_module_info struct in memory. Use
53562 the grub_module_info fields instead of calling grub_get_end_addr
53563 as loop conditions. Move grub_add_unused_region code here.
53564 (grub_add_unused_region): Remove function.
53565 * kern/i386/pc/init.c: Include grub/cache.h.
53566 (grub_machine_init): Remove call to grub_get_end_addr. Remove
53567 one call to add_mem_region.
53568 (grub_arch_modules_addr): New function.
53569 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
53570 (grub_total_module_size): Likewise.
53571 Include grub/machine/kernel.h.
53572 (grub_arch_modules_addr): New function.
53573 * util/grub-emu.c (grub_end_addr): Remove variable.
53574 (grub_total_module_size): Likewise.
53575 (grub_arch_modules_addr): New function.
53576 * util/misc.c: Include unistd.h.
53577 (grub_util_get_fp_size): New function.
53578 (grub_util_read_at): Likewise.
53579 (grub_util_write_image_at): Likewise.
53580 (grub_util_read_image): Call grub_util_read_at.
53581 (grub_util_write_image): Call grub_util_write_image_at.
53582 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
53583 additional memory in kernel_img for a struct grub_module_info.
53584 Fill in that grub_module_info.
53585 * util/powerpc/ieee1275/grub-mkimage.c: New file.
53587 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53589 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
53591 * include/grub/powerpc/ieee1275/ieee1275.h
53592 (grub_ieee1275_milliseconds): New prototype.
53593 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
53595 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
53596 grub_ieee1275_milliseconds.
53598 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53600 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
53602 (find_options): New function.
53603 (cmain): Call find_options.
53604 * include/grub/powerpc/ieee1275/ieee1275.h
53605 (grub_ieee1275_realmode): New extern variable.
53606 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
53607 grub_map if grub_ieee1275_realmode is false.
53609 2004-12-29 Marco Gerards <metgerards@student.han.nl>
53611 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
53612 lines are inserted and make it work like readline. Reported by
53613 Vincent Pelletier <subdino2004@yahoo.fr>.
53615 2004-12-28 Marco Gerards <metgerards@student.han.nl>
53617 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
53619 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
53620 `kern/powerpc/cache.S'.
53622 2004-12-27 Marco Gerards <metgerards@student.han.nl>
53624 * genmk.rb: Handle the `Program' class in the main loop. Written
53625 by Johan Rydberg <jrydberg@gnu.org>.
53626 (Program): New class.
53627 (programs): New variable.
53628 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
53629 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
53630 instead of "grub/kernel.h". Include <grub/machine/init.h>.
53631 (help_arch): Function removed.
53632 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
53633 `powerpc/libgcc.h' and `loader.h'.
53634 (pkgdata_PROGRAMS): New variable.
53635 (sbin_UTILITIES): Variable removed.
53636 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
53637 (grubof_SOURCES): Variable re-defined so it only includes the
53638 core functionality.
53639 (grubof_CFLAGS): Remove `-DGRUBOF'.
53640 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
53641 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
53642 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
53643 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
53644 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
53645 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
53646 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
53647 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
53648 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
53649 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
53650 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
53651 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
53652 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
53653 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
53654 (pc_mod_CFLAGS): New variables.
53655 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
53656 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
53657 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
53658 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
53660 * include/grub/i386/pc/init.h (grub_os_area_addr)
53661 (rub_os_area_size): ... to here.
53662 * include/grub/powerpc/ieee1275/ieee1275.h
53663 (grub_ieee1275_entry_fn): Export symbol.
53664 * include/grub/powerpc/ieee1275/init.h: New file.
53665 * include/grub/powerpc/libgcc.h: Likewise.
53666 * include/grub/cache.h: Likewise.
53667 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
53668 <hollis@penguinppc.org>.
53669 * kern/dl.c: Include <grub/cache.h>.
53670 (grub_dl_flush_cache): New function.
53671 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
53673 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
53674 (grub_console_init): Removed prototypes.
53675 (grub_machine_init): Don't initialize the modules anymore.
53676 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
53678 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
53679 Macro undef removed.
53680 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
53681 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
53682 relocation `R_PPC_REL32'. Return an error when the relocation is
53684 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
53685 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
53686 * util/misc.c (grub_arch_sync_caches): Likewise.
53688 2004-12-19 Marco Gerards <metgerards@student.han.nl>
53690 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
53691 `symlist.c', add `grubof_symlist.c'.
53692 (symlist.c): Variable removed.
53693 (grubof_HEADERS): Variable added.
53694 (grubof_symlist.c): New target.
53695 (kernel_syms.lst): Use `grubof_HEADERS' instead of
53696 `kernel_img_HEADERS'.
53697 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
53698 * kern/powerpc/dl.c: New file.
53699 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
53701 (grub_arch_dl_relocate_symbols): Likewise.
53702 (grub_register_exported_symbols): Likewise.
53704 2004-12-13 Marco Gerards <metgerards@student.han.nl>
53706 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
53707 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
53708 to fail instead. Reported by Vincent Pelletier
53709 <subdino2004@yahoo.fr>.
53711 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
53712 it is not allocated. Reported by Vincent Pelletier
53713 <subdino2004@yahoo.fr>.
53715 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
53716 output so the output looks better.
53718 2004-12-04 Marco Gerards <metgerards@student.han.nl>
53720 Modulize the partition map support and add support for the amiga
53723 * commands/ls.c: Include <grub/partition.h> instead of
53724 <grub/machine/partition.h>.
53725 * kern/disk.c: Likewise.
53726 * kern/rescue.c: Likewise.
53727 * loader/i386/pc/chainloader.c: Likewise.
53728 * normal/cmdline.c: Likewise.
53729 * kern/powerpc/ieee1275/init.c: Likewise.
53730 (grub_machine_init): Call `grub_pc_partition_map_init',
53731 `grub_amiga_partition_map_init' and
53732 `grub_apple_partition_map_init'.
53733 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
53734 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
53735 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
53736 `partition.h' and `pc_partition.h'.
53737 (grub_setup_SOURCES): Remove
53738 `disk/i386/pc/partition.c'. Add `kern/partition.c',
53739 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53740 (grub_emu_SOURCES): Likewise.
53741 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
53742 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
53743 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
53744 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53745 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
53746 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53747 (grubof_SOURCES): Likewise.
53748 * disk/i386/pc/partition.c: File removed.
53749 * disk/powerpc/ieee1275/partition.c: Likewise.
53750 * include/grub/powerpc/ieee1275/partition.h: Likewise.
53751 * include/grub/i386/pc/partition.h: Likewise.
53752 * kern/partition.c: New file.
53753 * partmap/amiga.c: Likewise.
53754 * partmap/apple.c: Likewise.
53755 * partmap/pc.c: Likewise.
53756 * include/grub/partition.h: Likewise..
53757 * include/grub/pc_partition.h: Likewise.
53758 * util/grub-emu.c: Include <grub/partition.h> instead of
53759 <grub/machine/partition.h>.
53760 (main): Call `grub_pc_partition_map_init',
53761 `grub_amiga_partition_map_init' and
53762 `grub_apple_partition_map_init' and deinitialize afterwards.
53763 * util/i386/pc/biosdisk.c: Include `#include
53764 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53765 `<grub/machine/partition.h>'.
53766 * util/i386/pc/grub-setup.c: Likewise.
53767 * util/i386/pc/biosdisk.c: Likewise.
53768 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
53769 partition information in case of a PC partition.
53770 * util/i386/pc/grub-setup.c: Include `#include
53771 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53772 `<grub/machine/partition.h>'.
53773 (setup): Only access the PC specific partition information in case
53776 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
53778 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53779 (grub_longjmp): Likewise.
53780 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53782 * normal/powerpc/setjmp.S: New file.
53783 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53784 `normal/powerpc/setjmp.S'.
53785 (grubof_CFLAGS): Add `-DGRUBOF'.
53786 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53787 [GRUB_UTIL && !GRUBOF].
53789 2004-11-16 Marco Gerards <metgerards@student.han.nl>
53791 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53792 property named `name'. Correctly handle the error returned by
53793 `grub_ieee1275_finddevice' if a device can not be opened.
53795 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53797 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53798 `actual' for negativity.
53799 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53802 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53804 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53805 (PAGE_OFFSET): New macro.
53806 (CRTC_ADDR_PORT): Likewise.
53807 (CRTC_DATA_PORT): Likewise.
53808 (START_ADDR_HIGH_REGISTER): Likewise.
53809 (START_ADDR_LOW_REGISTER): Likewise.
53810 (GRAPHICS_ADDR_PORT): Likewise.
53811 (GRAPHICS_DATA_PORT): Likewise.
53812 (READ_MAP_REGISTER): Likewise.
53813 (INPUT_STATUS1_REGISTER): Likewise.
53814 (INPUT_STATUS1_VERTR_BIT): Likewise.
53815 (page): New variable.
53816 (wait_vretrace): New function.
53817 (set_read_map): Likewise.
53818 (set_start_address): Likewise.
53819 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53821 (check_vga_mem): Take the page into account.
53822 (write_char): Likewise.
53823 (write_cursor): Likewise.
53824 (scroll_up): Likewise. Copy the page to the page that is not
53825 shown and switch between both pages.
53826 (grub_vga_putchar): Fix off by one error.
53827 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53830 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53832 Add support for iso9660 (including rockridge).
53834 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53835 (iso9660_mod_SOURCES): New variable.
53836 (iso9660_mod_CFLAGS): Likewise.
53837 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53838 * include/grub/fs.h (grub_iso9660_init): New prototype.
53839 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53840 * fs/iso9660.c: New file.
53842 * include/grub/misc.h (grub_strncat): New prototype.
53843 * kern/misc.c (grub_strncat): New function.
53845 * fs/hfs.c (grub_hfs_mount): Translate the error
53846 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
53847 * fs/jfs.c (grub_jfs_mount): Likewise.
53848 * fs/ufs.c (grub_ufs_mount): Likewise.
53850 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
53852 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
53853 which initialized BAT registers.
53854 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
53855 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53857 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
53858 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53860 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
53861 (grub_mapclaim): Likewise.
53862 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
53863 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
53866 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
53868 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
53869 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
53870 -ffreestanding and -msoft-float.
53872 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
53874 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
53875 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
53876 set in grub_ieee1275_flags.
53878 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
53880 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
53882 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
53883 grub_console_init first.
53884 Change the memory range used for grub_ieee1275_claim and
53885 grub_mm_init_region.
53886 Print an error message if the claim fails.
53887 Include <grub/misc.h>.
53889 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
53891 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
53892 Call grub_children_iterate for device nodes of type `scsi',
53894 (grub_ofdisk_open): Remove manual device alias resolution.
53895 Fix memory leak when device cannot be opened.
53896 * include/grub/powerpc/ieee1275/ieee1275.h
53897 (grub_children_iterate): New prototype.
53898 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
53900 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53901 Return -1 if args.size was -1.
53903 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53905 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
53906 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
53907 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
53908 Open Firmware's memory for it; claim memory from _start to _end.
53909 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
53910 (_end): New extern.
53911 (_start): Zero BSS from __bss_start to _end.
53912 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53914 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
53916 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53918 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
53919 -1 if args.base was -1.
53921 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
53923 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
53924 escape sequence instead of a literal ^L. Also call
53925 grub_ofconsole_gotoxy.
53927 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
53929 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
53930 void * arguments to grub_addr_t. All callers updated. Also make
53931 the `result' argument optional.
53932 (grub_ieee1275_release): change void * arguments to grub_addr_t.
53933 All callers updated.
53935 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
53937 * commands/ls.c (grub_ls_list_files): Use the string following the
53938 initial ')', if present, as the filesystem path.
53939 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
53941 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
53943 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
53945 Make the source code of the menu interface more readable.
53947 * normal/menu.c: Include grub/mm.h.
53948 (TERM_WIDTH): New macro.
53949 (TERM_HEIGHT): Likewise.
53950 (TERM_INFO_HEIGHT): Likewise.
53951 (TERM_MARGIN): Likewise.
53952 (TERM_SCROLL_WIDTH): Likewise.
53953 (TERM_TOP_BORDER_Y): Likewise.
53954 (TERM_LEFT_BORDER_X): Likewise.
53955 (TERM_BORDER_WIDTH): Likewise.
53956 (TERM_MESSAGE_HEIGHT): Likewise.
53957 (TERM_BORDER_HEIGHT): Likewise.
53958 (TERM_NUM_ENTRIES): Likewise.
53959 (TERM_FIRST_ENTRY_Y): Likewise.
53960 (TERM_ENTRY_WIDTH): Likewise.
53961 (TERM_CURSOR_X): Likewise.
53962 (draw_border): Use macros instead of magic numbers.
53963 (print_entry): Likewise.
53964 (print_entries): Likewise.
53965 (run_menu): Likewise. Also, handle the key 'e'.
53966 (run_menu_entry): Ignore empty command lines.
53967 (print_message): Added a new argument EDIT. If EDIT is true,
53968 print a different message.
53969 (init_page): Likewise.
53970 (edit_menu_entry): New function. Not implemented yet.
53972 2004-09-17 Marco Gerards <metgerards@student.han.nl>
53974 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
53975 can be loaded from normal mode.
53977 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
53979 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
53980 (multiboot_mod_CFLAGS): New variables.
53981 * loader/i386/pc/linux_normal.c: New file.
53982 * loader/i386/pc/multiboot_normal.c: Likewise.
53984 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
53985 attribute `unused'.
53987 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
53988 `fdiro' to read the mode information from instead of `diro'.
53990 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
53991 looking up a symlink.
53993 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
53995 * normal/command.c (grub_command_execute): Don't parse the
53996 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
53997 flags of the command.
53999 * normal/menu.c (grub_menu_run): Fix typo.
54001 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
54003 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
54005 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
54006 `y + 1' instead of `y - 1'.
54008 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
54010 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
54012 From Hollis Blanchard <hollis@penguinppc.org>:
54013 * kern/misc.c (memmove): New alias for grub_memmove.
54014 (memcmp): New alias for grub_memcmp.
54015 (memset): New alias for grub_memset.
54016 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
54017 Change "int handle" to "grub_ieee1275_phandle_t handle".
54018 * include/grub/powerpc/ieee1275/ieee1275.h
54019 (grub_ieee1275_get_property): Likewise.
54021 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
54023 Added normal mode command `chainloader' as module chain.mod, which
54024 depends on normal.mod and _chain.mod.
54026 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
54027 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
54028 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
54030 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
54031 but arguments parsing moved to ...
54032 (grub_chainloader_cmd): ... here. New function.
54033 * include/grub/i386/pc/chainloader.h: New file.
54034 * loader/i386/pc/chainloader_normal.c: Likewise.
54036 2004-09-11 Marco Gerards <metgerards@student.han.nl>
54038 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
54039 (grub_mkimage_LDFLAGS): Likewise.
54040 (grub_emu_SOURCES): Likewise.
54041 (kernel_img_HEADERS): Added fshelp.h.
54042 * fs/ext2.c: Include <grub/fshelp.h>.
54043 (FILETYPE_REG): New macro.
54044 (FILETYPE_INO_REG): Likewise.
54045 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
54047 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
54049 (grub_fshelp_node): New struct.
54050 (grub_ext2_data): Added member `diropen'. Changed member `inode'
54052 (grub_ext2_get_file_block): Removed function.
54053 (grub_ext2_read_block): New function.
54054 (grub_ext2_read_file): Replaced parameter `data' by `node'.
54055 This function was written.
54056 (grub_ext2_mount): Read the root inode. Create a diropen struct.
54057 (grub_ext2_find_file): Removed function.
54058 (grub_ext2_read_symlink): New function.
54059 (grub_ext2_iterate_dir): Likewise.
54060 (grub_ext2_open): Rewritten.
54061 (grub_ext2_dir): Rewritten.
54062 * include/grub/fshelp.h: New file.
54063 * fs/fshelp.c: Likewise.
54065 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
54067 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
54068 (print_message): Add a missing newline.
54069 (run_menu): Added timeout support.
54070 (run_menu_entry): New local function.
54071 (grub_menu_run): Added support for booting.
54073 * kern/loader.c (grub_loader_is_loaded): New function.
54075 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
54076 (grub_get_rtc): Exported.
54078 * include/grub/i386/pc/time.h: Include grub/symbol.h.
54079 (grub_get_rtc): Exported.
54081 * include/grub/normal.h (struct grub_command_list): Remove
54082 constant from the member `command'.
54084 * include/grub/loader.h (grub_loader_is_loaded): Declared.
54086 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
54088 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
54090 2004-08-28 Marco Gerards <metgerards@student.han.nl>
54092 Add support for the JFS filesystem.
54094 * fs/jfs.c: New file.
54095 * include/grub/fs.h (grub_jfs_init): New prototype.
54096 (grub_jfs_fini): New prototype.
54097 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
54098 (grub_emu_SOURCES): Likewise.
54099 (pkgdata_MODULES): Add jfs.mod.
54100 (jfs_mod_SOURCES): New variable.
54101 (jfs_mod_CFLAGS): Likewise.
54102 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
54103 (grubof_SOURCES): Likewise.
54104 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
54106 * fs/fat.c (grub_fat_find_dir): Convert the filename little
54107 endian to the host endian.
54108 (grub_fat_utf16_to_utf8): Move function from there...
54109 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
54110 the endianness of the source string anymore.
54111 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
54113 2004-08-24 Marco Gerards <metgerards@student.han.nl>
54115 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
54116 (grub_boot_fini) [GRUB_UTIL]: Likewise.
54117 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
54118 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
54120 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
54121 (grub_hfs_iterate_dir): Make the function static. Add prototypes
54122 for `node_found' and `it_dir'.
54123 (grub_hfs_dir): Add prototype for `dir_hook'.
54125 * fs/minix.c (grub_minix_get_file_block): Add prototype for
54126 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
54127 and `indir32' to silence a gcc warning.
54129 * include/grub/fs.h (grub_hfs_init): New prototype.
54130 (grub_hfs_fini): Likewise.
54133 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
54135 Each disk device has its own id now. This is useful to make use
54136 of multiple disk devices.
54138 * include/grub/disk.h (grub_disk_dev_id): New enum.
54139 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
54140 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
54142 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
54143 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54145 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
54146 GRUB_DISK_DEVICE_OFDISK_ID as an id.
54148 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
54149 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54151 * include/grub/disk.h (struct grub_disk_dev): Added a new member
54152 "id" which is used by the cache manager.
54154 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
54157 2004-08-18 Marco Gerards <metgerards@student.han.nl>
54159 * fs/hfs.c: New file.
54160 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
54161 (grub_emu_SOURCES): Likewise.
54162 (pkgdata_MODULES): Add hfs.mod.
54163 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
54164 (grubof_SOURCES): Likewise.
54165 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
54167 * include/grub/misc.h (grub_strncasecmp): Add prototype.
54168 * kern/misc.c (grub_strncasecmp): Add function.
54170 2004-08-14 Marco Gerards <metgerards@student.han.nl>
54172 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
54175 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
54176 (grub_ext2_dir): In case the directory entry type is unknown, read
54179 2004-08-02 Peter Bruin <pjbruin@dds.nl>
54181 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
54182 grub_load_linux instead of grub_rescue_cmd_linux as second
54183 argument of grub_rescue_register_command.
54185 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
54187 2004-07-27 Marco Gerards <metgerards@student.han.nl>
54189 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
54191 * commands/boot.c: Remove the check for `GRUB_UTIL'.
54192 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
54193 `loader/powerpc/ieee1275/linux.c',
54194 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
54195 * include/grub/powerpc/ieee1275/ieee1275.h
54196 (grub_ieee1275_release): New prototype.
54197 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
54198 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
54199 normal, boot, linux and linux_normal.
54200 * loader/powerpc/ieee1275/linux.c: New file.
54201 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
54203 2004-07-12 Marco Gerards <metgerards@student.han.nl>
54205 * normal/arg.c (grub_arg_parse): Correct error handling after
54206 reallocating the argumentlist (check if `argl' is not null instead
54207 of checking if `args' is not null).
54208 * kern/mm.c (grub_realloc): Return the same pointer when using the
54209 same region, instead of returning the header address.
54211 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54213 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
54214 one block instead of two when looking for the initial partition.
54215 (grub_partition_probe): Initialize the local variable `p' with 0.
54216 Use base 10 for the grub_strtoul call.
54217 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
54218 need for one local variable.
54219 (grub_strtoul): Don't add the new value to `num', instead of that
54222 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54224 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
54225 (pxeboot_img_SOURCES): New variable.
54226 (pxeboot_img_ASFLAGS): Likewise.
54227 (pxeboot_img_LDFLAGS): Likewise.
54228 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
54229 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
54230 <lode_leroy@hotmail.com>.
54232 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54234 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
54235 there was no input.
54237 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54239 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
54240 the history buffer logic.
54242 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54244 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
54245 (FILETYPE_INO_SYMLINK): New macros.
54246 (grub_ext2_find_file): Check if the node is a directory using the
54247 inode stat information instead of using the filetype in the
54248 dirent. Exclude the first character of an absolute symlink.
54249 (grub_ext2_dir): Mask out the filetype part of the mode member of
54252 2004-05-24 Marco Gerards <metgerards@student.han.nl>
54254 Add support for UFS version 1 and 2. Add support for the minix
54255 filesystem version 1 and 2, both the variants with 14 and 30 long
54258 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
54260 (grub_emu_SOURCES): Likewise.
54261 (pkgdata_MODULES): Add ufs.mod and minix.mod.
54262 (ufs_mod_SOURCES): New variable.
54263 (ufs_mod_CFLAGS): Likewise.
54264 (minix_mod_SOURCES): Likewise.
54265 (minix_mod_CFLAGS): Likewise.
54266 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
54268 (grubof_SOURCES): Likewise.
54269 * fs/ufs.c: New file.
54270 * fs/minix.c: New file.
54271 * include/grub/fs.h (grub_ufs_init): New prototype.
54272 (grub_ufs_fini): Likewise.
54273 (grub_minix_init): Likewise.
54274 (grub_minix_fini): Likewise.
54275 * util/grub-emu.c (main): Initialize and deinitialize UFS and
54278 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
54280 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
54281 commands/ls.c, commands/terminal.c, commands/boot.c,
54282 commands/cmp.c and commands/cat.c.
54283 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
54285 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
54288 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54290 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
54291 and grub_, respectively. Because the conversion is trivial and
54292 mechanical, I omit the details here. Please refer to the CVS
54293 if you need more information.
54295 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54297 * include/pupa: Renamed to ...
54298 * include/grub: ... this.
54299 * util/i386/pc/pupa-mkimage.c: Renamed to ...
54300 * util/i386/pc/grub-mkimage.c: ... this.
54301 * util/i386/pc/pupa-setup.c: Renamed to ...
54302 * util/i386/pc/grub-setup.c: ... this.
54303 * util/pupa-emu.c: Renamed to ...
54304 * util/grub-emu.c: ... this.
54306 2004-03-29 Marco Gerards <metgerards@student.han.nl>
54308 Add support for the newworld apple macintosh (PPC). This has been
54309 tested on the powerbook 2000 only. It only adds support for
54310 generic ieee1275 functions, console and disk support. This should
54311 be easy to port to other architectures with support for Open
54314 * configure.ac: Accept the powerpc as host_cpu. In the case of
54315 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
54316 specific tests are only executed while building for the i386.
54317 Inverse test for crosscompile.
54318 * genmk.rb (Utility): Allow assembler files.
54319 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
54320 * conf/powerpc-ieee1275.rmk: New file.
54321 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
54322 * disk/powerpc/ieee1275/partition.c: Likewise.
54323 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
54324 * include/pupa/powerpc/ieee1275/console.h: Likewise.
54325 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
54326 * include/pupa/powerpc/ieee1275/time.h: Likewise.
54327 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
54328 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
54329 * include/pupa/powerpc/ieee1275/loader.h
54330 * include/pupa/powerpc/setjmp.h: Likewise.
54331 * include/pupa/powerpc/types.h: Likewise.
54332 * kern/powerpc/ieee1275/init.c: Likewise.
54333 * kern/powerpc/ieee1275/openfw.c: Likewise.
54334 * term/powerpc/ieee1275/ofconsole.c: Likewise.
54336 These files were written by Johan Rydberg
54337 (jrydberg@night.trouble.net) and I only modified them slightly.
54339 * boot/powerpc/ieee1275/cmain.c: New file.
54340 * boot/powerpc/ieee1275/crt0.S: Likewise.
54341 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
54342 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
54344 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
54346 * Makefile.in: Update copyright.
54347 * genmodsrc.sh: Likewise.
54348 * gensymlist.sh: Likewise.
54349 * term/i386/pc/vga.c: Indent correctly.
54351 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
54352 bugreporting address.
54353 * util/i386/pc/pupa-setup.c (usage): Likewise,
54354 (main): Call pupa_ext2_init and pupa_ext2_fini.
54356 * fs/fat.c (log2): Renamed to ...
54357 (fat_log2): ... this.
54358 All callers changed.
54359 * kern/misc.c (memcpy): Alias to pupa_memmove.
54360 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
54362 * util/console.c (pupa_ncurses_fini): Return 0.
54364 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
54365 Move fail label here.
54366 [__GNU__]: Don't warn when using stat.
54367 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
54368 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
54369 long int. Use strtol instead of strtoul.
54371 2004-03-14 Marco Gerards <metgerards@student.han.nl>
54373 * commands/boot.c: New file.
54374 * commands/cat.c: Likewise.
54375 * commands/cmp.c: Likewise.
54376 * commands/ls.c: Likewise.
54377 * commands/terminal.c: Likewise.
54378 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
54379 (pupa_register_command): Changed interface to match the new
54381 (pupa_command_execute): Changed (almost rewritten) so it uses
54382 pupa_split_command. Added support for setting variables using the
54384 (rescue_command): Changed to work with the new argument parser.
54385 (terminal_command): Moved from here to commands/terminal.c.
54386 (set_command): New function.
54387 (unset_command): New function.
54388 (insmod_command): New function.
54389 (rmmod_command): New function.
54390 (lsmod_command): New function.
54391 (pupa_command_init): Don't initialize the command terminal
54392 anymore. Initialize the commands set, unset, insmod, rmmod and
54394 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
54395 (kernel_img_HEADERS): Add arg.h and env.h.
54396 (pupa_mkimage_LDFLAGS): Add kern/env.c.
54397 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
54398 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
54400 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
54402 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
54403 (boot_mod_SOURCES): New variable.
54404 (terminal_mod_SOURCES): Likewise.
54405 (ls_mod_SOURCES): Likewise.
54406 (cmp_mod_SOURCES): Likewise.
54407 (cat_mod_SOURCES): Likewise.
54409 * normal/arg.c: New file.
54410 * kern/env.c: Likewise.
54411 * include/pupa/arg.h: Likewise.
54412 * include/pupa/env.h: Likewise.
54413 * font/manager.c (font_command): Changed to match argument parsing
54415 (PUPA_MOD_INIT): Likewise.
54416 * hello/hello.c (pupa_cmd_hello): Likewise.
54417 (PUPA_MOD_INIT): Likewise.
54418 * include/pupa/disk.h: Include <pupa/device.h>.
54419 (pupa_print_partinfo): New prototype.
54420 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
54421 (pupa_dl_get_prefix): Likewise.
54422 * include/pupa/misc.h: Include <pupa/err.h>.
54423 (pupa_isgraph): New prototype.
54424 (pupa_isdigit): Likewise.
54425 (pupa_split_cmdline): Likewise.
54426 * include/pupa/normal.h: Include <pupa/arg.h>.
54427 (pupa_command): Changed the prototype of the member `func' to
54428 match the argument parsing interface. Added member `options'.
54429 (pupa_register_command): Updated to match function.
54430 (pupa_arg_parse): New prototype.
54431 (pupa_hello_init) [PUPA_UTIL]: New prototype.
54432 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
54433 (pupa_ls_init) [PUPA_UTIL]: Likewise.
54434 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
54435 (pupa_cat_init) [PUPA_UTIL]: Likewise.
54436 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
54437 (pupa_boot_init) [PUPA_UTIL]: Likewise.
54438 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
54439 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
54440 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
54441 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
54442 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
54443 * kern/disk.c: Include <pupa/file.h>.
54444 (pupa_print_partinfo): New function.
54445 * kern/dl.c: Include <pupa/env.h>.
54446 (pupa_dl_dir): Variable removed.
54447 (pupa_dl_load): Use the environment variable `prefix' instead of
54448 the variable pupa_dl_dir.
54449 (pupa_dl_set_prefix): Function removed.
54450 (pupa_dl_get_prefix): Likewise.
54451 * kern/i386/pc/init.c: Include <pupa/env.h>.
54452 (pupa_machine_init): Use the environment variable `prefix' instead of
54453 using pupa_dl_set_prefix to set the prefix.
54454 * kern/main.c: Include <pupa/env.h>.
54455 (pupa_set_root_dev): Use the environment variable `prefix' instead of
54456 using pupa_dl_get_prefix to get the prefix.
54457 * kern/misc.c: Include <pupa/env.h>.
54458 (pupa_isdigit): New function.
54459 (pupa_isgraph): Likewise.
54460 (pupa_ftoa): Likewise.
54461 (pupa_vsprintf): Added support for printing values of the type
54462 `double'. Make it possible to format variable output when using
54463 formatting like `%1.2%f'.
54464 (pupa_split_cmdline): New function.
54465 * kern/rescue.c: Include <pupa/env.h>.
54466 (next_word): Removed function.
54467 (pupa_rescue_cmd_prefix): Likewise.
54468 (pupa_rescue_cmd_set): New function.
54469 (pupa_rescue_cmd_unset): New function.
54470 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
54471 split the command line instead of splitting it here. Added
54472 support for setting variables using the syntax `foo=bar'. Don't
54473 initialize the prefix command anymore. Initialized the set and
54475 * normal/cmdline.c: Include <pupa/env.h>.
54476 (pupa_tab_complete): Added prototypes for print_simple_completion,
54477 print_partition_completion, add_completion, iterate_commands,
54478 iterate_dev, iterate_part and iterate_dir. Moved code to print
54479 partition information from here to kern/disk.c.
54480 (pupa_cmdline_run): Don't check if the function exists anymore.
54481 * normal/main.c: Include <pupa/env.h>.
54482 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
54483 instead of using pupa_dl_get_prefix to get the prefix.
54484 * term/i386/pc/vga.c: Include <pupa/arg.h>.
54485 (check_vga_mem): Cast pointers to `void *' to silence a gcc
54487 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
54488 (pupa_vga_setcolor): Declare unused variables with `__attribute__
54489 ((unused))' to silence a gcc warning.
54490 (pupa_vga_setcolor): Likewise.
54491 (debug_command): Changed to match argument parsing
54493 * util/pupa-emu.c: Include <pupa/env.h>.
54494 (options): Added 0's for unused fields to silence a gcc warning.
54496 (main): Use the environment variable `prefix' instead of using
54497 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
54498 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
54501 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
54502 * util/misc.c: Include <malloc.h>.
54503 (pupa_malloc): Rewritten so errors are correctly reported.
54504 (pupa_realloc): Likewise.
54505 (pupa_memalign): Likewise.
54506 (pupa_mm_init_region): Declare unused variables with
54507 `__attribute__ ((unused))' to silence a gcc warning.
54508 * normal/i386/setjmp.S: Remove tab at the end of the file to
54509 silence a gcc warning.
54510 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
54511 variables with `__attribute__ ((unused))' to silence a gcc
54513 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
54514 local variable i unsigned to silence a gcc warning.
54516 * kern/term.c: Include <pupa/misc.h>.
54517 (pupa_more_lines): New variable.
54518 (pupa_more): Likewise.
54519 (pupa_putcode): When the pager is active pause at the end of every
54521 (pupa_set_more): New function.
54522 * include/pupa/term.h (pupa_set_more): New prototype.
54525 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
54527 Now this project is GRUB 2 rather than PUPA. The location of
54528 the CVS repository was moved to GRUB's.
54530 * configure.ac: Use bug-grub as the reporting address.
54531 Use GRUB instead of PUPA.
54532 Change the version number to 1.90.
54534 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
54536 * genkernsyms.sh: Updated copyright information.
54537 * genmk.rb: Likewise.
54538 * genmodsrc.sh: Likewise.
54539 * gensymlist.sh: Likewise.
54540 * boot/i386/pc/boot.S: Likewise.
54541 * boot/i386/pc/diskboot.S: Likewise.
54542 * disk/i386/pc/biosdisk.c: Likewise.
54543 * disk/i386/pc/partition.c: Likewise.
54544 * font/manager.c: Likewise.
54545 * fs/ext2.c: Likewise.
54546 * fs/fat.c: Likewise.
54547 * include/pupa/boot.h: Likewise.
54548 * include/pupa/device.h: Likewise.
54549 * include/pupa/disk.h: Likewise.
54550 * include/pupa/dl.h: Likewise.
54551 * include/pupa/elf.h: Likewise.
54552 * include/pupa/err.h: Likewise.
54553 * include/pupa/file.h: Likewise.
54554 * include/pupa/font.h: Likewise.
54555 * include/pupa/fs.h: Likewise.
54556 * include/pupa/kernel.h: Likewise.
54557 * include/pupa/loader.h: Likewise.
54558 * include/pupa/misc.h: Likewise.
54559 * include/pupa/mm.h: Likewise.
54560 * include/pupa/net.h: Likewise.
54561 * include/pupa/normal.h: Likewise.
54562 * include/pupa/rescue.h: Likewise.
54563 * include/pupa/setjmp.h: Likewise.
54564 * include/pupa/symbol.h: Likewise.
54565 * include/pupa/term.h: Likewise.
54566 * include/pupa/types.h: Likewise.
54567 * include/pupa/i386/setjmp.h: Likewise.
54568 * include/pupa/i386/types.h: Likewise.
54569 * include/pupa/i386/pc/biosdisk.h: Likewise.
54570 * include/pupa/i386/pc/boot.h: Likewise.
54571 * include/pupa/i386/pc/console.h: Likewise.
54572 * include/pupa/i386/pc/init.h: Likewise.
54573 * include/pupa/i386/pc/kernel.h: Likewise.
54574 * include/pupa/i386/pc/linux.h: Likewise.
54575 * include/pupa/i386/pc/loader.h: Likewise.
54576 * include/pupa/i386/pc/memory.h: Likewise.
54577 * include/pupa/i386/pc/multiboot.h: Likewise.
54578 * include/pupa/i386/pc/partition.h: Likewise.
54579 * include/pupa/i386/pc/time.h: Likewise.
54580 * include/pupa/i386/pc/vga.h: Likewise.
54581 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
54582 * include/pupa/util/getroot.h: Likewise.
54583 * include/pupa/util/misc.h: Likewise.
54584 * include/pupa/util/resolve.h: Likewise.
54585 * kern/device.c: Likewise.
54586 * kern/disk.c: Likewise.
54587 * kern/dl.c: Likewise.
54588 * kern/err.c: Likewise.
54589 * kern/file.c: Likewise.
54590 * kern/fs.c: Likewise.
54591 * kern/loader.c: Likewise.
54592 * kern/main.c: Likewise.
54593 * kern/misc.c: Likewise.
54594 * kern/mm.c: Likewise.
54595 * kern/rescue.c: Likewise.
54596 * kern/term.c: Likewise.
54597 * kern/i386/dl.c: Likewise.
54598 * kern/i386/pc/init.c: Likewise.
54599 * kern/i386/pc/lzo1x.S: Likewise.
54600 * kern/i386/pc/startup.S: Likewise.
54601 * loader/i386/pc/chainloader.c: Likewise.
54602 * loader/i386/pc/linux.c: Likewise.
54603 * loader/i386/pc/multiboot.c: Likewise.
54604 * normal/cmdline.c: Likewise.
54605 * normal/command.c: Likewise.
54606 * normal/main.c: Likewise.
54607 * normal/menu.c: Likewise.
54608 * normal/i386/setjmp.S: Likewise.
54609 * term/i386/pc/console.c: Likewise.
54610 * term/i386/pc/vga.c: Likewise.
54611 * util/console.c: Likewise.
54612 * util/genmoddep.c: Likewise.
54613 * util/misc.c: Likewise.
54614 * util/pupa-emu.c: Likewise.
54615 * util/resolve.c: Likewise.
54616 * util/unifont2pff.rb: Likewise.
54617 * util/i386/pc/biosdisk.c: Likewise.
54618 * util/i386/pc/getroot.c: Likewise.
54619 * util/i386/pc/pupa-mkimage.c: Likewise.
54620 * util/i386/pc/pupa-setup.c: Likewise.
54622 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
54624 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
54625 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
54626 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
54627 reading and reset it after reading.
54628 (pupa_ext2_close): Return PUPA_ERR_NONE.
54630 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
54632 (struct linux_kernel_header): Add kernel_version and
54634 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
54635 pupa_file_read succeeds.
54636 (pupa_rescue_cmd_initrd): Implement.
54638 2003-12-03 Marco Gerards <metgerards@student.han.nl>
54640 * fs/ext2.c (pupa_ext2_label): New function.
54641 (pupa_ext2_fs): Added label.
54642 * fs/fat.c (pupa_fat_label): New function.
54643 (pupa_fat_fs): Added label.
54644 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
54646 * kern/misc.c (pupa_strndup): New function.
54647 * include/pupa/misc.h (pupa_strndup): New prototype.
54649 * include/pupa/normal.h: Include <pupa/err.h>.
54650 (pupa_set_history): New prototype.
54651 (pupa_iterate_commands): New prototype.
54652 * normal/cmdline.c: Include <pupa/machine/partition.h>,
54653 <pupa/disk.h>, <pupa/file.h>.
54654 (hist_size): New variable.
54655 (hist_lines): Likewise.
54656 (hist_end): Likewise.
54657 (hist_used): Likewise.
54658 (pupa_set_history): New function.
54659 (pupa_history_get): Likewise.
54660 (pupa_history_add): Likewise.
54661 (pupa_history_replace): Likewise.
54662 (pupa_tab_complete): Likewise.
54663 (pupa_cmdline_run): Added tab completion and history buffer. Tab
54664 completion shows partitionnames while completing partitions, this
54665 feature was suggested by Jeff Bailey.
54666 * normal/command.c (pupa_iterate_commands): New function.
54667 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
54668 (pupa_normal_init): Initialize history buffer.
54669 (PUPA_MOD_INIT): Likewise.
54670 (pupa_normal_fini): Free the history buffer.
54671 (PUPA_MOD_FINI): Likewise.
54673 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
54676 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
54677 * configure.ac [i386]: Check for regparam bug.
54678 (NESTED_FUNC_ATTR) [! i386]: Defined.
54680 2003-11-17 Marco Gerards <metgerards@student.han.nl>
54682 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
54683 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
54684 (pupa_emu_SOURCES): New variable.
54685 (pupa_emu_LDFLAGS): Likewise.
54686 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
54687 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
54688 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
54689 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54690 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
54691 (pupa_jmp_buf): New typedef.
54692 (pupa_setjmp) [PUPA_UTIL]: New macro.
54693 (pupa_longjmp) [PUPA_UTIL]: Likewise.
54694 * include/pupa/term.h (struct pupa_term): New member `refresh'.
54695 (pupa_refresh): New prototype.
54696 * include/pupa/util/getroot.h: New file.
54697 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
54699 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
54700 (pupa_rescue_cmd_cat): Likewise.
54701 (pupa_rescue_cmd_ls): Likewise.
54702 (pupa_rescue_cmd_testload): Likewise.
54703 (pupa_rescue_cmd_lsmod): Likewise.
54704 * normal/cmdline.c (pupa_cmdline_get): Likewise.
54705 * normal/menu.c (run_menu): Likewise.
54706 * kern/term.c (pupa_cls): Likewise.
54707 (pupa_refresh): New function.
54708 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
54709 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54710 * util/console.c: New file.
54712 * util/i386/pc/getroot.c: New file.
54713 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
54714 (pupa_putchar): New function.
54715 (pupa_refresh): Likewise.
54716 (xgetcwd): Function moved to ...
54717 (strip_extra_slashes): Likewise.
54718 (get_prefix): Likewise.
54719 * util/i386/pc/getroot.c: ... here.
54720 (find_root_device): Function moved and renamed to...
54721 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
54722 Changed all callers.
54723 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
54725 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
54726 Changed all callers.
54727 * util/misc.c (pupa_memalign): New function.
54728 (pupa_mm_init_region): Likewise.
54729 (pupa_register_exported_symbols): Likewise.
54730 (pupa_putchar): Function removed.
54731 * util/pupa-emu.c: New file.
54733 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
54735 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
54736 (_multiboot_mod_SOURCES): New variable.
54737 (_multiboot_mod_CFLAGS): Likewise.
54738 * loader/i386/pc/multiboot.c: New file.
54739 * include/pupa/i386/pc/multiboot.h: Likewise.
54740 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
54741 (pupa_multiboot_real_boot): New function.
54742 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
54743 (pupa_multiboot_real_boot): New prototype.
54744 (pupa_rescue_cmd_multiboot): Likewise
54745 (pupa_rescue_cmd_module): Likewise.
54747 * kern/loader.c (pupa_loader_set): Continue when
54748 pupa_loader_unload_func() fails.
54749 (pupa_loader_unset): New function.
54750 * include/pupa/loader.h (pupa_loader_unset): New prototype.
54752 * kern/misc.c (pupa_stpcpy): New function.
54753 * include/pupa/misc.h (pupa_stpcpy): New prototype.
54755 2003-11-12 Marco Gerards <metgerards@student.han.nl>
54757 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
54758 for available extensions.
54760 * include/pupa/i386/pc/time.h: New file.
54761 * kern/disk.c: Include <pupa/machine/time.h>.
54762 (PUPA_CACHE_TIMEOUT): New macro.
54763 (pupa_last_time): New variable.
54764 (pupa_disk_open): Flush the cache when there was a timeout.
54765 (pupa_disk_close): Reset the timer.
54766 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
54768 * util/misc.c: Include <sys/times.h>
54769 (pupa_get_rtc): New function.
54771 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54773 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54775 (pupa_ext2_get_file_block): Use blocks member.
54777 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54778 first block. Return -1 instead of pupa_errno on error.
54780 2003-10-27 Marco Gerards <metgerards@student.han.nl>
54782 * README: In the pupa-mkimage example use _chain instead of chain
54783 and ext2 instead of fat.
54784 * TODO: Replace ext2fs with jfs as an example. Add an item for
54785 adding journal playback for ext2fs.
54786 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54787 (pkgdata_MODULES): Added ext2.mod.
54788 (ext2_mod_SOURCES): New variable.
54789 (ext2_mod_CFLAGS): Likewise.
54790 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54791 * include/pupa/misc.h (pupa_strncpy): New prototype.
54792 (pupa_strcat): Likewise.
54793 (pupa_strncmp): Likewise.
54794 * kern/misc.c (pupa_strcat): Enable function.
54795 (pupa_strncpy): New function.
54796 (pupa_strncmp): Likewise.
54797 * fs/ext2.c: New file.
54799 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54800 when the read failed before retrying.
54801 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54802 (_FILE_OFFSET_BITS): Likewise.
54803 * configure.ac: Added AC_SYS_LARGEFILE.
54805 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54807 * genmk.rb (PModule#rule): Make sure to get only symbol names
54808 from the output of nm.
54809 Reported by Robert Millan <rmh.grub@aybabtu.com>.
54811 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54813 I forgot to check in these changes for a long time. This adds
54814 incomplete support for VGA console, and this is still very
54815 buggy. Also, a lot of consideration is required for I18N,
54816 UNICODE, and VGA font issues. Therefore, assume that this is
54817 such that "better than nothing".
54819 * font/manager.c: New file.
54820 * include/pupa/font.h: Likewise.
54821 * include/pupa/i386/pc/vga.h: Likewise.
54822 * term/i386/pc/vga.c: Likewise.
54823 * util/unifont2pff.rb: Likewise.
54825 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54826 (pkgdata_MODULES): Added vga.mod and font.mod.
54827 (vga_mod_SOURCES): New variables.
54828 (vga_mod_CFLAGS): Likewise.
54829 (font_mod_SOURCES): Likewise.
54830 (font_mod_CFLAGS): Likewise.
54832 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54834 * include/pupa/term.h: Include pupa/err.h.
54835 (struct pupa_term): Added init and fini.
54836 Changed the argument of putchar to pupa_uint32_t.
54838 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54839 (pupa_console_real_putchar): New prototype.
54840 (pupa_console_putchar): Removed.
54841 (pupa_console_checkkey): Exported.
54842 (pupa_console_getkey): Likewise.
54844 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
54847 * kern/term.c (pupa_term_set_current): Rewritten.
54848 (pupa_putchar): Likewise.
54849 (pupa_putcode): New function.
54851 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
54852 (pupa_console_real_putchar): ... this.
54853 (pupa_vga_set_mode): New function.
54854 (pupa_vga_get_font): Likewise.
54856 * normal/command.c: Include pupa/term.h.
54857 (terminal_command): New function.
54858 (pupa_command_init): Register the command "terminal".
54860 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
54861 (DISP_UP): Likewise.
54862 (DISP_RIGHT): Likewise.
54863 (DISP_DOWN): Likewise.
54864 (DISP_HLINE): Likewise.
54865 (DISP_VLINE): Likewise.
54866 (DISP_UL): Likewise.
54867 (DISP_UR): Likewise.
54868 (DISP_LL): Likewise.
54869 (DISP_LR): Likewise.
54871 * term/i386/pc/console.c (pupa_console_putchar): New function.
54873 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
54875 * util/resolve.c (pupa_util_resolve_dependencies): BUG
54876 FIX. Reverse the path_list.
54878 * include/pupa/normal.h: Export pupa_register_command and
54879 pupa_unregister_command.
54881 * hello/hello.c (pupa_cmd_hello): New module.
54882 * conf/i386-pc.rmk: Added hello.mod.
54884 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
54886 * kern/i386/pc/lzo1x.S: New file.
54888 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
54889 (compress_kernel): New variable.
54890 (generate_image): Heavily modified to support compressing a
54891 large part of the core image.
54893 * util/misc.c (pupa_util_read_image): Fix a file descriptor
54895 (pupa_util_load_image): New function.
54897 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
54898 (pupa_compressed_size): New variable.
54899 (codestart): Enable Gate A20 here.
54900 Decompress the compressed part of the core image.
54901 Rearrange the code to put functions and variables which are
54902 required for initialization in the non-compressed part.
54905 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
54908 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
54910 * include/pupa/i386/pc/kernel.h
54911 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
54912 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
54913 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54914 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54915 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
54917 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
54919 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
54920 (Utility#rule): Likewise.
54922 * configure.ac: Check if LZO is available.
54924 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
54926 * include/pupa/normal.h: New file.
54927 * include/pupa/setjmp.h: Likewise.
54928 * include/pupa/i386/setjmp.h: Likewise.
54929 * normal/cmdline.c: Likewise.
54930 * normal/command.c: Likewise.
54931 * normal/main.c: Likewise.
54932 * normal/menu.c: Likewise.
54933 * normal/i386/setjmp.S: Likewise.
54935 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
54936 (pupa_rescue_cmd_initrd): Likewise.
54938 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
54941 * kern/i386/pc/startup.S (translation_table): New variable.
54942 (translate_keycode): New function.
54943 (pupa_console_getkey): Call translate_keycode.
54945 * kern/rescue.c (attempt_normal_mode): New function.
54946 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
54947 it failed, print a message.
54949 * kern/mm.c (pupa_real_malloc): Print more information when a
54950 free magic is broken.
54951 (pupa_free): If the first free header is not free actually, set
54954 * kern/main.c (pupa_load_normal_mode): Just load the module
54956 (pupa_main): Don't print the message
54957 "Entering into rescue mode..." here.
54959 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
54961 (pupa_rescue_cmd_initrd): Likewise.
54962 (pupa_rescue_cmd_initrd): Likewise.
54964 * include/pupa/symbol.h (FUNCTION): Specify the type.
54965 (VARIABLE): Likewise.
54967 * include/pupa/err.h (pupa_err_t): Added
54968 PUPA_ERR_UNKNOWN_COMMAND.
54970 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
54971 (pupa_dl_get_prefix): Likewise.
54973 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
54974 Added _chain.mod and _linux.mod instead of chain.mod and
54976 (chain_mod_SOURCES): Renamed to ...
54977 (_chain_mod_SOURCES): ... this.
54978 (chain_mod_CFLAGS): Renamed to ...
54979 (_chain_mod_CFLAGS): ... this.
54980 (linux_mod_SOURCES): Renamed to ...
54981 (_linux_mod_SOURCES): ... this.
54982 (linux_mod_CFLAGS): Renamed to ...
54983 (_linux_mod_CFLAGS): ... this.
54984 (normal_mod_SOURCES): New variable.
54985 (normal_mod_CFLAGS): Likewise.
54986 (normal_mod_ASFLAGS): Likewise.
54988 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
54990 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
54993 * kern/dl.c (pupa_dl_ref): Refer depending modules
54995 (pupa_dl_unref): Unrefer depending modules recursively.
54996 Don't call pupa_dl_unload implicitly, because PUPA can crash if
54997 a module is unloaded before one depending on that module is
54999 (pupa_dl_unload): Unload depending modules explicitly,
55002 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
55004 * include/pupa/i386/pc/linux.h: New file.
55005 * loader/i386/pc/linux.c: Likewise.
55007 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
55009 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
55010 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
55011 of PUPA_CHAINLOADER_BOOT_SECTOR.
55013 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
55014 (pupa_linux_prot_size): New variable.
55015 (pupa_linux_tmp_addr): Likewise.
55016 (pupa_linux_real_addr): Likewise.
55017 (pupa_linux_boot_zimage): New function.
55018 (pupa_linux_boot_bzimage): Likewise.
55020 * kern/i386/pc/init.c (struct mem_region): New structure.
55021 (MAX_REGIONS): New macro.
55022 (mem_regions): New variable.
55023 (num_regions): Likewise.
55024 (pupa_os_area_addr): Likewise.
55025 (pupa_os_area_size): Likewise.
55026 (pupa_lower_mem): Likewise.
55027 (pupa_upper_mem): Likewise.
55028 (add_mem_region): New function.
55029 (compact_mem_regions): Likewise.
55030 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
55031 the size of the conventional memory and that of so-called upper
55032 memory (before the first memory hole).
55033 Instead of adding each found region to free memory, use
55034 add_mem_region and add them after removing overlaps.
55035 Also, add only 1/4 of the upper memory to free memory. The rest
55036 is used for loading OS images. Maybe this is ad hoc, but this
55037 makes it much easier to relocate OS images when booting.
55039 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
55040 (pupa_enter_rescue_mode): Don't register initrd and module.
55042 * kern/mm.c: Include pupa/dl.h.
55044 * kern/main.c: Include pupa/file.h and pupa/device.h.
55046 * kern/loader.c (pupa_loader_load_module_func): Removed.
55047 (pupa_loader_load_module): Likewise.
55049 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
55052 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
55053 (pupa_linux_tmp_addr): Likewise.
55054 (pupa_linux_real_addr): Likewise.
55055 (pupa_linux_boot_zimage): Likewise.
55056 (pupa_linux_boot_bzimage): Likewise.
55058 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
55059 (pupa_upper_mem): Likewise.
55060 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
55061 module is too dangerous.
55063 * include/pupa/loader.h (pupa_os_area_addr): Declared.
55064 (pupa_os_area_size): Likewise.
55065 (pupa_loader_set): Remove the first argument. Loader doesn't
55066 manage modules or initrd any longer.
55067 (pupa_loader_load_module): Removed.
55069 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
55070 (linux_mod_SOURCES): New variable.
55071 (linux_mod_CFLAGS): Likewise.
55073 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
55075 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
55076 the length of a blocklist correctly.
55078 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
55079 Use ioctl only if the OS file is a block device.
55080 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
55081 not very useful for normal files.
55083 * kern/main.c (pupa_set_root_dev): New function.
55084 (pupa_load_normal_mode): Likewise.
55085 (pupa_main): Call those above.
55087 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
55090 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
55092 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
55094 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
55095 (setup): Configure the installed partition information and the
55098 * loader/i386/pc/chainloader.c (my_mod): New variable.
55099 (pupa_chainloader_unload): New function.
55100 (pupa_rescue_cmd_chainloader): Refer itself.
55101 (PUPA_MOD_INIT): Save its own module in MY_MOD.
55103 * kern/i386/pc/startup.S (install_partition): Removed.
55104 (version_string): Likewise.
55105 (config_file): Likewise.
55106 (pupa_install_dos_part): New variable.
55107 (pupa_install_bsd_part): Likewise.
55108 (pupa_prefix): Likewise.
55109 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
55111 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
55113 (make_install_device): New function.
55114 (pupa_machine_init): Set the dl prefix.
55116 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
55117 (buf): Renamed to ...
55118 (linebuf): ... this.
55119 (pupa_rescue_cmd_prefix): New function.
55120 (pupa_rescue_cmd_insmod): Likewise.
55121 (pupa_rescue_cmd_rmmod): Likewise.
55122 (pupa_rescue_cmd_lsmod): Likewise.
55123 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
55126 * kern/mm.c (pupa_memalign): If failed even after invalidating
55127 disk caches, unload unneeded modules and retry.
55129 * kern/misc.c (pupa_memmove): New function.
55130 (pupa_memcpy): Removed.
55131 (pupa_strcpy): New function.
55132 (pupa_itoa): Made static.
55134 * kern/dl.c (pupa_dl_iterate): New function.
55135 (pupa_dl_ref): Likewise.
55136 (pupa_dl_unref): Likewise.
55137 (pupa_dl_unload): Return if succeeded or not.
55138 (pupa_dl_unload_unneeded): New function.
55139 (pupa_dl_unload_all): Likewise.
55140 (pupa_dl_init): Renamed to ...
55141 (pupa_dl_set_prefix): ... this.
55142 (pupa_dl_get_prefix): New function.
55144 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
55145 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
55146 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
55147 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
55148 (pupa_install_dos_part): Declared.
55149 (pupa_install_bsd_part): Likewise.
55150 (pupa_prefix): Likewise.
55151 (pupa_boot_drive): Likewise.
55153 * include/pupa/types.h: Fix a typo.
55155 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
55157 (pupa_memmove): Declared.
55158 (pupa_strcpy): Likewise.
55160 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
55161 pupa_mod_init takes one argument, its own module.
55162 (pupa_dl_unload_unneeded): Declared.
55163 (pupa_dl_unload_all): Likewise.
55164 (pupa_dl_ref): Likewise.
55165 (pupa_dl_unref): Likewise.
55166 (pupa_dl_iterate): Likewise.
55167 (pupa_dl_init): Renamed to ...
55168 (pupa_dl_set_prefix): ... this.
55169 (pupa_dl_get_prefix): Declared.
55171 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
55172 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
55174 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
55175 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
55177 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
55178 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
55180 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55182 * util/i386/pc/pupa-setup.c (setup): Define the internal
55183 function find_first_partition_start at the top level, because GCC
55184 3.0.x cannot compile internal functions in deeper scopes
55186 (find_root_device): Use lstat instead of stat.
55187 Don't follow symbolic links.
55188 Fix the path-constructing code.
55190 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
55191 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
55192 by a BLKGETSIZE ioctl first, because block devices don't fill
55193 the member st_mode of the structure stat on Linux.
55194 [__linux__] (linux_find_partition): Use a temporary buffer
55195 REAL_DEV for the working space. Copy it to DEV before returning.
55196 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
55197 buffer cache consistent.
55198 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
55199 strncmp. The previous value was merely wrong.
55200 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
55202 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
55203 FAT size is 12. The previous value was merely wrong.
55205 * kern/main.c (pupa_main): Don't split the starting message from
55208 * kern/term.c (pupa_putchar): Put CR after LF instead of before
55209 LF, because BIOS goes crazy about character attributes in this
55212 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55214 * include/i386/pc/util/biosdisk.h: New file.
55215 * util/i386/pc/biosdisk.c: Likewise.
55216 * util/i386/pc/pupa-setup.c: Likewise.
55218 * Makefile.in (INCLUDE_DISTFILES): Added
55219 include/pupa/i386/pc/util/biosdisk.h.
55220 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
55221 directory util/i386/pc.
55222 (install-local): Added a rule for sbin_UTILITIES.
55223 (uninstall): Likewise.
55225 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
55227 * util/misc.c (xrealloc): New function.
55228 (pupa_malloc): Likewise.
55229 (pupa_free): Likewise.
55230 (pupa_realloc): Likewise.
55231 (pupa_stop): Likewise.
55232 (pupa_putchar): Likewise.
55234 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
55236 * include/pupa/util/misc.h (xrealloc): Declared.
55238 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
55240 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
55241 (PUPA_BOOT_MACHINE_BPB_END): ... this.
55243 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
55244 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55246 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
55247 way should be implemented.
55248 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55250 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
55251 the size of NAME for safety.
55252 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
55255 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
55256 (pupa_setup_SOURCES): Likewise.
55258 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
55260 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55262 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
55263 bunch of pushl's from pusha, because this destroys the return
55266 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55268 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
55269 This means that any missing prototypes could be fatal. Also, you
55270 must take care when writing assembly code. See the comments at
55271 the beginning of startup.S, for more details.
55273 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
55274 compilation mechanism.
55275 (pupa_chainloader_real_boot): Likewise.
55276 (pupa_biosdisk_rw_int13_extensions): Likewise.
55277 (pupa_biosdisk_rw_standard): Likewise.
55278 (pupa_biosdisk_check_int13_extensions): Likewise.
55279 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
55280 (pupa_biosdisk_get_diskinfo_standard): Likewise.
55281 (pupa_get_memsize): Likewise.
55282 (pupa_get_mmap_entry): Likewise.
55283 (pupa_console_putchar): Likewise.
55284 (pupa_console_setcursor): Likewise.
55285 (pupa_getrtsecs): Use pushl instead of push.
55287 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
55288 memory instead of the stack for a mmap entry, because some
55289 BIOSes may ignore the maximum size and overflow.
55291 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
55293 * genmk.rb (PModule#rule): Compile automatically generated
55294 sources with module-specific CFLAGS as well as other sources.
55296 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55298 * configure.ac: Check ld.
55299 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
55300 respectively, before checking endianness and sizes.
55302 * Makefile.in (LD): New variable.
55304 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55306 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
55308 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55310 * Changelog: New file.