1 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3 * grub-core/disk/AFSplitter.c (AF_merge): Check that mdlen is not 0.
5 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Avoid
10 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_maxpacket): Avoid
13 potentially returning 0.
15 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
17 * grub-core/fs/minix.c (grub_minix_read_file): Avoid reading past
20 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22 * grub-core/fs/fshelp.c (grub_fshelp_read_file): Don't attempt to read
25 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Update len
28 synchronously with line.
30 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
32 Replace explicit sizeof divisions by ARRAY_SIZE.
34 2015-01-19 Kris Moore <kris@pcbsd.org>
36 * grub-core/disk/geli.c: Support GELI v6 and v7.
38 2014-12-09 Andrei Borzenkov <arvidjaar@gmail.com>
40 * grub-core/term/serial.c (grub_cmd_serial): Fix --rtscts
43 2014-12-07 David Kozub <zub.272@gmail.com>
45 * grub-core/kern/arm/misc.S: fix unaligned 64bit local variable
47 Fixes Savannah bug #43632.
49 2014-12-07 Peter Nelson <peterdn>
51 * grub-core/fs/ext2.c (grub_ext2_read_block): Support large sparse
54 2014-12-07 Andrei Borzenkov <arvidjaar@gmail.com>
56 * util/grub-mkconfig_lib.in (version_test_gt): Remove redundant
57 non-portable '-n' echo option.
58 * util/grub.d/10_kfreebsd.in: Change how list is built to avoid
59 non-portable 'echo -n.
60 * util/grub.d/10_linux.in: Likewise (closes 43668).
61 * util/grub.d/20_linux_xen.in: Likewise.
62 * util/grub.d/30_os-prober.in: Print spaces directly to avoid
63 non-portable 'echo -n'.
65 2014-12-07 Curtis Larsen <larsen@dixie.edu>
67 * grub-core/net/tcp.c (grub_net_recv_tcp_packet): Fix double
68 free when multiple empty segments were received (closes 42765).
70 2014-12-05 Andrei Borzenkov <arvidjaar@gmail.com>
72 * tests/util/grub-shell.in: Support --files also for netboot.
73 * tests/file_filter_test.in: New file with file filters tests.
74 * Makefile.util.def: Add file_filter_test.
75 * conf/Makefile.extra-dist: ... and here.
76 * tests/file_filter/file.gz: Test file for file_filter_test.
77 * tests/file_filter/file.gz.sig: Likewise.
78 * tests/file_filter/file.lzop: Likewise.
79 * tests/file_filter/file.lzop.sig: Likewise.
80 * tests/file_filter/file.xz: Likewise.
81 * tests/file_filter/file.xz.sig: Likewise.
82 * tests/file_filter/keys: Likewise.
83 * tests/file_filter/keys.pub: Likewise.
84 * tests/file_filter/test.cfg: Likewise.
85 * grub-core/commands/verify.c: Fix memory corruption doing
86 signature check for network files (closes 43601).
88 2014-12-01 Andrei Borzenkov <arvidjaar@gmail.com>
90 * grub-core/loader/i386/xen_fileXX.c (grub_xen_get_infoXX): Fix
91 memory leak (CID 73645, 73782).
92 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix memory leak
95 2014-11-30 Andrei Borzenkov <arvidjaar@gmail.com>
97 * grub-core/lib/syslinux_parse.c (free_menu): Do not free
98 inline array (CID 73610).
100 2014-11-28 Andrei Borzenkov <arvidjaar@gmail.com>
102 * grub-core/io/lzopio.c (test_header): Fix double free (CID 73665)
103 * grub-core/disk/geli.c (configure_ciphers): Fix memory leaks
104 (Coverity CID 73813, 73710)
105 * grub-core/disk/luks.c (configure_ciphers): Fix memory leaks
106 and use after free (Coverity CID 73813, 73710, 73730)
107 * grub-core/disk/luks.c (luks_recover_key): Fix memory leak (Coverity
109 * util/grub-install-common.c (grub_install_get_target): Check return
110 value of grub_util_fd_read (Coverity CID 73819).
111 * util/grub-mkstandalone.c (add_tar_file): Fix out of bound access
112 to hd.magic (Coverity CID 73587, 73888, bug 43690).
114 2014-11-20 Andrei Borzenkov <arvidjaar@gmail.com>
116 * tests/util/grub-fs-tester.in: Consistently print output
117 of grub ls if test fails.
119 2014-11-07 Leif Lindholm <leif.lindholm@linaro.org>
121 * grub-core/kern/efi/init.c: check value of *path before
124 2014-11-03 Michael Chang <mchang@suse.com>
126 * grub-core/net/icmp6.c (grub_net_recv_icmp6_packet): Fix size
127 of neighbor solicitation packet in grub_netbuff_pull.
129 2014-10-14 Andrei Borzenkov <arvidjaar@gmail.com>
131 * grub-core/loader/arm/linux.c: Use full initializer for initrd_ctx to
132 avoid fatal warnings with older gcc (probably before 4.7).
133 * grub-core/loader/arm64/linux.c: Likewise.
134 * grub-core/loader/i386/linux.c: Likewise.
135 * grub-core/loader/i386/pc/linux.c: Likewise.
136 * grub-core/loader/ia64/efi/linux.c: Likewise.
137 * grub-core/loader/mips/linux.c: Likewise.
138 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
139 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
141 2014-09-25 Colin Watson <cjwatson@ubuntu.com>
143 Fix in-tree --platform=none
145 * configure.ac: Only remove include/grub/cpu and
146 include/grub/machine in the --platform=none case, not all of
149 2014-09-23 Colin Watson <cjwatson@ubuntu.com>
151 Add a new "none" platform that only builds utilities
153 * configure.ac: Add "none" platform. Default to it for unsupported
154 CPUs rather than stopping with a fatal error. Don't downgrade
155 x86_64-none to i386. Define COND_real_platform Automake conditional
156 if the platform is anything other than "none". Don't do any include
157 directory linking for "none".
158 * Makefile.am: Skip building grub-core and all bootcheck targets if
160 * include/grub/time.h: Don't include <grub/cpu/time.h> if GRUB_UTIL
163 2014-09-22 Andrei Borzenkov <arvidjaar@gmail.com>
165 Use grub_cpu_to_XXX_compile_time for constants.
167 2014-09-21 Valentin Dornauer <valentin@unimplemented.org>
169 The AML parser implements only a small subset of possible AML
170 opcodes. On the Fujitsu Lifebook E744 this and another bug in
171 the parser (incorrect handling of TermArg data types) would lead
172 to the laptop not turning off (_S5 not found).
174 * grub-core/commands/acpihalt.c: Support OpAlias in the AML parser;
175 in skip_ext_op(), handle some Type2Opcodes more correctly (TermArgs
176 aren't always simply strings!); Add function to skip TermArgs
177 * include/grub/acpi.h: Add new opcodes
179 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
181 * grub-core/normal/main.c: Don't drop to rescue console in
182 case of password-protected prompt and no menu entries.
184 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
186 * grub-core/commands/keylayouts.c: Ignore unknown keys.
188 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
190 * grub-core/gmodule.pl.in: Accept newer binutils which output
191 empty column rather than 0x0.
193 2014-09-21 Michael Chang <mchang@suse.com>
195 * grub-core/osdep/unix/config.c: Remove extraneous comma.
197 2014-09-21 Peter Jones <pjones@redhat.com>
199 * grub-core/loader/arm/linux.c: Initialized initrd_ctx so
200 we don't free a random pointer from the stack.
201 * grub-core/loader/arm64/linux.c: Likewise.
202 * grub-core/loader/i386/linux.c: Likewise.
203 * grub-core/loader/i386/pc/linux.c: Likewise.
204 * grub-core/loader/ia64/efi/linux.c: Likewise.
205 * grub-core/loader/mips/linux.c: Likewise.
206 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
207 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
209 2014-09-15 Khem Raj <raj.khem@gmail.com>
211 * grub-core/kern/emu/hostfs.c: use _DEFAULT_SOURCE in addition to
212 _BSD_SOURCE to avoid warnings under glibc 2.20+.
214 2014-09-08 Michael Chang <mchang@suse.com>
216 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Fix extent size
217 check; comparing &data->extent against addresses in the region it
218 points to is unpredictable.
220 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
222 Support grub-emu on x32 (ILP32 but with x86-64 instruction set)
224 * configure.ac: Remove -m64 from checks for -mcmodel=large and
225 -mno-red-zone. These are always either unnecessary (x86_64-emu) or
226 already in TARGET_CFLAGS at this point, and they produce incorrect
227 results when building for x32.
228 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Cast
229 pointers to Elf64_Xword via grub_addr_t, in order to work on x32.
230 * include/grub/x86_64/types.h (GRUB_TARGET_SIZEOF_VOID_P,
231 GRUB_TARGET_SIZEOF_LONG): Define to 4 on x32.
233 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
235 * configure.ac: Remove several unnecessary semicolons.
237 2014-08-25 Colin Watson <cjwatson@ubuntu.com>
239 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
240 Initialise pend to pacify GCC.
242 2014-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
244 * util/grub-mkconfig.in: Fix typo (gettext_print instead of
247 2014-08-13 Vladimir Serbinenko <phcoder@gmail.com>
249 * grub-core/term/at_keyboard.c: Retry probing keyboard if
250 scancode setup failed.
252 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
254 * grub-core/kern/disk_common.c: Clump disk size to 1EiB.
256 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
258 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Add
259 safety to avoid triggerring VirtualBox bug.
261 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
263 * grub-core/fs/cbfs.c: Don't probe disks of unknow size.
265 Fixes hang on virtualbox.
267 2014-07-08 Colin Watson <cjwatson@ubuntu.com>
269 * util/grub.d/10_hurd.in: Make kernel list progression not fail on
270 kernels whose paths contain regex metacharacters.
271 * util/grub.d/10_kfreebsd.in: Likewise.
272 * util/grub.d/10_linux.in: Likewise.
273 * util/grub.d/20_linux_xen.in: Likewise.
275 Reported by: Heimo Stranner.
277 2014-06-26 Colin Watson <cjwatson@ubuntu.com>
279 * docs/grub-dev.texi (Finding your way around): The build system no
280 longer uses AutoGen directly.
282 2014-06-21 Роман Пехов <roman_pekhov>
284 * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check.
286 2014-06-21 Glenn Washburn <development@efficientek.com>
288 * util/grub-install.c: Fix handling of --disk-module.
290 2014-06-21 Stephane Rochoy <sheda>
292 * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
295 2014-06-21 Stephane Rochoy <sheda>
297 * grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
298 EFI system table physical address.
300 2014-06-21 Trevor Woerner <trevor.woerner@linaro.org>
302 * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
304 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
306 * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
308 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
310 * grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
313 2014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
315 * grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
317 Reported by: Yves Blusseau <blusseau@zetam.org>.
319 2014-04-20 Piotr Krysiuk <piotras@gmail.com>
321 * grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
322 GDT in conventional memory.
324 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
326 * util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
327 UUID. Other parts of grub-mkconfig tolerate these, they were
328 previously allowed here up to commit
329 55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
330 practice when the system has active LVM snapshots.
331 Fixes Ubuntu bug #1287436.
333 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
335 * grub-core/disk/lvm.c (grub_lvm_detect): Search for
336 "logical_volumes" block a little more accurately.
338 2014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
340 * grub-core/lib/syslinux_parse.c: Fix timeout quoting.
342 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
344 * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
347 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
349 Replace few instances of memcmp/memcpy in the code that should be
350 grub_memcmp/grub_memcpy.
352 2014-04-03 Vladimir Serbinenko <phcoder@gmail.com>
354 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
357 2014-03-31 Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
359 btrfs: fix get_root key comparison failures due to endianness
361 * grub-core/fs/btrfs.c (get_root): Convert
362 GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
364 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
366 Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
368 Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
369 no longer to be forgiving of trailing spaces on grub-probe output
370 lines, which among other things means that util/grub.d/10_linux.in
371 no longer detects LVM. To fix this, make grub-probe's output
372 delimiting more consistent. As a bonus, this improves the coverage
375 Fixes Debian bug #735935.
377 * grub-core/disk/cryptodisk.c
378 (grub_util_cryptodisk_get_abstraction): Add a user-data argument.
379 * grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
381 * include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
383 * include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
384 * util/grub-install.c (push_partmap_module, push_cryptodisk_module,
385 probe_mods): Adjust for extra user-data arguments.
386 * util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
387 probe_abstraction): Use configured delimiter. Update callers.
389 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
391 * util/grub-probe,c (options): Make -0 work again (broken by
393 (main): Simplify logic.
395 2014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
397 * grub-core/lib/relocator.c: Fix the case when end of leftover is used.
399 2014-03-26 Fu Wei <fu.wei@linaro.org>
401 * grub-core/loader/arm64/linux.c: Remove redundant "0x".
403 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
405 * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
406 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
408 Suggested by: Markus Müller.
410 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
412 * grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map
413 if E820 failed to return any regions.
415 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
417 * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
418 tables for low memory calculations.
420 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
422 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
425 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
427 * grub-core/kern/i386/coreboot/mmap.c: Filter out 0xa0000-0x100000
430 2014-02-20 Vladimir Serbinenko <phcoder@gmail.com>
432 * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
435 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
437 Add bootpath parser for open firmware.
439 It enables net boot even when there is no bootp/dhcp server.
441 * grub-core/net/drivers/ieee1275/ofnet.c: Add grub_ieee1275_parse_bootpath
442 and call it at grub_ieee1275_net_config_real.
443 * grub-core/kern/ieee1275/init.c: Add bootpath to
444 grub_ieee1275_net_config.
445 * include/grub/ieee1275/ieee1275.h: Likewise.
448 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
450 Add grub_env_set_net_property function.
452 * grub-core/net/bootp.c: Remove set_env_limn_ro.
453 * grub-core/net/net.c: Add grub_env_set_net_property.
454 * include/grub/net.h: Likewise.
456 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
458 * util/grub-mkrescue.c: Build fix for argp.h with older gcc.
460 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
462 * util/grub-mkfont.c: Build fix for argp.h with older gcc.
464 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
466 * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
467 7 seconds to recover if last poweroff was bad.
469 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
471 * grub-core/disk/ahci.c: Properly handle transactions with no
474 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
476 * grub-core/disk/ahci.c: Add safety cleanups.
478 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
480 * grub-core/disk/ahci.c: Allocate and clean space for all possible 32
481 slots to avoid pointing to uninited area.
483 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
485 * grub-core/disk/ahci.c: Do not enable I/O decoding and keep
486 enabling busmaster for the end.
488 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
490 * util/grub-mkfont.c: Downgrade warnings about unhandled features
493 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
495 * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
497 2014-01-29 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
499 * .gitignore: add missing files and .exe variants.
501 2014-01-26 Mike Gilbert <floppym@gentoo.org>
503 grub-install: support for partitioned partx loop devices.
505 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
506 /dev/loopX as being the parent of /dev/loopXpY.
508 2014-01-26 Vladimir Serbinenko <phcoder@gmail.com>
510 * grub-core/term/serial.c (grub_serial_register): Fix invalid free.
511 Ensure that pointers are inited to NULL and that pointers are not
514 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
516 * include/grub/crypto.h: Replace __attribute__ ((format (printf)) with
517 __attribute__ ((format (__printf__)) to fix compilation under MinGW-w64.
518 * include/grub/emu/misc.h: ... and here.
519 * include/grub/err.h: ... and here.
520 * util/import_gcry.py: ... and here (in files g10lib.h).
522 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
524 * util/grub-mkimage.c: Make prefix argument mandatory.
526 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
528 Fix several translatable strings.
530 Suggested by: D. Prévot.
532 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
534 * util/grub-install.c: List available targets.
536 2014-01-23 Colin Watson <cjwatson@ubuntu.com>
538 * util/grub-install.c (write_to_disk): Add an info message.
540 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
542 * Makefile.am: Allow adding extra files to generated Windows ZIP
543 archive by setting GRUB_WINDOWS_EXTRA_DIST.
545 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
547 * configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
548 Show detected font path in summary.
550 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
552 * grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
554 * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise.
555 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
556 * grub-core/net/tftp.c (tftp_open): Likewise.
557 * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
559 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
561 * grub-core/net/net.c (receive_packets): Change stop condition to avoid
564 In net/net.c there is a while (1) that only exits if there is a stop
565 condition and more then 10 packages or if there is no package received.
567 If GRUB is idle and enter in this loop, the only condition to leave is
568 if it doesn't have incoming packages. In a network with heavy traffic
571 2014-01-19 Colin Watson <cjwatson@ubuntu.com>
573 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
574 EPERM when modifying kern.geom.debugflags. It is only a problem for
575 such things as installing GRUB to the MBR, in which case there'll be
576 an error later anyway, not for opening files during tests.
578 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
580 * grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
581 instead of MOD_FILES.
582 * grub-core/genemuinit.sh: Simplify stripping of suffix so it works
583 both with and without .exe.
584 * grub-core/genemuinitheader.sh: Same.
586 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
588 * util/grub-install.c: Fix a typo.
590 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
592 * grub-core/normal/main.c (read_config_file): Buffer config file.
595 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
597 * acinclude.m4 (grub_CHECK_LINK_DIR): Check that we can also remove
598 symbolic link to directory. It fails in Msys shell on Windows 2003.
600 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
602 * Makefile.am (default_payload.elf): Add modules
603 multiboot cbmemc linux16 gzio echo help.
605 2014-01-18 Mike Gilbert <floppym@gentoo.org>
607 * Makefile.util.def: Link grub-ofpathname with zfs libs.
609 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
611 * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
614 Reported by: Andrey Borzenkov.
616 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
618 * include/grub/misc.h: Move macros for compiler features to ...
619 * include/grub/compiler.h: ... new file.
620 * include/grub/list.h: Include <grub/compiler.h> instead of <grub/misc.h>.
621 * grub-core/commands/fileXX.c: Include <grub/misc.h>.
622 * grub-core/efiemu/prepare.c: Include <grub/misc.h>.
623 * grub-core/loader/i386/xen_file.c: Include <grub/misc.h>.
624 * grub-core/loader/i386/xen_fileXX.c: Include <grub/misc.h>.
625 * grub-core/video/capture.c: Include <grub/misc.h>.
626 * include/grub/command.h: Include <grub/misc.h>.
627 * include/grub/dl.h: Include <grub/misc.h>.
628 * include/grub/procfs.h: Include <grub/misc.h>.
630 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
632 * configure.ac: Add support for BUILD_EXEEXT and use it ...
633 * Makefile.am: ... here.
634 * Makefile.util.def: ... and here.
635 * grub-core/Makefile.am: ... and here.
637 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
639 * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
640 FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
642 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
644 * grub-core/term/terminfo.c: Recognize keys F1-F12.
646 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
648 * configure.ac: Add support for BUILD_LDFLAGS.
649 * Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
650 * grub-core/Makefile.am: ... and here.
651 * INSTALL: Mention BUILD_LDFLAGS.
653 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
655 * util/grub-mount.c: Extend GCC warning workaround to grub-mount.
657 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
659 * grub-core/kern/efi/efi.c: Ensure that the result starts with /
662 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
664 * NEWS: Add few missing entries.
666 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
668 * util/grub.d/00_header.in (make_timeout): Use && rather than test
670 * util/grub.d/10_windows.in: Likewise.
671 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
673 * util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
676 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
678 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
679 redundant preprocessor conditional.
681 2014-01-08 Colin Watson <cjwatson@ubuntu.com>
683 * Makefile.util.def (grub-macbless): Change mansection to 8.
685 2014-01-07 Leif Lindholm <leif.lindholm@linaro.org>
687 * grub-core/loader/arm64/linux.c: correctly set device path end length.
689 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
691 * util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
692 arm64 to comply with EFI specification. Also use grubaa64.efi for
694 * util/grub-mkrescue.c: Change to use bootaa64.efi too.
696 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
698 * include/grub/osdep/hostfile_windows.h: Do not redefine fseeko/ftello
699 on MinGW-64 when compiling for 32 bits.
701 2013-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
703 * grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
705 2013-12-30 Vladimir Serbinenko <phcoder@gmail.com>
707 * NEWS: Add few missing entries. Correct existing ones.
709 2013-12-28 Vladimir Serbinenko <phcoder@gmail.com>
711 Don't abort() on unavailable coreboot tables if not running on coreboot.
713 2013-12-28 Andrey Borzenkov <arvidjaar@gmail.com>
715 * grub-core/kern/emu/misc.c: Remove unused error.h; fixes compilation
718 2013-12-28 Colin Watson <cjwatson@ubuntu.com>
720 * NEWS: The cmosclean command in fact dates back to 1.99. Remove
721 mention of it from 2.02.
723 2013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
725 * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
727 As these functions are used on pre-ARMv6 CPUs as well we don't want
728 to make assembler assume that architecture is higher than default one.
730 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
732 * NEWS: First draft of 2.02 entry.
734 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
736 * INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
737 * docs/grub.texi (Getting the source code): Likewise.
739 2013-12-25 Andrey Borzenkov <arvidjaar@gmail.com>
741 * grub-core/osdep/windows/platform.c (get_platform): Fix EFI
744 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
746 * configure.ac: Set version to 2.02~beta2.
748 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
750 * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
752 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
754 * util/grub-probe.c: Improve help message and simplify list handling.
756 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
758 Fix buffer overflow in grub_efi_print_device_path.
760 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
762 Show SATA device path.
764 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
766 Revert grub-file usage in grub-mkconfig.
768 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
770 Make newly-created files other than grub.cfg world-readable.
772 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
774 * util/grub.d/00_header.in: Improve compatibility with old config.
776 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
778 Make rijndael.c respect aliasing rules.
780 Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
782 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
784 Make grub_util_device_is_mapped_stat available in grub-emu core.
786 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
788 Add -Qn to TARGET_CFLAGS if it's supported.
789 Fixes compilation on cygwin.
791 Reported by: Andrey Borzenkov.
792 Suggested by: Andrey Borzenkov.
794 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
796 Save TARGET_CC version in modinfo.sh.
798 Suggested by: Andrey Borzenkov.
800 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
802 Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
803 follow the same algorithm to avoid method mismatch. Don't assume
804 DMRAID- UUID to mean full disk but instead check that mapping is linear.
806 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
808 Declare GRUB_EFI_VENDOR_APPLE_GUID.
810 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
812 Dump type and vendor specific data when printing device path.
814 2013-12-23 Colin Watson <cjwatson@debian.org>
816 Update some documentation to refer to Git rather than Bazaar.
818 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
820 * po/README: Likewise. Fix spelling mistake.
822 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
824 Don't distribute config.h.
826 * Makefile.am (platform_HEADERS): Move to ...
827 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
828 failure when building from a distributed tarball.
830 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
832 * configure.ac: Fix spelling.
833 * grub-core/commands/parttool.c: Fix grammar.
834 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
835 Embedding Partition".
837 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
839 ARM64 support for grub-mkrescue.
841 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
843 Install modinfo.sh to keep build information around.
845 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
847 * grub-core/modinfo.sh.in: Add build config information.
849 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
851 ARM64 grub-file and grub-mkconfig support.
853 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
855 Remove leftover options defines.
857 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
859 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
861 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
863 * grub-core/loader/arm64/linux.c: Add missing bracket.
865 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
867 Add arm64-efi recognition to grub-file.
869 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
871 Fix ia64-efi recognition in grub-file.
873 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
875 Recognize raspberry pi kernel in grub-file.
877 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
879 Enable cache on ARM U-Boot port.
881 Without it the port is reidiculously slow.
883 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
885 Fix ARM cache maintainance.
887 More code was converted from ASM to C for easier handling.
889 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
891 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
894 Suggested by: Leif Lindholm.
896 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
898 * util/grub-mkconfig.in: Fix Xen platform conditions.
900 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
902 * util/grub-mkrescue.c: Split single help message string in several
903 strings used in previous shell version.
905 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
907 Add arm64 Linux loader.
909 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
911 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
913 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
915 Add module loading and parsing boot time checkpoints.
917 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
919 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
922 2013-12-22 Lars Wendler <polynomial-c@gentoo.org>
924 * util/grub-mkconfig.in: Skip non-executable files.
926 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
928 Workaround buggy timer in raspberry pie by using our own timer
931 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
933 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
934 Increase to 16 MiB to allow loading the whole memdisk.
936 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
938 Fix ARM Linux Loader on non-FDT platforms.
940 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
942 * configure.ac: Choose link format based on host_os on emu.
944 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
946 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
948 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
950 * grub-core/kern/emu/main.c: Build fix for emu.
952 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
954 Build fixes for argp.h with older gcc.
956 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
958 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
961 Suggested by: David Prévot.
963 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
965 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
967 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
969 Enable -Wformat=2 if it's supported.
971 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
973 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
974 -Wmissing-declarations if supported.
976 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
978 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
979 u32 as both HFS and HFS+ have 32-bit inodes.
981 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
983 * include/grub/misc.h (grub_strtol): Fix overflow.
985 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
987 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
988 as return type in both conditionals.
990 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
992 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
993 to use uint8_t for color.
995 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
997 * util/misc.c (grub_util_get_image_size): Check for overflow.
999 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1001 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
1004 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1006 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
1007 for pointer difference.
1009 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1011 * util/import_gcry.py: Skip sample keys.
1013 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1015 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
1017 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1019 * configure.ac: Remove duplicate warning arguments.
1021 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1023 Add missing static qualifiers.
1025 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1027 Add missing includes.
1029 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1031 Inline printf templates when possible to enable format checking.
1033 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1035 * include/grub/crypto.h: Don't discard const attribute.
1037 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1039 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
1042 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1044 * grub-core/lib/crypto.c: Don't discard const attribute.
1046 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1048 * grub-core/lib/disk.c: Fix potential overflow.
1050 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1052 * grub-core/lib/arg.c: Don't discard const attribute.
1054 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1056 * grub-core/kern/dl.c: Don't discard const attribute.
1058 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1060 * grub-core/kern/disk.c: Fix potential overflow.
1062 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1064 * conf/Makefile.common: Don't include non-existing directory
1065 grub-core/lib/libgcrypt-grub/include.
1067 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1069 Clarify several translatable messages.
1071 2013-12-21 David Prévot <david@tilapin.org>
1073 Correct some translatable strings.
1075 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
1077 * util/grub-mkrescue.c: Rephrase mkrescue description.
1079 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1080 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
1082 Clarify several translatable messages.
1084 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
1086 Be more verbose about some configure failures.
1088 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
1090 Fix various build problems on GNU/Hurd.
1092 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
1094 (xgetcwd): Likewise.
1095 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
1096 [__GNU__]: Add prototype.
1097 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
1098 long int using %ld rather than %d.
1100 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1102 * util/grub-install.c: Inform user about install platform.
1104 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1106 * configure.ac: Set version to 2.02~beta1.
1108 2013-12-18 Allen Pais <allen.pais@oracle.com>
1109 2013-12-18 Bob Picco <bob.picco@oracle.com>
1111 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
1113 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1115 Make grub_zlib_decompress handle incomplete chunks.
1119 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1121 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
1124 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1126 * grub-core/disk/usbms.c: Retry on unknown errors.
1127 Reuse the same tag on retries.
1129 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1131 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
1133 Avoid confusing them with already completed transfers.
1135 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1139 Due to XEN bug it prevents Linux boot. Remove it at least, until
1140 workaround is found.
1142 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1144 * po/exclude.pot: Add 2 missing excludes.
1146 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1148 Add missing license section in macbless.mod and macho.mod.
1150 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1152 Allow compilation without thumb-interwork as long as no thumb is
1153 involved or only thumb2 is used.
1155 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1157 * INSTALL: Update comment as to why sparc64 clang isn't usable.
1159 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1161 Add __attribute__ ((sysv_abi)) only if it's really needed.
1163 Some compilers don't support it.
1165 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1167 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
1169 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1171 Remove -Wold-style-definition.
1173 Not very useful and interaction of it with regexp depends on GCC
1176 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1178 Make grub_util_get_windows_path_real static.
1180 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1182 * grub-core/commands/fileXX.c: Silence cast-align.
1183 * grub-core/loader/i386/xen_fileXX.c: Likewise.
1185 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1187 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
1188 rather than LL suffix.
1190 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1192 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
1194 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1196 * grub-core/loader/arm/linux.c: Use common initrd functions.
1198 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1200 Decrease number of strings to translate.
1202 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1204 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
1206 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1208 Mark strings for translation and add remaining ones to exclude list.
1210 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1212 * util/grub-file.c (main): Fix sizeof usage.
1214 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1216 Silence spurious warning.
1218 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1220 Remove check_nt_hiberfil as it's been superseeded by file command.
1222 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1224 * docs/osdetect.cfg: Add isolinux config to detected OSes.
1226 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1228 Implement syslinux parser.
1230 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1232 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
1234 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1236 Support cpuid --pae.
1238 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1240 Use AT keyboard on Yeeloong 3A.
1242 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1244 Add Yeeloong 3A reboot and halt.
1246 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1248 Add Radeon Yeeloong 3A support.
1250 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1252 Add bonito 3A support.
1254 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1256 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
1258 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1260 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
1262 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1264 * grub-core/loader/macho.c: Fix compilation on non-i386.
1266 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1268 Add missing format_arg attribute to check that printf with translated
1269 messages has proper arguments.
1271 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1273 Use grub_xasprintf to format translated error messages containing
1276 2013-12-17 Jon McCune <jonmccune@google.com>
1278 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
1280 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1282 Unify message for unsupported relocation.
1284 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1286 Mark miscompile error for translation.
1288 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1290 Use %I64 and not %ll when using OS printf if compiling for windows.
1292 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1294 Update Mac code to match new register_efi prototype.
1296 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1298 Implement better integration with Mac firmware.
1300 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1302 * grub-core/loader/multiboot_mbi2.c: Implement special value for
1305 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1307 Include serial module in default_payload.elf.
1309 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1311 Add explicit thumb interwork bx in asm files.
1313 Shouldn't matter for armv >= 5 but let's be safe.
1315 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1317 Implement Truecrypt ISO loader.
1319 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1321 * grub-core/lib/arg.c: Ensure at least a single space between commands.
1323 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1325 Implement grub_file tool and use it to implement generating of config
1328 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1330 Change to v1 xen grants.
1332 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1334 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
1336 GRUB relied on %ebx being preserved across hypercall which isn't true.
1338 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1340 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
1342 GRUB relied on %rdi being preserved across hypercall which isn't true.
1344 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1346 Implement XEN VFB support.
1348 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1350 Remove grub_bios_interrupt on coreboot.
1352 It's not used currently and cannot be used safely currently.
1354 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1356 Update exclude.pot and mark few strings for translation.
1358 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1360 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
1362 Reported by: Jon McCune
1364 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1366 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1367 Add verbose information which firmware directories were tried.
1369 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1371 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
1372 function to optionally redirect all three standard descriptors.
1373 Redefine grub_util_exec, grub_util_exec_redirect and
1374 grub_util_exec_redirect_null to use it.
1375 * include/grub/emu/exec.h: Define it.
1376 * include/grub/osdep/exec_unix.h: Delete, it is unused.
1377 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1378 Use grub_util_exec_redirect_all to redirect error to NULL.
1380 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1382 * grub-core/tests/sleep_test.c: Silence spurious warning.
1384 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1386 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
1387 linker trying to "fixup" the code.
1389 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1391 * grub-core/kern/x86_64/xen/startup.S: Align stack.
1393 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1395 Add support for converting PE+ to Elf64.
1397 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1399 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
1401 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1403 Remove practice of assigning random const pointers to device id.
1405 This is not required as cache code already checks driver id as well.
1407 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1409 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
1412 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1414 * include/grub/efi/api.h: Don't use call wrappers when compiled with
1415 mingw or cygwin as API already matches.
1417 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1419 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
1421 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1423 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
1426 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1428 Handle X86_64_PC64 relocation.
1430 Those are generated by some cygwin compilers.
1432 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1434 Determine the need for mingw-related stubs at compile time rather than
1435 using not very significant $target_os.
1437 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1439 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
1440 may not work with ELF.
1442 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1444 Use unix functions for temporary files and special files on cygwin.
1446 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1448 Define functions explicitly rather than using --defsym in tests
1449 whenever possible. Respect locality in remaining cases.
1451 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1453 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
1455 2013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
1457 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
1458 unlikely errors when getting EFI variables and make exhaustive search
1459 for all BootNNNN variables to find matching one.
1461 2013-12-15 Ian Campbell <ijc@hellion.org.uk>
1463 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
1465 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1467 New functional test for sleep function.
1469 This test allows to check sleep without qemu. Keep qemu version as
1470 well as functional test won't notice if all clocks are going too fast
1473 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1475 Add explicit sysv_abi on amd64 asm routines.
1477 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1479 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
1482 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1484 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
1487 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1489 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
1492 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1494 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
1496 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1498 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
1501 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1503 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
1505 In case of quick removal of loopback and adding another one it may
1506 get same ID, confusing the cache system.
1508 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1510 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
1513 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1515 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
1516 than converting to long.
1518 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1520 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
1522 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1524 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
1525 than almost useless pointer.
1527 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1529 Add gcc_struct to all packed structures when compiling with mingw.
1531 Just "packed" doesn't always pack the way we expect.
1533 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1535 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
1537 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1539 * util/grub-pe2elf.c: Fix handling of .bss.
1541 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1543 Implement windows flavour of EFI install routines.
1545 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1547 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
1549 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1551 Change grub_install_register_efi interface to pass GRUB device.
1553 This allows grub_install_register_efi to request partition info
1556 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1558 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
1560 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1562 Do not use TCHAR string functions as they are not available on cygwin.
1564 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1566 Workaround windows bug when querying EFI system partition parameters.
1568 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1570 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
1573 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1575 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
1577 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1579 Make i386-* other than i386-pc compileable under cygwin.
1581 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1583 Fix definition of grub_efi_hard_drive_device_path. Take care that
1584 existing code would work even if by some reason bogus definition is
1585 used by EFI implementations.
1587 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1589 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
1591 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1593 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
1596 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1598 * util/config.c: Remove trailing newline from distributor in simple
1601 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1603 * include/grub/efi/api.h: Rename protocol and interface to avoid
1606 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1608 * .gitignore: add .exe variants. add missing files. remove few outdated
1611 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1613 * grub-core/osdep/exec.c: Use unix version on cygwin.
1615 2013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1617 Implement multiboot2 EFI BS specification.
1619 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1621 * grub-core/normal/charset.c: Fix premature line wrap and crash.
1622 Crash happened only in some cases like a string starting at the
1623 half of the screen of same length.
1625 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1627 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
1628 with EFI counterpart.
1630 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1632 Propagate the EFI commits to x86-efi specific parts.
1634 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1636 * grub-core/commands/efi/lssal.c: Fix terminating condition.
1638 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1640 Introduce grub_efi_packed_guid and use it where alignment is not
1643 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1645 * include/grub/efi/api.h (grub_efi_device_path): Define length as
1646 unaligned u16 rather than u8[2].
1648 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1650 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
1651 for relocation range.
1653 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1655 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
1656 non-function pcrel21b relocation. It happens with .text.unlikely
1659 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1661 * make MAX_USABLE_ADDRESS platform-specific
1662 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
1664 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1666 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
1668 2013-12-09 Jon McCune <jonmccune@google.com>
1670 * Add --no-rs-codes flag to optionally disable reed-solomon codes
1671 in grub-install and grub-bios-setup for x86 BIOS targets.
1673 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1675 Add missing compile and link options for sparc64-emu.
1677 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1679 Implement sparc64 trampolines (needed for sparc64-emu).
1681 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1683 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
1684 range of R_SPARC_HI22.
1685 Implement R_SPARC_LM22.
1687 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1689 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
1690 Do not explicitly check for symbol table as it's already checked in
1691 platform-independent layer.
1693 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1695 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
1696 on ia64 as __clear_cache is a dummy on ia64.
1698 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1700 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1701 Do not explicitly check for symbol table as it's already checked in
1702 platform-independent layer.
1704 2013-12-09 Colin Watson <cjwatson@ubuntu.com>
1706 * util/grub-mkconfig.in: Add missing newline to output.
1708 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1710 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
1711 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
1713 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1715 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
1716 compilation with GCC <= 4.2.
1717 * grub-core/kern/emu/argp_common.c: Likewise.
1719 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1721 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
1722 right platform rather than leaking to sparc64-emu.
1724 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1726 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
1727 But ensure that the variables in question are indeed unsigned.
1729 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1731 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
1733 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1735 Remove grub_memalign on emu.
1737 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1739 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
1740 truncate incomplete lines but instead flushes them.
1742 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1744 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
1745 and implement windows variant.
1747 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1749 Fix mips-emu compilation.
1751 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1753 * configure.ac: Check for freetype library usability.
1755 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1759 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1761 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
1763 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1765 * docs/grub.texi (Environment): Update color_normal and color_highlight
1766 defaults (light-gray instead of white).
1768 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1770 * grub-core/normal/main.c (INIT): Set default color to light-gray
1771 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
1772 and apparently BIOS defaults.
1774 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1776 Transform -C option to grub-mkstandalone to --core-compress available
1777 in all grub-install flavours.
1779 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1781 Merge GRUBFS and GRUB_FS variables.
1783 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1785 Revert commit 69ca97c820, it caused failures when using OS device name
1786 in grub-install. Instead just strip off parenthesis in grub-install
1787 if (hdX) was passed.
1789 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1791 * util/grub-install.c (push_partmap_module): Add helper to convert
1792 partmap names to module names and use it in probe_mods(). Fixes
1793 failure to find partmap modules in diskfilter case.
1795 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1797 * configure.ac: Make unifont mandatory on coreboot.
1799 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1801 * configure.ac: Skip unifont 6.3 pcf and bdf.
1803 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1805 * Makefile.am: Remove partial font files if generation failed.
1807 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1809 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1811 * include/grub/util/misc.h: Define it ...
1812 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1814 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1816 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1819 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1821 Don't add -mlong-calls when compiling with clang.
1823 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1825 * configure.ac: Fix a typo.
1827 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1829 Revamp relocation handling.
1831 Move more code to common dl.c. Add missing veneers for arm and arm64.
1832 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1834 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1836 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1838 2013-12-05 Mike Gilbert <floppym@gentoo.org>
1840 * INSTALL: Raise minimum python version to 2.6.
1841 * gentpl.py: Use python3-style print function.
1843 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1845 * util/grub-install.c: Mention Boot* variable.
1847 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1849 * grub-core/osdep/linux/hostdisk.c
1850 (grub_util_find_partition_start_os): Initialise start to avoid
1851 spurious compiler warning.
1853 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1855 On Linux, read partition start offsets from sysfs if possible, to
1856 cope with block device drivers that don't implement HDIO_GETGEO.
1857 Fixes Ubuntu bug #1237519.
1859 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1861 (sysfs_partition_start): Likewise.
1862 (grub_util_find_partition_start_os): Try sysfs_partition_start
1865 2013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1867 * grub-core/kern/fdt.c: Update struct size when adding node.
1869 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1871 Handle unaligned .bss on sparc64.
1873 Current code improperly assumes that both __bss_start and _end are
1874 aligned to 8-bytes. Eliminating this assumption and explicitly align
1877 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1879 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
1880 so it doesn't land in the middle of loaded image.
1882 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1884 * configure.ac: Move all warning options that may be absent in
1885 gcc >= 3.1 to optional.
1887 Note: while this allows to compile with older GCC, official requirements
1888 remain the same and no support for older GCC.
1890 2013-12-04 Colin Watson <cjwatson@ubuntu.com>
1892 Copying the themes directory in grub-shell isn't
1893 parallel-test-friendly and breaks on the second test when the source
1894 directory is read-only (as in "make distcheck"). Instead, add a
1895 hidden --themes-directory option to grub-mkrescue et al, and use it
1898 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1900 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
1901 as it's no longer necessarry.
1903 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1905 * configure.ac: Allow compilation with older GCC for ARM.
1907 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1909 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
1910 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
1913 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1915 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
1917 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1919 Pass font config to config.h and not by TARGET_CFLAGS as adding
1920 arguments doesn't work if TARGET_CFLAGS is specified on command
1923 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1925 * configure.ac: Add -Wvla if compiler supports it.
1927 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1929 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
1930 Remove variable length arrays.
1931 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
1933 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1935 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
1937 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1939 * include/grub/types.h: Declare all byteswaps as inline functions
1940 except compile-time ones.
1942 Solves variable shadowing in constructions like
1943 cpu_to_le (le_to_cpu(x) + 1).
1945 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1947 * grub-core/kern/efi/efi.c: Remove variable length arrays.
1949 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1951 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
1954 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1956 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
1957 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
1959 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1961 * grub-core/Makefile.core.def (setjmp): Distribute
1964 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1966 Add a new timeout_style environment variable and a corresponding
1967 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
1968 controls hidden-timeout handling more simply than the previous
1969 arrangements, and pressing any hotkeys associated with menu entries
1970 during the hidden timeout will now boot the corresponding menu entry
1973 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
1974 generates a warning, and if it shows the menu it will do so as if
1975 the second timeout were not present. Other combinations are
1976 translated into reasonable equivalents.
1978 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
1980 2013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
1982 * util/config.c: Add missing pointer adjustment.
1983 Reported by: qwertial
1985 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1987 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
1988 directly, not via `cpu' link, to fix libgrub.pp generation.
1990 2013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
1994 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1996 * docs/grub.texi (sleep): Document exit codes.
1998 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
2000 Ensure that -mno-unaligned-access or some equivalent option is used.
2002 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
2004 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
2007 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
2009 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
2011 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
2013 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
2014 builds, since we don't have an EPS version of font_char_metrics.png.
2015 Add leading dot to image extension per the Texinfo documentation.
2017 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
2019 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
2020 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
2021 * util/grub-gen-widthspec.c: Likewise.
2022 * util/grub-mkfont.c: Likewise.
2024 2013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
2026 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
2027 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
2028 failed to install on (hdX).
2029 * util/grub-setup.c (get_device_name): Remove, not needed after
2032 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2034 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
2036 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2038 * util/grub-fstest.c: Remove variable length arrays.
2040 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2042 * grub-core/osdep/linux/ofpath.c: Check return value of read.
2044 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2046 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
2047 computing crc32 rather than handling with md fundtions directly.
2049 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2051 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
2052 checking fwstart.img rather than md fundtions directly.
2054 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2056 * util/grub-mkrescue.c (main): Check that fread succeeded.
2058 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2060 * conf/Makefile.common: Remove -mexplicit-relocs and
2061 -DUSE_ASCII_FALLBACK on yeeloong.
2063 -DUSE_ASCII_FALLBACK is already added by font snippets.
2064 -mexplicit-relocs isn't needed is compiler/assemblera are
2065 configured properly.
2066 If they're not we shouldn't attempt to fix it by ourselves.
2067 Binary compare between before and after shows no difference.
2069 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2071 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
2072 sources in dependencies directly.
2074 This was the only instance of "library" in core config. A bug was
2075 reported that -fno-stack-protector wasn't passed to it. Instead of
2076 figuring out why it failed just remove this construction used
2079 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2081 * grub-core/osdep/unix/password.c (grub_password_get): Check that
2084 2013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
2086 * docs/grub.texi (ls): Fix command description in case of a device name
2089 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2091 Eliminate variable length arrays in grub_vsnprintf_real.
2093 A bit tricky because this function has to continue to work without
2094 heap for short strings. Fixing prealloc to 32 arguments is reasonable
2095 but make all stack references use 32-bit offset rather than 8-bit one.
2096 So split va_args preparsing to separate function and put the prealloc
2099 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2101 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
2102 Fixes build for windows.
2104 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2106 * gentpl.py: Don't generate platform-dependent conditionals for
2107 platform-independent targets.
2109 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2111 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
2112 references to mdadm from otherwise generic code.
2113 (grub_util_exec_pipe): Likewise.
2114 (grub_util_exec_pipe_stderr): Likewise.
2115 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
2116 This function calls vgs, not mdadm; adjust variable names
2119 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2121 Generate Makefile.*.am directly from gentpl.py, eliminating the use
2122 of Autogen. The Autogen definitions files remain intact as they
2123 offer a useful abstraction.
2125 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2127 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
2128 into no-ops, and use it in programs that copy files but do not need
2129 to take special care to sync writes (grub-mknetdir, grub-rescue,
2132 2013-11-26 Colin Watson <cjwatson@ubuntu.com>
2134 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
2135 than hardcoding /usr/local/bin/xorriso.
2137 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2139 Add PCI command activation to all PCI drivers as required for coreboot
2140 and maybe some other firmwares.
2142 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2144 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
2145 and non-Apple variants of efiemu compile.
2147 2013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
2149 * configure.ac: Add explicit check for linking format of
2150 efiemu64; save it as EFIEMU64_LINK_FORMAT.
2151 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
2152 hardcoding linking format.
2154 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2156 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
2159 2013-11-25 Colin Watson <cjwatson@ubuntu.com>
2160 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2162 Add a --locale-directory option to grub-install and related tools.
2164 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
2165 --locale-directory option.
2166 (enum grub_install_options): Add
2167 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2168 * util/grub-install-common.c (grub_install_help_filter): Handle
2169 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2170 (grub_install_parse): Likewise.
2171 (get_localedir): New function to check for a user-provided option
2172 before trying grub_util_get_localedir.
2173 (copy_locales): Use get_localedir rather than
2174 grub_util_get_localedir. Handle differing locale directory layouts.
2175 (grub_install_copy_files): Likewise.
2177 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2179 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
2180 Don't rely on PATH_MAX.
2182 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2184 * grub-core/genmoddep.awk: Use more portable && rather than and.
2186 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2188 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
2189 an object after data. While it doesn't seem right solution, it
2190 works well enough and OSX isn't main compilation platform.
2192 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2194 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
2195 While it doesn't seem right solution, it works well enough and
2196 OSX isn't main compilation platform.
2198 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2200 * configure.ac: Add -static to LDFLAGS when using apple linker to
2201 prevent it from pulling in dynamic linker.
2203 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2205 Apple assembly doesn't handle symbol arithmetic well. So define an
2206 offset symbol in boot.S and use it.
2208 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2210 Apple assembly doesn't handle symbol arithmetic well. So instead
2211 of getting addres of kernel_sector + 4 define kernel_sector_high.
2212 It also makes code more readable.
2214 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2216 With Apple assembly in .macro environvemnt you have to use $$ instead
2217 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
2218 to $$x on Apple and to $x on everything else.
2220 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2222 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
2225 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2227 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
2228 and non-Apple. This instruction is shorter and faster,
2229 so no reason not to use it on both.
2231 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2233 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
2234 .text when compiling for Apple.
2236 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2238 * grub-core/term/arc/console.c: Add missing cast to silence warning.
2240 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2242 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
2243 %dx restore the probe worked on non-existant drive. Reorganize the
2244 code a little bit to free 2 bytes necessary for push/pop.
2246 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2248 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2249 Add missing cast to silence warning.
2251 2013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
2253 * util/grub-install.c (update_nvram): Support --no-nvram flag
2256 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2258 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
2260 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2262 * util/garbage-gen.c: Add missing include of sys/time.h.
2264 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2266 Don't add -mflush-func if it's not supported by compiler.
2268 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2270 Move common BIOS/coreboot memory map declarations to
2271 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
2273 2013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
2275 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
2277 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2279 * INSTALL: Document why older clang versions aren't appropriate.
2281 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2283 * INSTALL: Document about clang for mips.
2285 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2287 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
2290 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2292 Add *-xen to the list of grub-install-common platforms.
2294 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2296 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
2299 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2301 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
2303 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2305 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
2306 with -mcmodel=large.
2308 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2310 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
2311 range-checking for 32-bit quantities.
2313 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2315 * configure.ac: Compile with -fPIC when compiling with clang on
2318 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2320 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
2321 when compiling with clang.
2323 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2325 clang emits calls to abort () under some unknown conditions.
2326 Export abort () when compiling with clang.
2328 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2330 * docs/grub-dev.texi: Document stack and heap sizes.
2332 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2334 * include/grub/i386/pc/memory.h: Decrease
2335 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
2336 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
2337 The binary doesn't change (checked). It's more to better reflect actual
2340 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2342 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
2343 at compile time that enough of scratch size is available.
2345 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2347 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
2348 Previously we misaligned stack by 8 in startup.S and compensated
2349 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
2350 right behaviour is to align stack in startup.S and keep it aligned
2351 in callwrap.S. startup.S part was committed few commits before. This
2352 takes care of callwrap.S.
2353 Reported by: Gary Lin.
2355 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2357 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
2358 .data and .bss. May happen if compiler and assembly use different
2361 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2363 On MIPS handle got16 relocations to local symbols in an ABI-compliant
2366 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2368 Add support for a new magic symbol _gp_disp on mips to handle PIC
2371 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2373 Use $t9 for indirect calls from asm to C as PIC ABI requires.
2375 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2377 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
2378 when rest of GRUB is compiled for hisher stepping. Instead use
2379 .set mips3/.set mips1 around cache and sync opcodes.
2381 2013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
2383 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
2384 do essentially the same thing, do it in similar way.
2386 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2388 * util/grub-mkrescue.c (main): If a source directory is not
2389 specified, read platform-specific files from subdirectories of
2390 pkglibdir, not pkgdatadir.
2392 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2394 * grub-core/normal/progress.c: Remove unused file.
2396 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2398 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
2401 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2403 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
2406 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2408 * coreboot.cfg: Add missing file.
2410 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2412 * Makefile.am: Allow STRIP to be empty when creating windowszip.
2414 2013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
2416 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
2417 selectively skipping systems.
2419 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2421 * Makefile.util.def (grub-mkimage): Add
2422 grub-core/osdep/aros/config.c to extra_dist.
2423 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
2424 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
2425 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
2426 grub-core/gnulib-no-gets.diff.
2428 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2430 Add automated filesystem checking based on scripts I've used now for
2431 quite some time locally. Most of the test require root so they are
2432 skipped when run without necessarry privelegies.
2434 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2436 * util/grub-install.c (main): Adjust info messages to match
2437 installed paths of grub-bios-setup and grub-sparc64-setup.
2439 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2441 * util/grub-install-common.c (copy_locales): Consistently use
2442 grub_util_get_localedir () rather than LOCALEDIR.
2443 (grub_install_copy_files): Likewise.
2445 2013-11-19 Josh Triplett <josh@joshtriplett.org>
2447 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
2448 16-byte boundary, as required by the x86-64 ABI, before calling
2449 grub_main. In some cases, GCC emits code that assumes this
2450 alignment, which crashes if not aligned. The EFI firmware is also
2451 entitled to assume that stack alignment without checking.
2453 2013-11-18 Josh Triplett <josh@joshtriplett.org>
2455 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
2456 4k page boundaries as expected by firmware rather than 1k
2458 (grub_mmap_malign_and_register): Likewise.
2460 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2462 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
2463 fragmentation 512M is enough.
2465 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2467 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
2468 pointer to 32K. This is the size of cache element which is the most
2469 common allocation >1K. This way the pointer is always around blocks
2470 of 32K and so we keep performance while decreasing fragmentation.
2472 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2474 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
2475 current memory when allocating large chunks. This significantly
2476 decreases memory fragmentation.
2478 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2480 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
2482 * tests/lzocompress_test.in: Skip if lzop is not installed.
2483 * tests/xzcompress_test.in: Skip if xz is not installed.
2485 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2487 * util/grub-mkrescue.c (main): Fix typo.
2489 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2491 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
2492 clock frequency to 200 MHz,
2494 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2496 * tests/util/grub-shell.in: Increase console size to 1024x1024.
2498 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2500 * Makefile.am (default_payload.elf): Add pata to loaded modules.
2501 Load config file from (cbfsdisk)/etc/grub.cfg.
2503 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2505 * util/grub-install-common.c (grub_install_copy_files): Fix module
2506 destination directory.
2508 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2510 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
2511 files have not been built.
2513 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2515 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
2516 Handle errors from mkstemp.
2517 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
2519 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2521 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
2522 on primary master on pseries.
2524 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2526 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
2527 already loaded. This saves memory needed for tests,
2529 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2531 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
2534 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2536 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
2539 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2541 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
2542 master since with some combinations of qemu and firmware only primary
2543 IDE channel is available.
2545 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2547 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
2548 low-memory platforms where we don't have enough memory for them.
2549 * grub-core/tests/videotest_checksum.c: Likewise.
2551 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2553 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
2554 already loaded. This saves memory needed for tests,
2556 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2558 Fix handling of install lists.
2560 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2562 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
2564 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2566 On i386-ieee1275 we run in paged mode. So we need to explicitly map
2567 the devices before accessing them.
2569 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2571 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
2574 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2576 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
2578 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2580 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
2581 (grub_file_close): Free file->name.
2583 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2585 * grub-core/commands/verify.c (free_pk): Plug memory leak.
2586 (grub_load_public_key): Likewise.
2587 (grub_verify_signature_real): Likewise.
2588 (grub_cmd_verify_signature): Likewise.
2590 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2592 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
2595 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2597 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
2598 (grub_longjmp): Restore r31.
2599 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
2601 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2603 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
2604 modules to be in line with make_image_abs.
2606 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2608 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
2610 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
2612 2013-11-17 Ian Campbell <ijc@hellion.org.uk>
2614 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
2616 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2618 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
2619 to leave some memory to firmware.
2621 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2623 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
2624 of loading gfxterm as gfxterm is embed in kernel on some platforms.
2625 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
2628 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2630 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
2631 now needs full arguments.
2633 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2635 * util/grub-mkrescue.c (main): Add trailing \n in
2636 .disk_label.contentDetails to be in line with previous shell script.
2638 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2640 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
2642 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2644 * util/grub-install-common.c (grub_install_parse): Recognize
2645 --compress=none like shell script did.
2647 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2649 * include/grub/misc.h: Replace check for __sparc64__ with one for
2650 __sparc__ as __sparc64__ isn't actually defined.
2652 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2654 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
2655 counterpart of fixing the naming of escc ports.
2657 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2659 * util/grub-install-common.c (platforms): Fix the order of entries and
2660 remove useless field val.
2662 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2664 * util/grub-install.c: Add new option --no-bootsector to skip
2665 installing of bootsector. Accept --grub-setup=/bin/true as
2666 backwards-compatible synonym.
2668 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2670 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
2671 order of qsort arguments (number of elements vs. element size).
2673 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2675 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
2676 the function of these files exceeds what can be sanely handled in shell
2677 in posix-comaptible way. Also writing it in C extends the functionality
2678 to non-UNIX-like OS and minimal environments.
2680 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2682 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
2683 compiling to thumb2.
2684 * grub-core/kern/arm/cache_armv7.S: Likewise.
2685 * grub-core/lib/arm/setjmp.S: Likewise.
2687 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2689 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
2690 in grub_uboot_syscall
2692 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2694 Decrease stack usage in lexer.
2696 We have only 92K of stack and using over 4K per frame is wasteful
2698 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
2699 as macros so that compiler would remove useless structure on stack.
2700 Better solution would be to fix flex not to put this structure on
2701 the stack but flex is external program.
2703 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2705 Decrease stack usage in signature verification.
2707 We have only 92K of stack and using over 4K per frame is wasteful
2709 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
2711 (grub_verify_signature_real): Likewise.
2713 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2715 Decrease stack usage in mdraid 0.9x.
2717 We have only 92K of stack and using over 4K per frame is wasteful
2719 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
2722 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2724 Decrease stack usage in BtrFS.
2726 We have only 92K of stack and using over 4K per frame is wasteful
2728 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
2731 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2733 Decrease stack usage in JFS.
2735 We have only 92K of stack and using over 4K per frame is wasteful
2737 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
2738 stack. Note: this function is recursive.
2739 (grub_jfs_read_inode): Read only part we care about.
2741 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2743 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
2746 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2748 * configure.ac: Restore -nostdlib for libgcc symbols tests.
2750 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2752 * docs/grub.texi (Environment): Document cmdpath.
2754 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2756 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2757 Remove "unused" attribute from arguments, they are used.
2759 2013-11-15 Colin Watson <cjwatson@debian.org>
2761 * .gitignore: Only ignore grub-mk* at the top level.
2763 2013-11-15 Colin Watson <cjwatson@ubuntu.com>
2765 * util/grub-reboot.in (usage): Fix a typo.
2767 2013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2769 Replace libgcc version of ctz with our own.
2771 On upcoming arm64 port libgcc ctz* are not usable in standalone
2772 environment. Since we need ctz* for this case and implementation is
2773 in C we may as well use it on all concerned platforms.
2775 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2777 * configure.ac: Probe for linking format rather than guessing it based
2780 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2782 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
2783 "1" prior to handoff.
2785 Reported by: M A Young.
2787 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2789 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
2792 Reported by: M A Young.
2794 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2796 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
2797 compilation on NetBSD.
2799 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2801 * acinclude.m4: Don't add -P on initial nm test.
2803 Note: even though this patch postdates Andrey's it bears 14 Nov as
2804 date due to timezone difference.
2806 2013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2808 * grub-core/Makefile.core.def (signature_test): Add missing
2811 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2813 * util/grub-install_header: Set localedir here, since this file is
2815 * util/grub-install.in: Remove setting of localedir.
2816 * util/grub-mkrescue.in: Likewise.
2818 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2820 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2822 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2824 * configure.ac: Move nm checks to the end.
2825 Call grub_PROG_NM_WORKS.
2826 * acinclude.m4: New check grub_PROG_NM_WORKS.
2827 Use $TARGET_CFLAGS -c when compiling test binary.
2829 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2831 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2834 2013-11-14 Matthew Garrett <mjg@redhat.com>
2836 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2837 cmdpath to firmware directory.
2839 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2841 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2842 at the start of second iteration.
2844 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2846 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2848 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2850 * Makefile.am (default_payload.elf): New target for easier coreboot
2853 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2855 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2856 clang (not necessarry with -no-integrated-as).
2857 * include/grub/symbol.h [__arm__]: Likewise.
2859 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2861 * configure.ac: Use -no-integrated-as on arm with clang.
2862 * INSTALL: Mention ARM compilation with clang.
2864 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2866 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2869 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2871 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2872 code for indirect block handling.
2874 Saves 185 bytes on compressed image.
2876 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2880 * Makefile.am: Remove build-grub-* in make clean.
2882 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2884 New files to gitignore.
2886 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
2887 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
2889 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2891 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
2893 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2895 * .gitignore: fix rules for .dep* and add *.a post git migration
2897 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2899 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
2902 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2904 * grub-core/kern/misc.c: Don't redirect divisions in the
2906 * include/grub/misc.h: Likewise.
2908 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2910 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
2911 systems that require checking the return value of write.
2913 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2915 * util/grub-install.in (efi_quiet): Fix inverted logic: make
2916 efibootmgr quiet when --debug is not used, rather than when it is.
2918 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2920 * gentpl.py (define_macro_for_platform_dependencies): Remove
2921 first (and thus unused) of two definitions for this function.
2922 (platform_dependencies): Likewise.
2924 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2926 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
2927 functions, we only need to check this for the target, not the host.
2928 * configure.ac (grub_apple_cc): Likewise.
2930 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2932 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
2933 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
2934 asm to stay in arm even if surrounding is thumb.
2936 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2938 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
2939 helper functions are needed for thumb.
2941 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2943 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
2944 level / 3 division explicitly unsigned. Saves few bytes.
2946 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2948 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
2950 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2952 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
2955 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2957 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
2958 grub_uboot_boot_data to asm part.
2960 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2962 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
2964 (grub_uboot_syscall): Save/restore r9 and align stack.
2966 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2968 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
2970 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2972 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
2973 occurencies with END.
2975 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2977 * util/grub-editenv.c (help_filter, argp): Document how to delete
2978 the whole environment block.
2979 Reported by Dan Jacobson. Fixes Debian bug #726265.
2981 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2983 * docs/grub.texi (Internationalisation, Supported kernels): Fix
2986 2013-11-13 Josh Triplett <josh@joshtriplett.org>
2988 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
2989 increment/decrement.
2991 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2993 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
2994 compiling with clang.
2996 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2998 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
3001 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3003 Redirect all divisions to grub_divmod64.
3005 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3007 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
3009 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3011 Add missing includes of loader.h.
3013 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3015 * configure.ac: Allow disabling themes.
3017 2013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
3019 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
3021 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3023 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
3024 until it becomes operational.
3026 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3028 * grub-core/Makefile.core.def (legacy_password_test): Disable
3029 on platforms where no legacycfg is compiled.
3030 * grub-core/tests/lib/functional_test.c: Tolerate failure to
3031 load legacy_password_test.
3033 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3035 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
3037 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3039 * grub-core/efiemu/prepare.c: Remove variable length arrays.
3041 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3043 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
3044 strict-aliasing warning.
3045 (fsync): Silence cast warning.
3047 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3049 * grub-core/commands/verify.c: Remove variable length arrays.
3050 Load gcry_dsa/gcry_rsa automatically.
3052 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3054 * grub-core/tests/signature_test.c: New test.
3056 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3058 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
3061 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3063 * grub-core/tests/legacy_password_test.c (vectors): Make static.
3064 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
3066 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3068 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
3070 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3072 * grub-core/fs/proc.c: Allow \0 in proc files.
3074 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3076 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
3078 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3080 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
3082 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3084 * grub-core/fs/ext2.c: Remove variable length arrays.
3086 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3088 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
3091 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3093 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
3094 * grub-core/disk/cryptodisk.c: Likewise.
3095 * grub-core/disk/geli.c: Likewise.
3096 * grub-core/disk/luks.c: Likewise.
3098 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3100 * grub-core/tests/legacy_password_test.c: New test.
3101 * grub-core/commands/legacycfg.c: Remove variable length arrays.
3103 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3105 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
3107 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3109 * grub-core/tests/pbkdf2_test.c: New test.
3111 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3113 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
3115 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3117 * grub-core/io/lzopio.c: Remove variable length arrays.
3119 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3121 * include/grub/crypto.h: Add maximums on hash size and cipher block
3124 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3126 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
3128 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3130 * grub-core/tests/xnu_uuid_test.c: New test.
3132 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3134 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
3137 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3139 * grub-core/commands/hashsum.c: Remove variable length arrays.
3141 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3143 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
3145 * tests/grub_func_test.in: Increase memory allocation.
3147 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3149 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
3150 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
3153 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3155 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
3156 (grub_util_get_fd_size_os): ...this.
3157 (grub_hostdisk_flush_initial_buffer): New empty function.
3159 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3161 * grub-core/gensyminfo.sh.in: Handle the case of portable output
3162 without --defined-only.
3164 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3166 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
3167 rip-relative addressing in prologue.
3169 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3171 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
3172 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
3174 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3176 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
3177 Add missing semicolon.
3179 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3181 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
3183 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3185 * configure.ac: Check for lzma.h for enabling liblzma and allow
3188 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3190 Add missing includes of loader.h.
3192 2013-11-11 Fam Zheng <famcool@gmail.com>
3194 * util/grub.d/30_os-prober.in: Add minix entry.
3196 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3198 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
3199 right buffer for temporary load.
3201 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3203 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
3205 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3207 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
3210 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3212 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
3214 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
3216 (LzmaDec_InitDicAndState): Make static.
3218 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3220 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
3222 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3224 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
3226 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
3228 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3230 * docs/grub-dev.texi: Replace bzr references with git ones.
3232 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3234 * docs/grub.texi (Simple configuration): Remove reference to
3235 grub-reboot from saved default entry description - grub-default
3236 does not use it anymore.
3238 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3240 * configure.ac: Make efiemu test cflags match the cflags efiemu is
3243 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3245 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
3247 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3249 Fix grub_machine_fini bitrot.
3251 Reported by: Glenn Washburn.
3253 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3255 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
3257 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3259 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
3261 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
3264 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3266 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
3267 Add -march=core2 when testing compile of efiemu64.
3269 Thanks Andrey Borzenkov for spotting this.
3271 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3273 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
3274 XEN PV environment and load kernels.
3276 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3278 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
3279 * grub-core/loader/multiboot_mbi2.c: Likewise.
3281 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3283 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
3286 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3288 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
3290 Tested by: Denis 'GNUtoo' Carikli.
3292 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3294 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
3296 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3298 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
3299 Use to get rounded angle rather than truncated.
3301 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3303 * grub-core/term/serial.c: Add option for enabling/disabling
3304 RTS/CTS flow control.
3306 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3308 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
3311 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3313 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
3314 Use grub_fatal rather than divide by zero.
3315 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
3317 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3319 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
3321 (grub_fixed_fsf_divide): Likewise.
3323 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3325 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
3326 division by-zero and senseless negative divisions.
3328 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3330 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
3331 division by-zero and senseless negative divisions.
3332 (circprog_set_property): Don't accept negative num_ticks.
3334 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3336 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
3337 division by-zero and senseless negative divisions.
3339 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3341 * configure.ac: Use elf_*_fbsd on kfreebsd.
3343 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3345 * grub-core/tests/div_test.c: New test.
3347 2013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3349 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
3350 * grub-core/gfxmenu/gui_canvas.c: Likewise.
3351 * grub-core/gfxmenu/view.c: Likewise.
3352 * grub-core/video/fb/video_fb.c: Introduce new functions:
3353 grub_video_set_area_status, grub_video_get_area_status,
3354 grub_video_set_region, grub_video_get_region.
3355 * grub-core/video/bochs.c: Likewise.
3356 * grub-core/video/capture.c: Likewise.
3357 * grub-core/video/video.c: Likewise.
3358 * grub-core/video/cirrus.c: Likewise.
3359 * grub-core/video/efi_gop.c: Likewise.
3360 * grub-core/video/efi_uga.c: Likewise.
3361 * grub-core/video/emu/sdl.c: Likewise.
3362 * grub-core/video/radeon_fuloong2e.c: Likewise.
3363 * grub-core/video/sis315pro.c: Likewise.
3364 * grub-core/video/sm712.c: Likewise.
3365 * grub-core/video/i386/pc/vbe.c: Likewise.
3366 * grub-core/video/i386/pc/vga.c: Likewise.
3367 * grub-core/video/ieee1275.c: Likewise.
3368 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
3369 * include/grub/video.h: Likewise.
3370 * include/grub/video_fb.h: Likewise.
3371 * include/grub/fbfill.h: Updated render_target structure.
3372 grub_video_rect_t viewport, region, area
3373 int area_offset_x, area_offset_y, area_enabled
3374 * include/grub/gui.h: New helper function
3375 grub_video_bounds_inside_region.
3376 * docs/grub-dev.texi: Added information about new functions.
3378 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3380 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
3383 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3385 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
3387 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
3389 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3391 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
3392 simple division on arm and ia64.
3394 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3396 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
3399 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3401 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
3403 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3405 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
3406 prefix symbol, not @.
3408 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3410 * INSTALL: Add note about older gcc and clang.
3412 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3414 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
3416 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3418 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
3419 NULL pointer dereference.
3421 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3423 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
3426 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3428 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
3431 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3433 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
3435 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
3436 * grub-core/disk/geli.c (ascii2hex): Likewise.
3438 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3440 * configure.ac: Run linker tests without -Werror.
3441 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
3442 Change all occurences of -static-libgcc resp -lgcc to
3443 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
3445 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3447 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
3449 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3451 Allow compiling with clang (not really supported though).
3453 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
3455 * configure.ac: Add -no-integrated-as when using clangfor asm files.
3456 Add -mrtd -mregparm=3 on i386 when not using clang.
3457 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
3459 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3461 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
3463 * grub-core/lib/reed_solomon.c: Likewise.
3464 * include/grub/i386/gdb.h: Likewise.
3465 * include/grub/i386/pc/int.h: Likewise.
3466 * include/grub/i386/pc/pxe.h: Likewise.
3467 * include/grub/ieee1275/ieee1275.h: Likewise.
3469 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3471 Import libgcrypt 1.5.3.
3473 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3475 * configure.ac: Don't add -Wcast-align on x86.
3477 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3479 * configure.ac: Add -freg-struct-return on all platforms that
3482 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3484 * acinclude.m4: Use -Werror on parameter tests.
3485 * configure.ac: Likewise.
3487 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3489 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
3491 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3493 * configure.ac: Check that -malign-loops works rather than assuming that
3494 either -falign-loops or -malign-loops work.
3496 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3498 * configure.ac: Remove -fnested-functions. We don't need it anymore.
3500 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3502 * configure.ac: Prevent cflags leaking to subsequent tests by always
3503 resetting cflags to target_cflags in target tests.
3505 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3507 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
3510 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3512 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
3514 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3516 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
3518 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3520 * grub-core/normal/cmdline.c (grub_cmdline_get):
3521 Remove nested functions.
3523 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3525 * tests/test_sha512sum.in: Make it work on emu.
3527 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3529 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
3531 (grub_bidi_line_logical_to_visual): Likewise.
3533 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3535 Remove vestiges of -Wunsafe-loop-optimisations.
3537 * conf/Makefile.common (CFLAGS_GNULIB): Remove
3538 -Wno-unsafe-loop-optimisations.
3539 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
3541 * grub-core/io/gzio.c: Likewise.
3542 * grub-core/script/parser.y: Likewise.
3543 * grub-core/script/yylex.l: Likewise.
3544 * util/grub-mkfont.c: Likewise.
3546 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3548 * util/grub-mkfont.c (process_cursive): Remove nested function.
3550 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3552 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
3553 (grub_boot_time): Likewise.
3555 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3557 * include/grub/symbol.h (FUNCTION): Use @function rather than
3559 (VARIABLE): Likewise.
3561 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3563 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
3565 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3567 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
3568 (parse_dhcp_vendor): Likewise.
3570 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3572 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
3574 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3576 * grub-core/gettext/gettext.c (main_context), (secondary_context):
3577 Define after defining type and not before.
3579 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3581 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
3583 (grub_gcm_decrypt): Likewise.
3584 (algo_decrypt): Likewise.
3585 (grub_zfs_decrypt_real): Transform error type.
3587 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3589 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
3591 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3593 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
3594 (grub_usbms_cbi_reset): Likewise.
3595 (grub_usbms_bo_reset): Likewise.
3596 (grub_usbms_reset): Likewise.
3597 (grub_usbms_attach): Likewise.
3598 (grub_usbms_transfer_cbi): Likewise.
3600 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3602 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
3603 "checksum = checksum;".
3605 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3607 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
3610 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3612 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
3615 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3617 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
3619 (grub_ehci_fini_hw): Likewise.
3620 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
3622 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3624 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
3625 return grub_usb_err_t for cosistency. All users updated.
3627 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3629 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
3630 assigning to itself.
3632 2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
3633 2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3635 Issue separate DNS queries for ipv4 and ipv6
3637 Adding multiple questions on a single DNS query is not supportted by
3638 most DNS servers. This patch issues two separate DNS queries
3639 sequentially for ipv4 and then for ipv6.
3641 Fixes: https://savannah.gnu.org/bugs/?39710
3643 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
3644 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
3645 * (grub_net_dns_lookup): Now using separated dns packages.
3646 * (grub_cmd_nslookup): Add error condition.
3647 * (grub_cmd_list_dns): Print DNS option.
3648 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
3649 --prefer-ipv4, and --prefer-ipv6.
3650 * include/grub/net.h (grub_dns_option_t): New enum.
3651 * (grub_net_network_level_address): option added.
3653 2013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
3655 * grub-core/video/fb/video_fb.c: Merge two blit functions
3658 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3660 * grub-core/term/terminfo.c: Add sequences for home and end.
3662 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3664 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
3667 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3669 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
3672 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3674 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
3675 e-mail by Per Öberg.
3677 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3679 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
3682 2013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
3684 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
3686 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
3688 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3690 * docs/grub.texi: Document usage of menuentry id.
3692 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3694 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
3696 2013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
3698 * grub-core/commands/i386/nthibr.c: New command.
3700 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3702 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
3704 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3706 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
3709 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3711 Support GRUB_DISABLE_SUBMENU config.
3713 Inspired by patch from Prarit Bhargava.
3715 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3717 * docs/grub.texi: Mention RSA support.
3719 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3721 * grub-core/commands/verify.c: Add RSA support.
3723 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3725 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
3726 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
3727 device is known to be ATAPI.
3729 2013-11-03 Mike Frysinger <vapier>
3731 * configure.ac: Don't add target-prefix.
3733 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3735 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
3738 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3740 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
3741 if language is English.
3743 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3745 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
3747 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3749 * configure.ac: Don't add -m32/-m64 on emu.
3753 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
3754 broken linux headers.
3756 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3758 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
3760 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3762 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
3763 Reed-Solomon recovery if more than half of redundancy info is 0.
3765 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3767 * util/grub-mount.c: Handle symlinks to directories.
3769 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3771 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
3772 find_file recursively for symlink.
3774 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3776 * tests/util/grub-shell.in: Copy themes.
3778 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3780 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
3782 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3784 * configure.ac: Use 0x8000 for address instead of 8000.
3786 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3788 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
3791 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3793 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
3796 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3798 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
3800 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3802 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
3803 file_progress_read_hook.
3804 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3806 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3808 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3811 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3813 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3815 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3817 Rewrite blocklist functions in order to get progress when
3818 reading large extents and decrease amount of blocklist hook calls.
3820 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3822 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3825 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3827 Support --base-clock for serial command to handle weird cards with
3828 non-standard base clock.
3830 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3832 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3834 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3835 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3836 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3837 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3838 + strcpy rather than strncpy.
3840 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3842 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3843 (check_pool_label): Likewise. Fixes overflow.
3844 (nvlist_find_value): Fix comparison.
3846 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3848 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3849 more appropriate functions.
3851 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3853 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3856 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3858 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3860 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3862 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3865 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3867 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3869 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3871 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3872 (initialize_tables): reset tl and td to NULL after freeing.
3874 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3876 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3878 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3880 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
3883 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3885 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
3887 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3889 * grub-core/loader/multiboot.c: Add support for multiboot kernels
3892 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3894 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
3895 a page in protected space.
3897 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3899 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
3900 allocate space for zero-sized modules.
3902 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3904 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
3906 2013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
3908 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
3910 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3912 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
3913 safeguards. Fixes a crash with i386/pc/console.c.
3915 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3917 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
3918 and grub_hostfs_init.
3920 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3922 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
3923 windows method on other platforms without good stat as well.
3925 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3927 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
3929 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3931 Make / in btrfs refer to real root, not the default volume.
3932 Modify mkrelpath to work even if device is mounted with subvolid option.
3934 2013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
3936 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
3938 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
3941 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3943 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
3946 2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
3948 * docs/autoiso.cfg: New file.
3950 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3952 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
3953 COND_GRUB_PE2ELF conditions.
3955 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3957 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
3958 "vnd", "rd" and "fd" disks.
3960 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3962 Move grub_disk_write out of kernel into disk.mod.
3964 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3966 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
3969 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3971 * grub-core/kern/misc.c (grub_abort): Make static
3973 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3975 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
3976 transform invalid unicode codepoints.
3978 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3980 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3983 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3985 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
3987 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3989 Consolidate cpuid code.
3991 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3993 Move cpuid code to cpuid.h and TSC code to tsc.c.
3995 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3997 * util/grub.d/00_header.in: Don't use LANG if it's not set.
3999 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
4001 * util/grub-mkconfig.in: Replace $0 with $self.
4002 * util/grub-reboot.in: Likewise.
4003 * util/grub-set-default.in: Likewise.
4005 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4007 * docs/osdetect.cfg: New file.
4009 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4011 * tests/util/grub-shell.in: Add new --debug option.
4013 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4015 * tests/test_unset.in: New test.
4017 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4019 * tests/test_sha512sum.in: New test.
4021 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4023 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
4024 * include/grub/misc.h: Remove strncat.
4025 * grub-core/lib/posix_wrap/string.h: Likewise.
4027 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4029 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
4030 Try to handle more than 0xFFFF packets.
4031 Reported by: Bernhard Übelacker <bernhardu>.
4032 He also spotted few overflows in first version of this patch.
4034 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4036 * tests/date_unit_test.c: New test.
4038 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4040 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
4041 of first three years after start of validity of unixtime.
4043 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4045 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
4046 division as the one making more sense.
4047 (update_screen): Likewise.
4048 (complete): Likewise.
4050 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4052 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
4054 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4056 Make char and string width grub_size_t rather than grub_ssize_t.
4058 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4060 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
4062 (grub_history_replace): Likewise.
4064 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4066 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
4069 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4071 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
4074 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4076 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
4077 Use unsigned divisions rather than signed variants.
4079 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4081 * grub-core/video/readers/png.c (grub_png_convert_image): Use
4082 unsigned arithmetics.
4085 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4087 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
4089 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4091 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
4092 rather than signed one.
4093 (recovery): Likewise.
4095 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4097 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
4099 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4101 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
4104 2013-10-25 Jon McCune <jonmccune@google.com>
4106 * docs/grub.texi: Cleanup security documentation around signatures.
4108 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4110 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
4112 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4114 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
4117 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4119 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
4120 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
4121 functions when compiling for kernel.
4123 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4125 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
4126 unsigned long long when using %llu.
4128 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4130 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
4131 terminal after updating progress.
4133 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4135 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
4136 argument. We don't disable Gate A20 in this code.
4138 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4140 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
4141 Conceptually based on change in branch "vbe-on-coreboot".
4143 2013-10-24 Robert Millan <rmh@gnu.org>
4145 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
4146 numeric constants with their symbolic equivalent.
4147 Taken from branch "vbe-on-coreboot".
4149 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4151 * docs/grub.texi: Fix ordering and use pxref rather than xref.
4153 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4155 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
4156 divmod64 for offset division.
4158 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4160 Rename .bzrignore to .gitignore. Add "*.o" rule.
4162 * .bzrignore: Renamed to...
4163 * .gitignore: ...this.
4165 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4167 Add new progress module that displays the load progress of files.
4169 * grub-core/lib/progress.c: New file.
4170 * grub-core/Makefile.core.def (progress): New module.
4171 * grub-core/kern/file.c (grub_file_open): File name added.
4172 * (grub_file_read): Progress hook added.
4173 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
4174 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
4175 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
4176 * include/grub/file.h (struct grub_file): Add progress module members.
4177 * include/grub/term.h (struct grub_term_output): Likewise.
4178 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
4179 Terminal velocity added.
4180 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
4181 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
4182 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
4183 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
4184 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
4185 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
4186 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
4187 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
4188 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
4189 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
4190 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
4191 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
4193 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4195 Verify signatures of signatures unless --skip-sig is specified.
4197 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4199 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
4202 Saves 70 bytes on compressed image.
4204 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4206 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
4209 Saves 10 bytes on compressed image.
4211 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4213 * grub-core/kern/misc.c (grub_isprint): Move to ...
4214 * include/grub/misc.h (grub_isprint): ... here. Make inline.
4216 Saves 20 bytes on compressed image due to remving exporting.
4218 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4220 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
4222 Saves 5 bytes on compressed image.
4224 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4226 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
4229 Saves 379 bytes on compressed image.
4231 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4233 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
4235 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4237 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
4239 Saves 40 bytes on compressed image.
4241 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4243 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
4244 mask rather than 64-bit type.
4246 Saves 20 bytes on compressed image.
4248 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4250 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
4251 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
4253 Saves 273 bytes on compressed image.
4255 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4257 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
4258 variable length arrays.
4260 Saves 50 bytes on compressed image.
4262 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4264 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
4266 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4268 * grub-core/fs/ufs.c: Remove variable length arrays.
4270 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4272 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
4274 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4276 * grub-core/fs/zfs.c: Remove variable length arrays.
4277 Reduces zfs.mod by 160 bytes (208 compressed).
4279 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4281 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
4283 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4285 * grub-core/net/arp.c: Remove variable length arrays.
4286 * grub-core/net/bootp.c: Likewise.
4287 * grub-core/net/dns.c: Likewise.
4288 * grub-core/net/icmp6.c: Likewise.
4289 * grub-core/net/net.c: Likewise.
4291 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4293 * grub-core/fs/ntfs.c: Remove variable length arrays.
4294 Increases ntfs.mod by 64 bytes (but decreases by 3 when
4297 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4299 * grub-core/fs/hfs.c: Remove variable length arrays.
4300 Reduces hfs.mod by 8 bytes (52 compressed).
4302 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4304 * grub-core/fs/udf.c: Remove variable length arrays.
4305 Increases udf.mod by 128 bytes (but decreases by 13 when
4308 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4310 * grub-core/fs/iso9660.c: Remove variable length arrays.
4311 Increases iso9660.mod by 200 bytes (but decreases by 79 when
4314 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4316 * grub-core/fs/nilfs2.c: Remove variable length arrays.
4317 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
4320 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4322 * grub-core/fs/xfs.c: Remove variable length arrays.
4323 Reduces xfs.mod by 40 bytes (43 compressed).
4325 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4327 * grub-core/fs/fshelp.c: Remove variable length arrays.
4328 Reduces fshelp.mod by 116 bytes (23 compressed).
4330 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4332 * grub-core/normal/completion.c: Remove variable length arrays.
4333 * grub-core/normal/menu_entry.c: Likewise.
4335 Reduces normal.mod by 496 bytes.
4337 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4339 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
4340 by 356 bytes (158 compressed).
4342 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4344 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
4345 by 364 bytes (169 compressed).
4347 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4349 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
4350 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
4351 * include/grub/types.h (grub_unaligned_uint64_t): New type.
4353 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4355 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
4356 bitmasks to small structures of size chosen to fit in registers.
4358 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4360 * conf/Makefile.common: Use -freg-struct-return on i386. This
4361 decreases code size and improves performance.
4363 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4365 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
4367 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4369 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
4371 Simplify expressions to save around 256 bytes in kernel.img.
4372 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
4374 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4376 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
4377 Use GRUB_UTIL_FD_O_* rather than O_*.
4379 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4381 Add haiku-specific functions.
4383 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4385 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
4387 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4389 Move stat () and device mode checking into OS-dependent files as
4390 long as performance doesn't suffer.
4392 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4394 Split make_system_path_relative_to_its_root into separate file
4395 relpath.c from getroot.c as it's common between unix and haiku
4396 but otherwise haiku doesn't use any functions from unix getroot.c.
4398 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4400 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
4402 (grub_util_is_special_file): Likewise.
4404 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4406 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
4407 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
4409 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4411 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
4412 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
4414 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4416 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
4417 (load_image): Likewise.
4419 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4421 * util/grub-render-label.c: Move backend part to ...
4422 * util/render-label.c: ... here.
4424 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4426 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
4427 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
4429 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4431 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
4433 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4435 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
4436 CD-ROM in case when it's declared as having subpartitions.
4438 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4440 Don't add -lm on haiku.
4442 * configure.ac: Define BUILD_LIBM to -lm on most platforms
4444 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
4447 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4449 * configure.ac: Use -melf_*_haiku as target on haiku.
4451 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4453 * Makefile.util.def: Add util/setup.c to extra_dist.
4455 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4457 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
4458 unknown types through.
4460 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4462 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
4463 (grub_util_check_char_device): Likewise.
4464 * include/grub/emu/getroot.h: Likewise.
4466 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4468 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
4469 memset rather than inline static function.
4471 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4473 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
4474 not doing embedded decompressor.
4476 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4478 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
4480 * grub-core/kern/disk.c: Likewise.
4481 * grub-core/kern/misc.c: Likewise.
4482 * include/grub/parser.h: Likewise.
4483 * include/grub/script_sh.h: Likewise.
4484 * include/grub/zfs/zfs.h: Likewise.
4486 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4488 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
4490 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4492 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
4493 defined before trying to use it.
4495 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4497 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
4500 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4502 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
4503 Use __unused__ rather than __used__ on gcc < 3.2.
4505 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4507 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
4509 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
4511 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4513 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
4515 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4517 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
4518 * include/grub/emu/misc.h: Likewise.
4520 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4522 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
4525 2013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
4527 * grub-core/tests/checksums.h: Regenerated due to progress bar
4528 get_minimal_size changes.
4530 2013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
4532 Added `tr' command support.
4534 * grub-core/commands/tr.c: New file.
4535 * grub-core/Makefile.core.def: Build rules for new module.
4537 * tests/grub_cmd_tr.in: New test.
4538 * Makefile.util.def: Build rules for new test.
4540 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4542 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
4544 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4546 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
4547 * docs/gurb.texi: Likewise.
4549 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4551 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
4552 Pixmap highlighted section with east and west slices was displayed
4553 incorrectly due to negative width of the central slice.
4555 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4557 * docs/grub.texi: Graphical options information update.
4558 Removed outdated. Updated current. Inserted missed.
4560 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4562 * docs/grub.texi: Mention few new platform-specific commands.
4564 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4566 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
4567 currently used so this doesn't really have any effect.
4568 Reported by: Douglas Ray <dougray>
4570 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4572 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
4573 compilation but prevents gcc from displaying messages in non-Latin
4575 * conf/Makefile.common: Likewise.
4577 2013-10-16 Hiroyuki YAMAMORI
4579 Handle Japanese special keys.
4580 Reported by: Hiroyuki YAMAMORI.
4581 Codes supplied by: Hiroyuki YAMAMORI.
4583 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4585 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
4587 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4589 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
4590 * docs/grub.texi: Likewise.
4592 2013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4594 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
4595 value in case of incomplete read.
4596 (grub_util_fd_write): Likewise.
4598 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4600 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
4602 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4604 * util/grub-editenv.c (create_envblk_file): More from here ...
4605 * util/editenv.c (grub_util_create_envblk_file): ... to here.
4607 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4609 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
4610 canonicalize file name before doing the rest.
4612 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4614 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
4617 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4619 Define grub_util_is_directory/regular/special_file and
4620 use OS-dependent versions rather than to rely on stat().
4622 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4624 * util/grub-mkimage.c: Move backend part to ...
4625 * util/mkimage.c: ... here.
4627 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4629 Allow compilation with mingw64 albeit with warnings due to lack of
4632 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
4633 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
4634 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
4635 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
4637 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
4639 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4641 Remove leftover references to some of the system headers.
4643 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4645 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
4648 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4650 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
4653 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4655 Split out blocklist retrieving from setup.c to
4656 grub-core/osdep/blocklist.c and add windows implementation since
4657 generic version doesn't work on NTFS on Windows due to aggressive
4660 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4662 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
4665 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4667 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
4668 Cut tailing newline. Remove arbitrary limitation. Always use
4669 grub_util_tchar_to_utf8.
4671 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4673 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
4674 * tests/printf_unit_test.c (printf_test): Add %% tests.
4675 Reported by: Paulo Flabiano Smorigo.
4677 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4679 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
4682 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4684 * configure.ac: Check for nvlist_lookup_string in nvpair since we
4685 use nvlist_lookup_string and don't use nvlist_print.
4687 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4689 Add wrappers around rename, unlink, mkdir, opendir, readdir and
4690 closedir to handle filename charset translation.
4692 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4694 * include/grub/emu/hostdisk.h: Move file operations to
4695 * include/grub/emu/hostfile.h: ... here.
4697 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4699 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
4702 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4704 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
4706 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4708 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
4709 and remove export.h.
4711 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4713 * grub-core/kern/emu/error.c: Removed.
4714 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
4715 explicitly as it's already in libgnu.a.
4717 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4719 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
4720 config-util.h include.
4722 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4724 Split emunet into platform-dependent and GRUB-binding parts. Keep
4725 platform-dependent part in kernel for easy access to OS functions.
4727 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4729 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
4732 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4734 * grub-core/osdep/windows/emuconsole.c: New file.
4736 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4738 * conf/Makefile.extra-dist: Add osdep/*/init.c
4740 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4742 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
4744 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4746 * util/grub-probe.c (probe): Separate different drives in hint-str
4747 by spaces and not newlines.
4748 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
4750 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4752 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4755 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4757 Pass-through unknown E820 types. It required reorganisation of mmap
4760 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4762 * Makefile.util.def: Add osdep/init.c to grub-mount files.
4764 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4766 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
4769 2013-10-14 qwertial <qwertial>
4771 * grub-core/gdb_grub.in: Fix overflow and wrong field.
4773 2013-10-14 Jon McCune <jonmccune@google.com>
4775 * docs/grub.texi: Document new signatures possibility.
4777 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4779 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
4781 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4783 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
4785 (grub_util_tchar_to_utf8): Likewise.
4787 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4789 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
4790 * grub-core/kern/emu/main.c: Add missing include.
4791 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
4792 Don't call grub_util_init_nls.
4793 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
4796 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4798 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
4801 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4803 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4805 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4807 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4809 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4811 Add a wrapper for fopen. On unix-like systems just pass-through. On
4812 windows use unicode version.
4814 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4816 Move set_program_name and init_nls to host_init. On windows
4817 fix in this fuction console and argument charset as well.
4819 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4821 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4822 GRUB_ENABLE_CRYPTODISK.
4824 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4825 GRUB_ENABLE_CRYPTODISK.
4826 * util/grub-mkconfig_lib.in: Likewise.
4828 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4830 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4832 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4834 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4835 error when enabling debug.
4837 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4839 * configure.ac: Use -melf_*_obsd on openbsd.
4841 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4843 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4845 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4847 * include/grub/misc.h: Use gnu_printf rather than printf as format
4848 template since our functions are independent of libc.
4850 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4852 * util/grub-setup.c (setup): Move copying of partition table as
4853 futher up as possible to avoid possible overwrite by floppy routines.
4855 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4857 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4859 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4861 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4862 * docs/grub.texi: Likewise.
4864 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4866 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4867 it's mostly unused. Move vestiges to the callers.
4869 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4871 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4872 version of salt and hash. Use grub_snprintf rather than snprintf.
4874 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4876 * docs/grub.texi: Fix problem with braces.
4878 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4880 * conf/Makefile.extra-dist: Fix extra-dist list.
4881 * grub-core/Makefile.core.def: Likewise.
4883 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4885 * docs/grub.texi: Document disk names used on Windows and AROS.
4887 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4889 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
4891 * grub-core/osdep/aros/hostdisk.c: Likewise.
4893 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4895 Avoid including hostfile.h when not necessarry as it pulls
4896 in OS-specific headers which may redefine generic names
4899 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4901 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
4902 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
4903 scrollbar_bottom_pad
4904 * docs/grub.texi: Likewise.
4906 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4908 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
4910 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4912 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
4914 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4916 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
4918 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
4921 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4923 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
4926 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4928 Move OS-specific driver configuration to grub_util_fd_open. This
4929 moves OS-dependent parts from kern/emu/hostdisk.c to
4930 grub-core/osdep/*/hostdisk.c.
4932 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4934 * util/grub-mkimage.c (generate_image): Use size_t instead of
4936 * util/grub-mkimagexx.c (locate_sections): Likewise.
4937 (load_image): Likewise.
4939 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4941 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
4943 (grub_util_write_image): Likewise.
4945 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4947 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
4948 get random when no RNG is available.
4949 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
4951 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4953 * include/grub/util/lvm.h: Removed.
4955 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4957 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
4958 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
4960 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4962 * grub-core/osdep/windows/sleep.c: Add missing config.h.
4964 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4966 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
4968 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4970 * grub-core/net/drivers/emu/emunet.c: Move to ..
4971 * grub-core/osdep/linux/emunet.c: ..here.
4973 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4975 * util/ieee1275/ofpath.c: Move to ...
4976 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
4977 * grub-core/osdep/basic/ofpath.c: ..here.
4979 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4981 Move password-querying (util-version) routines to grub-core/osdep.
4983 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4985 Move sleep routines to grub-core/osdep.
4987 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4989 Move OS-dependent files to grub-core/osdep and document it.
4991 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4993 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
4994 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
4996 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4998 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
5000 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5002 * util/misc.c: Remove leftover inclusion of malloc.h.
5004 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5006 * include/grub/setjmp.h: Remove leftover GRUBOF.
5008 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5010 * util/raid.c: Fold into ...
5011 * util/getroot_linux.c: ... here. Make all functions static.
5013 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5015 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
5016 macros to GRUB ones.
5018 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5020 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
5021 occasional bug. If there are too many boot entries or too low
5022 scrollbar height then we need to use another formula to calculate
5023 the position and size of the scrollbar thumb.
5025 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5027 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
5029 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5031 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
5032 * docs/grub.texi: Likewise.
5034 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5036 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
5039 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5041 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
5042 minimal width calculations.
5044 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5046 * docs/grub.texi: Update note on colors on emu console.
5048 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5050 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
5051 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
5052 it's FS and not GRUB limitation.
5054 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5056 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
5058 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5060 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
5062 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
5064 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
5065 kernels by version order.
5067 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5069 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
5071 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5073 Add AROS hostdisk and getroot routines.
5075 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5077 Make cryptodisk and diskfilter probe data retrievable programmatically
5078 and not just printable.
5080 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5082 Split random retrieving code into separate files.
5084 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5086 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
5089 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5091 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
5093 * grub-core/tests/fake_input.c: Likewise.
5094 * grub-core/tests/cmdline_cat_test.c: Likewise.
5096 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5098 * grub-core/video/capture.c: Do not do finalization when .fini
5099 is called as there is explicit capture_end.
5101 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5103 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
5104 changing windows to avoid crash.
5106 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5108 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
5110 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5112 * po/exclude.pot: Add several strings to exclude.
5114 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5116 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
5118 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5120 * autogen.sh: Add ./util/grub-gen-widthspec.c and
5121 ./util/grub-gen-asciih.c to exclude list.
5123 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5125 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
5126 and don't mark error strings for translation.
5128 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5130 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
5131 properly in case of missing block size.
5133 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5135 * grub-core/lib/arm/setjmp.S: Add missing license section.
5137 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5139 * po/swiss.sed: Add replacement for key names and for term computer.
5141 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
5143 * grub-core/gfxmenu/theme_loader.c: New global options for the
5144 theme background image handling. desktop-image-scale-method,
5145 desktop-image-h-align, desktop-image-v-align.
5146 * grub-core/gfxmenu/view.c: Likewise.
5147 * include/gfxmenu_view.h: Likewise.
5148 * include/bitmap_scale.h: Proportional scale functions introduced.
5149 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
5150 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
5151 cases of unexpected input variables for scale functions.
5152 * docs/grub.texi: Updated documentation for new options.
5154 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
5156 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
5158 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5160 * grub-core/tests/checksums.h: Corrected due to changes in
5161 bilinear interpolation function.
5163 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5165 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
5166 to eliminate artefacts in bilinear interpolation.
5168 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5170 * grub-core/video/readers/tga.c: Support paletted tga.
5172 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5174 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
5175 incorrect cbcr setting when in color mode.
5177 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5179 * grub-core/video/readers/png.c: Support paletted images and clean up
5182 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5184 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
5185 usage of wrong table which resulted in mishandling of 4-byte
5188 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5190 * grub-core/term/terminfo.c: Add Home and End key sequences.
5192 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5194 * grub-core/video/readers/png.c (grub_png_decode_image_header):
5195 Fix formula for computing total number of bytes.
5197 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5199 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
5200 image processing, fix big-endian and support grayscale.
5202 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5204 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
5205 Correctly will with maximum transparency when using index color.
5207 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5209 * grub-core/video/readers/png.c: Support grayscale
5211 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5213 * grub-core/video/readers/jpeg.c: Support grayscale.
5215 2013-09-26 Jon McCune <jonmccune@google.com>
5217 * grub-core/commands/loadenv.c: Support skipping signature check
5218 and variable names filtering.
5220 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5222 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
5223 * grub-core/kern/emu/hostfs.c: Likewise.
5224 * util/getroot_unix.c: Likewise.
5226 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5228 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
5229 Migrate all explicit defines to this new one.
5231 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5233 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
5234 grub_util_fd_strerror when using grub_util_fd_*.
5235 (grub_util_fd_open_device): Likewise.
5236 (grub_util_biosdisk_read): Likewise.
5237 (grub_util_biosdisk_write): Likewise.
5238 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
5239 (grub_util_fd_strerror): Likewise.
5240 (grub_util_fd_sync): Likewise.
5241 (grub_util_fd_close): Likewise.
5242 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
5243 (grub_util_fd_close): Likewise.
5244 (grub_util_fd_strerror): Likewise.
5245 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
5246 function proto rather than macro.
5247 (grub_util_fd_sync): Likewise.
5248 (grub_util_fd_open): Likewise.
5249 (grub_util_fd_strerror): New proto.
5251 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5253 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
5254 platforms on which it doesn't work.
5256 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5258 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
5259 stat immediately to where it's used.
5261 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5263 * util/getroot.c (grub_util_check_block_device): Move to ...
5264 * util/getroot_unix.c (grub_util_check_block_device): ... here.
5265 * util/getroot.c (grub_util_check_char_device): Move to ...
5266 * util/getroot_unix.c (grub_util_check_char_device): ... here.
5268 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5270 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
5273 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5275 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
5277 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5279 * docs/grub.texi (File name syntax): Document ZFS filenames
5280 (/volume@snapshot/...).
5282 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5284 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
5285 Always return full path. Fixes a problem with mkrelpath.
5287 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5289 * util/grub-install.in: Add GPT PReP support.
5290 * util/grub-probe.c (probe): Support GPT partition type.
5291 (main): Support -t gpt_parttype.
5293 2013-09-23 Aleš Nesrsta <starous@volny.cz>
5295 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
5297 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
5299 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
5301 2013-09-23 Tim Hardeck <thardeck>
5303 * util/grub.d/10_hurd.in: Filter out character for the class.
5304 * util/grub.d/10_kfreebsd.in: Likewise.
5305 * util/grub.d/10_linux.in: Likewise.
5306 * util/grub.d/20_linux_xen.in: Likewise.
5308 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
5310 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
5313 2013-09-23 Josh Triplett <josh@joshtriplett.org>
5315 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
5318 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5320 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
5321 doesn't use posix_wrap. Keep literal -fno-builtin however.
5323 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5325 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
5327 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5330 * configure.ac: Do not enable -Wmissing-noreturn as its
5331 usefulness is limited and creates problems on some OS notably with
5332 code generated by bison.
5334 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5337 * configure.ac: Do not explicitly enable -Waddress as it's not
5338 supported by all gcc and when it is, it's already enabled by -Wall.
5340 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5342 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
5343 desactivated use of EDID at all.
5345 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5348 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
5349 video if no text is available.
5351 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5354 * configure.ac: Substitute TARGET_RANLIB.
5356 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5359 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
5361 Based on patches from AROS.
5363 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5366 * grub-core/Makefile.am: Override STRIP and RANLIB.
5367 * configure.ac: compute TARGET_RANLIB.
5368 * INSTALL: Document TARGET_RANLIB
5370 Based on patches from AROS.
5372 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5374 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
5375 that floppies are unpartitioned.
5377 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5379 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
5380 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
5382 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5384 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
5385 less nice but more portable.
5386 * grub-core/lib/posix_wrap/wchar.h: Likewise.
5388 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5390 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
5392 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
5394 (grub_cryptodisk_cheat_insert): Likewise.
5395 (grub_cryptodisk_close): Likewise.
5397 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5399 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
5400 Use windows path for DEFAULT_DIRECTORY.
5402 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5404 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
5405 difference was likely just gcc version, not anything mingw-related.
5407 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5409 Use Winapi on both cygwin and mingw32 to share more code between both.
5411 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5413 * util/grub-install.in: Add --grub-editenv option.
5414 * util/grub-install_header (grub_compress_file): Explicitly check for
5415 plain file to avoid cp error.
5417 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5419 * docs/grub.texi (Device syntax): Document new LVM UUID based device
5420 names; fix LVM driver name (lvm, not lv).
5421 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
5424 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5426 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
5427 files rather than one file with loads of #if's.
5428 * util/getroot.c: Likewise.
5430 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5432 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
5434 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5436 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
5437 GNU/Hurd to the list of checked PRNG.
5439 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5441 * configure.ac: On FreeBSD use -melf_*_fbsd format.
5443 2013-09-21 Ales Nesrsta <starous@volny.cz>
5445 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
5447 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5449 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
5450 * grub-core/disk/lvm.c: Add LVM UUIDs.
5451 * util/getroot.c: Use LVM UUIDs whenever possible.
5453 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
5455 * docs/grub.texi (Networking commands): Add documentation for
5456 network related commands.
5458 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5460 * util/getroot.c (grub_util_open_dm): Check major rather than the name
5461 to determine if device is handled by devmapper.
5462 (convert_system_partition_to_system_disk): Likewise.
5463 (get_dm_uuid): Don't check explicitly if device is mapped, it's
5464 already done in grub_util_open_dm.
5466 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
5468 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
5469 Clean up stack manipulation (sync_caches_armv*)
5471 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5473 * util/lvm.c: Remove since unused. Remove remaining references.
5475 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5477 Handle the case of partitioned LVM properly.
5479 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5480 Stop on meeting LVM, mpath or DMRAID.
5481 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
5482 (read_device_map): Likewise.
5483 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
5484 device is full disk rather than erroring out on LVM and similar cases.
5486 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5488 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
5490 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5492 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
5494 Reported by: Leif Lindholm
5496 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
5497 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5499 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
5502 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
5504 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
5505 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
5507 2013-09-18 Douglas Ray <dougray@cpan.org>
5509 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
5512 2013-09-18 Aleš Nesrsta <starous@volny.cz>
5514 * docs/grub.texi: Fix broken link.
5516 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
5518 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
5519 to break endless loop.
5521 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5523 * util/grub-fstest.c: Fix several printf formats.
5524 * util/grub-mkimage.c: Likewise.
5525 * util/grub-mkimagexx.c: Likewise.
5526 * util/grub-script-check.c: Likewise.
5528 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5530 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
5533 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5535 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
5537 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5539 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
5540 removed in current versions cygwin_conv_*.
5542 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5544 * configure.ac: Disable efiemu runtime on cygwin.
5546 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5548 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
5549 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
5551 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5553 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
5556 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5558 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
5560 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
5563 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5565 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
5566 when on x86 and not cygwin.
5567 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
5570 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5572 * configure.ac: Set CPP to build one when checkoing for freetype for
5575 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5577 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
5578 [!GRUB_BUILD]: Remove has_argument.
5580 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5582 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
5583 Replace with a dummy.
5585 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5587 * configure.ac: Don't change host_os from mingw to cygwin.
5589 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5591 * configure.ac: Change target_os from windows to cygwin.
5593 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5595 Handle grub-pe2elf and grub-mkfont for cases when build != host.
5597 * Makefile.am (build-grub-mkfont): Don't include gnulib.
5598 (build-grub-gen-asciih): Likewise.
5599 (build-grub-gen-widthspec): Likewise.
5600 * Makefile.util.def (grub-pe2elf): Remove.
5601 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
5602 * configure.ac: Separate tests for build.
5603 Move ./build-grub-pe2elf to grub-core.
5605 * grub-core/Makefile.am (build-grub-pe2elf): New target.
5606 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
5608 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
5610 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
5611 * util/grub-pe2elf.c: Simplify not to rely on getopt.
5612 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
5614 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5616 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
5617 mingw32 as well based on grub_util_get_disk_size.
5618 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
5619 grub_util_get_fd_size.
5621 (fsync): Moved to ...
5622 * grub-core/kern/emu/misc.c (fsync): ... here.
5624 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5626 * include/grub/mm.h (grub_extend_alloc): Remove.
5627 * grub-core/loader/i386/pc/plan9.c: Use own version of
5628 grub_extend_alloc with appropriate types.
5630 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5632 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
5634 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5636 * util/getroot.c: Include sys/wait.h only when we need waitpid.
5638 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5640 Fix dependencies on cygwin.
5642 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
5643 dependencies when used and defined.
5644 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
5646 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5648 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
5649 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
5651 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5653 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
5654 implementation available to cause compile-time rather than runtime
5657 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5659 * util/grub-fstest.c: Don't check for symlinks on windows.
5661 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5663 * INSTALL: Mention unavailability of man pages when cross-compiling.
5665 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5667 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
5669 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
5671 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5673 * INSTALL: Document cross-compilation.
5674 * acinclude.m4: Determine whether nm support -P and --defined-only.
5675 * configure.ac: Add TARGET_ to all variables pertaining to target
5676 that don't have it yet.
5677 * gentpl.py: Likewise.
5678 * grub-core/Makefile.am: Likewise.
5679 * grub-core/genmod.sh.in: Likewise.
5680 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
5683 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5685 * configure.ac: Remove -Wempty-body. It's not essential and needs
5688 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5690 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
5691 * util/getroot.c: Likewise.
5693 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5695 * grub-core/disk/ahci.c: Add needed explicit cast.
5696 * grub-core/lib/backtrace.c: Likewise.
5697 * grub-core/net/ip.c: Likewise.
5698 * grub-core/net/tcp.c: Likewise.
5699 * grub-core/net/udp.c: Likewise.
5701 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5703 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
5705 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5707 * util/import_gcry.py: Add final newline in visibility.h.
5709 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5711 * conf/Makefile.common: Fix typo.
5713 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5715 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
5717 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5719 * Makefile.am (widthspec.h): Fix typo.
5720 * util/grub-gen-widthspec.c: Likewise.
5722 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5724 Move ascii.h and widthspec.h generation to a separate build-time-only
5727 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5729 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5730 Always fill bootdisk info and improve check for NetBSD disklabel.
5732 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5734 * conf/Makefile.extra-dist: Add util/bin2h.c.
5735 Reported by: floppym.
5737 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5739 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
5741 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5743 * configure.ac: Disable unifont and starfield if no freetype was found.
5745 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5747 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
5748 on NetBSD and OpenBSD.
5750 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5752 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
5754 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5756 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
5757 reduced. Inheritant options are processed during the theme loading.
5759 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5761 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
5763 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5765 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
5767 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5769 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
5772 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5774 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
5775 remove-potcdate.sed.
5777 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5779 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
5780 unused attribute from pull argument.
5782 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5784 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
5787 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5789 * util/getroot.c (pull_lvm_by_command): add --separator option
5790 to vgs call to disable padding of output to 10 characters.
5792 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5794 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
5796 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
5799 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5801 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
5804 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5806 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5807 full Canadian cross. Tested with build=x86_64, host=arm,
5808 target=ppc-ieee1275.
5810 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5812 * configure.ac: Error if no $BUILD_CC could be found.
5815 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5817 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5820 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5822 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5823 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5825 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
5827 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5828 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5829 falling back to the partition device, otherwise a later call to this
5830 function may fail spuriously.
5831 Reported by Axel Beckert. Fixes Debian bug #708614.
5833 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5835 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5837 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5839 Prevent shadowing of stdlib's devname(3) on BSD.
5841 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5842 and devlast to diskname and disklast, respectively.
5844 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
5846 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5848 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5850 * docs/grub.texi: Introduce terminal window position options:
5851 terminal-left: terminal window's left position
5852 terminal-top: terminal window's top position
5853 terminal-width: terminal window's width
5854 terminal-height: terminal window's height
5855 terminal-border: terminal window's border width
5856 * grub-core/gfxmenu/theme-loader.c: Likewise.
5857 * include/grub/gfxmenu_view.h: Likewise.
5858 * po/exlude.pot: Likewise.
5859 * grub-core/gfxmenu/view.c: Likewise.
5860 Also updated minimal window size.
5861 Also terminal_sanity_check function has been introduced.
5862 * grub-core/tests/checksums.h: Update (terminal window height
5863 is adjusted now for low resolution screen)
5865 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5867 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5870 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5872 * po/exclude.pot: Add few recent exceptions.
5874 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5876 * tests/grub_func_test.in: Add unicode.pf2.
5878 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5880 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
5881 standard rather than noral color, in line with other terminals.
5883 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5885 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
5888 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5890 * grub-core/loader/arm/linux.c: Change printf to dprintf.
5892 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5894 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
5895 inappropriate printf.
5897 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
5899 * .bzrignore: Remove grub-core/lib/dtc-grub,
5900 grub-core/Makefile.libfdt.def
5901 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
5903 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5905 * include/grub/video.h (grub_video_register): Keep double-linked as
5906 well as single-linked invariants.
5907 Reported by: qwertial.
5909 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5911 * grub-core/commands/nativedisk.c (get_uuid): Handle
5912 GRUB_DISK_DEVICE_UBOOTDISK_ID.
5914 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
5916 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
5917 maximum of NW, N, NE heights instead of N's height and maximum of
5918 NW, W, SW widths instead of W's width. (So the box will be always
5921 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
5923 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
5924 Fix misuse of variable count.
5926 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
5927 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
5928 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5930 New ports to arm-uboot and arm-efi.
5931 Mostly by Leif Lindholm with some additions from
5932 Francesco Lavra and cleanup by Vladimir Serbinenko.
5934 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5936 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
5938 Reported by: Leon Drugi.
5940 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5942 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
5943 Reported by: Paulo Flabiano Smorigo.
5945 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5947 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
5949 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5951 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
5953 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5955 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
5957 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5959 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
5961 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
5963 * grub-core/net/bootp.c: Export net_* variables.
5964 * grub-core/net/net.c: Likewise.
5966 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5968 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
5970 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5972 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
5974 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5976 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
5978 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5980 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
5982 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5984 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
5987 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5989 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
5992 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5994 * grub-core/fs/zfs/zfs_lz4.c: New file.
5995 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
5997 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5999 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
6001 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6003 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
6004 (check_pool_label): Likewise.
6005 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
6007 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6009 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
6011 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
6013 * docs/grub.texi (Commands): Document postition parameters
6014 for menuentry command.
6016 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
6018 * util/grub-mknetdir.in: Remove stray line from help output.
6020 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6022 Remove early sm712 init as there is no reason for it (the "watchdog"
6023 effect was due to wrong GPIO map).
6025 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6027 * grub-core/commands/pcidump.c: Remove static variables.
6029 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6031 * grub-core/commands/sleep.c: Refresh screen before sleeping.
6033 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6035 * configure.ac: Move delimiter after the infos.
6037 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6039 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
6041 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6043 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
6044 not filling whole 8x16 space.
6046 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6048 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
6050 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6052 * configure.ac: Indicate which liblzma is used if any.
6054 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
6055 2013-06-21 Craig Sanders <savannah@taz.net.au>
6057 * util/grub-reboot.in: Document submenu usage.
6059 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
6061 * .bzrignore: Update with a number of new test-related files.
6063 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
6065 * util/grub-script-check.c: Fail on scripts containing no
6066 commands, to guard against corrupted grub-mkconfig setups that
6067 produce no useful output.
6068 * tests/grub_script_no_commands.in: New test.
6069 * Makefile.util.def (grub_script_no_commands): Add.
6070 Reported by Hans Putter. Fixes Debian bug #713886.
6072 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6074 * grub-core/disk/diskfilter.c: Forgot to remove comment
6075 from previous commit.
6077 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6079 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
6080 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
6082 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6084 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
6086 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6088 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
6089 rescan diskfilter devices until nothing new is found.
6091 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6093 Fix casts when compiling coreboot-specific code for 64-bit EFI.
6095 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6097 Don't try to detect cbfs on *-emu.
6099 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6101 * grub-core/term/gfxterm.c: USe right background color when scrolling.
6103 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6105 Add support for processed coreboot payload chainloading.
6107 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6109 Enable coreboot information commands even when not loaded as
6110 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
6112 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6114 Support for cbfs. Also factor out the part which is common
6115 for all archives to a separate module. This splits tar from cpio
6116 as they are very different but keeps cpio, cpio_be, odc and newc
6117 together since they're very similar.
6119 2013-06-15 David Michael <fedora.dm0@gmail.com>
6121 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
6122 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
6124 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6126 * tests/grub_script_eval.in: Really add the eval test.
6128 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
6130 Move flavour-specific parts out of common cpio.c file and
6131 rename remaining to cpio_common.c
6133 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6135 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
6136 off new function grub_script_execute_new_scope. Change callers to use
6137 either of them as appropriate.
6138 * grub-core/commands/eval.c: New command eval.
6139 * docs/grub.texi (Commands): Document it.
6141 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6143 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
6144 to fetch values when listing.
6146 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6148 Fix make dist on non-pc.
6150 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
6152 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
6153 without a device name.
6155 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6157 Remove enable_executable_check as it's not needed anymore.
6158 Reported by: dougray.
6160 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6162 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
6163 ambigouos RAID before discovering RAIDs on top of it.
6166 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6168 Fix typo (failback vs fallback).
6170 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
6172 * util/grub.d/30_os-prober.in: Add support for probing EFI
6173 System Partition (as of os-prober 1.58).
6175 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6177 * configure.ac: Add yet another path to unifont. For parabola.
6179 2013-05-30 Josh Triplett <josh@joshtriplett.org>
6181 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
6182 handling to copy the killed characters to the kill buffer as
6183 UCS4 stored as grub_uint32_t rather than as 8-bit characters
6184 stored as char. Eliminates UCS4 truncation and corruption
6185 observed when killing characters with Ctrl-u and yanking them
6188 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6190 Detach optional parts of gfxterm and integrate in with coreboot init.
6192 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6194 Move blit and fill dispatcher to appropriate files to decrease export
6195 and relocation overhead.
6197 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6199 * grub-core/font/font.c, include/grub/font.h: Inline simple font
6202 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6204 * grub-core/Makefile.am: Fix compilation problem with some
6207 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6209 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
6211 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6213 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
6216 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6218 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
6221 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
6223 * grub-core/partmap/dfly.c: New partition map.
6225 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6227 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
6229 Reported by: Francesco Lavra.
6231 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
6233 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
6234 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
6236 * conf/Makefile.common: define dist_grubconf_DATA
6238 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6240 Progressively skip menu elements on small terminals rather
6243 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6245 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
6246 to avoid losing last column.
6248 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6250 * po/exclude.pot: Add missing string "%C".
6252 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6254 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
6257 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6259 * util/grub-install.in: Gettextize "Not found" message.
6261 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6264 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6266 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6268 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
6270 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
6272 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6274 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
6276 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6278 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
6279 attribute since structure is not necessarily aligned.
6281 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
6283 * docs/grub.texi (Device syntax): Clarify description of network
6286 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6288 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
6289 for vasprintf presence.
6291 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6293 * util/grub-install.in: Handle efibootmgr presence check.
6294 Reported by: Leif Lindholm.
6296 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6298 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
6299 new strings to translate.
6301 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6303 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
6304 yet another string (pun intended) to translate.
6306 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6308 * po/POTFILES-shell.in: Autogenerate it.
6310 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6312 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
6314 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6316 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
6319 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
6321 * docs/grub.texi (Network): Add description of net_default_interface,
6322 net_default_ip and net_default_mac. Rewrite variables description
6323 to emphasize that they are per-interface.
6325 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6327 New test: cmdline and cat.
6329 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6331 * grub-core/commands/cat.c: Show UTF-8 characters.
6333 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6335 * conf/Makefile.common: Poison float and double on non-emu.
6337 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6339 * configure.ac: Don't disable extended registers on emu.
6341 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6343 * configure.ac: Don't use extended registers on x86_64.
6344 Reported by: Peter Jones.
6346 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6348 * grub-core/term/efi/console.c: Fix compile error.
6350 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6352 Compressed HFS+ support.
6354 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6356 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
6359 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6363 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6365 * grub-core/tests/setjmp_test.c: New test.
6367 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6369 New variables 'net_default_*' to determine MAC/IP of default interface.
6371 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6373 * tests/gettext_strings_test.in: A test to check for strings not
6374 marked for translation.
6376 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6378 * autogen.sh: Exclude unused libgcrypt files from translation.
6380 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6382 Simplify few strings.
6384 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6386 Mark few forgotten strings for translation.
6388 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6390 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
6393 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6395 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
6397 * grub-core/video/readers/tga.c: Likewise.
6399 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6401 * tests/priority_queue_unit_test.cc: New test.
6403 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6405 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
6408 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
6410 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
6411 variable for one time boot menu entry.
6413 2013-05-05 Bean <bean123ch@gmail.com>
6415 * grub-core/commands/testspeed.c: New command testspeed.
6417 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6419 Factor-out human-size printing.
6421 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6423 Agglomerate more mallocs to speed-up gfxterm.
6425 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6427 Speed-up gfxterm by slightly agglomerating mallocs.
6429 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6433 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6435 Speed-up gfxterm by saving intermediate results in index+alpha
6438 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6440 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
6443 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6445 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
6446 line of timeout as it may contain the rest of long line.
6448 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6450 * grub-core/normal/main.c: Fix freed memory dereference.
6452 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6454 Fix several memory leaks.
6456 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6458 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
6460 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6462 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
6464 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6466 Fix test -a and -o precedence.
6467 Reported by: adrian15.
6469 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6471 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
6473 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
6475 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
6476 and add it as source to functional_test module.
6478 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6480 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
6482 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6484 New series of tests for gfxterm and gfxmenu.
6486 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6488 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
6489 the theme path relative to $prefix/themes.
6491 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6493 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
6495 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
6497 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6499 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
6502 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6504 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
6505 grub_gfxmenu_timeout_notifications.
6506 (grub_gfxmenu_view_destroy): Likewise.
6508 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6510 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
6512 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6514 Several fixes to ieee1275 and big-endian video.
6516 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6518 Add missing exports on mips.
6520 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6522 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
6523 if no unifont is found.
6524 Restore original keyboard.
6526 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6528 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6529 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
6531 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6533 First automated video test (running videotest and comparing results)
6535 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6537 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
6538 instead of 2 to have full RGB/CMY test pattern.
6540 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6544 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6546 * include/grub/arc/arc.h: Account for missing "other" peripheral on
6547 ARCS. All users updated.
6549 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6551 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
6553 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6555 * grub-core/partmap/amiga.c: Fix size of checksummed block.
6557 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6559 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
6560 Reported by: qwertial.
6562 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6564 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
6565 with syntax "XXX deg"/"XXX °".
6567 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6569 Make PCI init in i386-qemu port more robust.
6571 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6573 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
6574 cached view is reused.
6575 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
6578 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6580 Unify more code in grub-install_header.
6582 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6586 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6588 Enforce disabling of firmware disk drivers when native drivers kick in.
6590 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6592 * grub-core/commands/nativedisk.c: Customize the list of modules on
6593 platform. Don't try to search for disks already using native drivers.
6595 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6597 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
6600 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6602 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
6603 handling of variables containing backslash.
6605 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6607 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
6609 Reported by: qwertial.
6611 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6613 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
6615 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6617 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
6619 Reported by: qwertial.
6621 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6623 * docs/grub.texi: Add a comment about usefullness of nativedisk.
6625 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6627 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
6629 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6631 New command `nativedisk'.
6633 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6635 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
6636 * grub-core/loader/i386/bsd.c: Likewise.
6638 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6640 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
6642 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6644 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
6645 grub_get_unaligned16 rather than shifts.
6647 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6649 * grub-core/kern/file.c: Use const char * rather than casting to
6652 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6654 * grub-core/commands/probe.c: Add missing grub_device_close.
6656 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6658 * INSTALL: Document linguas.sh.
6660 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6662 Remove POTFILES.in and regenerate it in autogen.sh.
6664 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6666 Move --directory/--override-directorry to grub-install_header and unify.
6668 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6670 * grub-core/term/morse.c: Macroify dih and dah.
6672 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6674 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
6676 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6678 * grub-core/term/ns8250.c: Systematically probe ports by writing
6679 to SR before using them.
6681 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6683 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
6685 (check_sas): Get sas_adress info.
6687 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6689 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
6692 2013-04-27 Leon Drugi <eyak>
6694 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
6697 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6699 Core compression test.
6701 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6703 Implement grub_machine_get_bootlocation for ARC.
6705 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6707 Improve AHCI detection and command issuing.
6709 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6713 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6715 Make 'make check' work on emu.
6717 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6719 Replace libcurses with our own vt100 handling for the ease of testing
6720 and decreasing prerequisites.
6722 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6724 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
6726 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6728 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
6729 compile when not needed.
6731 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6733 * tests/pseries_test.in: New test.
6735 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6737 Add test to check that different boot mediums work.
6739 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6741 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
6742 ofw limited ISO support.
6744 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6746 * configure.ac: Fix loongson conditional.
6748 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6752 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6754 Add serial on ARC platform.
6756 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6758 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
6761 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6763 * tests/partmap_test.in: Add missing double semicolon.
6765 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6767 * util/grub-mkrescue.in: Fix loongson filename.
6769 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6771 * util/grub-mkrescue.in: Move all files that don't have a location
6772 set in stone under /boot/grub. Use ISO hard links rather than copies
6775 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6777 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
6780 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6782 Make check work on mips-arc.
6784 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6786 * util/grub-mkrescue.in: Alias sashARCS as sash.
6788 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6790 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
6793 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6795 * util/grub-install.in: Fix target fo qemu_mips.
6796 Fix extension on EFI.
6798 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6800 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
6801 in front of chosen entry to mark it even if highlighting is lost.
6803 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6805 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6806 gfxpayload=keep if cbfb is active.
6808 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6810 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6812 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6814 Add missing video ids to coreboot and ieee1275 video.
6816 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6818 * util/grub-mkrescue.in: Add mips-arc support.
6820 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6822 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6824 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6826 Move mips-arc link address. Previous link address was chosen
6827 in belief that RAM on SGI platforms grows down while in fact it
6828 grows up from an unusual base.
6830 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6832 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6833 Fix a type which prevented CD-ROM and floppy boot.
6835 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6837 Support coreboot framebuffer.
6839 * grub-core/video/i386/coreboot/cbfb.c: New file.
6841 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6843 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6844 detecting too small regions.
6846 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6848 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6850 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6852 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6854 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6856 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6858 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6859 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6860 * grub-core/loader/powerpc/ieee1275/linux.c
6861 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6863 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6865 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6866 Look for /boot-rom as well as /rom/boot-rom.
6868 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6870 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6871 handling when creating text_layer failed.
6872 * grub-core/video/video.c (grub_video_create_render_target):
6873 Set result to 0 on error.
6874 (grub_video_delete_render_target): Do not dereference NULL.
6876 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6878 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
6879 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
6880 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
6881 (grub_linux_load64): Mask out 2 high bits.
6883 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
6885 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
6888 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6890 Add support for pseries and other bootinfo machines to grub-mkrescue.
6892 Tested by: Paulo Flabiano Smorigo.
6894 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6896 * util/grub-mkrescue.in: Add GPT for EFI boot.
6898 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6900 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
6901 It improves performance in qemu.
6903 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6905 * build-aux/snippet: Add missing gnulib files.
6907 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6909 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
6911 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6913 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
6915 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6916 2013-04-15 Peter Jones <pjones@redhat.com>
6918 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
6920 Based on patch by Peter Jones.
6922 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6924 Fix DMRAID partition handling.
6926 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6928 * tests/grub_cmd_date.in: Skip on sparc64.
6930 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6932 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
6933 firmware error messages.
6935 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6937 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
6938 source and destination differ.
6940 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6942 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
6945 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6947 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
6948 match config-util.h to avoid warnings and increase compatibility.
6950 2013-04-14 Szymon Janc <szymon@janc.net.pl>
6951 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6953 Add option to compress files on install/image creation.
6955 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6957 * docs/grub-dev.texi: Rearrange menu to match the section order.
6958 Reported by: Bryan Hundven.
6960 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6962 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
6964 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6966 Move GRUB out of system area when using xorriso 1.2.9 or later.
6968 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6970 * tests/grub_cmd_date.in: Add missing exit 1.
6972 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6974 * tests/partmap_test.in: Skip on sparc64.
6976 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6978 Support grub-shell on sparc64.
6980 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6982 Support mkrescue on sparc64.
6984 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6986 Allow IEEE1275 ports on path even if it wasn't detected automatically.
6987 Needed on OpenBIOS due to incomplete device tree.
6989 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6991 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
6992 would be otherwise excluded.
6994 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6996 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6997 Inline name defines used only once.
6999 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
7001 Fix memory leaks in ofnet.
7002 Reported by: Francesco Lavra.
7004 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7006 * docs/man/grub-glue-efi.h2m: Add missing file.
7008 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7010 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
7012 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7014 Better support Apple Intel Macs on CD.
7016 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7018 Replace stpcpy with grub_stpcpy in tools.
7020 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7022 Handle Japanese special keys.
7023 Reported by: Hiroyuki YAMAMORI.
7024 Codes supplied by: Hiroyuki YAMAMORI.
7026 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7028 * util/grub-mkimage.c: Document memdisk implying --prefix.
7030 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7032 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
7033 much we can do about it anyway.
7035 2013-04-12 Aleš Nesrsta <starous@volny.cz>
7037 Fix handling of split transfers.
7039 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7041 * grub-core/net/http.c: Fix bad free.
7043 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7045 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
7048 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7050 Disable partmap check on i386-ieee1275 due to openfirmware issues.
7052 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7054 * tests/util/grub-shell.in: Fix it on powerpc.
7056 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7058 Turn off QEMU ACPI-way since new releases don't have shutdown port
7061 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7063 * docs/grub.texi: Update coreboot status info.
7065 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7067 * tests/grub_cmd_date.in: New test for datetime.
7069 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7071 * tests/partmap_test.in: Fix missing qemudisk setting.
7073 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7075 Support i386-ieee1275 grub-mkrescue and make check on it.
7077 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7079 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
7082 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7084 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
7085 GRUB_CMDLINE_XEN_DEFAULT.
7086 Reported by: Marc Warne (GigaTux) <gigatux>
7088 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7092 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7094 Use ACPI shutdown intests as traditional port was removed.
7096 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
7098 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
7101 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7103 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
7104 Fix few warining messages and leaks while on it.
7106 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
7108 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
7109 links under grub-core/lib/libgcrypt-grub/mpi.
7111 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7113 Fix ia64-efi image generation on big-endian machines. Deduplicate
7114 some code while on it.
7115 Reported by: Leif Lindholm.
7117 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7119 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
7122 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7124 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
7126 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
7128 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
7131 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7133 * grub-core/normal/term.c: Few more fixes for menu entry editor
7135 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7137 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7139 * grub-core/normal/term.c: Few more fixes for menu entry editor
7141 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7143 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7145 * conf/Makefile.extra-dist (EXTRA_DIST): Add
7146 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
7148 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7150 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
7151 instead of hardcoding grub.mo.
7153 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
7155 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
7157 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7159 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
7160 grub-core/disk/geli.c.
7162 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7164 * util/grub-mkfont.c: Prefer enum to #define.
7166 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7168 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
7170 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7172 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
7174 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7176 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
7178 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7180 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
7182 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7184 * include/grub/bsdlabel.h: Use enums.
7186 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7188 Move GRUB_CHAR_BIT to types.h.
7190 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7192 * docs/grub.texi: Document more user commands.
7194 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7196 * docs/grub.texi: Document menuentry --id option.
7198 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
7200 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
7202 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7204 Unify file copying setup across different install scripts. Add
7205 options for performing partial install.
7207 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7208 2013-04-04 Peter Jones <pjones@redhat.com>
7210 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
7212 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7214 Use TSC as a possible time source on i386-ieee1275.
7216 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7218 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
7221 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7223 * util/grub-setup.c (setup): Handle some corner cases.
7225 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7227 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
7229 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7231 * grub-core/commands/verify.c: Save verified file to avoid it being
7232 tampered with after verification was done.
7234 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7236 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
7237 reported width by one to compensate for curesor algorithm problem.
7239 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7241 Fix screen corruption in menu entry editor and simplify the code
7244 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
7246 * util/grub-mount.c (fuse_init): Return error if fuse_main
7249 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
7251 * include/grub/elf.h: Add missing ARM relocation codes and fix
7254 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7256 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
7258 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7259 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7261 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
7262 into account when calculating radius.
7264 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7266 * grub-core/gfxmenu/view.c: Fix off-by-one error.
7268 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7270 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
7272 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7274 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
7275 missing closing bracket.
7277 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7279 * INSTALL: Mention xorriso requirement.
7281 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
7283 * grub-core/commands/verify.c: Fix hash algorithms values for
7284 the first three hashes - they start with 1, not with 0.
7286 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7288 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
7289 Try terminating EFI services several times due to quirks in some
7292 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
7294 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
7295 skipping Event, Device, Processor, PowerRes, ThermalZone, and
7296 BankField extended opcodes.
7297 (get_sleep_type): Add minimal scope handling (just enough to
7298 handle setting the scope to the root path).
7299 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
7300 * include/grub/acpi.h: Add enumeration values for Event, Device,
7301 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
7303 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
7305 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
7308 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7310 * grub-core/disk/ahci.c: Give more time for AHCI request.
7312 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7314 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
7317 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7319 Replace the region at 0 from coreboot tables to available in BSD
7322 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7324 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
7327 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7329 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
7332 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7334 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
7335 handling of multi-device filesystems.
7337 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7339 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
7342 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7344 Add new 'proc' filesystem framework and put luks_script into it.
7346 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
7348 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
7351 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7353 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
7355 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7357 Add ability to generate newc additions on runtime.
7359 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7361 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
7364 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
7366 * po/POTFILES.in: Regenerate.
7368 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7370 * grub-core/commands/verify.c (hashes): Add several hashes
7373 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7375 Slight improve in USB-related boot-time checkpoints.
7377 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7379 * grub-core/commands/boottime.c: Fix copyright header.
7381 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7383 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
7384 coreboot tables content. Support for cbmemc.
7386 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7388 Fix a conflict between ports structures with 2 controllers of
7391 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7393 * include/grub/boottime.h: Add missing file.
7395 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7397 Initialize USB ports in parallel to speed-up boot.
7399 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7401 Fix USB devices not being detected when requested
7402 due to delayed attach.
7404 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7406 Implement boot time analysis framework.
7408 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7410 Remove get_endpoint_descriptor and change all functions needing
7411 descriptor to just receive it as argument rather than endpoint
7414 2013-03-19 Aleš Nesrsta <starous@volny.cz>
7416 Better estimate the maximum USB transfer size.
7418 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7420 Resend a packet if we got the wrong buffer in status.
7422 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7424 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
7425 multiplication rather than division.
7427 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7429 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
7432 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7434 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
7435 operations to have intended shifts and not divisions.
7437 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7439 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
7440 intended shifts rather than division.
7442 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7444 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
7445 computation for some years before epoch. Avode confusing division
7448 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7450 * grub-core/video/i386/pc/vbe.c
7451 (grub_video_vbe_print_adapter_specific_info): Replace division by
7454 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7456 Adjust types in gdb module to have intended unsigned shifts rather than
7459 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7461 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
7462 maximum size is 4G - 1 on hfs
7464 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7466 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
7468 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7470 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
7473 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
7475 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
7476 causing gcc error with gcc 4.7.1.
7478 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7480 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
7481 dereference null pointer. While the code is technically correct, gcc
7482 may eliminate a null check if pointer is already dereferenced.
7484 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7486 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
7488 * grub-core/normal/term.c (read_terminal_list): Likewise.
7490 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7492 Lift up core size limits on some platforms. Fix potential memory
7493 corruption with big core on small memory systems. Document remaining
7496 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7498 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
7501 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7503 Remove all trampoline support. Add -Wtrampolines when
7504 present. Remove symbols used for trampolines to make
7505 link fail if trampolines are present.
7507 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7509 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
7510 append out of its parent.
7512 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7514 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
7517 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7519 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
7520 all vars to a macro. All users updated.
7522 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7524 * grub-core/disk/ieee1275/nand.c: Fix compilation on
7527 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7529 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
7531 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7533 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
7535 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7537 Move to more hookless approach in IEEE1275 devices handling.
7539 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7541 * grub-core/kern/term.c (grub_term_normal_color),
7542 (grub_term_highlight_color): Add back lost defaults.
7544 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7546 Make elfload not use hooks. Opt for flags and iterators instead.
7548 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7550 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
7551 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
7553 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7555 * grub-core/script/execute.c (gettext_append): Remove nested functions.
7557 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7559 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
7560 hook pass-through parameter. All users updated and unnested.
7562 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7564 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
7567 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7569 * grub-core/fs/hfs.c: Remove nested functions.
7571 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7573 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
7574 the context through.
7575 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
7577 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7579 * util/grub-editenv.c (list_variables): Move print_var out of its
7582 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7584 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
7587 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7589 * grub-core/gentrigtables.c: Make tables const.
7591 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7593 Remove nested functions from videoinfo iterators.
7595 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7597 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
7598 for 64-bit platforms.
7600 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7602 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
7603 a FOR_CHILDREN macro.
7605 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7607 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
7608 platform from firmware path.
7610 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7612 Enable linux16 on non-BIOS systems for i.a. memtest.
7614 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
7616 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
7618 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7620 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
7621 Fix end of table condition.
7623 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7625 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
7628 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7630 * grub-core/fs/jfs.c: Remove nested functions.
7632 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7634 * grub-core/fs/minix.c: Remove nested functions.
7636 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7638 * grub-core/fs/iso9660.c: Remove nested functions.
7640 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7642 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
7645 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7647 * util/grub-fstest.c: Remove nested functions.
7649 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7651 * grub-core/loader/machoXX.c: Remove nested functions.
7653 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
7655 Remove nested functions from disk and file read hooks.
7657 * include/grub/disk.h (grub_disk_read_hook_t): New type.
7658 (struct grub_disk): Add read_hook_data member.
7659 * include/grub/file.h (struct grub_file): Likewise.
7660 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
7665 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
7667 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
7668 Fix off by one error in enumerating extended partitions.
7670 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
7672 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
7673 memory leak if device name is not found.
7675 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7677 * grub-core/normal/menu_entry.c (update_screen): remove
7678 unused variable `off' which caused scroll down arrow to be always shown.
7680 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7682 * grub-core/normal/menu_entry.c (insert_string): fix off by one
7683 access to unallocated memory.
7685 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7687 * Makefile.util.def: Add partmap/msdos.c to common library.
7688 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
7689 * grub-core/disk/ldm.c: Check for existence of
7690 GRUB_PC_PARTITION_TYPE_LDM.
7692 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7694 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
7695 sizes and display sector size.
7697 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7699 Implement new command cmosdump.
7701 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7703 Support Openfirmware disks with non-512B sectors.
7705 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
7707 * (grub_ofdisk_get_block_size): New function.
7708 * (grub_ofdisk_prepare): Use the correct block size.
7709 * (grub_ofdisk_read): Likewise.
7710 * (grub_ofdisk_write): Likewise.
7711 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
7714 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7716 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
7718 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7720 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
7723 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7725 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
7728 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7730 Implement USBDebug (full USB stack variant).
7732 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7734 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
7735 unless they have unexpected values.
7737 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7739 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
7742 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7744 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
7745 zero-out of port structure.
7747 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7749 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
7750 of extended attributes.
7752 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
7754 * util/grub-install.in: change misleading comment about
7757 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7759 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
7760 when menu highlight color isn't set.
7762 2013-01-27 C. Masloch <pushbx@38.de>
7764 Improve FreeDOS direct loading support compatibility.
7766 * include/grub/i386/relocator.h (grub_relocator16_state):
7768 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
7770 (grub_relocator16_boot): Handle %ebp.
7771 * grub-core/lib/i386/relocator16.S: Likewise.
7772 * grub-core/loader/i386/pc/freedos.c:
7773 Load BPB to pass kernel which partition to load from.
7774 Check that kernel file is not too large.
7775 Set register dl to BIOS unit number as well.
7777 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
7779 * util/grub-reboot.in (usage): Document the need for
7781 * util/grub-set-default.in (usage): Likewise.
7782 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
7784 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7786 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
7787 than defining WORDS_BIGENDIAN manually.
7789 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7791 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
7794 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7796 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
7798 (blit_comb: add_device_width): Likewise.
7800 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7802 Remove nested functions from USB iterators.
7804 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7805 (grub_usb_controller_iterate_hook_t): Likewise.
7806 (grub_usb_iterate): Add hook_data argument.
7807 (grub_usb_controller_iterate): Likewise.
7808 (struct grub_usb_controller_dev.iterate): Likewise.
7810 Update all implementations and callers.
7812 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7814 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7815 margin when not needed.
7817 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7819 Make color variables global instead of it being per-terminal.
7821 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7823 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7826 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7828 Fix powerpc and sparc64 build failures caused by un-nesting memory
7831 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7833 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7834 parameter declarations.
7836 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7838 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7840 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7842 Improve spkmomdem reliability by adding a separator between bytes.
7844 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7846 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7847 an Acer registration utility with several sightings in the wild.
7848 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7850 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7852 Remove nested functions from filesystem directory iterators.
7854 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7855 (struct grub_fs.dir): Add hook_data argument.
7857 Update all implementations and callers.
7859 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7861 * docs/grub.texi (Multi-boot manual config): Fix typo for
7864 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7866 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7867 until after its use in generate_image.
7869 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7871 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7872 initrd size to addr_min, since the initrd will be allocated after
7875 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7877 * conf/Makefile.common: Fix autogen rules to pass definition
7878 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
7880 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7882 * include/grub/elf.h: Update ARM definitions based on binutils.
7884 2013-01-20 Aleš Nesrsta <starous@volny.cz>
7886 Split long USB transfers into short ones.
7888 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7890 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
7891 is interrupted by ESC.
7893 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7895 * util/grub-script-check.c (main): Uniform the error message.
7897 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7899 Remove nested functions from ELF iterators.
7901 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7903 Remove nested functions from device iterators.
7905 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
7906 (grub_arc_iterate_devs): Add hook_data argument.
7907 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
7908 (struct grub_ata_dev.iterate): Add hook_data argument.
7909 * include/grub/device.h (grub_device_iterate_hook_t): New type.
7910 (grub_device_iterate): Add hook_data argument.
7911 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
7912 (struct grub_disk_dev.iterate): Add hook_data argument.
7913 (grub_disk_dev_iterate): Likewise.
7914 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
7916 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
7918 * include/grub/partition.h (grub_partition_iterate_hook_t): New
7920 (struct grub_partition_map.iterate): Add hook_data argument.
7921 (grub_partition_iterate): Likewise.
7922 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
7923 (struct grub_scsi_dev.iterate): Add hook_data argument.
7927 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7929 Fix typos for "developer" and "development".
7931 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7933 Add license header to spkmodem-recv.c.
7935 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
7937 Rewrite spkmodem to use PIT for timing. Double the speed.
7939 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7941 Add new command pcidump.
7943 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7945 New terminal outputs using serial: morse and spkmodem.
7947 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7949 Improve bidi handling in entry editor.
7951 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7953 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
7954 argument to prevent name collision.
7956 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7958 Remove nested functions from script reading and parsing.
7960 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
7961 getline_data argument, passed to getline.
7962 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
7963 getline_data argument, passed to grub_parser_split_cmdline.
7964 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
7965 lexerstate->getline_data to lexerstate->getline.
7966 (grub_script_lexer_init): Add getline_data argument, saved in
7967 lexerstate->getline_data.
7968 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
7969 argument, passed to grub_script_parse.
7970 * grub-core/script/script.c (grub_script_parse): Add getline_data
7971 argument, passed to grub_script_lexer_init.
7972 * include/grub/parser.h (grub_parser_split_cmdline): Update
7973 prototype. Update all callers to pass appropriate getline data.
7974 (struct grub_parser.parse_line): Likewise.
7975 (grub_rescue_parse_line): Likewise.
7976 * include/grub/reader.h (grub_reader_getline_t): Add void *
7978 * include/grub/script_sh.h (struct grub_lexer_param): Add
7979 getline_data member.
7980 (grub_script_parse): Update prototype. Update all callers to pass
7981 appropriate getline data.
7982 (grub_script_lexer_init): Likewise.
7983 (grub_normal_parse_line): Likewise.
7985 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
7987 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
7988 static instead of nested. Rename to ...
7989 (grub_parser_execute_getline): ... this.
7990 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
7992 * grub-core/normal/main.c (read_config_file: getline): Make static
7993 instead of nested. Rename to ...
7994 (read_config_file_getline): ... this.
7995 (grub_normal_read_line): Add unused data argument.
7996 * grub-core/script/execute.c (grub_script_execute_sourcecode:
7997 getline): Make static instead of nested. Rename to ...
7998 (grub_script_execute_sourcecode_getline): ... this.
7999 * util/grub-script-check.c (main: get_config_line): Make static
8002 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
8004 Remove nested functions from memory map iterators.
8006 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
8007 argument, passed to hook.
8008 * grub-core/kern/i386/coreboot/mmap.c
8009 (grub_linuxbios_table_iterate): Likewise.
8010 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
8012 (grub_machine_mmap_iterate): Add hook_data argument.
8013 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
8014 Add hook_data argument, passed to hook.
8015 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
8017 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
8019 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
8021 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
8023 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
8025 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
8027 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
8028 (grub_machine_mmap_iterate): Likewise.
8029 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
8030 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
8032 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
8033 Remove NESTED_FUNC_ATTR from here and from all users.
8034 (grub_mmap_iterate): Update prototype.
8035 (grub_efi_mmap_iterate): Update prototype. Update all callers to
8036 pass appropriate hook data.
8037 (grub_machine_mmap_iterate): Likewise.
8039 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
8040 static instead of nested.
8041 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
8043 (lsmmap_hook): ... this.
8044 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
8046 (grub_efiemu_mmap_fill: fill_hook): Likewise.
8047 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
8048 heap_init): Likewise.
8049 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
8051 (mmap_iterate_hook): ... this.
8052 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
8054 * grub-core/lib/ieee1275/relocator.c
8055 (grub_relocator_firmware_get_max_events: count): Likewise.
8056 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
8058 (grub_relocator_firmware_fill_events_iter): ... this.
8059 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
8060 hook): Likewise. Rename to ...
8061 (grub_relocator_alloc_chunk_align_iter): ... this.
8062 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
8064 (generate_e820_mmap_iter): ... this.
8065 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
8067 (count_hook): ... this.
8068 (grub_linux_boot: hook): Likewise. Rename to ...
8069 (grub_linux_boot_mmap_find): ... this.
8070 (grub_linux_boot: hook_fill): Likewise. Rename to ...
8071 (grub_linux_boot_mmap_fill): ... this.
8072 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
8073 hook): Likewise. Rename to ...
8074 (grub_fill_multiboot_mmap_iter): ... this.
8075 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
8076 hook): Likewise. Rename to ...
8077 (count_hook): ... this.
8078 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
8079 hook): Likewise. Rename to ...
8080 (grub_fill_multiboot_mmap_iter): ... this.
8081 * grub-core/loader/powerpc/ieee1275/linux.c
8082 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
8083 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
8084 Likewise. Rename to ...
8085 (alloc_phys_choose): ... this.
8086 (determine_phys_base: get_physbase): Likewise.
8087 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
8088 find_hook): Likewise.
8089 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
8090 (malloc_hook: count_hook): Likewise.
8091 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
8092 Likewise. Rename to ...
8093 (lower_hook): ... this.
8094 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8095 (upper_hook): ... this.
8096 (grub_mmap_get_post64: hook): Likewise. Rename to ...
8097 (post64_hook): ... this.
8098 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
8099 Likewise. Rename to ...
8100 (lower_hook): ... this.
8101 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8102 (upper_hook): ... this.
8103 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
8104 (grub_mmap_iterate: fill_hook): Likewise.
8105 (fill_mask): Pass addr and mask within a single struct.
8106 (grub_cmd_badram: hook): Make static instead of nested. Rename
8108 (badram_iter): ... this.
8109 (grub_cmd_cutmem: hook): Likewise. Rename to ...
8110 (cutmem_iter): ... this.
8112 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8114 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
8115 delimit path in strings using quotes.
8116 * util/getroot.c (grub_guess_root_devices): Likewise.
8117 (grub_make_system_path_relative_to_its_root): Likewise.
8118 * util/grub-probe.c (probe): Likewise.
8119 * util/ieee1275/ofpath.c (find_obppath): Likewise.
8120 (xrealpath): Likewise.
8122 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8124 Fix compilation with older compilers.
8126 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
8127 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
8129 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
8130 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
8131 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
8133 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
8134 * include/grub/crypto.h: Add type defines.
8135 * util/import_gcrypth.sed: Remove duplicate type defines.
8137 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8139 New command list_trusted.
8141 * grub-core/commands/verify.c (grub_cmd_list): New function.
8143 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8145 * util/grub-mkimage.c (generate_image): Fix "size of public key"
8148 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8150 Remove nested functions from PCI iterators.
8152 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
8153 passed to hook. Update all callers to pass appropriate hook data.
8154 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
8155 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
8156 Remove NESTED_FUNC_ATTR from here and from all users.
8157 (grub_pci_iterate): Update prototype.
8158 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
8159 instead of nested. Rename to ...
8160 (grub_cs5536_find_iter): ... this.
8161 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
8162 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
8164 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
8166 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
8168 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
8170 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
8171 * grub-core/video/radeon_fuloong2e.c
8172 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
8173 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
8174 find_card): Likewise.
8175 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
8178 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8180 * grub-core/commands/verify.c: Mark messages for translating.
8182 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8184 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
8187 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8189 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
8192 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8194 * autogen.sh: Do not try to delete nonexistant files.
8195 * util/import_gcrypth.sed: Add some missing header removals.
8197 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
8199 Clean up dangling references to grub-setup.
8200 Fixes Ubuntu bug #1082045.
8202 * docs/grub.texi (Images): Refer generally to grub-install rather
8203 than directly to grub-setup.
8204 (Installing GRUB using grub-install): Remove direct reference to
8206 (Device map) Likewise.
8207 (Invoking grub-install): Likewise.
8208 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
8209 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
8210 * util/grub-install.in (usage): Likewise.
8212 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
8213 Apply to grub-bios-setup and grub-sparc64-setup rather than to
8215 * configure.ac: Remove grub_setup output variable.
8217 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
8219 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
8220 grub-setup to grub-sparc64-setup.
8222 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8224 Import gcrypt public-key cryptography and implement signature checking.
8226 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8228 * grub-core/fs/ntfs.c: Ue more appropriate types.
8229 * grub-core/fs/ntfscomp.c: Likewise.
8230 * include/grub/ntfs.h: Likewise.
8232 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8234 Support Apple FAT binaries on non-Apple platforms.
8236 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
8237 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
8239 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
8242 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8244 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
8247 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8249 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
8250 explicitly zeroing elements.
8251 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
8252 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
8253 of elements in a structure already allocated using grub_zalloc.
8254 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
8256 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8258 * docs/grub.texi (grub_cpu): New subsection.
8259 (grub_platform): Likewise.
8261 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8263 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
8265 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8267 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
8270 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8272 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
8273 * grub-core/fs/ntfscomp.c: Likewise.
8274 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
8275 (grub_ntfs_comp): Likewise.
8277 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8279 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
8281 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
8282 of groups_per_block. All users updated.
8284 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8286 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
8287 grub_error properly.
8288 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
8289 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
8291 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8293 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
8294 always in /boot/zfs.
8295 Reported by: Yuta Satoh.
8297 2013-01-03 Yuta Satoh <nigoro>
8299 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
8302 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8304 * configure.ac: Extend -Wno-trampolines to host.
8306 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8308 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
8311 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8313 * docs/grub.texi (Invoking grub-mkrelpath): New section.
8314 (Invoking grub-script-check): Likewise.
8316 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8318 * docs/grub.texi (Invoking grub-mount): New section.
8319 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
8321 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8323 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
8324 test failures, so that a failing unit test correctly causes 'make
8327 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8329 Fix failing printf test.
8331 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
8332 '$' in the correct order when collecting type information.
8334 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8336 * docs/grub.texi (configfile): Explain environment variable
8338 (source): New section.
8339 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
8341 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
8343 Remove several trivially-unnecessary uses of nested functions.
8345 * grub-core/commands/i386/pc/sendkey.c
8346 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
8348 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
8350 (legacy_file_getline): ... this.
8351 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
8353 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
8354 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
8356 (probe_dummy_iter): ... this.
8357 * grub-core/kern/i386/coreboot/mmap.c
8358 (grub_linuxbios_table_iterate: check_signature): Likewise.
8359 * grub-core/kern/parser.c (grub_parser_split_cmdline:
8360 check_varstate): Likewise. Mark inline.
8361 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
8362 an additional parameter.
8363 (find_long: fnd_long): Likewise. Pass two additional parameters.
8364 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
8365 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
8366 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
8367 Likewise. Rename to ...
8368 (grub_cmos_find_port_iter): ... this.
8369 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
8371 (find_rtc_iter): ... this.
8373 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
8374 function directly into the function body, since it is only called
8377 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
8379 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
8380 __attribute__ ((unused)).
8381 * grub-core/video/bochs.c (find_card): Likewise.
8382 * grub-core/video/cirrus.c (find_card): Likewise.
8383 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
8384 * grub-core/video/sis315pro.c (find_card): Likewise.
8385 * grub-core/video/sm712.c (find_card): Likewise.
8387 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8389 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
8390 Fixes Savannah bug #37821.
8392 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8394 Apply program name transformations at build-time rather than at
8395 run-time. Fixes Debian bug #696465.
8397 * acinclude.m4 (grub_TRANSFORM): New macro.
8398 * configure.ac: Create output variables with transformed names for
8400 * util/bash-completion.d/grub-completion.bash.in: Use
8401 pre-transformed variables for program names.
8402 * util/grub-install.in: Likewise.
8403 * util/grub-kbdcomp.in: Likewise.
8404 * util/grub-mkconfig.in: Likewise.
8405 * util/grub-mkconfig_lib.in: Likewise.
8406 * util/grub-mknetdir.in: Likewise.
8407 * util/grub-mkrescue.in: Likewise.
8408 * util/grub-mkstandalone.in: Likewise.
8409 * util/grub-reboot.in: Likewise.
8410 * util/grub-set-default.in: Likewise.
8411 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8412 * tests/util/grub-shell-tester.in: Remove unused assignment.
8413 * tests/util/grub-shell.in: Likewise.
8414 * util/grub.d/00_header.in: Likewise.
8416 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8418 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
8420 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
8422 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
8424 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
8426 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
8427 Reported by: Eriks Latosheks <foresterlv>.
8429 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8431 * docs/grub.texi (Network): Update instructions on generating netboot
8434 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8436 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
8437 around device name if necessarry.
8439 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8441 * util/grub-install.in: Follow the symbolic link parameter added
8442 to the file command.
8444 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
8446 * util/grub-install.in: Remove stale TODO.
8448 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8450 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
8451 dynamic allocation for the bootpath buffer.
8453 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
8455 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
8458 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8460 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
8461 argument rather than font name. All users updated.
8462 (grub_gfxterm_set_window): Likewise.
8464 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
8466 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
8469 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8471 * util/getroot.c (convert_system_partition_to_system_disk): Support
8474 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8476 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
8477 infinite loop on corrupted FS.
8479 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8481 Fix big-endian mtime.
8483 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
8484 together sec and usec.
8485 (grub_ufs_dir): Use correct byteswapping for UFS time.
8487 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8489 Support big-endian UFS1.
8491 * Makefile.util.def (libgrubmods): Add ufs_be.c
8492 * grub-core/Makefile.core.def (ufs1_be): New module.
8493 * grub-core/fs/ufs_be.c: New file.
8494 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
8497 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
8499 * include/grub/types.h: Fix functionality unaffecting typo in
8500 GRUB_TARGET_WORDSIZE conditional macro.
8502 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8504 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
8506 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
8508 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
8509 that /netbsd appears first (when it exists).
8511 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
8513 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
8514 Fixes Savannah bug #37558.
8516 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
8518 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
8519 description of extract_entries_configfile.
8521 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
8523 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
8525 (grub_cmd_linux): Likewise.
8526 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
8527 preferred_lifetime. Update all users.
8529 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8531 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
8532 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
8534 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8536 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
8537 errors from grub-probe to /dev/null, not stdout.
8539 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
8541 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
8544 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
8546 * util/grub-install.in: Make the error message if $source_dir
8547 doesn't exist more useful.
8549 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
8551 Fix grub-emu build on FreeBSD.
8553 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
8554 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
8556 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
8557 implementation is currently Linux-specific.
8558 * util/getroot.c (exec_pipe): Define only on Linux or when either
8559 libzfs or libnvpair is unavailable.
8560 (find_root_devices_from_poolname): Remove unused path variable.
8562 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8564 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
8565 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
8566 should fit before end == 63.
8568 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8570 * util/grub-setup.c (write_rootdev): Remove unused core_img
8571 parameter. Update all callers.
8572 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
8573 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
8576 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8578 * util/grub-mkconfig_lib.in (grub_tab): New variable.
8579 (grub_add_tab): New function.
8580 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
8581 * util/grub.d/10_illumos.in: Likewise.
8582 * util/grub.d/10_kfreebsd.in: Likewise.
8583 * util/grub.d/10_linux.in: Likewise.
8584 * util/grub.d/10_netbsd.in: Likewise.
8585 * util/grub.d/10_windows.in: Likewise.
8586 * util/grub.d/10_xnu.in: Likewise.
8587 * util/grub.d/20_linux_xen.in: Likewise.
8588 * util/grub.d/30_os-prober.in: Likewise.
8590 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8592 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8593 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
8594 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
8595 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
8596 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
8598 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8599 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
8601 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8603 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
8605 Reported by: BURETTE, Bernard.
8607 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
8609 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
8612 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
8614 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
8615 IEEE1275 machines. Fixes powerpc-emu compilation.
8616 * include/grub/terminfo.h: Likewise.
8618 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8620 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
8622 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
8624 (efiemu_set_variable): Make vendor_guid a const pointer.
8626 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8628 Don't require grub-mkconfig_lib to generate manpages for programs.
8630 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
8631 dependencies, don't add grub-mkconfig_lib.
8632 (program): Pass empty adddeps.
8633 (script): Pass grub-mkconfig_lib as adddeps.
8635 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8637 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
8638 * util/getroot.c (grub_find_device): Likewise.
8639 (get_mdadm_uuid): Likewise.
8640 (grub_util_is_imsm): Likewise.
8641 (grub_util_pull_device): Likewise.
8642 * util/grub-probe.c (probe): Likewise.
8644 2012-09-10 Benoit Gschwind <gschwind>
8646 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
8647 (devs): Add devpath_8.
8649 2012-09-08 Peter Jones <pjones@redhat.com>
8651 * grub-core/Makefile.core.def (efifwsetup): New module.
8652 * grub-core/commands/efi/efifwsetup.c: New file.
8653 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
8654 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
8656 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
8658 2012-09-05 Jiri Slaby <jslaby@suse.cz>
8660 * configure.ac: Add SuSe path.
8662 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8666 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8668 * util/import_gcry.py: Sort cipher_files, to make build system
8669 generation more deterministic.
8671 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8673 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
8674 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
8675 (grub_set_datetime): Likewise.
8677 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8679 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
8682 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8684 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
8686 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8688 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
8690 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8692 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
8693 required for checkouts from bzr, but it may be useful for users or
8694 distributors wishing to update translations against a tarball
8695 distribution, and it can be helpful for the tarball to be a superset
8698 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8700 * Makefile.am (EXTRA_DIST): Add
8701 grub-core/tests/boot/linux.init-mips.S,
8702 grub-core/tests/boot/linux.init-ppc.S, and
8703 grub-core/tests/boot/linux-ppc.cfg.
8705 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8707 * grub-core/mmap/mips/loongson: Remove empty directory.
8709 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8711 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
8714 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8716 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
8719 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8721 * configure.ac: Strengthen the test for working -nostdinc -isystem.
8723 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8725 * po/POTFILES.in: Regenerated.
8727 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8729 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
8730 (NetBSD): New subsection.
8732 2012-07-22 Ales Nesrsta <starous@volny.cz>
8734 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
8735 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
8737 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8739 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
8740 * util/grub.d/10_hurd.in: Add missing quoting.
8741 * util/grub.d/10_illumos.in: Likewise.
8742 * util/grub.d/10_kfreebsd.in: Likewise.
8743 * util/grub.d/10_linux.in: Likewise.
8744 * util/grub.d/20_linux_xen.in: Likewise.
8746 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8748 New command `lsefi'.
8750 * grub-core/Makefile.core.def (lsefi): New module.
8751 * grub-core/commands/efi/lsefi.c: New file.
8752 * include/grub/efi/api.h: Add more GUIDs.
8754 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8756 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
8757 (grub_bsd_elf32_hook): Likewise.
8758 (grub_bsd_elf64_size_hook): Likewise.
8759 (grub_bsd_elf64_hook): Likewise.
8760 (grub_bsd_load_elf): Likewise.
8762 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8764 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
8765 if hash function is unavailable.
8766 (dec_stream_header): Likewise.
8768 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8770 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
8773 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8775 Fix coreboot compilation.
8777 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
8778 (grub_vga_text_init_real): ... this.
8779 (grub_vga_text_fini): Rename to ...
8780 (grub_vga_text_fini_real): ... this.
8782 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8784 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
8786 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8788 * grub-core/lib/legacy_parse.c: Support clear and testload.
8790 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8792 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
8794 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8796 * grub-core/fs/ext2.c: Experimental support for 64-bit.
8798 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8800 * grub-core/net/tftp.c (ack): Fix endianness problem.
8801 (tftp_receive): Likewise.
8802 Reported by: Michael Davidsaver.
8804 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8806 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8808 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8810 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8811 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8812 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8814 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8816 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8818 Reported by: Stuart Hayes.
8820 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8822 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8824 * grub-core/Makefile.core.def (mda_text): New module.
8825 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8826 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8827 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8828 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8830 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8831 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8832 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8834 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8836 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8838 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8840 * grub-core/term/i386/vga_common.c: Removed.
8841 * include/grub/i386/vga_common.h: Likewise.
8842 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8843 (grub_vga_cr_bw_read): Likewise.
8844 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8845 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8846 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8847 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8848 grub_vga_cr_read/grub_vga_cr_write.
8849 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8851 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8853 * configure.ac: Bump version to 2.00.
8854 * grub-core/normal/main.c (features): Add feature_200_final.
8856 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8857 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8859 * NEWS: Fix unclarity and language mistakes.
8861 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8863 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8864 additional size to 3 pages.
8865 Reported by: Stuart Hayes.
8867 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8869 * NEWS: Add 2.00 entry.
8871 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8873 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8874 put explicit "/" for empty path.
8875 (wildcard_expand): Improve dprintf.
8877 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8879 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
8880 it's equal to currnode. This can happen with "" symlink.
8882 2012-06-27 Yves Blusseau <blusseau@zetam.org>
8884 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
8885 echo shell command by printf command.
8887 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8889 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
8890 the value returned by firmware is the maximal position, not diumension.
8891 (grub_terminfo_output_state): Use a more sane fallback.
8893 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8895 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
8897 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8899 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
8900 frequency to 150 MHz.
8902 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8906 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
8908 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
8910 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
8912 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8914 Handle slash in HFS label.
8916 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
8917 (grub_hfs_dir): Tanslate slash.
8918 (grub_hfs_label): Don't translate slash.
8920 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8922 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
8923 network protocol listing since it introduces problematic dependency on
8926 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8928 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
8930 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8932 Init video early on yeeloong to avoid being rebooted by watchdog.
8934 * grub-core/Makefile.am (gensm712): New target.
8935 (sm712_start.S): Likewise.
8936 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
8937 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
8938 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
8940 * include/grub/vga.h: Move registry definitions to...
8941 * include/grub/vgaregs.h: ... here.
8943 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8945 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
8948 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8950 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
8951 platforms with firmware disk drivers in the core.
8953 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8955 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
8956 informative verbose message.
8957 (read_lv): Handle 64-bit segment size.
8959 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8961 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
8963 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8965 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
8966 character but still remove trainling spaces.
8967 (grub_fat_label): Ignore archive flag.
8969 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8971 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
8972 cast between linux_kernel_header and linux_kernel_params.
8974 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8976 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
8978 (grub_raid6_recover_func_t): Likewise.
8979 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
8980 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
8982 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8984 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
8986 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
8990 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
8991 [__NetBSD__]: Add explicit cast before bitshift.
8993 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8995 * configure.ac: Bump to 2.00~rc1.
8997 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8999 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
9002 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9003 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
9005 * docs/grub.texi: Fix search syntax.
9006 (Multi-boot manual config): Put msdos rather than GPT example.
9007 Grammar corrections.
9009 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9011 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
9013 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9015 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
9017 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9019 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
9020 message on double free. Put the value of magic in case of mismatch.
9022 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9024 Speed-up video on yeeloong.
9026 * grub-core/video/sm712.c (framebuffer): Remove render_target and
9028 (grub_video_sm712_video_fini): Unmap cached_ptr.
9029 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
9030 (grub_video_sm712_set_active_render_target): Removed.
9031 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9032 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
9035 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9037 Avoid flushing the same line multiple times on loongson.
9039 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
9040 Step in 32 bytes and not 1 byte.
9041 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
9044 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9046 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
9049 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9051 Implement flow control for http.
9053 * grub-core/net/http.c (parse_line): Handle response 206.
9054 (http_receive): Stall if too many packets are in the queue.
9055 (http_establish): Fix range header.
9056 (http_seek): Fix double free.
9057 (http_close): Likewise.
9058 (http_packets_pulled): New function.
9059 (grub_http_protocol): Set http_seek
9060 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
9061 (ack_real): Set window depending on i_stall.
9062 (grub_net_send_tcp_packet): Likewise.
9063 (grub_net_tcp_stall): New function.
9064 (grub_net_tcp_unstall): Likewise.
9065 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
9066 (grub_net_tcp_unstall): Likewise.
9068 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9070 * grub-core/net/tftp.c: Decrease stall to 50 packets.
9072 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9074 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
9076 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9078 * tests/util/grub-shell.in: Fix a typo.
9080 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9082 Implement flow control for tftp.
9084 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
9085 packets but stop only if stop condition is satisfied.
9086 (grub_net_fs_read_real): Call packets_pulled after real read. Use
9087 `stall' instead of `eof' as stop condition.
9088 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
9089 (http_err): Likewise.
9090 * grub-core/net/tftp.c (ack): Replace the first argument with data
9092 (tftp_receive): Stall if too many packets are in wait queue.
9093 (tftp_packets_pulled): New function.
9094 (grub_tftp_protocol): Set packets_pulled.
9095 * include/grub/net.h (grub_net_packets): New field count.
9096 (grub_net_put_packet): Increment count.
9097 (grub_net_remove_packet): Likewise.
9098 (grub_net_app_protocol): New field `packets_pulled'.
9099 (grub_net): New field `stall'.
9101 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9103 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
9104 sync part to handle them.
9106 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9108 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
9109 * grub-core/net/drivers/ieee1275/ofnet.c
9110 (grub_ieee1275_net_config_real): Likewise.
9112 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9114 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
9115 the direct route for server/gateway.
9117 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9119 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
9120 IP address to server name since we may not hame the DNS.
9122 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9124 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
9125 freeing random buffer on failure.
9126 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
9128 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9130 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
9132 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9134 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
9136 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
9137 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
9138 Handle malloc error correctly.
9140 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9142 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
9145 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9147 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
9150 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9152 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
9153 none is explicitly specified.
9155 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9157 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
9160 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9162 Respect netmask from bootp/dhcp.
9164 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
9165 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
9166 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
9168 (grub_net_add_ipv4_local): ... this.
9169 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
9170 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
9171 (grub_net_add_ipv4_local): New proto.
9173 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9175 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
9176 determining EFI memory map size.
9178 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9180 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
9182 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9184 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
9185 when looking for partition separator.
9187 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9189 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9192 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9194 Restructure FAT driver to avoid hook in label reading as it hits a
9197 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
9198 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
9199 (grub_fat_iterate_dir): Split into ...
9200 (grub_fat_iterate_init): ... this, ...
9201 (grub_fat_iterate_fini): ... this, ...
9202 (grub_fat_iterate_dir_next): ... and this. All users updated.
9204 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9206 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
9207 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
9208 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9209 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
9210 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
9211 New fields last_key and last_key_time.
9212 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
9213 extended key-esc into extended key-extended key.
9215 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9217 Avoid unnecessary memcpy of whole video buffer.
9219 * grub-core/video/fb/video_fb.c (dirty): New struct.
9220 (framebuffer): Add members current_dirty and previous_dirty.
9221 (dirty): New function.
9222 (grub_video_fb_fill_rect): Update dirty.
9223 (common_blitter): Likewise.
9224 (grub_video_fb_scroll): Likewise.
9225 (doublebuf_blit_update_screen): Copy only dirty part.
9226 (doublebuf_pageflipping_update_screen): Likewise.
9227 (grub_video_fb_doublebuf_blit_init): Init dirty.
9228 (doublebuf_pageflipping_init): Likewise.
9229 (grub_video_fb_setup): Likewise.
9231 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9233 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
9236 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9238 Fix wildcard regexp dot and other special characters handling.
9239 Reported by: Robert Mabee.
9241 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
9242 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
9243 (split_path): Trigger expansion on '?'.
9244 (unescape): New function.
9245 (wildcard_expand): Unescape parts copied without globbing.
9246 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
9247 (grub_script_arglist_to_argv): Don't unescape expansions.
9249 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9251 * include/grub/net.h (grub_net_card): New member txbufsize.
9252 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
9253 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9254 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
9255 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
9257 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
9258 compatible property to check for macs. Set
9259 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9260 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
9261 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
9262 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
9263 (send_card_buffer): Use txbuf.
9264 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
9265 nested function out of the parent while on it.
9267 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9269 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
9271 (grub_ieee1275_net_config_real): Fix config pointer.
9273 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9275 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
9276 filename parsing to non-block devices.
9278 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9280 * grub-core/kern/device.c (grub_device_open): Remove dead code.
9282 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9284 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
9287 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9289 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
9290 UUID search command even if hints probing failed.
9292 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9294 * po/POTFILES.in: Regenerated.
9296 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9298 Speed-up video on fuloong.
9300 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
9302 (grub_pci_device_unmap_range): Handle non-cached address.
9303 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
9305 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
9306 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
9307 (grub_video_sis315pro_set_active_render_target): Removed.
9308 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
9309 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9310 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
9312 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
9315 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9317 * docs/grub.texi (Multi-boot manual config): New section.
9319 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9321 Avoid slow read-back from VRAM.
9323 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9325 * grub-core/video/fb/video_fb.c
9326 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
9327 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
9328 (front_target): Remove front_target. Add pages.
9329 (grub_video_fb_init): Skip setting front_pages.
9330 (grub_video_fb_fini): Likewise.
9331 (doublebuf_blit_update_screen): Use pages.
9332 (grub_video_fb_doublebuf_blit_init): Likewise.
9333 (doublebuf_pageflipping_init): Allocate offscreen buffer.
9334 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
9335 (grub_video_fb_setup): Prefer doublebuffing.
9337 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9339 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
9342 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9346 * tests/util/grub-shell.in: Handle loongson.
9347 * tests/partmap_test.in: Add loongson to the list of platform using ATA
9349 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
9350 Reboot instead of shutdown if REBOOT is defined.
9352 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9354 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
9355 sized ports since unlike on real hardware qemu supports only 32-bit
9358 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9360 * Makefile.util.def (grub-mkrescue): Enable on loongson.
9361 * util/grub-mkrescue.in: Handle loongson.
9363 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
9365 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
9366 Set is_part appropriately.
9367 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
9368 names. Canonicalize partition without full disk.
9370 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9372 Revert usb-quiesce since it's wrong.
9374 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
9375 (grub_ofdisk_init): Don't do quiesce.
9377 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9379 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
9380 PowerMac workaround to Xserves as well.
9381 Information supplied by: Benjamin Herrenschmidt.
9383 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9385 Don't assume that beginning address is also the entry point on ppc.
9387 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
9388 (grub_linux_boot): Use linux_entry.
9389 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
9390 (grub_linux_load64): Likewise.
9392 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9394 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
9396 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9398 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
9399 needlessly lose the console.
9401 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9403 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
9406 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9408 Remove non-functional EFI grub_get_rtc. Put a better fatal message
9409 than current grub_get_rtc() not implemented when booted with
9410 coreboot without TSC.
9412 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
9413 Add machine/time.h to kernel headers on loongson.
9414 * grub-core/Makefile.core.def (kernel): Remove
9415 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
9416 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
9417 (grub_get_rtc): Likewise.
9418 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
9419 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
9420 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
9421 * grub-core/kern/i386/tsc.c (grub_tsc_init)
9422 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
9423 rather than installing known non-working time source.
9424 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
9425 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
9426 * include/grub/time.h: Don't include machine/time.h.
9427 * include/grub/efi/time.h: Removed.
9428 * include/grub/i386/efi/time.h: Likewise.
9429 * include/grub/i386/ieee1275/time.h: Likewise.
9430 * include/grub/powerpc/ieee1275/time.h: Likewise.
9431 * include/grub/sparc64/ieee1275/time.h: Likewise.
9432 * include/grub/x86_64/efi/time.h: Likewise.
9434 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9436 Remove dot on i and j when combining with above diacritics.
9438 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
9440 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
9441 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
9442 with dotless variants when any combining above is present.
9444 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9446 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
9447 text and not binary.
9449 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9451 Stop polling as soon as we have the packet we were waiting for.
9453 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
9455 * grub-core/net/arp.c (have_pending): New var.
9456 (pending_req): Likewise.
9457 (grub_net_arp_send_request): Fill pending_req and use have_pending as
9459 (grub_net_arp_receive): Set have_pending.
9460 * grub-core/net/dns.c (recv_data): New field stop.
9461 (recv_hook): Set stop.
9462 (grub_net_dns_lookup): Init stop and use as stop condition.
9463 * grub-core/net/http.c (http_establish): Use headers_recv as stop
9465 * grub-core/net/net.c (grub_net_poll_cards): New argument
9466 stop_condition. Stop when it goes true.
9467 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
9469 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
9471 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9473 Keep TX and RX buffers on EFI rather than always allocate new ones.
9475 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
9476 card. All users updated.
9477 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
9478 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
9479 (get_card_packet): Likewise.
9480 (grub_efinet_findcards): Init new fields.
9482 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9484 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
9485 compilation error on sparc64.
9487 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9489 Use ITC on IA64 rather than broken routine based on daytime.
9491 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
9493 (grub_get_rtc) [__ia64__]: Likewise.
9494 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
9495 (get_itc): New function.
9496 (grub_rtc_get_time_ms): Likewise.
9497 (grub_machine_init): Calibrate ITC.
9498 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
9499 Keep only on non-ia64. Don't export since it's broken and used only
9500 if TSC is unavailable.
9502 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9504 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
9506 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
9507 Skip if parent is unused.
9509 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9511 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
9513 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9515 Fix wildcard escaping.
9517 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
9518 * grub-core/script/execute.c (wildcard_escape): .. to here.
9520 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
9521 * grub-core/script/execute.c (wildcard_unescape): .. to here.
9523 * grub-core/script/execute.c (gettext_append): Always escape.
9524 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
9525 * grub-core/script/yylex.l: Don't cut away the escaping.
9526 * tests/grub_script_echo1.in: Add tests with wildcard.
9528 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9530 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
9531 (ftdi_hw_configure): Likewise.
9532 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
9534 (real_config): Handle 1.5 stop bits.
9535 (pl2303_hw_configure): Likewise.
9537 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9539 * Makefile.am: Add ppc linux bootcheck.
9540 * grub-core/tests/boot/linux-ppc.cfg: New file.
9541 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
9543 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9545 * tests/grub_script_expansion.in: Skip network protocols.
9547 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9549 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
9551 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9553 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
9557 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9559 ESCC serial driver for conducting sautomated tests in qemu.
9560 Not tested on real hardware.
9562 * include/grub/serial.h (grub_serial_port): New field escc_desc.
9563 * grub-core/term/ieee1275/escc.c: New file.
9564 * grub-core/Makefile.core.def (escc): New module.
9566 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9568 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
9570 (serial_hw_fetch): Don't read invalid handle.
9571 (serial_hw_put): Don't write into invalid handle.
9573 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9575 Add a 1.5 stop bits value.
9577 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
9578 * include/grub/serial.h (grub_serial_stop_bits_t): Add
9579 GRUB_SERIAL_STOP_BITS_1_5.
9581 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9583 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
9584 value rather than let it uninited.
9586 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9588 * grub-core/commands/wildcard.c (+check_file): New function.
9589 (wildcard_expand): Don't expand to non-existing files, expand with
9590 suffix and not attempt to expand if not needed.
9592 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9594 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
9595 out of partitions containing other partitions.
9597 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9599 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
9600 on some qemu versions with GRUB.
9602 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
9604 (grub_openbsd_bootarg_pcibios): New struct.
9605 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
9608 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9610 * tests/util/grub-shell.in: Trim firmware output on EFI.
9612 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9614 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
9615 and coreboot since it's already in kernel.
9617 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9619 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
9620 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9621 to here. New return value start. All users updated.
9622 Recursively scan linear mappings.
9623 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
9625 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9626 Use grub_util_get_dm_node_linear_info.
9627 * util/getroot.c (convert_system_partition_to_system_disk): Use
9628 grub_util_info rather than grub_dprintf.
9629 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
9631 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9633 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
9635 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
9636 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
9638 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9640 * include/grub/types.h (grub_set_unaligned64): New function.
9641 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
9644 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9646 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
9647 (grub_ofdisk_fini): Quiesce USB devices.
9649 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9651 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
9654 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9656 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
9658 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9660 * grub-core/disk/pata.c (grub_pata_pio_read)
9661 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
9662 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
9664 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9666 Extend automated tests to qemu-mips.
9668 * Makefile.am: reorganise tests and enable qemu-mips.
9669 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
9670 * grub-core/tests/boot/linux.init-mips.S: New file.
9671 * tests/partmap_test.in: Handle ata0 disks.
9672 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
9675 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9677 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
9679 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
9682 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9684 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
9685 (grub_halt): Likewise.
9686 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
9688 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9690 * grub-core/term/serial.c (grub_serial_register)
9691 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
9692 the behaviour in line with x86 platforms.
9694 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9696 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
9697 (grub_ata_strncpy): Likewise.
9698 (grub_ata_identify): Add missing byteswaps.
9700 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9702 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
9704 (screen_read_char): Likewise.
9705 (grub_vga_text_cls): Likewise.
9707 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9709 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
9711 (make_file_path): Likewise.
9713 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9715 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
9717 Tested by: Paulo Flabiano Smorigo.
9718 Crucial information about API supplied by: Coleen <Last name unknown>.
9719 Reviewed by: Coleen <Last name unknown>.
9721 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9723 * util/grub-mkimage.c: Disable -Wcast-align.
9725 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9727 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
9730 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9732 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
9734 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9736 * util/grub-probe.c (escape_of_path): Fix double free.
9738 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9740 * grub-core/commands/videoinfo.c (hook): Show pitch.
9742 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9744 * util/grub.d/20_linux_xen.in: Skip xen-syms.
9746 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9748 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
9749 (probe): Add ieee1275 to OFW devices.
9751 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9753 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
9755 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9757 Handle IBM OFW path.
9759 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
9761 (of_path_of_scsi): Handle vdevice.
9763 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9765 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
9766 Allocate in multiples of 16 to avoid adding a few bytes free region the
9769 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9771 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
9772 Allocate in multiples of 16 to avoid adding a few bytes free region the
9774 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
9776 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9778 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
9780 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
9781 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
9783 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
9785 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
9787 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9789 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
9790 resulted in \\ at the end of the line.
9792 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9794 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
9795 (grub_parser_cmdline_state): Likewise.
9796 (grub_parser_split_cmdline): Likewise.
9798 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9800 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
9801 /dev/root and /dev/dm-*.
9803 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9805 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9806 fix partially stale display.
9808 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9810 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9813 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9815 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9816 Fix MBR remapping workaround.
9817 (grub_util_biosdisk_read) [__linux__]: Likewise.
9819 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9821 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9823 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9825 * configure.ac: Bump to beta6.
9827 2012-05-31 Christer Weinigel <christer@weinigel.se>
9829 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9831 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9833 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9834 (grub_cmd_linux): Likewise.
9836 2012-05-31 Christer Weinigel <christer@weinigel.se>
9840 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9841 (GRUB_EHCI_MULT_TWO): Likewise.
9842 (GRUB_EHCI_MULT_THREE): Likewise.
9843 (GRUB_EHCI_CMASK_MASK): New enum value.
9844 (GRUB_EHCI_SMASK_MASK): Likewise.
9845 (GRUB_EHCI_CMASK_OFF): Likewise.
9846 (GRUB_EHCI_SMASK_OFF): Likewise.
9847 (grub_ehci_pci_iter): Enable periodic schedule.
9848 (grub_ehci_parse_notrun): Likewise.
9849 (grub_ehci_restore_hw): Likewise.
9850 (grub_ehci_setup_qh): Set flags for low speed transfers.
9851 (grub_ehci_find_qh): Use periodic list for low speed.
9852 (grub_ehci_setup_transfer): Check periodic queue as well.
9853 (grub_ehci_check_transfer): Likewise.
9854 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9856 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9858 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9861 2012-05-31 Peter Jones <pjones@redhat.com>
9863 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9864 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9865 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9867 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9869 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9870 uninited variable. Allocate at least setup_sects.
9872 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9874 Fix handling of EFI with big memory maps.
9876 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9877 (real_mode_mem): Likewise.
9878 (real_mode_target): Likewise.
9879 (real_mode_pages): Likewise.
9880 (prot_mode_pages): Likewise.
9881 (linux_params): New var.
9882 (linux_cmdline): Likewise.
9883 (free_pages): Don't set real mode variables.
9884 (allocate_pages): Don't allocate real mode memory.
9885 (grub_e820_add_region): Remove the limit.
9886 (grub_linux_boot): Allocate and copy real mode memory.
9887 (grub_linux_unload): Free linux_cmdline.
9888 (grub_cmd_linux): Use temporary storage for parameters.
9889 (grub_cmd_initrd): Likewise.
9890 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
9891 (linux_kernel_params): Make it 1K big.
9893 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9895 * Makefile.util.def: Remove -Wno-format.
9896 * grub-core/Makefile.core.def: Likewise.
9898 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9900 * tests/cmp_unit_test.c: Add missing failure message.
9901 * tests/example_unit_test.c: Likewise.
9902 * tests/printf_unit_test.c: Likewise.
9904 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9906 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
9907 relaxation of protective MBR requirements.
9909 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9911 * configure.ac: Add condition for COND_HOST_XNU.
9912 * Makefile.util.def (10_xnu): New script.
9913 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
9915 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9917 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
9920 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9922 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
9923 Binary on other platforms stays identical.
9925 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9927 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
9930 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9932 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
9934 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9936 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
9937 rather than defining size_t ourselves to avoid conflict.
9939 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9941 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
9942 initialisation to avoid __bzero reference.
9944 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9946 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
9948 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
9949 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
9950 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
9951 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
9952 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
9954 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9956 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
9957 * grub-core/kern/misc.c: Likewise.
9958 * grub-core/loader/i386/xnu.c: Likewise.
9959 * include/grub/i386/tsc.h: Likewise.
9960 * include/grub/symbol.h: Likewise.
9962 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9964 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
9965 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
9968 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9970 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
9971 Implement Apple flavour.
9972 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
9974 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9976 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
9977 (memmove) [__APPLE__]: Likewise.
9978 (memcpy) [__APPLE__]: Likewise.
9979 (memset) [__APPLE__]: Likewise.
9980 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
9981 (memmove) [__APPLE__]: Likewise.
9982 (memcpy) [__APPLE__]: Likewise.
9983 (memset) [__APPLE__]: Likewise.
9985 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9987 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
9990 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9992 * grub-core/normal/main.c (read_config_file): Provide config_file and
9994 * util/grub.d/41_custom.in: Use config_directoy when available.
9996 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9998 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
9999 (grub_bfs_dir): Likewise.
10001 2012-05-27 Peter Jones <pjones@redhat.com>
10003 The old code gives arguments to a printf function which can't work
10004 correctly, and the compiler complains.
10006 * grub-core/tests/example_functional_test.c (example_test): Add
10008 * grub-core/tests/lib/test.c (add_failure): Rewrite.
10009 * include/grub/test.h (grub_test_assert_helper): New declaration.
10010 (grub_test_assert): Use grub_test_assert_helper.
10012 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10014 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
10015 (exfctest): ... this to avoid overlong filenames.
10018 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10020 Handle "." and ".." on squashfs.
10022 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
10023 Make inode numbers into stack.
10024 (grub_squash_read_symlink): Use stack.
10025 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
10026 (make_root_node): Fill stack.
10027 (grub_squash_open): Use stack.
10029 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10031 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
10034 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10036 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
10037 stderr on test calls.
10039 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10041 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
10043 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10045 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
10047 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10049 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
10052 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10054 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
10055 (grub_hfsplus_iterate_dir): Add "." and "..".
10057 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10059 * grub-core/fs/cpio.c (canonicalize): Handle "..".
10060 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
10062 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10064 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
10065 (find_path): Handle "." and "..".
10067 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10069 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
10070 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
10071 (grub_affs_iterate_dir): Handle hardlinks.
10073 2012-05-26 Matthew Garrett <mjg@redhat.com>
10075 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
10076 (grub_efi_console_fini): Likewise.
10077 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
10078 (grub_video_gop_fill_mode_info): Rename to ...
10079 (grub_video_gop_fill_real_mode_info): ... this.
10080 (grub_video_gop_fill_mode_info): New function.
10081 (grub_video_gop_setup): Setup double framebuffer.
10082 (grub_video_gop_get_info_and_fini): Use original framebuffer.
10084 (grub_video_gop_swap_buffers): Copy framebuffer.
10085 (grub_video_gop_fini): Free offscreen buffer.
10086 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
10088 (grub_efi_gop_blt_pixel): New struct.
10090 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10092 * gentpl.py: Remove error disabling for objconv.
10094 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10096 * configure.ac: Remove -Wunitialized as it's not available on older
10099 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10101 Fix extent overflow comparator.
10103 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
10104 (grub_hfsplus_read_block): Set type.
10105 (grub_hfsplus_cmp_extkey): Compare type.
10107 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
10109 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
10111 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10113 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
10116 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10118 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
10119 (dejavu_bold_14.pf2): New target.
10121 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10123 * configure.ac: Fix djvu font detection.
10125 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10127 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
10128 ext* instead of ext2.
10130 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10132 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
10135 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
10137 * docs/grub-dev.texi: Remove dot from .png.
10139 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10141 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
10142 protective entry in any slot.
10143 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
10144 if protective entry is found in any slot.
10146 Protective entry in non-first slot make no sense but is a widespread
10149 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10151 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
10153 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10155 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
10157 (grub_reiserfs_open): Don't free root.
10159 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10161 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
10162 after freeing for safety.
10164 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10166 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
10167 Reported by: Jordan Uggla.
10169 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
10171 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
10172 actual implementation. Specifically, clarify that the grub menu will
10173 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
10176 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
10178 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
10181 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10183 Remove unjustified hard dependency of normal.mod on gfxterm.
10185 * include/grub/term.h (grub_term_output): New member fullscreen.
10186 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
10187 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
10188 (grub_gfxterm): Set .fullscreen.
10189 * grub-core/normal/menu.c (menu_init): Use fullscreen.
10190 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
10192 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10194 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
10195 mentioning possible problems with non-ASCII (non-compliant) ISOs.
10196 Mention case-insensitive AFFS, SFS and JFS.
10198 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10200 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
10202 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10204 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10207 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10209 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
10210 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
10212 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10214 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
10215 (grub_jfs_mount): Fill caseins.
10216 (grub_jfs_find_file): Respect caseins.
10218 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10220 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
10223 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10225 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
10226 New argument origpath. All users updated.
10228 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10230 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
10231 (read_attr): Ensure that we read start of possibly compressed block.
10233 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10235 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
10236 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
10239 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10241 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
10242 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
10243 (dejavu.pf2): Replace with ...
10244 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
10247 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10249 * util/grub.d/20_linux_xen.in: Add missing line.
10251 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10253 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
10254 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
10255 (grub_utf16_to_utf8): Likewise.
10257 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10259 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
10260 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
10261 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10262 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
10263 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
10264 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
10266 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10268 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10271 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10273 * grub-core/fs/udf.c (read_string): Bail out on size=0.
10274 (grub_udf_read_symlink): Handle read_string failure.
10276 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10278 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
10281 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10283 Fix handling of UDF symlinks.
10285 * grub-core/fs/udf.c (read_string): New argument outbuf.
10287 (grub_ufs_read_symlink): Rename to ...
10288 (grub_udf_read_symlink): ... this. All users updated.
10289 Handle symlinks with more than one component.
10291 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10293 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
10294 symlinks. Replace leading colon with a slash.
10296 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10298 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
10301 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10303 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
10304 match in inner node.
10306 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10308 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
10309 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
10310 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
10311 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
10312 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
10313 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
10314 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
10315 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
10316 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
10318 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10320 Use grub-probe and not cmp to check that disk is empty.
10322 * util/grub-install.in: Use grub-probe for zero-check.
10323 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
10324 (probe): Handle PRINT_ZERO_CHECK.
10325 (argp_parser): Handle -t zero_check.
10327 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10329 Flush block cache on adding disk to device map.
10331 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
10332 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
10334 (read_device_map): Likewise.
10335 (open_device): Flush on opening.
10337 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10339 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
10340 (handle_symlink): Fix off-by-one error.
10341 Canonicalize the target.
10342 (grub_cpio_dir): Canonicalize the name.
10345 (grub_cpio_open): Canonicalize the name.
10347 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10349 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
10352 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10354 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
10355 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
10357 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10359 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
10360 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
10363 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10365 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
10368 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10370 Fix UFS1 big file support.
10372 * grub-core/fs/ufs.c (INODE): Removed.
10373 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
10375 (INODE_MODE): Simplify.
10376 (grub_ufs_inode): Use uint64_t for size and not int64_t.
10377 (grub_ufs_lookup_symlink): Don't use INODE.
10379 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10381 Fix minixfs with non-power-of-two blocks since it's supported by minix.
10383 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
10384 (grub_minix_data): Replace log_block_size with block_size.
10385 (grub_minix_read_file): Use block_size but avoid 64-bit division.
10386 (grub_minix_mount): Fill block_size.
10388 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10390 * configure.ac: Bump to beta5.
10392 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10394 Fix wrapped HFS+ handling.
10396 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
10397 blocks_start. All users updated.
10398 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
10400 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
10402 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10404 Fix long symlinks on reiserfs.
10406 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
10407 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
10408 (grub_reiserfs_iterate_dir): Save size for non-directories.
10409 (grub_reiserfs_open): Don't reread stat block as we already know the
10411 (grub_reiserfs_read): Split into...
10412 (grub_reiserfs_read_real): ... and ...
10413 (grub_reiserfs_read): ...this.
10415 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10417 Fix non-indexed JFS.
10419 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
10420 (grub_jfs_data): New field namecomponentlen.
10421 (grub_jfs_mount): Fill namecomponentlen.
10422 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
10424 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10426 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
10427 * tests/grub_script_echo1.in: Add tests.
10429 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10431 * util/grub-install.in: Ignore empty devicetree directory.
10433 2012-05-08 Bean <bean123ch@gmail.com>
10435 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
10437 (free_rsm): Free header as well.
10438 (free_old_fragments): Fix memory leak.
10439 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
10440 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
10441 (destroy_pq): Likewise.
10442 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
10444 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10446 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
10447 resulting hash as a precaution.
10449 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10451 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
10452 '_' in variable names.
10453 * grub-core/net/net.c (grub_net_network_level_interface_register):
10456 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10458 Fix AFFS with non-512B blocks.
10460 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
10461 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
10462 (grub_affs_data): Replace blocksize with log_blocksize.
10463 (grub_affs_read_block): Fix non-512B blocks.
10464 (grub_affs_read_symlink): Likewise.
10465 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
10466 (grub_affs_read): Fix non-512B blocks.
10467 (grub_affs_label): Likewise.
10468 (grub_affs_mtime): Likewise.
10469 (grub_affs_mount): Fix block detection routine.
10471 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10473 Add filesystem mtime to AFFS.
10475 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
10476 (aftime2ctime): New function.
10477 (grub_affs_dir): Use aftime2ctime.
10478 (grub_affs_label): Fix return value.
10479 (grub_affs_mtime): New function.
10480 (grub_affs_fs): Add mtime.
10482 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10484 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
10487 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10489 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
10492 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10494 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
10496 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10498 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
10500 (FLAGS_CASE_SENSITIVE): New enum value.
10501 (cache_entry): New struct.
10502 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
10503 cache_size and cache.
10504 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
10505 Add log_blocksize and fshelp_flags.
10506 (grub_sfs_read_extent): Handle non-512 blocks.
10507 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
10508 (grub_sfs_read_file): Handle non-512 blocks.
10509 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
10511 (grub_sfs_read_symlink): Handle non-512 blocks.
10512 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
10513 (grub_sfs_dir): Free cache.
10514 (grub_sfs_close): Likewise.
10516 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10518 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
10521 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10523 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
10525 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10527 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
10529 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10531 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
10532 (grub_sfs_read_extent): Likewise.
10533 (grub_sfs_read_block): Likewise.
10534 (grub_sfs_mount): Likewise.
10535 (grub_sfs_iterate_dir): Likewise.
10536 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
10537 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
10539 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10541 Fix errors on compressed NTFS with 512B clusters.
10543 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
10545 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
10547 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
10548 Relax check for inline extents.
10549 (ntfscomp): Return correct -1 on error and not 0.
10551 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10553 * util/grub-install.in: Fix handling of prefix containing spaces.
10555 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10557 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
10558 (grub_squash_read_data): Fix offset byte-swapping.
10560 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10562 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
10563 per common usage and preffered in several parts of code.
10564 (grub_memcmp): Likewise.
10565 (grub_strncmp): Likewise.
10566 * include/grub/misc.h (grub_strcasecmp): Likewise.
10567 (grub_strncasecmp): Likewise.
10568 * Makefile.util.def (cmp_test): New test.
10569 (grub_script_strcmp): Likewise.
10570 * tests/cmp_unit_test.c: New file.
10571 * tests/grub_script_strcmp.in: Likewise.
10572 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
10574 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10576 * include/grub/pci.h: Move enums into no-asm part.
10578 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10580 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
10582 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
10584 * util/getroot.c (find_hurd_root_device): Try to make error message
10585 and comments to translators clearer.
10587 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10589 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
10591 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10593 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
10596 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10598 * docs/grub.cfg: Update.
10600 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10602 * docs/grub.texi (PXE): Remove not present variables.
10604 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10606 * grub-core/net/net.c (defserver_set_env): New function.
10607 (defserver_get_env): Likewise.
10608 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
10610 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10612 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
10615 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10617 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
10618 * grub-core/kern/emu/hostdisk.c: Likewise.
10620 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10622 Handle hurd userspace partitions.
10624 * util/getroot.c (find_hurd_root_device): New function.
10625 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
10627 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10629 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
10631 Reported by: Bastian Blank.
10633 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10635 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
10636 crossing page boundary.
10638 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10640 Fix B-tree search in BFS, especially in presence of non-ASCII
10643 * grub-core/fs/bfs.c (bfs_strcmp): New function.
10644 (find_in_b_tree): Use standard bsearch + btree algorithm.
10646 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10648 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
10651 2012-05-03 Matthew Garrett <mjg@redhat.com>
10652 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10654 Suspend broadcom cards in order to stop their DMA.
10656 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
10657 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
10658 (pci): Don't build on x86 EFI.
10659 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
10660 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
10662 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
10663 stop_broadcom if running on EFI.
10664 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
10665 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
10666 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
10667 (grub_pci_find_capability): New proto.
10669 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10671 * docs/grub.texi: Remove dot from the extension as it apparently
10672 doesn't work with some makeinfo versions.
10674 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10676 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
10677 with GRUB expectance.
10679 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10681 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
10683 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10685 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
10686 zero after directory block since last entry may be not 0-terminated if
10687 it ends on block boundary. Use continue instead of if spanning whole
10690 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10692 Support 4K sectors UDF inline files.
10694 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
10695 (grub_udf_extended_file_entry): Likewise.
10696 (grub_fshelp_node): Name the anonymous union. Put block at the end.
10698 (get_fshelp_size): New function.
10699 (grub_udf_read_icb): Read whole block.
10700 (grub_udf_iterate_dir): Likewise.
10701 (grub_udf_dir): Likewise.
10702 (grub_udf_open): Likewise.
10704 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10706 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
10708 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10710 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
10711 inline symlinks in addition to workaround.
10713 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10715 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
10717 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10719 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
10721 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10723 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
10725 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10727 Fix reiserfs big seek times.
10729 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
10730 exact. All users updated.
10731 (grub_reiserfs_read): Use nearest btree search for seeking.
10732 Fix return value on error.
10734 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10736 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
10738 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
10739 * docs/grub.texi: Update menuentry description.
10741 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10743 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
10744 crash when embedding onto filesystem.
10746 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10748 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
10751 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10753 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
10755 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10757 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
10760 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10761 2012-05-01 Bean <bean123ch@gmail.com>
10763 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
10765 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10767 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
10768 Special behaviour for len = 0 to read whole file isn't used anywhere and
10769 can cause buffer ovewrflows in several places.
10771 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10773 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
10775 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10777 Handle RAIDZ on non-512B sectors.
10779 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
10780 max_children_ashift.
10781 (fill_vdev_info_real): Fill max_children_ashift.
10782 (read_device): Use max_children_ashift.
10784 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10786 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
10788 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10790 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
10792 * docs/grub.texi: Update device.map parts.
10794 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10796 Don't scan into non-diskfilter devices having diskfilter names.
10798 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
10799 (scan_disk): New argument accept_diskfilter. Fix recursion depth
10801 (scan_disk_hook): New function.
10803 2012-04-29 Bean <bean123ch@gmail.com>
10805 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10808 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10810 * configure.ac: Detect starfield theme font path
10811 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10813 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10815 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10816 geometry on serial consoles.
10818 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10820 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10821 because of network consoles.
10823 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10825 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10828 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10830 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10831 falls on Q syndrom.
10833 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10835 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10836 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10838 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10840 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10841 Allocate at lest 8192 for temporary buffer as required for lzo.
10843 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10845 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10846 to cluster_bits, since it's already added in.
10847 (grub_fat_read_data): Likewise.
10849 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10851 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10852 as long as cluster size is multiple of 512 bytes.
10854 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10856 * util/grub-mkrescue.in: Fix locale directory.
10858 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10860 * grub-core/kern/emu/hostdisk.c (map): Make static.
10862 2012-04-23 Bean <bean123ch@gmail.com>
10864 * util/grub-fstest.c (fstest): Add missing break.
10866 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10870 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10871 not define nr variable.
10872 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10873 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10874 grub_find_device): Do not define.
10876 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10878 Fix kfreebsd compile and behaviour.
10880 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
10882 * util/getroot.c: Fix wait.h include.
10883 (grub_guess_root_devices): Error if grub_find_device fails.
10884 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
10885 (grub_util_get_dev_abstraction): Likewise.
10886 (grub_util_pull_device): Likewise.
10887 (grub_util_get_grub_dev): Likewise.
10888 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
10890 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10892 Fix and unify wholedisk detection.
10894 * util/getroot.c (convert_system_partition_to_system_disk): New argument
10895 is_part. All users updated.
10896 (device_is_wholedisk): Removed.
10897 (grub_util_biosdisk_get_grub_dev): Use is_part.
10899 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10901 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
10904 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10906 * configure.ac: Bump to beta4.
10908 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10910 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
10911 --fs-uuid --set UUID syntax.
10913 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10915 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
10918 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10920 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
10922 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
10924 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
10926 2012-04-18 Mike Gilbert <floppym@gentoo.org>
10928 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
10930 2012-04-18 Bean <bean123ch@gmail.com>
10932 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
10935 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10937 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
10939 (grub_util_biosdisk_read): Handle Linux partitions not exactly
10940 corresponding to GRUB partitions.
10941 (grub_util_biosdisk_write): Likewise.
10943 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10945 Scan mdraid before LVM.
10947 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
10948 (grub_diskfilter_register_front): ... this.
10949 (grub_diskfilter_register_back): New function.
10950 All users of grub_diskfilter_register updated.
10952 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10954 * util/grub-install.in: Fix an automatic target detection bug.
10956 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10958 * util/grub-install.in: New option --efi-directory.
10960 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
10962 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
10963 boot services if we have no other choice.
10965 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
10967 * util/grub-mknetdir.in: Rename --override-directory to --directory and
10969 * tests/util/grub-shell.in: Update to --directory.
10971 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10973 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
10975 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10977 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
10978 (grub_minix_read_file): Likewise.
10979 (grub_minix_read_inode): Likewise.
10980 (grub_minix_find_file): Likewise.
10981 (grub_minix_dir): Likewise.
10983 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10985 * util/grub-setup.c (setup): Fix partition handling and blocklist
10988 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10990 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
10991 redundant buggy overlap check.
10993 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10995 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
10998 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11000 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
11001 kh.loadflags on pre-2.00 kernels.
11003 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11005 Terminate UNDI and PXE before launching the payload to avoid problems
11008 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
11009 (grub_loader_flags): ... this. All users updated.
11010 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
11011 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
11012 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
11013 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
11015 (grub_pxe_restore): Likewise.
11016 (fini_hnd): New var.
11017 (GRUB_MOD_INIT): Register shutdown hook.
11018 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
11019 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
11020 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
11021 (grub_loader_set): Rename second argument to flags.
11023 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11025 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
11027 (grub_get_num_of_utf8_bytes): New function.
11028 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
11029 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
11031 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
11032 (grub_ucs4_to_utf8): Change return type.
11034 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11036 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
11038 * grub-core/fs/bfs.c (hop_level): Likewise.
11039 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
11041 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11043 * grub-core/lib/adler32.c: Recode due to license unclearness.
11045 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11047 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
11048 (test_header): Likewise.
11050 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11052 Fix --help formatting.
11054 * util/grub-mkconfig_lib.in (print_option_help): New function.
11055 (grub_fmt): Likewise.
11056 * util/grub-install.in: Use print_option_help and grub_fmt.
11057 * util/grub-kbdcomp.in: Likewise.
11058 * util/grub-mkconfig.in: Likewise.
11059 * util/grub-mknetdir.in: Likewise.
11060 * util/grub-mkrescue.in: Likewise.
11061 * util/grub-mkstandalone.in: Likewise.
11062 * util/grub-reboot.in: Likewise.
11063 * util/grub-set-default.in: Likewise.
11064 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11066 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11068 * linguas.sh: Remove autogenerated *.po.
11070 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11072 * po/README: Move language fetcing to ...
11073 * linguas.sh: ... here.
11074 * po/README: Point to linguas.sh.
11076 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11078 * po/README: Exclude ko.po due to disclaimer problems.
11080 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11082 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
11084 (grub_gettext_translate_real): Handle 0th string.
11085 (grub_gettext_translate): Ensure that "" isn't translated.
11087 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11089 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
11090 TRANSLATORS comment.
11091 (grub_diskfilter_print_partmap): Propagate changing of error into
11094 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11096 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
11097 to uint64_t to prevent overflow.
11098 (grub_diskfilter_lv): Increase start_extent and extent_count
11099 to uint64_t to prevent overflow.
11101 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11103 * configure.ac: Increase version.
11105 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11107 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
11109 * po/Rules-translit: New file.
11110 * po/arabic.sed: Likewise.
11111 * po/cyrillic.sed: Likewise.
11112 * po/greek.sed: Likewise.
11113 * po/hebrew.sed: Likewise.
11114 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
11115 * po/Makefile.in.in: Add extra_dist4.
11117 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11119 Handle big-endian minixfs (fixes minixfs tests on bigendian).
11121 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
11122 modify names. Introduce MODE_BIGENDIAN.
11123 * grub-core/fs/minix_be.c: New file.
11124 * grub-core/fs/minix2_be.c: Likewise
11125 * grub-core/fs/minix3_be.c: Likewise.
11126 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
11128 * grub-core/Makefile.core.def (minix_be): New module.
11129 (minix2_be): Likewise.
11130 (minix3_be): Likewise.
11132 2012-04-01 Felix <email@hamburg.de>
11134 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
11135 (devs): Add MBP 2011.
11137 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11139 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
11141 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11143 * grub-core/normal/cmdline.c (print_completion): New field
11145 (grub_cmdline_get): Handle width properly.
11147 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11149 * grub-core/commands/lsacpi.c (options): Add missing terminator.
11151 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11153 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
11154 after 29th of February.
11156 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11158 Fix exfat endianness handling.
11160 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
11161 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
11162 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
11163 Byte-swap utf16 when necessary.
11164 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
11166 2012-03-31 Anton Blanchard <anton@samba.org>
11167 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11169 Fix btrfs endianness handling.
11171 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
11172 (lower_bound): Make root uint64_t. Use root in le.
11173 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
11174 (find_path): Fix template key init.
11175 (grub_btrfs_dir): Fix mtime byteswap.
11176 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
11178 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11180 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
11181 recursion_depth. Break infinite resursions. All users updated.
11183 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11185 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
11187 Reported by: Peter Jones.
11189 2012-03-31 Anton Blanchard <anton@samba.org>
11191 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
11194 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11196 * util/grub-install.in: Fix nvram call for PreP.
11198 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11200 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
11201 the error when some elements are missing into a warning.
11203 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11205 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
11207 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
11209 * docs/grub.texi (Invoking grub-probe): New section.
11210 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
11212 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
11214 Fix tab and wide character handling in editor and menu.
11216 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
11217 agglomerate control characters with combining marks.
11218 (bidi_line_wrap): Allow break on tab.
11219 (grub_unicode_get_comb_start): New function.
11220 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
11222 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
11224 * grub-core/normal/term.c (print_ucs4_terminal): New argument
11225 fixed_tab_size. All users updated.
11226 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
11227 (grub_term_getcharwidth): Handle \t.
11228 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
11231 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11233 Handle big-endian mdraid.
11235 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
11236 * grub-core/Makefile.core.def (mdraid09_be): New module.
11237 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
11238 rather than grub_le_to_cpu* and grub_cpu_to_le*.
11239 * grub-core/disk/mdraid_linux_be.c: New file.
11241 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11243 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
11245 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11247 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11248 missing quotes which caused confusion among translators.
11250 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11252 * util/grub-mkconfig_lib.in: Fix typo.
11254 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11256 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
11258 * tests/grub_script_leading_whitespace.in: New file.
11259 * Makefile.util.def (grub_script_leading_whitespace): New test.
11261 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11263 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
11266 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11268 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
11269 starts with control character.
11271 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11273 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
11275 (grub_gdb_outbuf): Likewise.
11277 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11279 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
11280 zero terminator. Fixes a crash.
11282 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11284 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
11286 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
11287 images independently of preffered adderss field.
11289 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11291 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
11292 * grub-core/commands/regexp.c: Likewise.
11293 * grub-core/loader/i386/linux.c: Likewise.
11294 * grub-core/partmap/msdos.c: Likewise.
11295 * grub-core/script/execute.c: Likewise.
11296 * grub-core/term/gfxterm.c: Likewise.
11298 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11300 Add variable parsing in $"..." and fix several mismatches with bash.
11302 * Makefile.util.def (grub_script_gettext): New test.
11303 * grub-core/script/execute.c (parse_string): New function.
11304 (gettext_append): Likewise.
11305 (grub_script_arglist_to_argv): Use gettext_append.
11306 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
11307 * tests/grub_script_gettext.in: New file.
11309 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11311 Fix handling of leading spaces in scripts.
11313 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
11315 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
11316 other than skipping \r. All users updated.
11317 * tests/grub_script_echo1.in: Add space-related tests.
11318 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
11320 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11322 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
11324 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11326 * configure.ac: Bump up the version to beta2.
11328 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11330 Fix gettext reload bugs (e.g. inability to disable gettext
11333 * grub-core/gettext/gettext.c: Encapsulate all static variables in
11334 main_context and secondary_context. All functions updated.
11335 (grub_gettext_translate): Rename to ...
11336 (grub_gettext_translate_real): ... this. Return NULL on failed
11338 (grub_gettext_translate): Handle secondary context.
11339 (grub_gettext_delete_list): Close file and zero-out the context.
11340 (grub_mofile_open): Don't call grub_gettext_delete_list.
11342 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
11343 if locale="" to avoid pointless error message.
11344 (grub_gettext_env_write_lang): Update lang even if load fails.
11345 Handle secondary context.
11346 (grub_gettext_reread_prefix): New function.
11347 (read_main): Likewise.
11348 (read_secondary): Likewise.
11349 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
11350 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
11351 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
11352 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
11354 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11356 * configure.ac: Decrease warning level to avoid spurious warnings and
11357 to be able to compile with GCC 4.2.
11358 * Makefile.util.def: Remove -Wno-error=logical-op.
11360 2012-03-10 William Bittner <william.bittner@gmail.com>
11362 * util/import_unicode.py: Add missing brackets around string for
11365 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11367 Fix efi chainloader on network root.
11369 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
11371 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
11374 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11376 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
11377 unused show_text member.
11378 * docs/grub.texi: Document "text" property.
11380 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11382 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
11385 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11387 Fix IMSM handling on Fedora.
11389 * util/getroot.c (grub_util_is_imsm): New function.
11390 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
11392 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11394 * Makefile.am: Strip gold section.
11395 * conf/Makefile.common: Likewise.
11396 * gentpl.py: Likewise.
11397 * grub-core/Makefile.core.def: Likewise.
11398 * grub-core/genmod.sh.in: Likewise.
11400 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11402 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
11403 * util/grub.d/20_linux_xen.in: Likewise.
11404 Based on Debian patch.
11406 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11408 * util/grub.d/10_linux.in: Fix syntax error resulting in
11409 Richard Laager's patch.
11410 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
11412 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11414 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
11417 2012-03-10 Richard Laager <rlaager@wiktel.com>
11419 * util/grub.d/10_linux.in: Fix ZFS root passing.
11421 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11423 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11424 * grub-core/commands/xnu_uuid.c: Likewise.
11425 * grub-core/loader/efi/appleloader.c: Likewise.
11426 * grub-core/script/execute.c: Likewise.
11427 * grub-core/script/main.c: Likewise.
11428 * util/grub-mkfont.c: Likewise.
11430 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11432 * util/grub-mkfont.c (options): Use more appropriate "select" that
11433 "set" for face index.
11435 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11437 * util/grub-editenv.c (options): Gettextize command summaries.
11439 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11441 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
11442 "out of memory" error messagge.
11444 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11446 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
11447 of diskfilter for diskfilter on diskfilter support.
11449 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11451 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
11453 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11455 * util/grub-install.in: Check for themes/starfield/theme.txt and not
11458 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11460 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
11462 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11464 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
11466 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11468 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
11471 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11473 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
11475 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11477 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
11479 * util/grub-install.in: Fix and gettextize error message.
11481 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11483 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
11485 * util/grub-mount.c (options): Likewise.
11487 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11489 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
11491 * grub-core/commands/search_wrap.c (options): Likewise.
11493 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11495 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
11497 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11499 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
11501 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
11504 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11506 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
11507 "temporary" since it's used in identifier and is limited in space.
11509 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11511 * po/POTFILES.in: Regenerate. Include *.h since they contain
11512 translatable strings as well.
11514 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11516 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
11517 byte-swap on big-endian.
11518 Reported by: Lennart Sorensen
11520 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11522 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
11523 (allocate_pages): Improve dprintf.
11524 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
11525 code32_start. Fill code32_start and kernel_alignment in params.
11526 (grub_cmd_initrd): Use prot_init_space.
11528 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11530 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
11532 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11534 * util/grub-install.in: Add missing dot at the end of sentence.
11536 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11538 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11539 * grub-core/commands/videotest.c: Likewise.
11540 * grub-core/loader/i386/linux.c: Likewise.
11542 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11544 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
11546 Reported by: Milo Casagrande.
11548 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11550 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
11551 * grub-core/commands/gptsync.c: Likewise.
11552 * grub-core/commands/hashsum.c: Likewise.
11553 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11554 * grub-core/commands/legacycfg.c: Likewise.
11555 * grub-core/io/gzio.c: Likewise.
11556 * grub-core/net/net.c: Likewise.
11557 * grub-core/term/gfxterm.c: Likewise.
11558 * grub-core/term/terminfo.c: Likewise.
11559 * grub-core/tests/test_blockarg.c: Likewise.
11560 * grub-core/video/video.c: Likewise.
11561 * util/grub-install.in: Likewise.
11562 * util/grub-mkfont.c: Likewise.
11564 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11566 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
11568 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11570 * grub-core/commands/search_wrap.c (options): Fix a typo.
11571 Reported by: David Prévot.
11573 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11575 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
11578 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11580 * util/grub-script-check.c (main): Fix a syntax error message which was
11583 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11585 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
11587 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11589 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
11592 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11594 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
11596 * util/grub-mount.c (options): Likewise.
11598 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11600 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
11602 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11604 * grub-core/net/http.c: Add TRANSLATORS comments.
11605 * grub-core/normal/cmdline.c: Likewise.
11606 * grub-core/normal/misc.c: Likewise.
11607 * grub-core/partmap/msdos.c: Likewise.
11608 * grub-core/parttool/msdospart.c: Likewise.
11609 * grub-core/script/execute.c: Likewise.
11610 * grub-core/script/main.c: Likewise.
11611 * grub-core/term/terminfo.c: Likewise.
11612 * grub-core/video/bitmap.c: Likewise.
11613 * util/grub-install.in: Likewise.
11614 * util/grub-mkimage.c: Likewise.
11615 * util/grub-mklayout.c: Likewise.
11616 * util/grub-setup.c: Likewise.
11618 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11620 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
11621 with similar messages in grub-fstest.
11623 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11625 * util/grub-install.in: Unify "option requires an argument" message
11626 with similar messages in other files.
11627 * util/grub-mkconfig.in: Likewise.
11629 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11631 * util/grub-set-default.in: Replace printf with gettext_printf (the
11632 string in in question is already translated from grub-reboot)
11634 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11636 * configure.ac: Bump up the version to beta1.
11638 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11640 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
11641 case when min_align = 0.
11643 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11645 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
11646 and fix a case when line_start overflows.
11648 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11650 * util/grub-reboot.in (usage): Mention id posibility.
11651 * util/grub-set-default.in (usage): Likewise.
11653 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11655 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
11656 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
11657 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11658 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11659 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11660 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11661 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11663 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11665 * grub-core/commands/menuentry.c (options): Remove
11666 GRUB_ARG_OPTION_REPEATABLE.
11667 Reported by: Andreas Vogel
11669 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
11671 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
11673 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
11675 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
11678 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11680 Use sort -V by the idea of Georgi Georgiev.
11682 * util/grub-mkconfig_lib.in (version_sort): New function.
11683 (version_test_numeric): Use version_sort.
11685 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11687 Use submenus in grub-mkconfig.
11689 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
11690 * util/grub-mkconfig_lib.in (grub_quote): New function.
11691 (gettext_printf): Use gettext and not gettext_quoted to fix several
11693 * util/grub.d/10_hurd.in: Use submenus.
11694 * util/grub.d/10_kfreebsd.in: Likewise.
11695 * util/grub.d/10_linux.in: Likewise.
11696 * util/grub.d/10_netbsd.in: Likewise.
11697 * util/grub.d/20_linux_xen.in: Likewise.
11698 * util/grub.d/30_os-prober.in: Likewise.
11699 * util/grub.d/10_illumos.in: Add missing quoting.
11700 * util/grub.d/10_windows.in: Likewise.
11702 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11704 Fix menu title instability bug.
11706 * grub-core/commands/menuentry.c (options): New option --id.
11707 (grub_normal_add_menu_entry): New argument id. All users updated.
11708 (grub_cmd_menuentry): Handle --id.
11709 (grub_menu_init): Accept unknown arguments.
11710 * grub-core/normal/main.c (features): Add feature_menuentry_id and
11711 feature_menuentry_options.
11712 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
11714 (get_entry_number): Match with id as well.
11715 * include/grub/menu.h (grub_menu_entry): New member id.
11716 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
11717 * util/grub.d/00_header.in: Define menuentry_id_option.
11718 * util/grub.d/10_hurd.in: Define id.
11719 * util/grub.d/10_illumos.in: Likewise.
11720 * util/grub.d/10_kfreebsd.in: Likewise.
11721 * util/grub.d/10_linux.in: Likewise.
11722 * util/grub.d/10_netbsd.in: Likewise.
11723 * util/grub.d/10_windows.in: Likewise.
11724 * util/grub.d/20_linux_xen.in: Likewise.
11725 * util/grub.d/30_os-prober.in: Likewise.
11727 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11729 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
11730 "scope" with "body".
11732 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11734 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
11735 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
11736 prot_size and prot_file_size.
11738 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11740 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
11741 All users updated. If easily=1 require raid-5/-6 to be full.
11742 (is_node_readable): Likewise.
11743 (scan_devices): Scan incomplete but readable LVs at the end.
11744 (grub_diskfilter_memberlist): Pull missing devices.
11745 (insert_array): Skip scanning until device is complete or scan is
11747 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
11749 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
11750 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
11752 2012-03-03 Matthew Garrett <mjg@redhat.com>
11753 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11755 Avoid EFI boot services when loading Linux.
11757 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
11758 avoid_efi_bootservices. All users updated.
11759 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
11760 argument avoid_efi_bootservices. All users updated.
11761 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
11762 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
11763 align, min_align, relocatable, prefered_address. All users updated.
11764 Allocate avoiding boot services if kernel is relocatable.
11765 (grub_cmd_linux): Check if kernel is relocatable.
11766 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
11767 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
11768 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
11769 avoid_efi_boot_services.
11770 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
11771 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
11772 (linux_kernel_params): Likewise.
11774 2012-03-03 Matthew Garrett <mjg@redhat.com>
11775 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11779 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
11781 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
11782 modes. Set gop_handle.
11783 (grub_video_gop_get_edid): New function.
11784 (grub_gop_get_preferred_mode): Likewise.
11785 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
11786 (grub_video_efi_gop_adapter): Set .get_edid.
11787 * include/grub/efi/edid.h: New file.
11788 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
11790 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11792 * util/grub-install.in: Load efivars unconditionally.
11794 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11796 * po/Rules-piglatin: Change suffix from .po-update-en to
11797 .po-update-en-piglatin.
11799 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11803 * po/piglatin.sed: New file.
11804 * po/en@piglatin.header: Likewise.
11805 * po/Rules-piglatin: Likewise.
11806 * po/README: Add en@piglatin to autogenerated languages.
11808 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11810 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11812 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11813 "Check" since we don't check anything.
11814 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11816 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11817 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11818 (grub_md_sha512_real): Likewise.
11820 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11822 * grub-core/commands/gptsync.c: Fix typographic quoting.
11823 * grub-core/commands/ieee1275/suspend.c: Likewise.
11824 * grub-core/commands/parttool.c: Likewise.
11825 * grub-core/commands/search_wrap.c: Likewise.
11826 * grub-core/commands/videoinfo.c: Likewise.
11827 * grub-core/gfxmenu/gui_label.c: Likewise.
11828 * grub-core/hello/hello.c: Likewise.
11829 * grub-core/kern/emu/main.c: Likewise.
11830 * grub-core/net/net.c: Likewise.
11831 * grub-core/normal/menu.c: Likewise.
11832 * grub-core/normal/menu_text.c: Likewise.
11833 * grub-core/normal/misc.c: Likewise.
11834 * util/grub-editenv.c: Likewise.
11835 * util/grub-install.in: Likewise.
11836 * util/grub-kbdcomp.in: Likewise.
11837 * util/grub-mkconfig.in: Likewise.
11838 * util/grub-mknetdir.in: Likewise.
11839 * util/grub-mkrescue.in: Likewise.
11840 * util/grub-mkstandalone.in: Likewise.
11841 * util/grub-reboot.in: Likewise.
11842 * util/grub-set-default.in: Likewise.
11843 * util/grub-setup.c: Likewise.
11844 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11846 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11848 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11849 * grub-core/commands/keystatus.c: Likewise.
11850 * grub-core/commands/loadenv.c: Likewise.
11851 * grub-core/commands/probe.c: Likewise.
11852 * grub-core/commands/regexp.c: Likewise.
11853 * grub-core/commands/true.c: Likewise.
11854 * grub-core/commands/videoinfo.c: Likewise.
11855 * grub-core/disk/cryptodisk.c: Likewise.
11856 * grub-core/disk/ldm.c: Likewise.
11857 * grub-core/disk/loopback.c: Likewise.
11858 * grub-core/disk/luks.c: Likewise.
11859 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11860 * grub-core/kern/disk.c: Likewise.
11861 * grub-core/kern/emu/hostdisk.c: Likewise.
11863 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11865 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11866 * util/grub-install.in: Add missing quote in the comment.
11868 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11870 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11871 * grub-core/commands/lsmmap.c: Likewise.
11872 * grub-core/commands/minicmd.c: Likewise.
11873 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11874 * grub-core/commands/regexp.c: Likewise.
11875 * grub-core/gdb/gdb.c: Likewise.
11876 * grub-core/term/gfxterm.c: Likewise.
11877 * util/grub-mkconfig.in: Likewise.
11878 * util/grub-mkfont.c: Likewise.
11879 * util/grub-mklayout.c: Likewise.
11880 * util/grub-mknetdir.in: Likewise.
11881 * util/grub-mkrescue.in: Likewise.
11882 * util/grub.d/30_os-prober.in: Likewise.
11884 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11886 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
11887 with "Direct color" and "Packed" with "Packed pixel".
11888 (grub_cmd_videoinfo): Simplify legend.
11890 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11892 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11893 absolutely unclear error message.
11895 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11897 * util/grub-mkstandalone.in: Remove confusing leftover print.
11899 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11901 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
11903 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
11904 (GRUB_MOD_INIT): Likewise.
11905 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
11907 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
11909 * util/grub-install.in (usage): Likewise.
11910 Spell ID in whole letters.
11911 Add missing ending dot.
11913 * util/grub-reboot.in: Fix capitalisation.
11914 * util/grub-set-default.in: Likewise.
11916 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11918 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
11919 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
11920 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
11921 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
11922 Disable -Werror for -Wdeprecated-declarations.
11923 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
11924 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
11925 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
11926 (grub_util_get_grub_dev): Make luks handling dependent on
11927 HAVE_DEVICE_MAPPER and not __linux__.
11928 (get_win32_path): Fix format security.
11929 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
11930 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
11931 Don't try grub_find_zpool_from_dir.
11932 (grub_make_system_path_relative_to_its_root) [!__linux__]:
11933 #ifdef-out paresdir.
11935 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11937 * util/grub-pe2elf.c (usage): Add missing noreturn.
11938 (write_section_data): Rename name to shname to avoid shadowing.
11939 (write_symbol_table): Rename name to symname to avoid shadowing.
11940 Fix write_reloc_section call.
11942 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11944 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
11945 to ensure that it's after the last byte of .text.
11947 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11949 * util/ieee1275/ofpath.c (my_isdigit): New function.
11950 (trailing_digits): Use my_isdigit.
11951 (strip_trailing_digits): Likewise.
11953 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11955 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
11956 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
11958 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11960 * grub-core/kern/i386/pc/startup.S: Define __start.
11962 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11964 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
11965 strip already transforms he format.
11967 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11969 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
11971 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11973 * util/grub-install.in: Add missing gettext init.
11974 * util/grub-kbdcomp.in: Likewise.
11975 * util/grub-mkconfig.in: Likewise.
11976 * util/grub-mknetdir.in: Likewise.
11977 * util/grub-mkrescue.in: Likewise.
11978 * util/grub-mkstandalone.in: Likewise.
11979 * util/grub-reboot.in: Likewise.
11980 * util/grub-set-default.in: Likewise.
11981 * util/grub.d/00_header.in: Likewise.
11982 * util/grub.d/10_hurd.in: Likewise.
11983 * util/grub.d/10_windows.in: Likewise.
11984 * util/grub.d/30_os-prober.in: Likewise.
11985 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11987 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11989 * po/Rules-swiss: Fix header comment.
11991 2012-02-29 Andreas Vogel <anvoit>
11993 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
11994 resulted in leak of arguments.
11996 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11998 * grub-core/boot/i386/pc/startup_raw.S: Use separate
11999 reed_solomon_size const definition instead of computing it since
12000 Apple assembler doesn't support the later.
12002 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12004 * gentpl.py (kernel): Rewrite Apple part.
12006 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12008 * include/grub/kernel.h (FOR_MODULES): Check module magic.
12010 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12012 * util/grub-mkimagexx.c (locate_sections): Support non-standard
12014 (load_image): Likewise.
12016 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12018 * configure.ac: Fix a typo in previous commit.
12020 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12022 Don't add -Wl,-N on Apple platform.
12024 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
12025 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
12027 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12029 * grub-core/Makefile.core.def (lzma_decompress): Use
12030 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
12032 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12034 * grub-core/genmod.sh.in: Rewrite the Apple part.
12036 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12038 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
12041 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12043 * acinclude.m4 (grub_CHECK_PIC): New test.
12044 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
12046 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12048 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
12049 to avoid the warning.
12051 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12053 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
12054 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
12055 after. All users updated.
12057 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12059 Use the common size routine in hostfs so we can read disks as well.
12061 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
12062 (grub_util_get_fd_size): ... this. Return size in bytes.
12064 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
12065 grub_util_get_fd_size.
12067 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12069 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
12070 Add blocksize retrieval.
12072 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12074 * configure.ac: Restore CFLAGS after efiemu check.
12076 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12078 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
12081 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12083 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
12085 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12087 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
12088 (grub_cmd_halt): Likewise.
12090 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12092 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
12093 for local arithmetics.
12094 Break %sp init into 2 instructions.
12095 Add 0 byte at the end.
12097 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12099 * grub-core/disk/diskfilter.c (read_segment): Initialise err
12102 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12104 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
12107 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12109 * grub-core/disk/ldm.c (make_vg): Init part.name.
12110 (grub_ldm_detect): Silence spurious warning.
12111 (grub_util_is_ldm): Likewise.
12113 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12115 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
12116 sane value to avoid a spurious warning.
12118 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12120 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
12121 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
12123 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12125 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
12126 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
12128 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12130 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
12131 hardcoding the relevant info.
12133 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12135 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
12136 missing const qualifiers.
12137 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
12139 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12141 * util/getroot.c [__APPLE__]: Add missing includes.
12142 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
12144 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12146 * util/grub-mkimage.c (generate_image): Silence spurious warning.
12148 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12150 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
12153 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12155 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
12157 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12159 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
12160 and grub_file_close call.
12162 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12164 Add LZSS Mach-O support (needed for new xnu kernelcache).
12166 * grub-core/Makefile.core.def (xnu): Add file lzss.c
12167 * grub-core/loader/lzss.c: New file.
12168 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
12169 on Mach-O open failure.
12170 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
12171 Don't free cmdsXX in uncompressedXX is set.
12172 (grub_macho_file): Init new fields.
12173 New argument is_64bit. All users updated.
12174 Handle compressed. Error out if no suitable architecture is found.
12176 (grub_macho_open): New argument is_64bit. All users updated.
12177 * grub-core/loader/macho32.c: Add defines for new fields.
12178 * grub-core/loader/macho64.c: Likewise.
12179 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
12180 (grub_macho_parse): Handle compressed.
12181 Defer actual processing if compressed.
12182 (grub_macho_cmds_iterate): Decompress if compressed. New argument
12183 "filename". All users updated.
12184 (grub_macho_size): New argument "filename". All users updated.
12185 (grub_macho_get_entry_point): Likewise.
12186 (grub_macho_load): Handle compressed.
12187 * include/grub/macho.h (grub_macho_lzss_header): New struct.
12188 (GRUB_MACHO_LZSS_OFFSET): New define.
12189 (grub_decompress_lzss): New proto.
12190 * include/grub/machoload.h (grub_macho_file): New fields to handle
12192 (grub_macho_contains_macho64): Remove proto.
12193 (grub_macho_contains_macho32): Likewise.
12194 * util/grub.d/30_os-prober.in: Use kernel cache if available.
12196 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12198 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
12200 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12204 * Makefile.am (starfield_theme_files): New var.
12205 (starfield_DATA): Use starfield_theme_files.
12206 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
12207 Add bootcheck-related files.
12208 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
12209 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
12210 and font_char_metrics.txt.
12211 * grub-core/Makefile.core.def (kernel): Update extra_dist.
12212 (setjmp): Add lib/ia64/longjmp.S.
12213 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
12214 * po/POTFILES.in: Regenerate.
12215 * po/Rules-swiss: use DISTFILES.common.extra2 and not
12216 DISTFILES.common.extra1.
12217 * util/devicemap.c: Removed.
12218 * grub-core/lib/i386/relocator_backward.S: Likewise.
12219 * util/import_gcry.py: Remove unused files. Add extra_dist for
12222 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12224 * grub-core/gettext/gettext.c (grub_mofile_open): Call
12225 grub_gettext_delete_list before changing grub_gettext_max to avoid
12226 running out of array bounds.
12228 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12230 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
12231 grub_vga_text_init/grub_vga_text_fini.
12233 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12235 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
12237 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12239 * configure.ac: Bump to 2.00~beta0.
12241 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12243 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
12244 missing initialisation.
12246 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12248 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
12250 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12252 Support v2 xnu boot arguments.
12254 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
12255 New argument fsbfreq_out.
12256 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
12257 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
12259 * grub-core/loader/machoXX.c (grub_macho_load): New argument
12261 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
12262 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
12263 (grub_xnu_boot_params): Rename to ...
12264 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
12265 (grub_xnu_boot_params_v2): New struct.
12267 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12269 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
12270 zeroing of CRC field before computing CRC.
12272 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12274 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
12275 Change order of allocations to decrease fragmentation.
12277 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12279 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
12281 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12283 Use write-combining MTRR to speed up video with buggy BIOSes.
12285 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
12286 (cpuid): New define.
12289 (mtrr_base): Likewise.
12290 (mtrr_mask): Likewise.
12291 (grub_vbe_enable_mtrr_entry): New function.
12292 (grub_vbe_enable_mtrr): Likewise.
12293 (grub_vbe_disable_mtrr): Likewise.
12294 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
12295 control off to BIOS.
12296 (grub_video_vbe_init): Fill mtrr.
12297 (grub_video_vbe_fini): Disable mtrr.
12298 (grub_video_vbe_get_info_and_fini): Likewise.
12299 (grub_video_vbe_setup): Enable mtrr.
12301 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12303 * include/grub/partition.h (grub_partition_map): Change prototype of
12304 embed to take a maximum value for nsectors.
12305 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
12306 * include/grub/fs.h (grub_fs): Likewise.
12307 * grub-core/partmap/msdos.c (embed_signatures): New array.
12308 (pc_partition_map_embed): Check for and avoid sectors matching any
12309 of the signatures in embed_signatures, up to max_nsectors.
12310 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
12311 returned sector map to max_nsectors.
12312 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
12313 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
12314 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
12315 * util/grub-setup.c (setup): Allow for the embedding area being
12316 split into multiple blocklists. Tell dest_partmap->embed the
12317 maximum number of sectors we care about.
12319 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12321 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
12322 Specify blocklist_install and reserver_first_sector for all fs.
12323 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
12326 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12328 * util/grub-install.in: Clarify strings.
12329 Fix source dir check.
12331 2012-02-27 Richard Laager <rlaager@wiktel.com>
12333 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
12334 "zfs" and "fuse.zfs" as synonyms.
12336 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12338 * configure.ac: Put platform and target_cpu substitutions back since
12339 they are used for directories.
12341 2012-02-27 Richard Laager <rlaager@wiktel.com>
12342 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12344 * util/grub.d/10_linux.in: Add ZFS-related arguments.
12345 * util/grub.d/20_linux_xen.in: Likewise.
12347 2012-02-27 Richard Laager <rlaager@wiktel.com>
12349 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
12352 2012-02-27 Richard Laager <rlaager@wiktel.com>
12354 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
12357 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12359 Don't use insecure popen in getroot.
12361 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
12362 (exec_pipe): ... here.
12363 (find_root_devices_from_poolname): Use exec_pipe.
12365 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12367 Remove platform and target_cpu replacement.
12369 * configure.ac: Remove platform and target_cpu substitutions.
12370 * tests/util/grub-shell.in: Use modinfo.
12371 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
12374 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12376 Autodetect platform in grub-install but allow override.
12378 * util/grub-install.in: Autodetect platform. Support --target and
12379 --directory. Read platform from modinfo.sh.
12381 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12383 Support btrfs multi-volume probe.
12385 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
12386 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
12387 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
12388 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
12389 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
12390 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
12391 grub_find_root_devices_from_btrfs if on btrfs.
12393 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12395 Remove any awareness of *.c util files about target.
12397 * Makefile.util.def (grub-setup): Split to ...
12398 (grub-bios-setup): ... and this.
12399 (grub-sparc64-setup): ... and this.
12400 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
12401 * docs/man/grub-setup.h2m: Split into ...
12402 * docs/man/grub-sparc64-setup.h2m: ... this.
12403 * docs/man/grub-bios-setup.h2m: ... and this.
12404 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
12405 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
12406 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
12407 (grub_target_addr_t): Remove.
12408 (grub_target_size_t): Remove.
12409 (grub_target_ssize_t): Remove.
12410 * util/grub-install.in: Use new grub-*-setup.
12411 * util/grub-mkimagexx.c (Elf_Word): New define.
12412 (Elf_Half): Likewise.
12413 (Elf_Section): Likewise.
12414 (ELF_ST_TYPE): Likewise.
12415 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
12416 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
12418 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12420 Replace grub_target_addr with more appropriate types.
12422 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
12423 grub_target_addr with grub_addr.
12424 * grub-core/commands/iorw.c (grub_cmd_read): Replace
12425 grub_target_addr with grub_port.
12426 (grub_cmd_write): Likewise.
12427 * grub-core/commands/memrw.c (grub_cmd_read): Replace
12428 grub_target_addr with grub_addr.
12429 (grub_cmd_write): Likewise.
12430 * grub-core/video/efi_uga.c (find_line_len): Likewise.
12432 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12434 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
12435 const qualifier for vendor_guid.
12437 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12439 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
12441 (efiemu_memequal): Likewise.
12442 (find_variable): Likewise.
12444 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12446 Fix missing console prototype on qemu-mips.
12448 * include/grub/mips/qemu_mips/console.h: New file.
12450 2012-02-27 Matthew Garrett <mjg@redhat.com>
12451 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12453 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
12454 * include/grub/efi/efi.h: Likewise.
12455 * include/grub/efi/api.h: Add guid for EFI-specified variables.
12456 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
12457 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
12458 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
12459 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
12460 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
12462 2012-02-27 Matthew Garrett <mjg@redhat.com>
12464 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
12466 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12468 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
12471 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12473 * configure.ac: Remove inappropriate use of program_transform_name
12474 on grubdir and bootdir but allow explicit specification of those
12477 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12479 * util/grub-mknetdir.in (grub_prefix): Removed.
12480 (subdir): Use @bootdirname@ and @grubdirname@.
12482 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12484 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
12486 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12488 * po/POTFILES.in: Regenerated.
12490 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12492 Remove improper use of program_transform_name on pkglibrootdir.
12494 * configure.ac (pkglibrootdir): Removed.
12495 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
12496 * util/grub-mkimage.c: Likewise.
12498 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12500 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
12503 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12505 * util/grub-install.in: Use file identifier if no UUID is available
12506 or user explicitly prompted for it.
12508 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
12510 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
12511 (freebsd_get_zfs): New function.
12512 (grub_freebsd_boot): Pass zfs UUID.
12513 (grub_cmd_freebsd): Set zfs UUID.
12515 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12517 * conf/Makefile.common (platformdir): Base on pkglibdir and not
12520 2012-02-27 Mike Gilbert <floppym@gentoo.org>
12522 Add configure flag to control libzfs integration.
12524 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
12526 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12528 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
12530 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
12533 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12535 Remove grub_{modname}_init and grub_{modname}_fini. They should never
12536 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
12537 be used on non-modules.
12539 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
12540 Rename to grub_boot_init.
12541 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
12542 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
12543 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
12544 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
12545 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
12546 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
12547 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
12548 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
12550 (grub_machine_init): Remove empty inits.
12551 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
12553 (grub_machine_init): Remove empty inits.
12554 * grub-core/term/arc/console.c: Remove explicit proto.
12555 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
12556 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
12557 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12558 grub_at_keyboard_fini.
12559 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
12560 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
12561 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12563 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
12564 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
12565 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12567 * grub-core/term/ieee1275/console.c: Remove explicit proto.
12568 * grub-core/term/serial.c (GRUB_MOD_INIT)
12569 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
12570 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12572 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
12573 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
12574 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12575 grub_terminfo_fini.
12576 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
12577 (GRUB_MOD_FINI): Likewise.
12578 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
12579 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
12580 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12581 grub_video_radeon_fuloong2e_fini.
12582 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
12583 [LOONGSON]: Rename to grub_video_sis315pro_init.
12584 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12585 grub_video_sis315pro_fini.
12586 * grub-core/video/sm712.c (GRUB_MOD_INIT)
12587 [LOONGSON]: Rename to grub_video_sm712_init.
12588 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12589 grub_video_sm712_fini.
12590 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
12591 (grub_at_keyboard_fini): Likewise.
12592 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
12593 Don't declare grub_{modname}_init.
12594 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
12595 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
12597 (grub_keylayouts_fini) [!EMU]: Likewise.
12598 * include/grub/serial.h (grub_serial_init) [!EMU]:
12600 (grub_serial_fini) [!EMU]: Likewise.
12601 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
12603 (grub_terminfo_fini) [!EMU]: Likewise.
12604 * include/grub/video.h (grub_font_init) [!EMU]:
12606 (grub_font_fini) [!EMU]: Likewise.
12607 (grub_gfxterm_init) [!EMU]: Likewise.
12608 (grub_gfxterm_fini) [!EMU]: Likewise.
12609 (grub_video_sm712_init) [!EMU]: Likewise.
12610 (grub_video_sm712_fini) [!EMU]: Likewise.
12611 (grub_video_sis315pro_init) [!EMU]: Likewise.
12612 (grub_video_sis315pro_fini) [!EMU]: Likewise.
12613 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
12614 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
12616 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12618 Make nand a prefix for nand devices.
12620 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
12622 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12624 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
12625 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
12627 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12629 * include/grub/env.h (grub_env_find): Remove prototype.
12630 * grub-core/kern/env.c (grub_env_find): Make static.
12631 (grub_env_set): Remove useless set.
12633 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12635 * grub-core/kern/i386/realmode.S: Remove useless align.
12637 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12639 * include/grub/dl.h (grub_dl_load_file): Don't export.
12641 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12643 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
12646 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12648 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
12650 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
12651 not reloading whole superblock but only the part which is really needed.
12652 Remove useless grub_errors.
12653 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
12656 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12658 Don't export grub_get_rtc.
12660 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
12661 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
12663 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12665 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
12667 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12669 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
12670 argument since it can be deduced from diskfilter. All users updated.
12672 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12676 * include/grub/list.h (grub_prio_list): Removed.
12677 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
12678 GRUB_COMMAND_PRIO_MASK.
12679 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
12680 GRUB_COMMAND_FLAG_ACTIVE.
12681 (grub_prio_list_insert): Removed.
12682 (grub_prio_list_remove): Likewise.
12683 (GRUB_AS_PRIO_LIST): Likewise.
12684 (GRUB_AS_PRIO_LIST_P): Likewise.
12685 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
12686 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
12687 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
12688 * grub-core/kern/command.c (grub_register_command_prio): Inline
12689 the prio_list code.
12690 (grub_unregister_command): Likewise.
12692 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12694 Fix interrupt mixup from previous commit.
12696 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
12697 (grub_realidt): New var.
12698 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
12700 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
12702 (grub_relocator16_boot): Set grub_relocator16_idt.
12703 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
12704 (LOCAL(realidt)): ... this.
12705 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
12706 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
12707 (grub_realidt): New variable.
12709 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12711 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
12712 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
12713 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
12714 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
12716 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
12717 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
12718 * po/POTFILES.in: Regenerate.
12720 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12722 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
12725 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12727 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
12729 (add_length): Likewise.
12731 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12732 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
12734 GDB serial and backtrace support.
12736 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
12737 (prot_to_real): Likewise.
12738 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
12739 * grub-core/Makefile.core.def (backtrace): New module.
12741 * grub-core/gdb/cstub.c: New file.
12742 * grub-core/gdb/gdb.c: Likewise.
12743 * grub-core/gdb/i386/idt.c: Likewise.
12744 * grub-core/gdb/i386/machdep.S: Likewise.
12745 * grub-core/gdb/i386/signal.c: Likewise.
12746 * grub-core/lib/i386/backtrace.c: Likewise.
12747 * grub-core/lib/backtrace.c: Likewise.
12748 * include/grub/backtrace.h: Likewise.
12749 * include/grub/gdb.h: Likewise.
12750 * include/grub/i386/gdb.h: Likewise.
12752 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12754 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
12756 (add_length): Likewise.
12757 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
12758 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
12760 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
12761 __argp_get_display_len.
12763 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12765 $"..." support in scripts.
12767 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
12768 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
12769 * grub-core/script/yylex.l: Likewise.
12770 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
12773 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12775 * gentpl.py: Remove obsolete pkglib_DATA handling.
12777 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12779 Don't transform PACKAGE_TARNAME following a discussion on autoconf
12782 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
12783 * util/grub-kbdcomp.in: Likewise.
12784 * util/grub-mkconfig.in: Likewise.
12785 * util/grub-mkconfig_lib.in: Likewise.
12786 * util/grub-mknetdir.in: Likewise.
12787 * util/grub-mkrescue.in: Likewise.
12788 * util/grub-mkstandalone.in: Likewise.
12789 * util/grub-reboot.in: Likewise.
12790 * util/grub-set-default.in: Likewise.
12791 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12793 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12795 Remove GRUB_PREFIX.
12797 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
12798 * util/grub.d/00_header.in: Compute prefix in the only place it's still
12799 used for backward compatibility.
12801 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12803 Add new all_video module.
12805 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12806 * grub-core/Makefile.core.def (all_video): New module.
12807 * grub-core/genmoddep.awk: Generate dependency of all_video from
12809 * grub-core/lib/fake_module.c: New file.
12810 * grub-core/normal/main.c (features): Add feature_all_video_module.
12811 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12812 don't do explicit search again.
12813 insmod all_video in load_video if available.
12815 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12817 Another round of string clarification and adding TRANSLATORS comments.
12819 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12821 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12823 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12825 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12827 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12828 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12830 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12832 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12833 trailing newline implicitly. All users updated.
12835 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12837 Implement serial on IEEE1275 and EFI.
12839 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12840 on emu. Mention arc and emu as the only platforms without serial
12842 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12843 ieee1275 platforms.
12844 * grub-core/term/efi/serial.c: New file.
12845 * grub-core/term/ieee1275/serial.c: Likewise.
12846 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12847 specification if no ns8250 driver is available.
12848 (grub_cmd_serial): Likewise.
12849 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12850 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12851 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12852 (grub_efi_parity_type_t): New type.
12853 (grub_efi_stop_bits_t): Likewise.
12854 (grub_efi_serial_io_interface): New struct.
12855 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12856 available for all interfaces.
12857 Add EFI and IEEE1275 fields.
12858 (grub_ofserial_init): New proto.
12859 (grub_efiserial_init): Likeiwse.
12860 * util/grub.d/00_header.in: Don't check for the presence of serial
12863 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12865 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12866 name as if it was an alias.
12868 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12870 * grub-core/commands/lsacpi.c (options): Fix typo.
12872 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12874 Convert grub-emu to argp.
12876 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12878 * util/argp_common.c: Rename to ...
12879 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
12880 Add missing includes.
12881 * grub-core/kern/emu/main.c: Convert to argp.
12882 * po/POTFILES.in: Regenerate.
12883 * util/grub-install.in (usage): Make first letter lowcase in messages
12885 * util/grub-setup.c (options): Likewise.
12887 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12889 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
12890 Put back accidently commented-out code.
12892 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12894 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
12895 loop check using Brent algorithm.
12896 (grub_hfsplus_btree_search): Likewise.
12898 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12900 * util/grub-install.in: Fix usage of wrong device for PreP install.
12902 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12904 * conf/Makefile.common (CFLAGS_GNULIB): Add
12905 -Wno-unsafe-loop-optimizations.
12906 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
12908 * grub-core/commands/legacycfg.c: Add pragma to skip
12909 -Wunsafe-loop-optimizations.
12910 (check_password_md5_real): Fix loop counter type.
12911 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
12913 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
12914 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
12916 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
12917 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
12918 * grub-core/net/net.c (grub_net_route_address): Add safety loop
12920 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
12921 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
12922 avoid possible infinite loops.
12923 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
12924 and -Wunsafe-loop-optimizations.
12925 * grub-core/script/yylex.l: Likewise.
12926 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
12927 (print_glyphs): Avoid infinite loops.
12928 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
12930 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
12932 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
12933 to avoid infinite loop.
12934 (disp_acpi_rsdt_table): Likewise.
12936 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12938 * grub-core/font/font.c (grub_font_load): Add support for default
12939 path for fonts ($prefix/fonts).
12940 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
12941 for checking if string is a path.
12942 * grub-core/normal/main.c (features): Add feature_default_font_path.
12943 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
12944 * util/grub.d/00_header.in: Use default directory if possible.
12945 * util/grub-install.in: Install unicode.pf2.
12947 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12949 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
12950 * po/Rules-swiss: New file.
12951 * po/swiss.sed: Likewise.
12953 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12955 * grub-core/fs/btrfs.c (find_device): Fix typos.
12956 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
12957 * util/grub-mkrelpath.c (argp_parser): Likewise.
12958 Reported by: Yuri Chornoivan.
12960 2012-02-23 Dalet Omega <daletomega@gmail.com>
12962 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
12963 for usual informative messages.
12965 2012-02-23 Dalet Omega <daletomega@gmail.com>
12969 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
12970 * conf/Makefile.common: Define starfielddir.
12971 * configure.ac: Configure starfield.
12972 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
12973 * themes/starfield/README: Likewise.
12974 * themes/starfield/blob_w.png: Likewise.
12975 * themes/starfield/boot_menu_c.png: Likewise.
12976 * themes/starfield/boot_menu_e.png: Likewise.
12977 * themes/starfield/boot_menu_n.png: Likewise.
12978 * themes/starfield/boot_menu_ne.png: Likewise.
12979 * themes/starfield/boot_menu_nw.png: Likewise.
12980 * themes/starfield/boot_menu_s.png: Likewise.
12981 * themes/starfield/boot_menu_se.png: Likewise.
12982 * themes/starfield/boot_menu_sw.png: Likewise.
12983 * themes/starfield/boot_menu_w.png: Likewise.
12984 * themes/starfield/slider_c.png: Likewise.
12985 * themes/starfield/slider_n.png: Likewise.
12986 * themes/starfield/slider_s.png: Likewise.
12987 * themes/starfield/src/blob_nw.xcf: Likewise.
12988 * themes/starfield/src/bootmenu/: Likewise.
12989 * themes/starfield/src/bootmenu/center.xcf: Likewise.
12990 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
12991 * themes/starfield/src/bootmenu/side.xcf: Likewise.
12992 * themes/starfield/src/slider_c.xcf: Likewise.
12993 * themes/starfield/src/slider_n.xcf: Likewise.
12994 * themes/starfield/src/slider_s.xcf: Likewise.
12995 * themes/starfield/src/terminalbox/: Likewise.
12996 * themes/starfield/src/terminalbox/center.xcf: Likewise.
12997 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
12998 * themes/starfield/src/terminalbox/side.xcf: Likewise.
12999 * themes/starfield/starfield.png: Likewise.
13000 * themes/starfield/terminal_box_c.png: Likewise.
13001 * themes/starfield/terminal_box_e.png: Likewise.
13002 * themes/starfield/terminal_box_n.png: Likewise.
13003 * themes/starfield/terminal_box_ne.png: Likewise.
13004 * themes/starfield/terminal_box_nw.png: Likewise.
13005 * themes/starfield/terminal_box_s.png: Likewise.
13006 * themes/starfield/terminal_box_se.png: Likewise.
13007 * themes/starfield/terminal_box_sw.png: Likewise.
13008 * themes/starfield/terminal_box_w.png: Likewise.
13009 * themes/starfield/theme.txt: Likewise.
13011 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
13013 * util/grub.d/00_header.in: Add missing export theme.
13015 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13017 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
13019 Reported by: Eren D.
13021 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13023 * conf/Makefile.common (grubdatadir): Removed.
13024 (Makefile.am): Move eveything grubdata to pkgdata.
13026 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13028 * grub-core/commands/acpihalt.c (get_sleep_type):
13029 Remove unused variable.
13031 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13033 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
13034 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
13035 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
13036 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
13037 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
13038 i18n with gettext no-op.
13039 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
13040 GRUB_ACPI_OPCODE_STRING_CONST.
13041 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
13042 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
13044 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13046 * po/POTFILES.in: Regenerate.
13048 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13050 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
13051 -Wno-error=missing-noreturn.
13053 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13055 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
13056 condition to avoid possibly infinite loops.
13057 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
13058 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
13060 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13062 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
13063 condition to avoid possibly infinite loops.
13065 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13067 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
13070 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13072 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
13074 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13076 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
13078 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13080 * util/bin2h.c (usage): Add missing attribute noreturn.
13082 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13084 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
13085 if the size isn't divisible by 512.
13087 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13089 Make list_push and list_remove functions rather than inline functions
13090 to decrease size and avoid aliasing violations.
13092 * include/grub/list.h (grub_list_push): Move to ...
13093 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
13094 * include/grub/list.h (grub_list_remove): Move to ...
13095 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
13097 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13099 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
13100 and -Wunused-result.
13102 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13104 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
13105 Reported by: Seth Goldberg
13107 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13109 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
13111 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13113 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
13114 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
13116 * docs/grub.texi (Simple configuration): Document
13117 GRUB_CMDLINE_GNUMACH.
13119 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13121 * conf/Makefile.common (platform_SCRIPTS): New variable.
13122 (platform_PROGRAMS): Likewise.
13123 * gentpl.py: Mark *,module and *.image for install.
13124 * grub-core/gdb_grub.in: Add a notice of expected environment.
13125 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
13126 (gmodule.pl): Likewise.
13128 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13130 Replace grub_checkkey with grub_getkey_noblock.
13132 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
13133 (grub_getkey_noblock): ... this. All users updated.
13135 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13137 * grub-core/kern/emu/console.c: Move to ...
13138 * grub-core/term/emu/console.c: ...here.
13139 (grub_ncurses_getkey): Fix return value if no key is detected.
13141 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13143 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
13144 (grub_unit_test_fini): Likewise.
13145 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
13147 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13149 * include/grub/test.h (GRUB_UNIT_TEST)
13151 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13153 * grub-core/script/execute.c (grub_script_break): Clarify logic.
13154 Better error handling.
13155 (grub_script_return): Likewise.
13156 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13158 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13160 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
13161 rimplicit redifinition.
13163 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13165 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
13168 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13170 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
13171 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
13174 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13176 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
13177 as GRUB_ERR_BUG. Don't malloc if no device is available.
13179 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13181 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
13182 Mark calling with invalid term as GRUB_ERR_BUG.
13184 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13186 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
13187 packets rather than raising an error.
13189 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13191 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
13194 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13196 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
13197 diagnostic to dprintf.
13198 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13200 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13202 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
13205 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13207 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
13208 (grub_ntfs_iterate_dir): Likewise.
13210 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13212 Efiemu stylistic fixes and gettext.
13214 * grub-core/efiemu/i386/loadcore32.c
13215 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
13216 * grub-core/efiemu/i386/loadcore64.c
13217 (grub_arch_efiemu_relocate_symbols64): Likewise.
13218 * grub-core/efiemu/i386/pc/cfgtables.c
13219 (grub_machine_efiemu_init_tables): Likewise.
13220 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
13221 (grub_efiemu_loadcore_initXX): Add a filename argument.
13223 Improved error message.
13224 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
13225 Add a filename argument.
13227 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
13228 Reclassify double relocation as GRUB_ERR_BUG.
13230 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13232 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
13235 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13237 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
13240 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13242 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
13244 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13246 Improve string. Gettextize.
13248 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13250 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
13252 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
13254 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13256 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
13257 [GRUB_UTIL]: New function.
13258 (insert_array) [GRUB_UTIL]: Store partmaps.
13259 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
13261 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
13262 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
13263 (probe_abstraction): Print diskfilter and not raid.
13264 Reported by: Lennart Sorensen
13266 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13268 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
13269 * util/grub-mkimagexx.c (MASK3): New define.
13270 (add_value_to_slot_20b): Use MASK3.
13271 (add_value_to_slot_21): Likewise.
13272 (relocate_addresses): Fix format specification.
13273 (load_image): Explicitly init symtab_section.
13275 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13277 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
13278 (grub_util_biosdisk_get_grub_dev): Fix format specification.
13280 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13282 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
13284 Reported by: Lennart Sorensen
13286 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13288 * gentpl.py: Add missing license header.
13289 * docs/grub.texi: Update copyright year.
13291 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
13293 Source grub-mkconfig_lib from the build directory at build time.
13294 Suggested by: Vladimir Serbinenko.
13296 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
13297 * util/grub-install.in: Define pkgdatadir if not already set, and source
13298 grub-mkconfig_lib from there.
13299 * util/grub-kbdcomp.in: Likewise.
13300 * util/grub-mkconfig.in: Likewise.
13301 * util/grub-mknetdir.in: Likewise.
13302 * util/grub-mkrescue.in: Likewise.
13303 * util/grub-mkstandalone.in: Likewise.
13304 * util/grub-reboot.in: Likewise.
13305 * util/grub-set-default.in: Likewise.
13306 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13308 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13310 Increase warning level.
13312 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
13313 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
13314 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
13315 (TARGET_CFLAGS): Likewise.
13316 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
13317 * grub-core/Makefile.core.def (decompressor_xz): Add
13318 -Wno-unreachable-code.
13319 (normal): Add -Wno-redundant-decls.
13320 (xzio): Add -Wno-unreachable-code.
13321 (lzopio): Add -Wno-redundant-decls -Wno-error.
13322 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
13323 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
13324 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
13325 * grub-core/kern/dl.c: Add exception to -Wcast-align.
13326 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
13327 * grub-core/kern/i386/coreboot/init.c: Add exception to
13328 -Wsuggest-attribute=noreturn.
13329 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
13330 * grub-core/kern/ia64/dl_helper.c: Likewise.
13331 * grub-core/kern/mips/dl.c: Likewise.
13332 * grub-core/kern/sparc64/dl.c: Likewise.
13333 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
13334 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
13335 (memcmp): Likewise.
13336 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
13337 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
13338 * grub-core/loader/mips/linux.c: Likewise.
13339 * grub-core/loader/multiboot_elfxx.c: Likewise.
13340 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
13341 * grub-core/video/sm712.c: Add exception to -Wcast-align.
13342 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
13343 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
13345 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
13346 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
13349 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13351 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
13354 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13356 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
13357 Avoid improper use of strings.
13358 (grub_cmd_legacy_initrdnounzip): Likewise.
13360 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13362 * include/grub/emu/misc.h (grub_util_warn): Add missing format
13364 (grub_util_info): Likewise.
13365 (grub_util_error): Likewise.
13367 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13369 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
13370 * util/grub-fstest.c (fstest): Likewise.
13372 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13374 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
13375 (grub_md_sha512_real): Likewise.
13376 (grub_util_get_geli_uuid): Likewise.
13377 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
13378 (grub_util_biosdisk_open): Fix format specification.
13379 Respect format security.
13380 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
13381 (xrealloc): Likewise.
13382 (xasprintf): Likewise.
13384 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13386 * util/import_gcry.py: Include grub/crypto.h in init.c.
13388 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13390 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
13391 (generate_image): Make prefix a const char *.
13392 Fix format specifications. Respect format security.
13393 Avoid void * arithmetics.
13395 (argp_parser): Remove unused variable. Respect format security.
13396 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
13397 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
13398 (count_funcs): Remove unused variable.
13399 (relocate_addresses): Fix format specification.
13400 Disable x86-64 with elf32. Remove unused variables.
13401 (add_fixup_entry): Avoid shadowing.
13402 (make_reloc_section): Fix format specification.
13404 (locate_sections): Fix format specifications.
13405 (load_image): Avoid shadowing.
13407 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13409 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
13410 Fix format specifications. Respect format security.
13411 Don't translate already translated grub_errmsg.
13412 (argp_parser): Remove unused variable
13414 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13416 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
13418 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13420 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
13421 (main): Likewise. Use xmalloc. Respect format security.
13423 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13425 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
13427 (argp_parser): Remove unused variable.
13429 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13431 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
13432 (add_pixel): Make static.
13433 (add_font): Likewise.
13434 (write_string_section): Make name and str a const char *.
13435 (write_be16_section): Make name a const char *.
13436 (print_glyphs): Make static.
13437 (write_font_ascii_bitmap): Likewise.
13438 (write_font_width_spec): Likewise.
13439 (write_font_pf2): Likewise.
13440 (argp_parser): Remove unused variable.
13441 Respect format security.
13442 (main): Avoid shadowing. Respect format security.
13444 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13446 * util/grub-editenv.c (argp_parser): Make static.
13447 (create_envblk_file): Use xmalloc.
13448 (open_envblk_file): Likewise.
13449 Resepect format security.
13450 (set_variables): Respect format security.
13452 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13454 * util/getroot.c (grub_find_device): Respect format security.
13455 (get_mdadm_uuid): Remove unused variable.
13456 (grub_util_pull_device): Dont call gettext on already translated
13458 (find_system_device): Remove unused variable.
13459 (grub_util_get_grub_dev): Likewise.
13460 (grub_make_system_path_relative_to_its_root): Respect format security.
13462 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13464 * util/grub-fstest.c (execute_command): Make first argument
13466 (read_file): Avoid shadowing.
13467 Reuse underlying error message if device open fails.
13468 (cmd_cmp): Respect format security.
13469 (root): Make const char *.
13470 (fstest): Remove args argument and use global copy.
13471 Respect format security.
13472 (argp_parser): Make static.
13473 (main): Make default_root const char *.
13475 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13477 * util/grub-mount.c (root): Make const char *.
13478 (execute_command): Make first argument a const char *.
13479 (fuse_init): Respect format security.
13480 (argp_parser): Make static. Remove unused variable.
13481 (main): Make default_root a const char *.
13482 Respect format security.
13484 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13486 * util/grub-probe.c (probe): Don't call gettext on already translated
13488 Remove unused variables.
13489 (argp_parser): Remove unused variable.
13491 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13493 * util/grub-script-check.c (argp_parser): Remove unused variable.
13494 (main): Rename read to curread to avoid shadowing.
13496 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13498 * util/misc.c (grub_util_write_image_at): Fix format specification.
13499 (grub_util_write_image): Likewise.
13500 (grub_script_execute_argument_to_string): Removed (unused).
13501 (grub_script_execute_menuentry): Likewise.
13502 (grub_putchar): Likewise.
13504 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13506 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
13507 (FUNCTION) [GRUB_UTIL]: Likewise.
13508 (VARIABLE) [GRUB_UTIL]: Likewise.
13510 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13512 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
13513 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
13515 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13517 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
13520 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13522 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
13523 (LzmaEnc_SaveState): Removed (unused).
13524 (LzmaEnc_RestoreState): Likewise.
13525 (LzmaEnc_InitPriceTables): Made static.
13526 (LzmaEnc_Construct): Likewise.
13527 (LzmaEnc_FreeLits): Likewise.
13528 (LzmaEnc_Destruct): Likewise.
13529 (LzmaEnc_Init): Likewise.
13530 (LzmaEnc_InitPrices): Likewise.
13531 (LzmaEnc_Finish): Likewise.
13532 (LzmaEnc_PrepareForLzma2): Removed (unused).
13533 (LzmaEnc_MemPrepare): Likewise.
13534 (LzmaEnc_GetNumAvailableBytes): Likewise.
13535 (LzmaEnc_GetCurBuf): Likewise.
13536 (LzmaEnc_CodeOneMemBlock): Likewise.
13538 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13540 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
13541 (grub_util_ldm_embed): Likewise.
13543 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13545 * util/grub-editenv.c (print_var): Rename name to varname to
13547 (main): Rename index to curindex to avoid shadowing.
13548 Make filename a const char *.
13550 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13552 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
13553 to arg_getline to avoid shadowing.
13555 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13557 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
13558 disk_ to avoid shadowing.
13560 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13562 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
13563 curindex to avoid shadowing.
13565 (MatchFinder_GetNumAvailableBytes): Make static.
13567 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13569 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
13572 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13574 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
13575 argument from encrypt to do_encrypt to avoid shadowing.
13577 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13579 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
13580 incorrect nesting of #if's.
13582 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13584 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
13585 checks which are always false on some platforms.
13586 (grub_cmd_lsacpi): Likewise.
13587 * grub-core/kern/misc.c (grub_strtoul): Likewise.
13588 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
13591 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13593 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
13594 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
13596 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13598 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
13599 re_dfa_t to avoid breaking alignment invariants.
13600 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
13601 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
13603 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13605 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
13606 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
13608 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13610 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
13613 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13615 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
13616 conserve alignment invariants.
13617 (grub_ehci_ehcc_read16): Likewise.
13618 (grub_ehci_oper_read32): Likewise.
13619 (grub_ehci_oper_write32): Likewise.
13620 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
13621 Conserve alignment invariants.
13623 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13625 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
13626 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
13629 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13631 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
13632 Remove unused variable.
13634 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13636 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
13639 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13641 * include/grub/net.h: Remove double declarations.
13643 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13645 Remove "payload" command in ia64 Linux loader since I couldn't
13646 find any evidence of it being used for anything.
13647 Replace "relocate" command with an environment variable
13649 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
13651 (ia64_boot_payload): Removed.
13652 (last_payload): Likewise.
13653 (RELOCATE_OFF): Likewise.
13654 (RELOCATE_ON): Likewise.
13655 (RELOCATE_FORCE): Likewise.
13656 (relocate): Likewise.
13657 (free_pages): Don't free payloads.
13658 (grub_load_elf64): Use common error messages.
13659 Use "linux_relocate" variable.
13660 Increase the space after boot_params.
13661 (grub_cmd_payload): Removed.
13662 (grub_cmd_relocate): Likewise.
13663 (grub_cmd_fpswa): Improve messages.
13664 (cmd_payload): Removed.
13665 (cmd_relocate): Likewise.
13666 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
13667 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
13669 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13671 Convert UHCI to DMA framework.
13673 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
13674 (grub_uhci_pci_iter): Fill new members
13675 (grub_alloc_td): Use P2V and V2P functions.
13676 (grub_free_queue): Likewise.
13677 (grub_alloc_qh): Likewise.
13678 (grub_uhci_setup_transfer): Likewise.
13679 (grub_uhci_check_transfer): Likewise.
13681 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13683 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
13684 Remove assignment in if while on it.
13686 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13688 * util/grub-mkstandalone.in: Fix modules directory.
13690 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13692 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
13694 (argp_parser): Accept "auto" as compression specification.
13696 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13698 Fix `help' with unloaded modules.
13700 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
13701 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
13702 (grub_dyncmd_dispatcher): Small stylistic fix.
13703 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
13704 explicit help is requested.
13706 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13708 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
13709 Explicitly init restart while on it.
13711 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13713 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
13716 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13718 * util/grub-mknetdir.in: Use . rather than source for POSIX
13721 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13723 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
13725 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13727 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
13730 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13732 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
13735 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13737 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
13739 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13741 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
13742 iteration of partitions.
13744 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13746 Improve gettext support. Stylistic fixes and error handling fixes while
13749 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13751 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
13752 part. Instead setup the correct stack in RM.
13753 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
13755 * include/grub/i386/relocator_private.h: New file.
13757 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13759 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
13761 * util/grub-fstest.c (options): Add missing DEVICE part.
13763 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13765 Clarify and unify messages.
13767 * grub-core/commands/hashsum.c (options): Unify messages.
13768 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
13769 literal-only message as translatable.
13770 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
13771 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
13772 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
13774 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
13775 key, not the key used to unlock. Clarify what it's used for.
13776 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
13777 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
13778 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
13779 * util/grub-editenv.c (options): Unify "verbose" message.
13780 * util/grub-fstest.c (read_file): Unify error message.
13781 (fstest): Add quotes around commands.
13782 (options): Unify "verbose" message.
13783 * util/grub-install.in: Add quotes around variable name.
13784 * util/grub-kbdcomp.in: Unify error message.
13785 * util/grub-mkfont.c (main): Likewise.
13786 * util/grub-mkrescue.in: Likewise.
13787 * util/grub-mklayout.c (options): Unify "verbose" message.
13788 * util/grub-mkstandalone.in: Unify help and verbose messages.
13789 * util/grub-mount.c (options): Unify "verbose" message.
13790 * util/grub-probe.c (options): Likewise.
13791 * util/grub-script-check.c (options): Likewise.
13792 * util/grub-setup.c (setup): Unify no-terminator message.
13793 (options): Use DEVICE and not DEV.
13794 Unify "verbose" message.
13795 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
13797 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13799 Improve and unify messages.
13801 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
13802 name. All users updated.
13803 Print filename in error.
13804 (read_device_map): Print filename in error.
13805 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13806 (grub_util_get_os_disk): Likewise.
13807 (grub_util_biosdisk_get_grub_dev): Likewise.
13808 (grub_util_check_block_device): Likewise.
13809 (grub_util_check_char_device): Likewise.
13810 (grub_make_system_path_relative_to_its_root): Likewise.
13811 * util/grub-editenv.c (create_envblk_file): Likewise.
13812 (open_envblk_file): Likewise.
13813 (write_envblk): Likewise.
13814 * util/grub-fstest.c (cmd_cp): Likewise.
13815 (cmd_cat): Likewise.
13816 (cmd_cmp): Likewise.
13817 * util/grub-menulst2cfg.c (main): Likewise.
13818 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13819 (write_font_width_spec): Likewise.
13820 (write_font_pf2): Likewise.
13821 * util/grub-mkimage.c (generate_image): New argument outname.
13823 Remove unreacheable message.
13824 (options): Unify messages.
13825 (help_filter): Likewise.
13826 * util/grub-mklayout.c (usage): Removed (unused).
13827 (main): Print filename in error.
13828 * util/grub-mkrescue.in: Fix wrong quoting.
13829 * util/grub-setup.c (setup): Print filename in error.
13830 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13831 (check_sas): Likewise.
13832 * util/misc.c (grub_util_get_fp_size): Removed.
13833 (grub_util_get_image_size): Print filename in error.
13834 (grub_util_read_at): Removed.
13835 (grub_util_read_image): Print filename in error.
13836 (grub_util_load_image): Likewise.
13837 (grub_util_write_image_at): New argument filename. All users updated.
13838 Print filename in error.
13839 (grub_util_write_image): New argument filename. All users updated.
13840 Print filename in error.
13841 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13842 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13844 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13846 * grub-core/Makefile.core.def (pxechain): New module.
13847 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13848 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13850 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13851 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13853 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13855 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13856 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13857 * include/grub/err.h (grub_error_saved): New struct.
13858 (grub_errmsg): Make array size explicit.
13859 * include/grub/misc.h (grub_error_save): New function.
13860 (grub_error_load): Likewise.
13861 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13862 (grub_error_push): Update `errno' member name.
13863 (grub_error_pop): Likewise
13864 * grub-core/net/tftp.c (tftp_data): New member save_err.
13865 (tftp_receive): Save error.
13866 (tftp_open): Restore error.
13868 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13870 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13871 to real mode down to execute A20-related code in protected mode as
13874 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13876 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13877 NULL when the argument `level' has an unexpected value.
13879 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13881 Move platform-dependent files from $prefix to $prefix/$platform.
13883 * config.h.in (GRUB_TARGET_CPU): New definition.
13884 (GRUB_PLATFORM): Likewise.
13885 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
13886 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
13887 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13888 * grub-core/kern/dl.c (grub_dl_load): Likewise.
13889 * grub-core/normal/autofs.c (read_fs_list): Likewise.
13890 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
13891 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
13892 * grub-core/normal/term.c (read_terminal_list): Likewise.
13893 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
13895 (grub_gettext_init_ext): Likewise.
13896 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
13898 * util/grub-install.in: Update directories.
13899 * util/grub-mknetdir.in: Likewise.
13900 * util/grub-mkrescue.in: Likewise.
13902 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13904 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
13905 grub_error framework. All users updated.
13907 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13909 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
13910 lists (by always binsearching), improve caching (cache strings
13911 used for binsearch, not only results), improve
13912 maintainability (by using more structured binary search) and correct
13915 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13917 * grub-core/script/execute.c (grub_script_return): Fix warning.
13919 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13921 * grub-core/script/execute.c (grub_script_return): Fix potential
13923 Reported by: Jim Meyering.
13925 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13927 * po/POTFILES.in: Regenerate.
13928 * util/grub-install.in: Gettextize the strings missed in first pass.
13930 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13932 * Makefile.util.def (grub-mkdevicemap): Removed.
13933 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
13934 * include/grub/util/deviceiter.h: Removed.
13935 * util/deviceiter.c: Likewise.
13936 * util/getroot.c (grub_util_get_os_disk): New function.
13937 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
13938 replacement for EFI.
13939 * util/grub-mkdevicemap.c: Removed.
13940 * util/grub-probe.c (probe): Handle PRINT_DISK.
13941 (argp_parser): Handle -t disk.
13943 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13945 * util/grub-mkfont.c: Migrate to argp.
13946 * util/grub-mklayout.c: Likewise.
13947 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13948 * util/grub-mkrelpath.c: Likewise.
13949 * util/grub-probe.c: Likewise.
13950 * util/grub-script-check.c: Likewise.
13952 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13954 * util/grub-reboot.in: Add missing datarootdir.
13955 Add missing newline.
13956 * util/grub-set-default.in: Add missing datarootdir.
13957 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
13958 * util/grub-mkrescue.in: Likewise.
13960 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13962 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
13964 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13966 * util/grub-kbdcomp.in: Add decent help and gettextize.
13967 * docs/man/grub-kbdcomp.h2m: New file.
13969 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13971 Migrate grub-mkimage.c to argp.
13973 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
13974 (grub-setup): Likewise.
13975 * util/grub-setup.c (print_version): Move to ...
13976 * util/argp_common.c (print_version): ... here.
13977 * util/grub-setup.c (argp_program_version_hook): Move to ...
13978 * util/argp_common.c (argp_program_version_hook): ... here.
13979 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
13981 * util/grub-mkimage.c (main): Migrate to argp.
13983 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13985 * util/grub-mkrescue.in: Use same message as
13986 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
13987 for better translations.
13989 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13991 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
13992 options with generic grub-mkrescue.in with the goal of future
13995 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13997 * grub-core/kern/mm.c: Add missing include of i18n.h
13998 * grub-core/lib/relocator.c: Likewise.
14000 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14002 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
14004 (allocate_pages): Check return value.
14005 Replace fatal with error.
14006 (grub_linux_boot): Replace printf with dprintf.
14007 Check find_mmap_size return value.
14008 Replace fatal with error.
14009 Don't call grub_machine_fini.
14010 (grub_load_elf64): Replace printf with dprintf.
14011 (grub_cmd_linux): Likewise.
14012 (grub_cmd_initrd): Likewise.
14013 (grub_cmd_payload): Likewise.
14015 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14017 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
14019 * grub-core/video/radeon_fuloong2e.c
14020 (grub_video_radeon_fuloong2e_setup): Likewise.
14021 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
14022 * grub-core/video/video.c (grub_video_set_mode): Don't override
14023 standard out of memory message.
14025 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
14027 NetBSD disk wedge support.
14029 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
14030 [__NetBSD__]: Handle NetBSD disk wedges.
14031 * util/getroot.c (convert_system_partition_to_system_disk)
14032 [__NetBSD__]: Likewise.
14034 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
14036 * util/grub-mkconfig.in: Use umask rather than chmod to create
14037 grub.cfg.new to avoid insecure grub.cfg.
14039 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14041 * grub-core/commands/ls.c: Gettextize.
14042 * grub-core/commands/setpci.c: Likewise.
14043 * grub-core/commands/videotest.c: Likewise.
14044 * grub-core/disk/geli.c: Likewise.
14045 * grub-core/kern/mm.c: Likewise.
14046 * grub-core/lib/relocator.c: Likewise.
14047 * grub-core/loader/efi/appleloader.c: Likewise.
14048 * grub-core/loader/i386/xnu.c: Likewise.
14049 * grub-core/loader/ia64/efi/linux.c: Likewise.
14050 * grub-core/loader/xnu.c: Likewise.
14051 * grub-core/net/dns.c: Likewise.
14052 * grub-core/net/net.c: Likewise.
14053 * grub-core/script/lexer.c: Likewise.
14054 * grub-core/script/parser.y: Likewise.
14055 * grub-core/script/yylex.l: Likewise.
14056 * util/getroot.c: Likewise.
14057 * util/grub-setup.c: Likewise.
14059 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14061 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
14064 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14066 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
14068 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14070 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
14072 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
14073 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
14075 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14077 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
14078 * util/grub-install.in: Gettextize.
14079 * util/grub-mkconfig.in: Likewise.
14080 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
14082 (grub_warn): Gettextize.
14083 * util/grub-mknetdir.in: Gettextize.
14084 * util/grub-mkrescue.in: Likewise.
14085 * util/grub-mkstandalone.in: Likewise.
14086 * util/grub-reboot.in: Likewise.
14087 * util/grub-set-default.in: Likewise.
14088 * util/grub.d/00_header.in: Likewise.
14089 * util/grub.d/10_hurd.in: Likewise.
14090 * util/grub.d/10_kfreebsd.in: Likewise.
14091 * util/grub.d/10_linux.in: Likewise.
14092 * util/grub.d/10_netbsd.in: Likewise.
14093 * util/grub.d/10_windows.in: Likewise.
14094 * util/grub.d/20_linux_xen.in: Likewise.
14095 * util/grub.d/30_os-prober.in: Likewise.
14096 * po/POTFILES-shell.in: Regenerate.
14098 2012-02-03 Richard Laager <rlaager@wiktel.com>
14100 * util/grub-mkimage.c (main): Fix format-security warning.
14101 * util/grub-mkrelpath.c (main): Likewise.
14102 * util/grub-probe.c (main): Likewise.
14104 2012-02-03 Richard Laager <rlaager@wiktel.com>
14106 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
14108 Put back lost PRINT_DRIVE.
14110 2012-02-03 Richard Laager <rlaager@wiktel.com>
14112 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
14113 (grub_guess_root_devices): Replace strlen with sizeof.
14115 (find_root_devices_from_poolname): Remove unused variable.
14118 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14120 Support install on multi-device filesystems.
14122 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
14123 (grub_guess_root_devices): ...this. Return char **. All users updated.
14124 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
14126 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
14127 (find_root_devices_from_poolname): ... here.
14128 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
14130 (grub_guess_root_device): Rename to ...
14131 (grub_guess_root_devices): ... this. Return char **. All users updated.
14132 * util/grub-install.in: Handle multi-device filesystems.
14133 * util/grub-probe.c (probe). Make device_names a char **. Add delim
14134 argument. All users updated.
14135 Handle multi-device filesystems.
14136 Use 'delim' as separator.
14137 Remove device check to allow filesystems on file.
14138 (main): Support -0 argument. Handle multi-device.
14139 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
14140 Fix a cross-device check while on it.
14141 (arguments): Remove root_dev.
14142 (argp_parser): Remove -r.
14143 (main): Remove root_dev.
14145 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14147 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
14149 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14151 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
14153 Reported by: NODA, Kai <nodakai>.
14155 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14159 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
14161 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
14162 (grub_ehci_setup_qh): Likewise.
14163 (grub_ehci_find_qh): Likewise.
14164 (grub_ehci_transaction): Likewise.
14165 (grub_ehci_setup_transfer): Likewise.
14166 (grub_ehci_check_transfer): Likewise.
14167 (grub_ehci_portstatus): Likewise.
14168 (grub_ehci_detect_dev): Likewise.
14169 (grub_ehci_transfer_controller_data): New field td_last_phys.
14170 (grub_ehci_setup_transfer): Fill td_last_phys.
14171 (grub_ehci_check_transfer): Use td_last_phys.
14173 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
14175 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
14176 if no submenu is present.
14178 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14182 * include/grub/usb.h (grub_usbms_protocol_t): New values
14183 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
14184 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
14185 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
14186 (grub_usbms_dev): Add subclass, protocol and intrpt.
14187 Remove in_maxsz and out_maxsz.
14188 (grub_usbms_reset): Rename to ...
14189 (grub_usbms_bo_reset): .. this.
14190 (grub_usbms_cbi_cmd): New function.
14191 (grub_usbms_cbi_reset): Likewise.
14192 (grub_usbms_reset): Likewise.
14193 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
14194 (grub_usbms_transfer): Rename to ...
14195 (grub_usbms_transfer_bo): ... this.
14196 (grub_usbms_transfer_cbi): Likewise.
14197 (grub_usbms_transfer): Likewise.
14199 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14200 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14202 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
14203 the support for the CS5536 modification thereos and few bugfixes.
14205 * grub-core/Makefile.core.def (ehci): New module.
14206 * grub-core/bus/usb/ehci.c: New file.
14207 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
14208 port and hubaddr. All users updated.
14209 Save port and hubaddr into dev structure.
14210 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
14212 * include/grub/pci.h (grub_dma_phys2virt): New function.
14213 (grub_dma_virt2phys): Likewise.
14214 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
14216 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14218 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
14219 check as some mkfs implementations omit it.
14221 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14223 * docs/grub.texi (Unicode): Mention identifier and space limitations.
14225 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14227 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
14228 Add new member volname2.
14229 (grub_jfs_label): Use volname2 if available.
14231 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14233 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
14234 over last_mounted as seen in image generated by mkfs.nilfs2.
14235 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
14237 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14239 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
14240 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
14241 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
14243 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14245 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
14248 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14250 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
14251 subvolume name (by removing a bogus and useless check).
14253 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14255 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
14256 sizeof while on it.
14258 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14260 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
14261 (grub_scsi_read_capacity10): ... this.
14262 (grub_scsi_read_capacity16): New function.
14263 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
14265 Fix off-by-one error.
14266 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
14268 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
14269 (grub_scsi_read_capacity10): ... this.
14270 (grub_scsi_read_capacity_data): Rename to ...
14271 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
14272 (grub_scsi_read_capacity16): New struct.
14273 (grub_scsi_read_capacity16_data): Likewise.
14274 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
14275 grub_scsi_cmd_read_capacity10.
14276 New command grub_scsi_cmd_read_capacity16.
14278 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14280 SCSI >2TiB support.
14282 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
14283 (grub_scsi_write16): Likewise.
14284 (grub_scsi_read): Use read16 when necessary.
14285 (grub_scsi_write): Likewise.
14286 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
14287 (grub_scsi_write16): Likewise.
14288 (grub_scsi_cmd_t): Add READ16 and WRITE16.
14290 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14292 SCSI write support (for usbms mainly).
14294 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
14296 (grub_scsi_write): Implement.
14297 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
14299 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14301 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
14304 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14306 * grub-core/lib/posix_wrap/string.h (memchr): New function.
14308 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14310 * po/POTFILES.in: Regenerate.
14312 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14314 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
14315 with grub_printf to avoid unnecessary fatal failure.
14317 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14319 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
14320 (INT_MAX): Likewise.
14321 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
14322 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
14323 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
14324 (strcpy): Likewise.
14325 (strstr): Likewise.
14326 (strchr): Likewise.
14327 (strncpy): Likewise.
14328 (strcat): Likewise.
14329 (strncat): Likewise.
14330 (strcoll): Likewise.
14331 * include/grub/types.h (GRUB_SHRT_MAX): New define.
14332 (GRUB_INT_MAX): Likewise.
14334 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14336 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
14338 (optimize_utf8): Likewise.
14339 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
14341 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14343 * grub-core/boot/i386/pc/lnxboot.S: Use
14344 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
14345 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
14347 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
14349 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
14351 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14353 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
14354 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
14355 now to avoid double free.
14356 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
14358 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
14359 * util/grub-probe.c (escape_of_path): Always return a new copy.
14360 (print_full_name): Escape path.
14361 (probe): Don't call grub_util_devname_to_ofpath on NULL.
14362 Fix hints on abstractions.
14364 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14366 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
14367 Don't add "root" line if no compatibility hont is available.
14368 Suggested by: Seth Goldberg.
14370 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14372 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
14373 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
14374 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
14375 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
14377 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14379 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
14381 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14383 * util/grub-pe2elf.c (ehdr): Make static.
14385 (num_sections): Likewise.
14386 (offset): Likewise.
14388 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14390 Eliminate ofpath limits and possible overflows.
14392 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
14393 (OF_PATH_MAX): Removed.
14394 (MAX_DISK_CAT): New const.
14395 (find_obppath): Use allocated rather than preallocated buffer.
14396 Return result. Argument of_path removed. All users updated.
14397 Add missing fdstat.
14398 (xrealpath): New function.
14399 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
14400 Allocate rather than use preallocated buffer. All users updated.
14401 (__of_path_common): Use allocated rather than preallocatecd buffer.
14402 Return result. Argument of_path removed. All users updated.
14403 (vendor_is_ATA): Read only needed part form the file.
14404 (check_sas): Allocate depending on contents rather than fixed.
14405 (main) [STANDALONE]: Handle NULL result.
14407 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14409 * grub-core/normal/completion.c (iterate_dev): Close the disk.
14411 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14413 Cryptodisk write support.
14415 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
14416 (grub_cryptodisk_decrypt): Moved logic to ...
14417 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
14418 (grub_cryptodisk_write): Implement.
14419 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
14420 (grub_util_fd_write): ... this. Make global.
14421 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
14423 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14425 * include/grub/list.h (grub_list_remove): Don't crash if element is
14428 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14430 Rename ofconsole to console.
14432 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
14433 as sysnonym to console.
14434 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
14435 * grub-core/term/ieee1275/console.c: ... this. All users updated.
14436 Rename grub_ofconsole_ to grub_console_. All users updated
14437 (grub_console_term_output): Rename "ofconsole" to "console".
14438 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
14441 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14443 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
14445 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
14446 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
14447 GRUB_DISK_DEVICE_FILE_ID.
14449 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14451 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
14452 and improve performance.
14454 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14456 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
14457 missing ieee1275/ prefix on whole disk.
14459 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14461 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
14462 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14464 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14466 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
14468 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14470 Merge common RAID and LVM logic to an abstract diskfilter.
14471 Add LDM support using the same framework.
14473 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
14474 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
14475 (libgrubmods): Remove grub-core/disk/raid.c and
14476 grub-core/partmap/gpt.c.
14477 * grub-core/Makefile.core.def (ldm): New module.
14478 (raid): Renamed to diskfilter. All users updated.
14479 * grub-core/disk/raid.c: Moved to ...
14480 * grub-core/disk/diskfilter.c: ... here.
14481 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
14483 (find_array): Renamed to ...
14484 (find_lv): ... this. Support multi-LV. Skip nameless LVs
14485 (grub_is_array_readable): Renamed to ...
14486 (grub_is_lv_readable): ... this. Support multinode hierarchy.
14487 (insert_array): New argument id.
14488 (is_node_readable): New function.
14489 (scan_device): Rename to ...
14490 (scan_disk): .. this. Restrict to one disk.
14491 (scan_devices): New function.
14492 (grub_diskfilter_iterate): Support multi-LV.
14493 Skip invisible and nameless LVs.
14494 (grub_diskfilter_memberlist): Support multi-LV.
14495 (grub_diskfilter_read_node): New function.
14496 (grub_raid_read): Most of logic moved to ...
14497 (read_segment): ... here
14498 (read_lv): New function.
14499 (grub_diskfilter_get_vg_by_uuid): New function.
14500 (grub_diskfilter_make_raid): Likewise.
14501 * grub-core/disk/ldm.c: New file.
14502 * grub-core/disk/lvm.c (vg_list): Removed.
14503 (lv_count): Likewise.
14504 (scan_depth): Likewise.
14505 (is_lv_readable): Likewise.
14506 (grub_lvm_getvalue): Advance pointer past the number.
14507 (find_lv): Removed.
14508 (do_lvm_scan): Refactored into ...
14509 (grub_lvm_detect): ... this. Support raid.
14510 (grub_lvm_iterate): Removed.
14511 (grub_lvm_memberlist): Likewise.
14512 (grub_lvm_open): Likewise.
14513 (grub_lvm_close): Likewise.
14514 (read_lv): Likewise.
14515 (read_node): Likewise.
14516 (is_node_readable): Likewise.
14517 (is_lv_readable): Likewise.
14518 (grub_lvm_read): Likewise.
14519 (grub_lvm_write): Likewise.
14520 (grub_lvm_dev): Use diskfilter
14521 (GRUB_MOD_INIT): Likewise.
14522 (GRUB_MOD_FINI): Likewise.
14523 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
14525 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
14526 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14527 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
14528 grub_diskfilter_read_node.
14529 Fix a bug with xor.
14530 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
14531 grub_diskfilter_read_node.
14532 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
14533 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
14534 (grub_disk_dev_iterate): Move from here...
14535 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
14536 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
14538 (grub_hostdisk_find_partition_start): Likewise.
14539 (grub_hostdisk_os_dev_to_grub_drive): New function.
14540 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
14541 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
14542 * util/getroot.c (make_device_name): ... here.
14543 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
14545 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
14546 * grub-core/kern/emu/hostdisk.c
14547 (convert_system_partition_to_system_disk): Move to ...
14548 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
14549 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
14550 * util/getroot.c (device_is_wholedisk): ... here.
14551 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
14552 * util/getroot.c (find_system_device): ... here.
14553 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
14555 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
14556 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14558 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
14560 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14562 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
14563 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
14564 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
14566 * include/grub/raid.h: Renamed to ...
14567 * include/grub/diskfilter.h: ... this.
14568 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
14569 (GRUB_RAID_LAYOUT_*): Make into array.
14570 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
14571 (grub_diskfilter_vg): New struct.
14572 (grub_diskfilter_pv_id): Likewise.
14573 (grub_raid_member): Removed.
14574 (grub_raid_array): Likewise.
14575 (grub_diskfilter_pv): New struct.
14576 (grub_diskfilter_lv): Likewise.
14577 (grub_diskfilter_segment): Likewise.
14578 (grub_diskfilter_node): Likewise.
14579 (grub_diskfilter_get_vg_by_uuid): New proto.
14580 (grub_raid_register): Inline.
14581 (grub_diskfilter_unregister): Likewise.
14582 (grub_diskfilter_make_raid): New proto.
14583 (grub_diskfilter_vg_register): Likewise.
14584 (grub_diskfilter_read_node): Likewise.
14585 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
14586 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
14587 (grub_util_is_ldm): Likewise.
14588 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
14589 (grub_hostdisk_find_partition_start): Likewise.
14590 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
14591 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
14593 (grub_gpt_partition_map_iterate): New proto.
14594 * include/grub/lvm.h (grub_lvm_vg): Removed.
14595 (grub_lvm_pv): Likewise.
14596 (grub_lvm_lv): Likewise.
14597 (grub_lvm_segment): Likewise.
14598 (grub_lvm_node): Likewise.
14599 * util/getroot.c [...]
14600 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
14601 (probe_abstraction): Likewise.
14602 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
14603 (main): Remove dead logic.
14605 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
14607 Simplify root device discover and don't fail when trying to open
14610 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
14612 (get_diskname_from_path): Likewise.
14613 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
14616 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14618 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
14620 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14622 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
14625 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14627 * util/grub-install.in: Add missing \.
14628 Reported by: gentoofan
14630 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14632 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
14633 (direct_read): Use correct compressed size.
14634 (grub_squash_read_data): Likewise.
14636 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14638 * docs/grub.texi (Platform limitations): New section.
14639 (Platform-specific operations): Likewise.
14640 * docs/grub-dev.texi (Porting): Likewise.
14642 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14644 IEEE1275 disk write support.
14646 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
14648 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
14649 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
14650 and seek loginc to ...
14651 (grub_ofdisk_prepare): ... here.
14652 (grub_ofdisk_write): Implement.
14654 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14656 ARC disk write support.
14658 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
14659 (reopen): New argument writable. All users updated.
14660 Handle required access mode.
14661 (grub_arcdisk_write): Implement.
14662 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
14663 (grub_arc_firmware_vector): Make buffer to write a const buffer.
14665 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14667 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
14668 (read_sblock): Don't attempt to read superblocks outside the disk size.
14670 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14672 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
14673 first superblock to find the second one when possible.
14675 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14677 * util/grub-install.in: Fix an ARC bug.
14678 Print a warning if no platform-specific setup is available.
14680 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14682 Use static allocation rather than scratch pointer in reed_solomon.
14683 It decreases its size significantly and avoids a variable in .text.
14685 * grub-core/lib/reed_solomon.c (scratch): Removed.
14686 (chosenstat): New const or static array.
14688 (errpot): Likewise.
14689 (errpos): Likewise.
14692 (errvals): Likewise.
14693 (eqstat): Likewise.
14694 (pol_evaluate): Replace x with log_x argument. All users updated.
14695 (syndroms): Removed.
14696 (gauss_solve): Use statically allocated arrays.
14697 (rs_recover): Likewise.
14698 Calculate syndroms directly.
14699 (decode_block): Use statically allocated arrays.
14700 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
14701 (main) [TEST]: Allow -DTEST -DSTANDALONE.
14703 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14705 Eliminate fixed limit on reed solomon decoder length.
14707 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
14708 rather than hardcoding the address.
14709 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
14710 no_reed_solomon_length.
14711 Move gate_a20 to no-reed-solomon part.
14712 Don't force a particular size of no reed-solomon part.
14713 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14715 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
14716 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
14718 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14720 * grub-core/commands/wildcard.c (match_files): Handle filenames
14721 without explicit device.
14722 (wildcard_expand): Don't add explicit device if not already present.
14723 * tests/grub_script_echo1.in: Add a new expansion test.
14725 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14727 Replace single-linked with double-linked lists. It results in more
14728 compact and more efficient code.
14730 * grub-core/kern/list.c (grub_list_push): Moved from here ...
14731 * include/grub/list.h (grub_list_push): ... to here. Set prev.
14732 (grub_list_remove): Moved from here ...
14733 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
14734 (grub_prio_list_insert): Set prev.
14735 * include/grub/list.h (grub_list): Add prev. All users updated.
14737 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14739 Handle newer autotools. Add some missing quotes while on it.
14741 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
14742 (pkglib_DATA): Move grub-mkconfig_lib from here ...
14743 (pkgdata_DATA): ... here.
14744 * Makefile.util.def (update-grub_lib): Removed.
14745 * conf/Makefile.common (pkglib_DATA): Removed.
14746 (pkglib_SCRIPTS): Likewise.
14747 (pkgdata_DATA): New variable.
14748 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
14750 Add missing quotes.
14751 Remove unused variable while on it.
14752 * tests/util/grub-shell.in: Likewise.
14753 * util/grub-install.in: Likewise.
14754 * util/grub-mkconfig.in: Likewise.
14755 * util/grub-mknetdir.in: Likewise.
14756 * util/grub-mkrescue.in: Likewise.
14757 * util/grub-mkstandalone.in: Likewise.
14758 * util/grub.d/00_header.in: Likewise.
14759 * util/grub.d/10_hurd.in: Likewise.
14760 * util/grub.d/10_illumos.in: Likewise.
14761 * util/grub.d/10_kfreebsd.in: Likewise.
14762 * util/grub.d/10_linux.in: Likewise.
14763 * util/grub.d/10_netbsd.in: Likewise.
14764 * util/grub.d/10_windows.in: Likewise.
14765 * util/grub.d/20_linux_xen.in: Likewise.
14766 * util/grub.d/30_os-prober.in: Likewise.
14767 * util/update-grub_lib.in: Removed.
14769 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
14771 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
14772 a workaround for intel problem.
14774 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
14775 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14776 2012-01-23 pfsmorigo
14778 * util/grub-install.in: Support dd'in into PreP partition.
14779 * util/grub-probe.c (probe): Support discovering partition type.
14780 (main): Support -t msdos_parttype.
14782 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14784 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
14785 infinite recursion using counter.
14786 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
14787 init to skip it if the magic check fails.
14788 (dec_stream_header): Init s->crc32.
14790 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14791 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
14792 2012-01-22 Richard Laager <rlaager@wiktel.com>
14794 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
14796 (find_bestub): Determine correct size.
14797 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
14798 (scan_disk): Align the size down.
14799 Call check pool before find_bestub to have ashift.
14801 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14803 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
14804 dprintf in no-malloc zone.
14806 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14808 * configure.ac: Add back in test for limits.h.
14810 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14812 Support 4K-sector NTFS.
14814 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14815 (grub_ntfs_data): Remove blocksize.
14816 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14817 Remove data argument. All users updated.
14819 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14821 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14822 being in .text to avoid dprel references.
14823 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14824 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14825 (grub_arch_highmemsize): Likewise.
14826 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14827 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14828 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14830 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14832 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14834 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14835 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14837 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14839 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14841 (grub_set_datetime_cmos): Likewise.
14843 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14845 Make XZ compression parameters dependent on target and not host CPU.
14847 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14848 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14850 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14852 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14853 set but not used variable.
14855 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14857 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14858 created when no uuid support is compiled into mkfs.reiser.
14860 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14862 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14863 (utf8_to_macroman): Do the opposite.
14864 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14866 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14868 * configure.ac: Refise build qemu_mips w/o unifont.
14870 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14872 Eliminate grub_min/grub_max prone to overflow usage.
14874 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14875 (poll_nonroot_hub): Likewise.
14876 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14877 (grub_affs_label): Likewise.
14878 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
14879 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
14880 (grub_hfs_label): Likewise.
14881 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14882 * grub-core/fs/zfs/zfs.c (MIN): Remove.
14883 (zap_leaf_array_equal): Use grub_size. Remove MIN.
14884 (zap_leaf_array_get): Likewise.
14885 (dnode_get_path): Likewise.
14886 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
14887 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
14888 * grub-core/script/execute.c (grub_script_break): Likewise.
14889 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
14891 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
14892 * include/grub/misc.h (grub_min): Removed.
14893 (grub_max): Likewise.
14895 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14897 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
14900 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14902 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
14904 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14906 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
14908 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14910 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
14911 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
14913 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14915 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
14916 rather than a hack for grub_strncasemap.
14918 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14920 Support multiple initrds
14921 Note: part of this was accidently committed in r3739.
14923 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
14925 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
14926 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
14927 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14928 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14929 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14931 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14933 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
14934 disks with unknown size.
14935 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
14937 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14939 Remove defines pertaining to arbitrary limits not affecting GRUB
14942 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
14943 (EXT2_MAX_SYMLINKCNT): Likewise.
14944 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
14945 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
14946 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
14947 (GRUB_PXE_MAX_BLKSIZE): Likewise.
14948 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
14949 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
14950 (DN_MAX_OBJECT_SHIFT): Likewise.
14951 (DN_MAX_OFFSET_SHIFT): Likewise.
14952 (DN_MAX_OBJECT): Likewise.
14953 (DNODES_PER_LEVEL_SHIFT): Likewise.
14954 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
14955 (SPA_MAXBLOCKSIZE): Likewise.
14956 (SPA_BLOCKSIZES): Likewise.
14957 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
14958 (MZAP_MAX_BLKSZ): Likewise.
14960 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14962 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
14963 handle NULL appropriately.
14966 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14970 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
14972 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
14973 * configure.ac: Fix efiemu check.
14975 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14977 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
14979 Reported by: adamwill
14981 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
14983 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
14985 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14987 Fix handling of wide characters in gfxterm.
14989 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
14990 (clear_char): Likewise.
14991 (paint_char): Skip code == NULL chars.
14992 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
14994 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14996 * grub-core/normal/charset.c: Move comment to right place.
14998 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15000 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
15001 (GRUB_AFFS_FLAG_FFS): Put back where it was.
15002 (grub_affs_mount): Revert the correct version checking.
15004 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15006 * docs/grub.texi (Unicode): Mention several other unsupported features.
15008 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15010 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
15011 case statements as compile-time one.
15012 (direct_read): Prevent spurious warnings.
15013 (grub_squash_read_data): Likewise.
15015 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15017 Various squash4 fixes and LZO and XZ support.
15019 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
15020 Add xzembed source files.
15021 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
15022 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
15023 (grub_squash_inode): New subtype long_dir.
15024 (SQUASH_TYPE_LONG_DIR): New inode type.
15025 (COMPRESSION): New enum.
15026 (XZBUFSIZ): New const.
15027 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
15028 (read_chunk): Use data->decompress.
15029 (zlib_decompress): New function.
15030 (lzo_decompress): Likewise.
15031 (xz_decompress): Likewise.
15032 (squash_mount): Set new data fields.
15033 (grub_squash_iterate_dir): Handle long dir.
15034 (squash_unmount): Free xzdec and xzbuf.
15035 (grub_squash_open): Check ino type.
15036 (direct_read): Stylistic fixes. Use data->decompress.
15037 (grub_squash_read_data): Likewise.
15038 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
15039 (get_byte): Likewise.
15040 (grub_zlib_disk_read): Removed.
15041 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
15042 (GRUB_POSIX_BOOL_DEFINED): New define.
15043 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
15044 * grub-core/lib/xzembed/xz.h: Addmissing includes.
15045 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
15046 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
15048 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15050 Don't override more informative errors.
15052 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
15053 * grub-core/font/font.c (open_section): Likewise.
15054 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
15055 filename. Don't override errors.
15056 (grub_cmd_openbsd_ramdisk): Don't override errors.
15057 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
15058 (grub_cmd_initrd): Likewise.
15059 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
15060 (grub_cmd_initrd): Likewise.
15061 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
15062 (grub_cmd_linux): Likewise.
15063 (grub_cmd_initrd): Likewise.
15064 (grub_cmd_payload): Likewise.
15065 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
15066 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
15067 (grub_cmd_module): Likewise.
15068 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15069 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15070 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
15071 (grub_cmd_xnu_mkext): Likewise.
15072 (grub_cmd_xnu_ramdisk): Likewise.
15073 (grub_xnu_check_os_bundle_required): Likewise.
15074 (grub_xnu_load_kext_from_dir): Likewise.
15075 (grub_cmd_xnu_kextdir): Likewise.
15076 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
15078 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15080 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
15081 as 1024 in block size field. Found on one of my test images.
15082 Small optimisation while on it.
15084 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15086 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
15087 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
15088 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
15089 performance fixes while on it.
15090 (grub_sfs_close): Fix memory leak while on it.
15091 (grub_sfs_label): Convert Latin1 to UTF-8.
15093 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15095 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
15096 space to avoid overflows.
15097 (grub_hfs_label): Convert from macroman to UTF-8.
15099 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15101 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
15103 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15105 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
15107 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15109 * unicode: Import Unicode 6.0 data.
15111 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15113 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
15116 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15118 Avoid cutting in the middle of UTF-8 character.
15120 * include/grub/charset.h (grub_getend): New function.
15121 * grub-core/script/function.c (grub_script_function_find): Use
15123 * grub-core/normal/completion.c (add_completion): Likewise.
15125 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15127 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
15128 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
15129 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
15130 (GRUB_UNICODE_TAG_END): Likewise.
15131 (GRUB_UNICODE_LAST_VALID): Likewise.
15133 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15135 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
15136 len and make it smaller. All users updated.
15137 * util/import_unicode.py: Put length and not end character.
15140 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15142 Make better Unicode-compliant and unify some UTF-8 code pathes.
15144 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
15146 (grub_is_valid_utf8): Use grub_utf8_process.
15147 Check resulting code range.
15148 (grub_utf8_to_ucs4): Use grub_utf8_process.
15149 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
15152 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15154 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
15156 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15158 * docs/grub.texi (Filesystems): Mention AFS.
15160 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15162 * docs/grub.texi (Filesystems): Clarify restrictions.
15163 (Regexp): Mention non-Unicode regexp behaviour.
15164 (Other): Mention non-Unicode matching behaviour.
15166 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15168 Make HFS implementation use MacRoman.
15170 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
15171 (macroman): New const array.
15172 (macroman_to_utf8): New function.
15173 (utf8_to_macroman): Likewise.
15174 (grub_hfs_find_dir): Use utf8_to_macroman.
15175 (grub_hfs_dir): Use macroman_to_utf8.
15176 Set case_insensitive.
15178 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15180 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
15182 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15184 Integrate hints into autogeneration scripts.
15186 * docs/grub.texi (Filesystems): Add a hostdisk example.
15187 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
15188 (grub-probe): Add ofpath.
15189 * gentpl.py: Remove group nosparc64.
15190 * grub-core/commands/search.c (cache_entry): New struct.
15192 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
15193 * grub-core/commands/search_wrap.c (options): Add platform-specific
15195 (grub_cmd_search): Handle platform-specific hints.
15196 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
15197 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
15198 (grub_util_biosdisk_data): Likewise.
15199 (grub_util_biosdisk_open): Set device_map.
15200 (read_device_map): Handle "" as indication of no map.
15202 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
15203 (grub_util_biosdisk_get_compatibility_hint): New function.
15204 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
15205 * include/grub/emu/hostdisk.h
15206 (grub_util_biosdisk_get_compatibility_hint): New proto.
15207 * util/grub-install.in: Don't call grub-mkdevicemap.
15208 Add platform-specific hint to load.cfg.
15209 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
15210 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
15211 hints. Set root preliminary to compatibility hint, not to OS name.
15212 * util/grub-probe.c (PRINT_*): Add hints.
15213 (print): Make static.
15214 (escape_of_path): New function.
15215 (guess_bios_drive): Likewise.
15216 (guess_efi_drive): Likewise.
15217 (guess_baremetal_drive): Likewise.
15218 (print_full_name): Likewise.
15219 (probe): Handle hints.
15221 * util/ieee1275/devicemap.c: Removed.
15222 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
15224 (grub_util_devname_to_ofpath): Return NULL on failure.
15226 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
15228 * util/getroot.c (grub_util_pull_device): Fix memory leak.
15230 * po/POTFILES.in: Regenerated.
15232 Allow purely long options
15234 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
15235 (SHORT_ARG_USAGE): Likewise.
15236 (grub_arg_show_help): Compare opt with help_options.
15237 (parse_option): Receive opt as argument. If makes big simplificatons.
15240 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15242 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
15243 Restructure to avoid warning.
15245 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15247 * util/grub-install.in: Account for possible escaped comma in device
15250 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15252 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
15255 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15257 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
15258 allocation and zero-setting.
15259 (grub_ieee1275_get_devname): Check that alias is complete.
15261 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15263 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
15264 unaligned segments.
15266 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15268 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
15270 (grub_ofdisk_open): Check and discard ieee1275 prefix.
15271 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
15272 Add ieee1275 prefix.
15274 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15276 * docs/grub.texi (Filesystems): Update.
15278 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15280 Support odc, newc and bigendian cpio formats.
15282 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
15283 * grub-core/Makefile.core.def (newc): New module.
15285 (cpio_be): Likewise.
15286 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
15288 (MAGIC2): Likewise.
15289 (head) [MODE_ODC]: Adapt for the format.
15290 (head) [MODE_NEWC]: Likewise.
15291 (head) [!MODE_*]: Write fields of interest as arrays.
15292 (MAGIC_USTAR): Removed.
15293 (read_number) [MODE_NEWC]: Change to hex.
15294 (read_number) [!MODE_*]: Parse binary arrays.
15295 (grub_cpio_find_file): Factor out the code for better structure and
15296 always use read_number.
15297 (grub_cpio_mount): Use MAGIC and MAGIC2.
15298 (grub_cpio_dir): Exit on first hook non-0 return.
15299 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
15300 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
15301 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
15302 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
15303 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
15304 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
15305 * grub-core/fs/newc.c: New file.
15306 * grub-core/fs/odc.c: Likewise.
15307 * grub-core/fs/cpio_be.c: Likewise.
15309 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15311 Fix handling of tar numbers occupying the whole field.
15313 * grub-core/fs/cpio.c (read_number): New function.
15314 (grub_cpio_find_file): Use read_number instead of strtoull.
15316 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15318 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
15319 occupying the whole field size.
15321 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
15323 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
15325 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15327 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
15329 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
15331 * grub-core/Makefile.core.def (lzma_decompress): Add missing
15332 TARGET_IMG_LDFLAGS.
15334 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15336 * util/getroot.c (ESCAPED_PATH_MAX): New define.
15337 (mountinfo_entry): Increase the field size to take escaping into
15339 (find_root_device_from_libzfs): Add one byte to size of strings for
15342 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15344 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
15346 * util/grub-setup.c (setup): Likewise.
15348 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15350 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
15353 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15355 * docs/grub.texi (Internationalisation): New section.
15357 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15359 * docs/grub.texi (Loopback booting): New section.
15361 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
15363 * util/grub-mkstandalone.in: Fix minor typo errors.
15365 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15367 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
15369 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
15370 net/icmp.c and net/icmp6.c.
15371 (http): New module.
15372 (priority_queue): Likewise.
15373 * grub-core/io/bufio.c: Rewritten.
15374 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
15375 TYPE_WITH_CONFIGFILE_OPTION.
15376 (legacy_commands): Add bootp and dhcp.
15377 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
15378 (grub_legacy_parse): Likewise.
15379 * grub-core/lib/priority_queue.c: New file.
15380 * grub-core/net/arp.c: Add missing license header.
15381 (arp_find_entry): Removed.
15382 (arp_find_entry): Likewise.
15383 (grub_net_arp_resolve): Rename to ...
15384 (grub_net_arp_send_request): ...this.
15385 (grub_net_arp_receive): New card argument.
15386 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
15387 Set router and DNS server.
15388 (grub_net_configure_by_dhcp_ack): Handle routing information.
15389 (grub_cmd_bootp): Set checksum.
15390 (grub_bootp_init): Remove net_dhcp.
15391 * grub-core/net/dns.c: New file.
15392 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
15394 (get_card_packet): Handle allocation.
15395 (grub_efinet_findcards): Set mtu.
15396 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
15397 (get_card_packet): Handle allocation.
15398 (emucard): Set mtu.
15399 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
15400 (GRUB_MOD_INIT): Set mtu.
15401 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
15403 (get_card_packet): Handle allocation.
15404 (grub_ofnet_findcards): Set mtu.
15405 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
15407 (grub_net_recv_ethernet_packet): Handle IPv6.
15408 * grub-core/net/http.c: New file.
15409 * grub-core/net/icmp.c: Likewise.
15410 * grub-core/net/icmp6.c: Likewise.
15411 * grub-core/net/ip.c (ip6addr): New type.
15412 (ip6hdr): Likewise.
15413 (reassemble): Likewise.
15414 (cmp): New function.
15415 (reassembles): New variable.
15416 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
15417 (id): New variable.
15418 (send_fragmented): New function.
15419 (grub_net_send_ip_packet): Rename to ...
15420 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
15422 (grub_net_recv_ip_packets): Rename to ...
15423 (handle_dgram): ... this. Check checksum. Handle non-UDP.
15424 (free_rsm): New function.
15425 (free_old_fragments): Likewise.
15426 (grub_net_recv_ip4_packets): New function.
15427 (grub_net_send_ip6_packet): Likewise.
15428 (grub_net_send_ip_packet): Likewise.
15429 (grub_net_recv_ip6_packets): Likewise.
15430 (grub_net_recv_ip_packets): Likewise.
15431 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
15432 (LINK_LAYER_CACHE_SIZE): New const.
15433 (link_layer_find_entry): New function.
15434 (grub_net_link_layer_add_address): Likewise.
15435 (grub_net_link_layer_resolve_check): Likewise.
15436 (grub_net_link_layer_resolve): Likewise.
15437 (grub_net_ipv6_get_slaac): Likewise.
15438 (grub_net_ipv6_get_link_local): Likewise.
15439 (grub_cmd_ipv6_autoconf): Likewise.
15440 (parse_ip): Handle one number representation.
15441 (parse_ip6): New functoion.
15442 (match_net): Handle IPv6.
15443 (grub_net_resolve_address): Handle IPv6 and DNS.
15444 (grub_net_resolve_net_address): Handle IPv6.
15445 (route_cmp): New function.
15446 (grub_net_route_address): Find best route.
15447 (grub_net_addr_to_str): Handle IPv6.
15448 (grub_net_addr_cmp): New function.
15449 (grub_net_add_addr): Register local route.
15450 (print_net_address): Handle net address.
15451 (grub_net_poll_cards): Retransmit TCP.
15452 (grub_net_poll_cards_idle_real): Likewise.
15453 (have_ahead): New function.
15454 (grub_net_seek_real): Use underlying seek.
15455 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
15456 * grub-core/net/tcp.c: New file.
15457 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
15458 (cmp): New function.
15460 (tftp_receive): Handle unordered input.
15461 (destroy_pq): New function.
15462 (tftp_close): Close pq.
15463 * grub-core/net/udp.c: Put missing license header.
15464 (grub_net_udp_socket): New function.
15465 (udp_socket_register): Likewise.
15466 (grub_net_udp_close): Likewise.
15467 (grub_net_recv_udp_packet): Check checksum.
15468 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
15469 * include/grub/misc.h (grub_memchr): New function.
15470 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
15471 (grub_net_card_driver): Return buf in recv.
15472 (grub_net_slaac_mac_list): New struct.
15473 (grub_network_level_protocol_id): Add ipv6.
15474 (grub_net_network_level_addr): Likewise.
15475 (grub_net_network_level_net_addr): Likewise.
15476 (grub_net_app_protocol): Add seek.
15477 (grub_net_socket): Removed.
15478 (grub_net_sockets): Likewise.
15479 (grub_net_socket_register): Likewise.
15480 (grub_net_socket_unregister): Likewise.
15481 (FOR_NET_SOCKETS): Likewise.
15482 (grub_net_add_addr): Add const.
15483 (GRUB_NET_BOOTP_*): New enum.
15484 (grub_net_addr_cmp): New proto.
15485 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
15486 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
15487 (grub_net_hwaddr_to_str): NEw proto.
15488 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
15489 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
15490 (grub_dns_init): New proto.
15491 (grub_dns_fini): Likewise.
15492 (grub_net_tcp_retransmit): Likewise.
15493 (grub_net_link_layer_add_address): Likewise.
15494 (grub_net_link_layer_resolve_check): Likewise.
15495 (grub_net_link_layer_resolve): Likewise.
15496 (grub_net_dns_lookup): Likewise.
15497 (grub_net_add_dns_server): Likewise.
15498 (grub_net_remove_dns_server): Likewise.
15499 (GRUB_NET_TRIES): New const.
15500 (GRUB_NET_INTERVAL): Likewise.
15501 * include/grub/net/arp.h: Mostly rewritten.
15502 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
15503 * include/grub/net/ip.h: Mostly rewritten.
15504 * include/grub/net/netbuff.h: Indent.
15505 * include/grub/net/tcp.h: New file.
15506 * include/grub/net/udp.h: Mostly rewritten.
15507 * include/grub/priority_queue.h: New file.
15508 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
15509 (grub_swap_bytes64_compile_time): Likewise.
15510 (grub_cpu_to_be16_compile_time): Likewise.
15511 (grub_cpu_to_be32_compile_time): Likewise.
15512 (grub_cpu_to_be64_compile_time): Likewise.
15513 (grub_be_to_cpu64_compile_time): Likewise.
15515 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
15517 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
15518 UINT_TO_PTR with cast.
15520 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15522 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
15525 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15527 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
15530 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15532 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
15535 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15537 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
15538 Add missing const attribute.
15539 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
15541 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
15544 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15546 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
15548 (serpent_setkey): Likewise.
15549 (serpent_encrypt_internal): Likewise.
15550 (serpent_decrypt_internal): Likewise.
15551 (serpent_encrypt): Don't put an alignment-increasing cast.
15552 (serpent_decrypt): Likewise.
15553 (serpent_test): Likewise.
15555 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15557 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
15559 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15561 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
15563 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
15565 (PTR_TO_UINT64): Likewise.
15566 (PTR_TO_UINT32): Likewise.
15568 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15570 * util/grub-mkimage.c (generate_image): Decrease the higher limit
15572 * util/grub-setup.c (setup): Don't add redundancy past the higher load
15575 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15577 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
15578 text_width > available width a bit more gracefully.
15580 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15582 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
15583 current address calculation.
15585 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15587 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
15589 (encode_block): Likewise.
15591 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15593 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
15596 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15598 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
15599 non-RS part to avoid RS messing with GDT.
15600 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
15601 Increase to suit in realmode routines.
15603 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15605 * grub-core/kern/i386/realmode.S: Increase alignment.
15606 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
15608 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15610 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
15612 (syndroms): Compute 0 syndrom.
15613 (rs_recover): Use 0 syndrom.
15615 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15617 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
15619 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15621 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
15624 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15626 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
15628 (get_top_pad): Likewise.
15629 (get_right_pad): Likewise.
15630 (get_bottom_pad): Likewise.
15632 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15634 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
15636 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15638 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
15639 attribute as the structure isn't guaranteed to be properly aligned.
15640 (grub_efi_pci_device_path): Likewise.
15641 (grub_efi_pccard_device_path): Likewise.
15642 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
15643 specify the size of `memory_type'.
15644 (grub_efi_vendor_device_path): Likewise.
15645 (grub_efi_controller_device_path): Likewise.
15646 (grub_efi_acpi_device_path): Likewise.
15647 (grub_efi_expanded_acpi_device_path): Likewise.
15648 (grub_efi_atapi_device_path): Likewise.
15649 (grub_efi_scsi_device_path): Likewise.
15650 (grub_efi_fibre_channel_device_path): Likewise.
15651 (grub_efi_1394_device_path): Likewise.
15652 (grub_efi_usb_device_path): Likewise.
15653 (grub_efi_usb_class_device_path): Likewise.
15654 (grub_efi_i2o_device_path): Likewise.
15655 (grub_efi_mac_address_device_path): Likewise.
15656 (grub_efi_ipv4_device_path): Likewise.
15657 (grub_efi_ipv6_device_path): Likewise.
15658 (grub_efi_infiniband_device_path): Likewise.
15659 (grub_efi_uart_device_path): Likewise.
15660 (grub_efi_vendor_messaging_device_path): Likewise.
15661 (grub_efi_hard_drive_device_path): Likewise.
15662 (grub_efi_cdrom_device_path): Likewise.
15663 (grub_efi_vendor_media_device_path): Likewise.
15664 (grub_efi_file_path_device_path): Likewise.
15665 (grub_efi_protocol_device_path): Likewise.
15666 (grub_efi_piwg_device_path): Likewise.
15667 (grub_efi_bios_device_path): Likewise.
15669 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15671 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
15672 (grub_ucs4_to_utf8_alloc): Likewise.
15673 (grub_ucs4_to_utf8): Likewise.
15674 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
15675 (grub_ucs4_to_utf8_alloc): Likewise.
15677 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15679 AFFS never uses unicode.
15681 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
15682 (grub_latin1_to_utf8): New inline function.
15683 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
15685 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15687 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
15690 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15692 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
15693 (grub_squash_dirent_header): Likewise.
15694 (read_chunk): Don't double swap.
15695 (grub_squash_iterate_dir): Fix swap sizes.
15697 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15699 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
15701 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15703 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
15704 (grub_hfs_iterate_dir): Likewise.
15706 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15708 Fix video on platforms where unaligned access is forbidden.
15709 Make several optimisations while on it.
15711 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
15712 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15713 (grub_video_fbblit_replace_32bit_1bit): Likewise.
15714 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15716 (grub_video_fbblit_replace_16bit_1bit):
15717 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15718 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15719 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
15720 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
15721 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15722 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15723 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
15724 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
15725 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
15726 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
15727 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
15728 (grub_video_fbblit_replace_index_RGB888): Likewise.
15729 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
15730 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
15731 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
15732 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
15733 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
15734 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15735 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15737 (grub_video_fbblit_blend_XXX565_1bit):
15738 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15739 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
15740 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
15742 * grub-core/video/fb/video_fb.c (common_blitter)
15743 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
15744 (grub_video_fb_create_render_target_from_pointer)
15745 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
15746 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
15747 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
15749 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
15751 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15753 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
15754 HH22 and HM10 relocations.
15756 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15758 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
15760 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15762 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
15763 allocation succeeded.
15765 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15767 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
15768 argument a u8 pointer. All users updated.
15769 Handle unaligned buffers.
15771 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15773 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
15774 add_part to workaround compiler bug.
15776 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15778 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
15780 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15782 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
15783 Reserve alignment invariants.
15784 (grub_multiboot_load): Likewise.
15785 (retrieve_video_parameters): Likewise.
15786 (grub_multiboot_make_mbi): Likewise.
15788 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15790 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
15793 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15795 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
15796 (grub_pata_pio_write): Likewise.
15798 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15800 Add noreturn attributes and remove unreachable code.
15802 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
15804 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15805 code. Mark as noreturn.
15806 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15807 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15808 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15810 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15811 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15812 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15813 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15814 * include/grub/kernel.h (grub_main): Mark as noreturn.
15815 * include/grub/reader.h (grub_rescue_run): Likewise.
15817 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15819 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15820 redundant declaration.
15822 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15824 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15825 redundant declaration.
15826 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15828 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15830 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15831 to ensure alignment.
15832 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15833 alignment. Ensure tmp alignment.
15834 (grub_cmd_hdparm): Ensure buf alignment.
15835 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15836 to ensure alignment.
15837 (grub_ata_dumpinfo): Ensure text alignment.
15838 (grub_atapi_identify): Preserve alignment invariant.
15839 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15841 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15843 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15844 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15845 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15846 * include/grub/misc.h (grub_reboot)
15847 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15848 (grub_halt) [__mips__]: Likewise.
15850 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15852 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15853 Remove redundant declaration.
15854 (grub_mmap_get_post64): Likewise.
15855 (grub_mmap_get_upper): Likewise.
15856 (grub_mmap_get_lower): Likewise.
15858 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15860 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15861 uint32_t * to ensure alignment.
15862 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15864 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15866 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15867 uint16_t * to ensure alignment.
15868 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15871 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15873 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
15874 to ensure alignment.
15875 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15877 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15879 * grub-core/fs/ntfs.c (u16at): Make into inline function.
15880 Handle unaligned pointers.
15883 (fixup): Use byte access instead of v16at.
15884 (find_attr): Fix imporper usage of v32at.
15885 (read_data): Likewise.
15886 (list_file): Handle byte-swapping and unaligned strings.
15887 (grub_ntfs_label): Likewise.
15889 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15891 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
15892 as it's not necessarily aligned.
15894 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15896 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
15897 redundant declaration.
15898 (grub_serial_init): Likewise.
15899 (grub_terminfo_init): Likewise.
15901 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15903 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
15905 (ZAP_HASH_IDX): Likewise.
15906 (ZAP_LEAF_HASH_SHIFT): Likewise.
15907 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
15908 (LEAF_HASH): Likewise.
15909 (ZAP_LEAF_NUMCHUNKS): Likewise.
15910 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
15911 alignment invariants. Return pointer. All users updated.
15912 (ZAP_LEAF_ENTRY): Make into inline function.
15915 (xor_out): Use grub_crypto_xor.
15916 (dnode_get_path): Use grub_get_unaligned.
15917 (nvlist_find_value): Likewise.
15918 (grub_zfs_nvlist_lookup_uint64): Likewise.
15919 (grub_zfs_nvlist_lookup_string): Likewise.
15920 (get_nvlist_size): Likewise.
15921 (grub_zfs_open): Likewise.
15922 (fill_fs_info): Likewise.
15923 (grub_zfs_dir): Likewise.
15924 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
15925 alignment invariants.
15926 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
15927 necessarily aligned.
15929 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15931 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
15933 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15935 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
15936 arithmetic to conserve alignment invariants.
15938 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15940 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
15941 redundant declaration.
15942 (grub_efiemu_mm_obtain_request): Likewise.
15943 (grub_efiemu_prepare): Likewise.
15945 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15947 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
15950 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15952 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
15953 case of aunaligned recptr.
15954 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
15956 (grub_hfsplus_btree_search): Handle unaligned index.
15958 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15960 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
15961 to get freetag and skip.
15963 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15965 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
15967 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
15968 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
15970 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15972 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
15973 name for checksum and fix allocation algorithm.
15975 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15977 * include/grub/types.h (grub_properly_aligned_t): New type.
15978 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
15979 (grub_get_unaligned16): Add explicit casts.
15980 (grub_get_unaligned32): Likewise.
15981 (grub_get_unaligned64): Likewise.
15982 (grub_set_unaligned16): New function.
15983 (grub_set_unaligned32): Likewise.
15985 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15987 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
15989 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15991 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
15992 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
15993 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
15995 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15997 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
16000 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16002 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
16003 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
16005 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16007 Unify and improve RAID and crypto xor.
16009 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
16010 changed to grub_crypto_xor
16011 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
16012 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
16013 Use bigger types when possible.
16015 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16017 * grub-core/disk/raid.c (scan_devices): Fix condition.
16019 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16021 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
16022 Make name a const ptr.
16024 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16026 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
16027 first argument a const pointer.
16028 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
16029 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
16031 (grub_children_iterate): Likewise.
16032 (grub_machine_mmap_iterate): Remove redundant declaration.
16034 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16036 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
16037 (grub_cmd_acpi) [!x86]: Disable EBDA.
16039 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16041 Enable UTF8 in gnulib regexp.
16043 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
16044 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
16045 (isupper): Use grub_isupper.
16046 (isascii): New inline function.
16047 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
16048 * grub-core/lib/posix_wrap/wctype.h: Likewise.
16049 * grub-core/normal/charset.c (grub_utf8_process): New function.
16050 (grub_utf8_to_utf16): Use grub_utf8_process.
16051 (grub_encode_utf8_character): New function.
16052 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
16053 * include/grub/charset.h (grub_utf8_process): New declaration.
16054 (grub_encode_utf8_character): Likewise.
16055 * include/grub/misc.h (grub_islower): New inline function.
16056 (grub_isupper): Likewise.
16057 (grub_strchrsub): Moved down to fix the definitions.
16059 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16061 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
16064 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16066 * include/grub/loader.h (grub_loader_register_preboot_hook):
16067 Use struct preboot * and not void * for handle. All users updated.
16068 (grub_loader_unregister_preboot_hook): Likewise.
16070 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
16072 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
16073 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
16074 UTF-16-BE. All users updated.
16075 (grub_hfsplus_cmp_catkey): Fix unicode handling.
16076 (grub_hfsplus_iterate_dir): Likewise.
16077 (grub_hfsplus_label): Likewise.
16079 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
16081 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
16083 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
16085 Add missing const qualifiers.
16087 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
16088 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
16089 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
16090 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
16091 (grub_lvm_check_flag): Likewise.
16092 * grub-core/efiemu/i386/coredetect.c
16093 (grub_efiemu_get_default_core_name): Likewise
16094 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
16095 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
16096 * grub-core/fs/ntfs.c (fixup): Likewise.
16097 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
16098 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
16099 (fzap_lookup): Likewise.
16100 (zap_lookup): Likewise.
16101 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
16102 * grub-core/lib/legacy_parse.c (check_option): Likewise.
16103 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
16104 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
16105 (grub_freebsd_add_meta_module): Likewise.
16106 (grub_cmd_freebsd_module): Likewise.
16107 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
16108 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
16109 (grub_xnu_writetree_get_size): Likewise.
16110 (grub_xnu_writetree_toheap_real): Likewise.
16111 (grub_xnu_find_key): Likewise.
16112 (grub_xnu_create_key): Likewise.
16113 (grub_xnu_create_value): Likewise.
16114 (grub_xnu_register_memory): Likewise.
16115 (grub_xnu_check_os_bundle_required): Likewise.
16116 (grub_xnu_scan_dir_for_kexts): Likewise.
16117 (grub_xnu_load_kext_from_dir): Likewise.
16118 * grub-core/normal/color.c (color_list): Likewise.
16119 * grub-core/normal/completion.c (current_word): Likewise.
16120 * grub-core/normal/menu_entry.c (insert_string): Likewise.
16121 * grub-core/term/serial.c (grub_serial_find): Likewise.
16122 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
16123 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
16125 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
16126 (grub_freebsd_add_meta_module): Likewise.
16127 * include/grub/lib/arg.h (grub_arg_option): Likewise.
16128 * include/grub/net.h (grub_net_card_driver): Likewise.
16129 (grub_net_card): Likewise.
16130 (grub_net_app_protocol): Likewise.
16131 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
16132 * include/grub/serial.h (grub_serial_find): Likewise.
16133 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
16134 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
16135 (grub_xnu_create_value): Likewise.
16136 (grub_xnu_find_key): Likewise.
16137 (grub_xnu_scan_dir_for_kexts): Likewise.
16138 (grub_xnu_load_kext_from_dir): Likewise.
16140 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
16141 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
16142 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
16143 Moved from here ...
16144 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
16146 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
16148 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
16150 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
16152 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
16153 (read_device): Fix size calculation.
16155 2011-11-25 Robert Millan <rmh@gnu.org>
16157 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
16158 (find_root_device_from_libzfs): Add zpool output parser to be used
16159 as fallback when libzfs isn't available.
16161 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
16163 * po/Makefile.in.in: Add missing escape-continuation.
16165 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
16167 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
16169 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16171 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
16173 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16175 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
16177 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16179 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
16181 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16183 * grub-core/lib/adler32.c: Add missing license specification.
16184 * grub-core/lib/crc64.c: Likewise.
16185 * grub-core/loader/i386/pc/plan9.c: Likewise.
16186 * grub-core/partmap/plan.c: Likewise.
16188 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
16190 Add facility to debug GRUB with gdb under qemu.
16192 * grub-core/gdb_grub.in: New file.
16193 * grub-core/gmodule.pl.in: Likewise.
16194 * grub-core/Makefile.core.def (gmodule.pl): New script.
16195 (gdb_grub): Likewise.
16197 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16199 * util/grub-mount.c (argp_parser): Accept relative pathes.
16200 * util/grub-fstest.c (argp_parser): Likewise.
16202 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16206 * Makefile.util.def (libgrubmods): Add
16207 grub-core/partmap/plan.c.
16208 * docs/grub.texi: Notice Plan9 support.
16209 * grub-core/Makefile.core.def (plan9): New module.
16210 (part_plan): Likewise.
16211 * grub-core/loader/i386/pc/plan9.c: New file.
16212 * grub-core/partmap/plan.c: Likewise.
16213 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
16215 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
16216 * include/grub/mm.h (grub_extend_alloc): New inline function.
16218 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16220 Make Reed-Solomon faster by using power of generator representation of
16223 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
16224 (gf_double_t): Likewise.
16225 (gf_invert): Removed.
16226 (gf_powx): New array.
16227 (gf_powx_inv): Likewise.
16228 (scratch): Move higher.
16229 (gf_reduce): Removed.
16230 (gf_mul): Use powx.
16231 (gf_invert): Likewise.
16232 (init_inverts): Replaced with ...
16233 (init_powx): ...this. All users updated.
16234 (pol_evaluate): Replace multiplications with additions.
16235 (rs_encode): Likewise.
16236 (gauss_eliminate): Call gf_invert.
16237 (grub_reed_solomon_add_redundancy): Call init_powx.
16238 (grub_reed_solomon_recover): Call init_powx unconditionally.
16240 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16242 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
16244 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16246 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
16247 disk->partiton for safety.
16249 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16251 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
16253 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
16255 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16257 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
16259 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16261 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
16263 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16265 Fix spaces handling in proc/self/mountinfo.
16267 * util/getroot.c (unescape): New function.
16268 (grub_find_root_device_from_mountinfo): Use unescape.
16270 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16272 Support ZFS embedding.
16274 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
16275 (grub_zfs_fs): Register grub_zfs_embed.
16277 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16279 Fix MIPS compilation.
16281 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
16282 * include/grub/offsets.h: Rename decompressor fields from
16283 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
16284 * util/grub-mkimage.c (image_targets): Use new names.
16286 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16288 Defer multiboot device parsing until we're in compressed part.
16290 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
16291 bsd_part. setdevice has fallen into disuse.
16292 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
16293 (bsd_part): Likewise.
16294 (boot_dev): New variable.
16295 (multiboot_trampoline): Don't parse multiboot device.
16296 Pass multiboot device in %edx.
16297 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
16299 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
16301 * grub-core/kern/i386/pc/startup.S: Save edx.
16302 (grub_boot_drive): Removed.
16303 (grub_install_dos_part): Likewise.
16304 (grub_install_bsd_part): Likewise.
16305 (grub_boot_device): New variable.
16306 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
16307 (grub_install_bsd_part): Likewise.
16308 (grub_boot_drive): Likewise.
16309 (grub_boot_device): New variable.
16310 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
16312 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16313 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
16314 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
16315 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
16316 * util/grub-install.in: Remove redundant condition.
16318 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16320 Fix bug introduced by previous commit.
16322 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
16324 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16326 Use decompressors framework on i386-pc. It increases core size
16327 by 46 bytes but improves compatibility and maintainability.
16329 * grub-core/Makefile.core.def (lzma_decompress): New image.
16330 (kernel): Add i386_pc_ldflags.
16331 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
16332 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
16333 to real_to_prot, prot_to_real and device info.
16334 * include/grub/offsets.h: Renamed decompressor offsets.
16335 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
16336 (image_target_desc): Remove raw_size and rename decompressor fields.
16337 (compress_kernel): Handle lzma.
16338 (generate_image): Handle decompressors on i386-pc.
16340 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16342 * configure.ac: Add -fno-asynchronous-unwind-tables.
16344 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16346 Move assembly code to C by using intwrap. It increases core size
16347 by 88 bytes but improves compatibility and maintainability.
16349 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
16350 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
16351 ... here. Translated to C.
16352 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
16353 * grub-core/term/i386/pc/console.c (grub_console_getkey):
16354 ... here. Translated to C.
16355 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
16356 * grub-core/term/i386/pc/console.c (grub_console_getxy):
16357 ... here. Translated to C.
16358 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
16359 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
16360 ... here. Translated to C.
16361 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
16362 * grub-core/term/i386/pc/console.c (grub_console_cls):
16363 ... here. Translated to C.
16364 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
16365 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
16366 ... here. Translated to C.
16367 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
16368 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
16370 * grub-core/term/i386/pc/console.c (int10_9): New function.
16371 (grub_console_putchar): Likewise.
16372 * include/grub/i386/pc/console.h: Removed the not anymore shared
16375 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16377 Move grub_chainloader_real_boot out of the kernel.
16379 * grub-core/Makefile.am: Remove machine/loader.h.
16380 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16382 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
16384 (grub_relocator16_keep_a20_enabled): Likewise.
16385 (grub_relocator16_boot): Fill new variables.
16386 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
16387 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
16389 (grub_chainloader_unload): Likewise.
16390 (grub_chainloader_cmd): Likewise.
16391 * include/grub/i386/pc/loader.h: Removed.
16392 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
16393 and esi. All initialisers updated.
16395 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16396 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
16398 * Makefile.util.def (grub-mount): New util.
16399 * .bzrignore: Add grub-mount.
16400 * configure.ac: Check for fuse and enable grub-mount if available.
16401 * docs/man/grub-mount.h2m: New file.
16402 * util/grub-mount.c: Likewise.
16404 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16406 * grub-core/commands/efi/fixvideo.c: Gettextize.
16407 * grub-core/commands/hashsum.c: Likewise.
16408 * grub-core/commands/i386/cmostest.c: Likewise.
16409 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16410 * grub-core/commands/i386/pc/lsapm.c: Likewise.
16411 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16412 * grub-core/commands/lsmmap.c: Likewise.
16413 * grub-core/commands/menuentry.c: Likewise.
16414 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
16415 * grub-core/commands/setpci.c: Likewise.
16416 * grub-core/loader/i386/bsd.c: Likewise.
16417 * grub-core/loader/i386/linux.c: Likewise.
16418 * util/getroot.c: Likewise.
16419 * util/grub-editenv.c: Likewise.
16420 * util/grub-fstest.c: Likewise.
16421 * util/grub-mkfont.c: Likewise.
16422 * util/grub-mkimage.c: Likewise.
16423 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16424 * util/grub-pe2elf.c: Likewise.
16425 * util/grub-probe.c: Likewise.
16426 * util/grub-setup.c: Likewise.
16427 * util/ieee1275/ofpath.c: Likewise.
16428 * util/misc.c: Likewise.
16429 * util/raid.c: Likewise.
16431 2011-11-11 Robert Millan <rmh@gnu.org>
16433 * util/getroot.c (grub_util_get_geom_abstraction): Remove
16434 __attribute__((unused)) from `os_dev', which *is* being used.
16436 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16438 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
16440 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
16441 GRUB_IA64_DL_GOT_ALIGN.
16442 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
16443 GRUB_IA64_DL_TRAMP_ALIGN.
16445 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16447 Replace grub_fatal with normal errors in i386 linux loader.
16449 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
16450 (allocate_pages): Check find_efi_mmap_size return value.
16451 (grub_e820_add_region): Return error.
16452 (grub_linux_boot): Check mmap return value.
16454 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16456 * grub-core/commands/acpihalt.c: Gettextized.
16457 * grub-core/commands/cacheinfo.c: Likewise.
16458 * grub-core/commands/cmp.c: Likewise.
16459 * grub-core/commands/efi/loadbios.c: Likewise.
16460 * grub-core/commands/gptsync.c: Likewise.
16461 * grub-core/commands/ieee1275/suspend.c: Likewise.
16462 * grub-core/commands/legacycfg.c: Likewise.
16463 * grub-core/commands/memrw.c: Likewise.
16464 * grub-core/commands/minicmd.c: Likewise.
16465 * grub-core/commands/parttool.c: Likewise.
16466 * grub-core/commands/time.c: Likewise.
16467 * grub-core/commands/videoinfo.c: Likewise.
16468 * grub-core/disk/geli.c: Likewise.
16469 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
16470 * grub-core/disk/luks.c: Likewise.
16471 * grub-core/disk/lvm.c: Likewise.
16472 * grub-core/font/font_cmd.c: Likewise.
16473 * grub-core/fs/zfs/zfscrypt.c: Likewise.
16474 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16475 * grub-core/gfxmenu/view.c: Likewise.
16476 * grub-core/kern/emu/hostdisk.c: Likewise.
16477 * grub-core/kern/emu/main.c: Likewise.
16478 * grub-core/kern/emu/misc.c: Likewise.
16479 * grub-core/kern/emu/mm.c: Likewise.
16480 * grub-core/kern/mips/arc/init.c: Likewise.
16481 * grub-core/kern/mips/loongson/init.c: Likewise.
16482 * grub-core/kern/partition.c: Likewise.
16483 * grub-core/lib/i386/halt.c: Likewise.
16484 * grub-core/lib/mips/arc/reboot.c: Likewise.
16485 * grub-core/lib/mips/loongson/reboot.c: Likewise.
16486 * grub-core/loader/i386/pc/chainloader.c: Likewise.
16487 * grub-core/loader/i386/xnu.c: Likewise.
16488 * grub-core/loader/multiboot.c: Likewise.
16489 * grub-core/net/bootp.c: Likewise.
16490 * grub-core/net/net.c: Likewise.
16491 * grub-core/normal/term.c: Likewise.
16492 * grub-core/partmap/bsdlabel.c: Likewise.
16493 * grub-core/parttool/msdospart.c: Likewise.
16494 * grub-core/term/gfxterm.c: Likewise.
16495 * grub-core/term/terminfo.c: Likewise.
16496 * grub-core/video/i386/pc/vbe.c: Likewise.
16497 * util/grub-menulst2cfg.c: Likewise.
16498 * util/grub-mkdevicemap.c: Likewise.
16499 * util/grub-mklayout.c: Likewise.
16500 * util/grub-mkrelpath.c: Likewise.
16501 * util/grub-script-check.c: Likewise.
16502 * util/ieee1275/grub-ofpathname.c: Likewise.
16503 * util/resolve.c: Likewise.
16505 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16507 Support %1$d syntax.
16509 * tests/printf_unit_test.c: New file.
16510 * Makefile.util.def (printf_test): New test.
16511 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
16513 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16515 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
16518 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16520 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
16522 * grub-core/font/font.c (grub_font_load): Likewise.
16524 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16526 * util/grub-macho2img.c: Add comment concerning gettext.
16527 * grub-core/lib/legacy_parse.c: Likewise.
16529 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16531 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
16532 (grub_xvasprintf): Likewise.
16534 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16536 Add const keyword to grub_env_get and gettextize week days.
16538 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
16539 (grub_read_hook_datetime): Return const char *.
16540 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
16542 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16544 (grub_get_weekday_name): Return const char *. Call gettext.
16545 * grub-core/script/argv.c (grub_script_argv_append): Receive const
16546 char * and len as the argument. All users updated.
16547 (grub_script_argv_split_append): Receive const char *.
16548 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
16549 * include/grub/env.h (grub_env_get): Likewise.
16550 (grub_env_read_hook_t): Return const char *.
16551 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
16552 (grub_script_argv_split_append): Likewise.
16554 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16556 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
16558 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16560 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
16561 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
16563 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16565 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
16568 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16570 Fix mips compilation.
16572 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
16574 (hashes): Use in embed decoder as well (for sizes).
16575 (dec_stream_header): Fix embed decompressor logic.
16576 (dec_stream_footer): Likewise.
16578 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16580 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
16581 an error and not a fatal on unrecognised relocation types.
16583 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16585 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
16586 Issue error rather than printf on unknown arguments.
16588 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16590 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
16593 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16595 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
16598 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16600 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
16601 leftover debug printf.
16603 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16605 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
16607 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16609 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
16612 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16614 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
16616 2011-11-10 Shea Levy <slevy@tieronedesign.com>
16618 Allow all modules to perform serial IO
16620 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
16621 * include/grub/serial.h (grub_serial_port_configure): New inline
16623 (grub_serial_port_fetch): Likewise.
16624 (grub_serial_port_put): Likewise.
16625 (grub_serial_port_fini): Likewise.
16626 (grub_serial_find): New proto.
16628 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16630 Put symlink at the end of the node and fix a potential
16633 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
16634 Make symlink into an array.
16635 (set_rockridge): Set have_symlink and alloc_dirents.
16636 (grub_iso9660_read_symlink): Use new layout.
16637 (grub_iso9660_iterate_dir): Fix memory corruption.
16639 (grub_iso9660_dir): Set have_symlink.
16640 (grub_iso9660_open): Likewise.
16642 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16644 Remove local keyword.
16646 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
16647 (version_test_gt): Likewise.
16648 (version_find_latest): Likewise.
16649 (gettext_printf): Likewise.
16650 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
16652 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16654 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
16656 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16658 Fix ZFS memory and resource leaks.
16660 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
16663 (fill_vdev_info): New parameter inserted. All users updated.
16664 (check_pool_label): Likewise.
16665 (scan_disk): Likewise.
16666 (scan_devices): Close non-inserted disks.
16667 (fzap_iterate): Free l.
16668 (unmount_device): Free children descripto memory.
16670 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16672 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
16673 argument (access out of bounds).
16675 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16677 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
16680 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16682 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
16685 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16687 Fix several memory leaks.
16689 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
16690 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
16691 (grub_cpio_dir): Likewise.
16692 * grub-core/fs/fat.c (grub_fat_label): Likewise.
16693 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
16694 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
16695 (grub_romfs_label): Likewise.
16696 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
16697 (squash_unmount): New function.
16698 (grub_squash_dir): Fix memory leak.
16699 (grub_squash_open): Likewise.
16700 (grub_squash_read): Likewise.
16701 (grub_squash_mtime): Likewise.
16702 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
16703 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
16704 * util/grub-fstest.c (fstest): Likewise.
16706 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16708 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
16709 avoid accessing beyond the array.
16711 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16713 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
16715 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16717 Several AFFS fixes.
16719 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
16720 (GRUB_AFFS_FLAG_FFS): Removed.
16721 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
16722 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
16723 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
16724 (grub_fshelp_node): Make block 32-bit.
16725 Add block_cache and last_block_cache.
16726 (grub_affs_read_block): Fill and use block cache.
16727 (grub_affs_read_file): Removed.
16728 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
16730 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
16732 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
16734 (grub_affs_close): Free block cache.
16735 (grub_affs_read): Use grub_fshelp_read_file directly.
16737 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16739 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
16742 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16744 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
16746 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16749 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16751 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
16753 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
16754 byteswap when needed.
16756 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16758 Fix FreeBSD compilation.
16760 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
16761 to avoid circular dependency.
16762 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
16763 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
16764 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
16766 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16768 Fix ZFS crypto error types.
16770 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
16771 (grub_gcm_decrypt): Likewise.
16772 (grub_zfs_load_key_real): Fix error code type. Handle possible error
16775 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16779 * Makefile.util.def (10_illumos): New script.
16780 * configure.ac: Set COND_HOST_ILLUMOS.
16781 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
16782 Support Illumos calls.
16783 (find_partition_start) [__sun__]: Likewise.
16784 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
16785 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
16786 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
16787 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
16789 * util/grub-probe.c (probe) [__sun__]: Do character check.
16790 * util/grub.d/10_illumos.in: New file.
16792 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16794 Support escaped commas in hostdisk.
16796 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
16797 (find_grub_drive): Use unescape_cmp.
16798 (make_device_name): Escape commas.
16800 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16802 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
16804 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16806 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16809 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16811 Support trampoline jumps on powerpc.
16813 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16815 (grub_dl_load_segments): Set mod->sz.
16816 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16818 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16820 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16822 (trampoline): New struct.
16823 (trampoline_template): New const.
16824 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16825 * include/grub/dl.h (grub_dl): Add sz element.
16826 [__powerpc__]: Follow __ia64__.
16827 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16828 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16829 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16830 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16832 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16834 ZFS crypto support.
16836 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16837 * grub-core/Makefile.core.def (zfscrypt): New module.
16838 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16839 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16840 it. All users updated.
16841 (grub_zfs_decrypt): New var.
16842 (grub_zfs_load_key): Likewise.
16843 (zio_checksum_functions): Add SHA256+MAC.
16844 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16845 (zio_read): Handle encrypted blocks.
16846 (zap_verify): Remove incorrect check.
16847 (fzap_iterate): Handle non-standard fzap.
16848 (zap_iterate): Likewise.
16849 (zap_iterate_u64): New function.
16850 (dnode_get_fullpath): Load keys.
16851 * grub-core/fs/zfs/zfscrypt.c: New file.
16852 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16853 (grub_crypto_ecb_encrypt): Make input const.
16854 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16855 (grub_crypto_ecb_encrypt): Make input const.
16856 (GRUB_CIPHER_AES): New macro.
16857 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16858 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16859 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16860 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16861 prefix. All users updated.
16862 (grub_zfs_add_key): New proto.
16863 (grub_zfs_decrypt): Likewise.
16864 (grub_zfs_load_key): Likewise.
16865 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16866 * util/grub-fstest.c (options): Add -K option.
16867 (argp_parser): Likewise.
16869 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16871 Support zle compression on ZFS.
16873 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16874 (decomp_table): Add zle.
16875 * include/grub/zfs/zio.h (zio_compress): Add zle.
16877 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16879 Support BtrFS embedding.
16881 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
16882 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
16883 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
16884 * util/grub-setup.c (setup): Use fs embedding if available.
16885 Add additional sanity check.
16887 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16889 * util/grub-install.in: Fix condition for config_opt.
16891 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16893 Support third redundancy strip on raidz3.
16895 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
16896 Return error on singularity. All users updated.
16897 (read_device): Don't stop on 3rd failure on raidz3.
16899 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16901 Support case-insensitive ZFS subvolumes.
16903 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
16905 (zap_hash): Likewise.
16906 (name_cmp): New function.
16907 (zap_leaf_array_equal): New parameter case_insensitive.
16909 (zap_leaf_lookup): Likewise.
16910 (fzap_lookup): Likewise.
16911 (zap_lookup): Likewise.
16912 (dnode_get_path): New parameter case_insensitive. Retrieve case
16913 sensitiviness of a volume. All users updated.
16914 (dnode_get_fullpath): New parameter case_insensitive.
16916 (grub_zfs_dir): Set info.case_insensitiveness.
16918 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16920 Support second redundancy strip on raidz(2,3).
16922 * grub-core/fs/zfs/zfs.c (powx): New array.
16923 (powx_inv): Likewise.
16925 (xor_out): New function.
16926 (gf_mul): Likewise.
16927 (recovery): Likewise.
16928 (read_device): Use second redundancy strip.
16930 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16932 Use a power of generator representation of GF(256) multiplication group
16933 to save space time and complexity.
16935 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
16936 (raid6_table2): Likewise.
16938 (powx_inv): Likewise.
16940 (grub_raid_block_mul): Replace with ...
16941 (grub_raid_block_mulx): ...this.
16942 (grub_raid6_init_table): Rewritten.
16943 (grub_raid6_recover): Use power of generator representation.
16945 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16947 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
16948 for the right device.
16950 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16952 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
16953 expected by grub-mkimage and it's more clear since there is no implicit
16956 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16958 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
16960 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16962 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
16964 * util/grub-mkrescue.in: Fix handling xorriso option.
16966 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16968 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
16971 2011-11-03 crocket <crockabiscuit@gmail.com>
16973 * util/grub.d/10_linux.in: Add Slackware initrd naming.
16975 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16977 XZ CRC64 and SHA256 support.
16979 * Makefile.util.def (libgrubmods): Add crc64.c.
16980 * grub-core/Makefile.core.def (crc64): New module.
16981 * grub-core/lib/crc64.c: New file.
16982 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
16983 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
16985 (MAX_HASH_SIZE): New define.
16986 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
16987 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
16988 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16989 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16990 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
16991 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
16992 Handle non-crc32 hashes.
16993 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
16994 (dec_stream_header): Handle non-crc32 hashes.
16995 (dec_stream_footer): Likewise.
16996 (dec_block_header): Likewise.
16997 (dec_main): Likewise.
16998 (xz_dec_init): Likewise.
16999 (xz_dec_reset): Likewise.
17000 (xz_dec_end): Likewise.
17001 * util/import_gcry.py: Add CRC64 line.
17003 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17005 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
17008 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17010 Make reiserfs label retrieval similar to other *_label functions.
17012 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
17013 (REISERFS_MAX_LABEL_LENGTH): Removed.
17014 (REISERFS_LABEL_OFFSET): Likewise.
17015 (grub_reiserfs_label): Rewritten.
17017 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17019 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
17022 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17024 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
17026 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
17028 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
17029 drive failure on both raidz and raidz2.
17031 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
17033 Fix RAIDZ(2) for >= 5 devices.
17035 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
17036 asize argument. All users updated.
17038 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17042 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
17043 (fill_vdev_info_real): Set ashift.
17044 (read_device): Rewrite RAIDZ part based on reverse engineering.
17046 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17048 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
17049 don't report potentially unavialiable fields in debug output.
17050 (find_path): Fix double-free and memory leak.
17052 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17054 Read label on UFS1.
17056 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
17057 (grub_ufs_fs): Always set .label.
17059 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17063 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
17064 (grub_ufs_data): New field log2_blksz.
17065 (grub_ufs_read_file): Use shifts.
17066 (grub_ufs_mount): Check block size and logarithm it.
17068 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17070 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
17073 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17075 Handle symlinks and long names on tar and cpio.
17077 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
17078 (ATTR_FILE): Likewise.
17079 (ATTR_DIR): Likewise.
17080 (ATTR_LNK): Likewise.
17081 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
17082 (grub_cpio_find_file): Fill mode, handle linkname field as well as
17084 (grub_cpio_mount): Zero-fill data.
17085 (handle_symlink): New function.
17086 (grub_cpio_dir): Handle symlinks.
17087 (grub_cpio_open): Likewise.
17088 (grub_cpio_close) [MODE_USTAR]: Free linkname.
17090 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17092 Fix iso9660 filename limitations and fix memory leaks.
17094 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
17095 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
17097 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17099 Fix JFS file name length limitations.
17101 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
17102 (grub_jfs_diropen): Fix maximum filename length.
17103 (grub_jfs_getent): Fix filename length.
17104 (grub_jfs_lookup_symlink): Fix size checks.
17106 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17108 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
17111 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17113 Leverage BFS implementation to read AFS.
17115 * Makefile.util.def (libgrubmods): Add afs.c.
17116 * grub-core/Makefile.core.def (afs): New module
17117 * grub-core/fs/afs.c: New file.
17118 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
17120 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17122 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
17124 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17126 * grub-core/fs/bfs.c: Run indent.
17128 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17130 BFS implementation based on the specification.
17132 * grub-core/fs/bfs.c: New file.
17133 * Makefile.util.def (libgrubmods): Add bfs.c.
17134 * grub-core/Makefile.core.def (bfs): New module.
17136 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17138 * util/grub-fstest.c (cmd_cp): Clarify error message.
17139 (cmd_cmp): Likewise.
17141 2011-10-30 Yves Blusseau <blusseau@zetam.org>
17143 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
17146 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
17148 Remove afs and befs because of copyright problem.
17150 * grub-core/fs/afs.c: Removed.
17151 * grub-core/fs/afs_be.c: Removed.
17152 * grub-core/fs/befs.c: Removed.
17153 * grub-core/fs/befs_be.c: Removed.
17154 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
17155 * grub-core/Makefile.core.def (afs): Removed.
17156 (afs_be): Likewise.
17158 (befs_be): Likewise.
17160 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17162 Prefer rockridge over Joliet.
17164 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
17166 (set_rockridge): ... here.
17167 (grub_iso9660_mount): Check rockridge on the primary label when
17168 discovering. Ignore Joliet if Rockridge is present.
17170 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17172 Use shifts in nilfs2.
17174 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
17175 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
17176 (grub_nilfs2_palloc_entries_per_group): Replace with ...
17177 (grub_nilfs2_log_palloc_entries_per_group): ... this.
17178 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
17179 (grub_nilfs2_entries_per_block): Replaced with ...
17180 (grub_nilfs2_log_entries_per_block_log): ... this.
17181 (grub_nilfs2_blocks_per_group): Replaced with ...
17182 (grub_nilfs2_blocks_per_group_log): ... this.
17183 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
17184 (grub_nilfs2_blocks_per_desc_block_log): ... this.
17185 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
17186 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
17187 (grub_nilfs2_palloc_entry_offset): Replaced ...
17188 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
17189 (grub_nilfs2_dat_translate): Use shifts.
17190 (grub_nilfs2_read_inode): Likewise.
17191 (GRUB_MOD_INIT): Ensure that logs are correct.
17193 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17195 Use shifts in minix filesystem.
17197 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
17198 (GRUB_MINIX_ZONE2SECT): Likewise.
17199 (grub_minix_data): Replace block_size with log_block_size.
17200 (grub_minix_read_file): Use shifts.
17201 (grub_minix_mount): Check block size and take a logarithm.
17203 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17205 Use shifts in squash4.
17207 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
17208 (squash_mount): Check block size and take logarithm.
17209 (direct_read): Use shifts.
17211 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17213 Correct befs block counting logic.
17215 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
17216 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
17217 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
17218 (grub_afs_read_inode): Use block_shift.
17219 (RANGE_SHIFT): New definition.
17220 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
17221 unexpected conditions, use shifts and appropriate types.
17222 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
17224 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17226 * grub-core/disk/raid.c (scan_devices): Check partition.
17227 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17229 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17231 Support BFS (befs) UUID.
17233 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
17234 (grub_afs_small_data_element_header): New struct.
17235 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
17236 (grub_afs_read_attribute) [MODE_BFS]: New function.
17237 (grub_afs_iterate_dir): Allocate for complete inode.
17238 (grub_afs_mount): Likewise.
17239 (grub_afs_uuid) [MODE_BFS]: New function.
17240 (grub_afs_fs) [MODE_BFS]: Add .uuid.
17242 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17244 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
17245 (zfs_unmount): Fix memory leak.
17247 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17249 Support NTFS reparse points.
17251 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
17252 (symlink_descriptor): New struct.
17253 (grub_ntfs_read_symlink): New function.
17254 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
17255 (grub_ntfs_open): Likewise.
17257 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17259 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
17261 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17263 fstest xnu_uuid subcommand.
17265 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
17266 grub-core/commands/xnu_uuid.c.
17267 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
17268 (fstest): Handle xnu_uuid.
17269 (options): Document xnu_uuid.
17270 (argp_parser): Parse xnu_uuid.
17272 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17274 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
17275 -l argument. Add newline at the end if printing.
17276 (GRUB_MOD_INIT): Document -l.
17278 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17280 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
17282 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17284 ZFS multi-device and version 33 support.
17286 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
17287 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
17288 (grub_zfs_data): Add multidev-ice-related fields.
17289 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
17290 (dva_get_offset): Make dva const.
17291 (zfs_fetch_nvlist): New function.
17292 (fill_vdev_info_real): Likewise.
17293 (fill_vdev_info): Likewise.
17294 (check_pool_label): Likewise.
17295 (scan_disk): Likewise.
17296 (scan_devices): Likewise.
17297 (read_device): Likewise.
17298 (read_dva): Likewise.
17299 (zio_read_gang): Use read_dva.
17300 (zio_read_data): Likewise.
17301 (zap_leaf_lookup): Add missing endian conversion.
17302 (zap_verify): Add missing endian conversion. All users updated.
17303 (fzap_lookup): Likewise.
17304 (fzap_iterate): Likewise.
17305 (dnode_get_path): Handle SA bonus.
17306 (nvlist_find_value): Make input const. All users updated.
17307 (unmount_device): New function.
17308 (zfs_unmount): Use unmount_device.
17309 (zfs_mount): Use scan_disk.
17310 (zfs_mtime): New function.
17311 (grub_zfs_open): Handle system attributes.
17312 (fill_fs_info): Likewise.
17313 (grub_zfs_dir): Likewise.
17314 (grub_zfs_fs): Add mtime.
17315 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
17316 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
17317 (SA_MTIME_OFFSET): Likewise.
17318 (SA_SYMLINK_OFFSET): Likewise.
17319 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
17320 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
17321 (fstest): Support zfsinfo.
17322 (argp_parser): Likewise.
17324 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17326 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
17329 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17333 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
17334 sharing the same block. Iterate over correct number of indices.
17335 (dnode_get_path): Handle symlinks correctly.
17337 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17339 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
17341 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17343 Read label on HFS+.
17345 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
17346 (grub_hfsplus_btree_search): Fix types.
17347 (grub_hfsplus_label): Implement.
17349 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17351 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
17353 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17355 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
17357 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17359 Fix symlink handling on iso9660.
17361 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
17363 (grub_iso9660_susp_iterate): Accept zero-size iterate.
17364 (grub_iso9660_read_symlink): Moved most of code ...
17365 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
17367 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17369 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17370 Use union to avoid breaking strict-aliasing rules.
17372 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17374 Support multi-extent iso files.
17376 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
17378 (grub_fshelp_node): Revamp. All users updated.
17379 (FLAG_*): New enum.
17380 (read_node): New function.
17381 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
17383 (grub_iso9660_mount): Don't attempt to read sua when there is none.
17384 (get_node_size): New function.
17385 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
17387 Fix memory leak on . and ..
17388 (grub_iso9660_read): Use read_node.
17389 (grub_iso9660_close): Free node.
17391 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17393 Fix tar 4G limit and handle paths containing dot.
17395 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
17396 (canonicalize): New function.
17397 (grub_cpio_find_file): Use canonicalize. Store offs in
17399 (grub_cpio_dir): Use grub_disk_addr_t.
17400 (grub_cpio_open): Likewise.
17402 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17404 Fix handling of uncompressed blocks on squashfs and break 4G limit.
17406 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
17408 (grub_squash_inode): Add long_file and block_size.
17409 (grub_squash_cache_inode): New struct.
17410 (grub_squash_dirent): Make types into enum.
17411 (SQUASH_TYPE_LONG_REGULAR): New type.
17412 (grub_squash_frag_desc): Add field size.
17413 (SQUASH_BLOCK_FLAGS): New enum.
17414 (grub_squash_data): Use grub_squash_cache_inode.
17415 (grub_fshelp_node): Make ino_chunk 64-bit.
17416 (read_chunk): Minor argument change. All users updated.
17417 (squash_mount): Use correct le_to_cpu.
17418 (grub_squash_open): Handle LONG_REGULAR.
17419 (direct_read): New function.
17420 (grub_squash_read_data): Handle blocks correctly.
17422 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17424 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
17426 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17428 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
17430 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17432 Fix 2G limit on ZFS.
17434 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
17436 (uberblock_verify): Likewise.
17437 (dmu_read): Likewise.
17438 (grub_zfs_read): Likewise. Remove invalid cast.
17440 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17442 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
17443 (grub_jfs_blkno): Fix incorrect shift.
17444 (grub_jfs_read_file): Use more appropriate types.
17446 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17448 Support triple indirect on minix2 and minix3.
17450 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
17451 Declare triple_indir_zone.
17452 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
17455 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17459 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
17460 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
17461 Rename ctime to mtime. All users updated.
17462 (grub_minix_get_file_block): Fix types and double indirect computations.
17464 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17466 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
17467 if no label is found.
17468 (grub_fat_iterate_dir): Fix file size type.
17469 (grub_fat_iterate_dir): Likewise.
17471 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17473 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
17475 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17476 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17478 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17480 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
17482 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17484 * util/import_gcry.py: Accept space between # and include.
17486 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17488 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
17490 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17492 Fine grainely disable warnings on lexer. Remove Wno-error on it.
17494 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
17495 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
17497 * grub-core/script/yylex.l: Add fine-grained #pragma.
17499 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17501 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
17502 New inline function.
17503 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
17505 (memset) [GRUB_UTIL]: Likewise.
17506 (memcmp) [GRUB_UTIL]: Likewise.
17508 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17510 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
17511 inline function rather than a define.
17513 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17515 * util/grub-setup.c: Add missing include.
17517 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17519 * util/ieee1275/grub-ofpathname.c: Add missing include.
17521 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17523 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
17524 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
17527 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17529 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
17532 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17534 * util/grub-install.in: Add datarootdir as per automake manual
17536 * util/grub-mknetdir.in: Likewise.
17538 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17540 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
17542 * util/grub.d/10_kfreebsd.in: Likewise.
17543 * util/grub.d/10_linux.in: Likewise.
17544 * util/grub.d/10_netbsd.in: Likewise.
17545 * util/grub.d/10_windows.in: Likewise.
17546 * util/grub.d/20_linux_xen.in: Likewise.
17548 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
17550 Remove redundant grub_kernel_image_size.
17552 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
17554 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
17555 the small code. It moves it only by few bytes but simplifies the code.
17556 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
17558 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
17559 (grub_kernel_image_size): Removed.
17560 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
17561 (grub_kernel_image_size): Removed.
17562 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
17563 compiled with Apple toolchain.
17564 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
17565 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
17566 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
17567 (grub_total_module_size): Likewise.
17568 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
17570 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
17571 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
17572 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
17573 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
17574 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
17575 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
17576 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
17577 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
17579 (grub_total_module_size): Removed.
17580 * util/grub-mkimage.c (image_target_desc): Remove image_size.
17581 (image_targets): Likewise.
17582 Set .compressed_size to no field on sparc.
17583 (generate_image): Remove kernel_image_size handling.
17585 2011-10-19 Szymon Janc <szymon@janc.net.pl>
17587 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
17588 NULL pointer dereference.
17590 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17592 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
17593 done with a dedicated section.
17595 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
17596 Ensure the correct position of boot_path.
17597 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
17598 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
17600 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
17601 * include/grub/boot.h: Removed. All references removed.
17602 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17604 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
17606 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17608 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
17611 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17613 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
17615 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17617 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
17618 Don't add the bogus brackets.
17620 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17624 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
17625 * grub-core/Makefile.core.def (exfat): New module.
17626 * grub-core/fs/exfat.c: New file.
17627 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
17628 (GRUB_FAT_ATTR_*): Make into an enum.
17629 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
17630 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
17631 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
17632 (GRUB_FAT_MAXFILE): Removed.
17633 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
17634 (grub_current_fat_bpb_t): New type.
17635 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
17636 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
17637 (grub_fat_dir_node_t): New type.
17638 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
17639 (fat_log2) [MODE_EXFAT]: Removed.
17640 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
17641 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
17642 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
17643 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
17644 (grub_fat_label) [MODE_EXFAT]: New function.
17645 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
17646 reserved_first_sector to 0.
17648 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17650 Move grub_reboot out of the kernel.
17652 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
17653 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
17654 * grub-core/lib/efi/reboot.c: ... here.
17655 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
17656 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17657 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
17658 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
17659 * grub-core/lib/i386/reboot_trampoline.S: ... here.
17660 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
17661 * grub-core/lib/ieee1275/reboot.c: ... here.
17662 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
17663 * grub-core/lib/mips/arc/reboot.c: ... here.
17664 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
17665 * grub-core/lib/mips/loongson/reboot.c: ...here.
17666 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
17667 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
17668 * include/grub/emu/misc.h (grub_reboot): New function declaration.
17669 * include/grub/i386/reboot.h: New file.
17670 * include/grub/mips/loongson/ec.h: Fix includes.
17671 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
17672 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
17673 * grub-core/lib/i386/reboot.c: New file.
17675 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
17677 Make grub_prefix into module to fix the arbitrary limit and save
17680 * grub-core/kern/emu/main.c (grub_prefix): Removed.
17681 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
17682 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
17683 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
17684 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
17685 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
17686 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
17687 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
17688 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17689 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
17690 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
17691 * include/grub/ia64/efi/kernel.h: Removed.
17692 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
17693 (grub_prefix): Removed.
17694 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
17695 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
17696 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
17697 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
17698 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
17699 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
17700 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
17701 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
17702 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
17703 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
17704 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
17705 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
17706 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
17707 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
17708 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
17709 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
17710 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
17711 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
17712 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
17713 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
17714 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
17715 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
17716 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
17717 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
17718 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
17719 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
17720 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
17721 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
17722 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
17724 * util/grub-mkimage.c (image_target_desc): Removed prefix and
17726 (image_targets): Likewise.
17727 (generate_image): Put prefix as a module.
17729 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17731 Replace grub_module_iterate with FOR_MODULES.
17733 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
17734 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
17735 (grub_efi_modules_addr): ...this.
17736 * grub-core/kern/efi/init.c (grub_modbase): New variable.
17737 (grub_efi_init): Set grub_modbase.
17738 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
17739 (grub_modbase): New variable.
17740 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
17741 (grub_modbase): New variable.
17742 (grub_machine_init): Set grub_modbase.
17743 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
17744 (grub_modbase): New variable.
17745 (grub_machine_init): Set grub_modbase.
17746 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
17747 (grub_modbase): New variable.
17748 (grub_machine_init): Set grub_modbase.
17749 * grub-core/kern/main.c (grub_module_iterate): Remove.
17750 (grub_modules_get_end): Use grub_modbase.
17751 (grub_load_modules): Use FOR_MODULES.
17752 (grub_load_config): Likewise.
17753 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
17754 (grub_modbase): New variable.
17755 (grub_machine_init): Set grub_modbase.
17756 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
17757 (grub_modbase): New variable.
17758 (grub_machine_init): Set grub_modbase.
17759 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
17761 (grub_modbase): New variable.
17762 (grub_machine_init): Set grub_modbase.
17763 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
17764 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
17765 (grub_module_iterate): Likewise.
17766 (grub_modbase): New variable declaration.
17767 (FOR_MODULES): New macro.
17769 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17771 * configure.ac: Check for __ctzdi2 and __ctzsi2.
17772 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
17774 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17776 Fix few obvious type discrepancies.
17778 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
17779 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
17780 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
17782 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
17783 and connected types.
17784 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17786 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
17787 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
17788 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
17789 and connected types.
17791 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17793 Fix python 3.x incompatibilities.
17795 * gentpl.py: Put brackets around print strings.
17796 * util/import_gcry.py: Open explicitly as utf-8.
17797 Use in instead of has_key.
17799 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17801 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
17802 (GRUB_XFS_INO_AGBITS): Make into inline function.
17803 (GRUB_XFS_INO_INOINAG): Likewise.
17804 (GRUB_XFS_INO_AG): Likewise.
17805 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17806 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17807 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17808 (GRUB_XFS_EXTENT_SIZE): Likewise.
17809 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17810 (GRUB_XFS_NEXT_DIRENT): Likewise.
17811 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17812 (grub_xfs_read_file): Fix offset type.
17814 2011-10-15 Robert Millan <rmh@gnu.org>
17816 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17818 2011-10-15 Robert Millan <rmh@gnu.org>
17820 Fix build problem on FreeBSD and GNU/kFreeBSD.
17822 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17824 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17826 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17828 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17830 (grub_hfsplus_btree_recoffset): Likewise.
17831 (grub_hfsplus_btree_recptr): Likewise.
17832 (grub_hfsplus_find_block): Likewise.
17833 (grub_hfsplus_btree_search): Likewise.
17834 (grub_hfsplus_read_block): Likewise.
17835 (grub_hfsplus_read_file): Likewise.
17836 (grub_hfsplus_mount): Likewise.
17837 (grub_hfsplus_btree_iterate_node): Likewise.
17838 (grub_hfsplus_btree_search): Likewise.
17839 (grub_hfsplus_iterate_dir): Likewise.
17840 (grub_hfsplus_read): A small code simplification.
17842 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17844 * grub-core/kern/emu/hostdisk.c
17845 (convert_system_partition_to_system_disk): Don't assume that children
17846 of mapper nodes are mapper nodes.
17848 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17850 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17851 * include/grub/misc.h (grub_isxdigit): New function.
17852 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17853 switched to grub_isxdigit.
17854 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17855 number starting with a letter.
17857 2011-10-09 Robert Millan <rmh@gnu.org>
17859 LVM support for FreeBSD and GNU/kFreeBSD.
17861 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17863 (LVM_DEV_MAPPER_STRING): Move from here ...
17864 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17865 * util/getroot.c: Include `<grub/util/lvm.h>'.
17866 (grub_util_get_dev_abstraction): Enable
17867 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17868 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17869 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17870 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17872 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17874 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17875 when LVM abstraction is required for ${GRUB_DEVICE}.
17877 2011-10-06 Szymon Janc <szymon@janc.net.pl>
17879 Add support for LZO compression in GRUB:
17880 - import of minilzo library,
17881 - LZO decompression for btrfs,
17882 - lzop files decompression.
17884 * grub-core/io/lzopio.c: New file.
17885 * grub-core/lib/adler32.c: Likewise.
17886 * grub-core/lib/minilzo/lzoconf.h: Likewise.
17887 * grub-core/lib/minilzo/lzodefs.h: Likewise.
17888 * grub-core/lib/minilzo/minilzo.c: Likewise.
17889 * grub-core/lib/minilzo/minilzo.h: Likewise.
17890 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
17891 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
17892 grub-core/lib/minilzo/minilzo.c to common.
17893 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
17894 cflags in cppflags.
17895 * grub-core/Makefile.core.def (btrfs): Likewise.
17896 * grub-core/Makefile.core.def (lzopio): New module.
17897 (adler32): Likewise.
17898 * grub-core/fs/btrfs.c: Include minilzo.h.
17899 (GRUB_BTRFS_COMPRESSION_LZO): New define.
17900 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
17901 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
17902 (grub_btrfs_lzo_decompress): New function.
17903 (grub_btrfs_extent_read): Add support for LZO compression type.
17904 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
17905 (GRUB_USHRT_MAX): Likewise.
17906 (GRUB_UINT_MAX): Likewise.
17907 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
17908 (UINT_MAX): Likewise.
17909 (CHAR_BIT): Likewise.
17910 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
17911 grub-core/lib/posix_wrap/limits.h
17912 (UCHAR_MAX): Likewise.
17913 * include/grub/file.h (grub_file_filter_id): New compression filter
17914 GRUB_FILE_FILTER_LZOPIO.
17915 * include/grub/file.h (grub_file_filter_id): Set
17916 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
17917 * include/grub/types.h (grub_get_unaligned16): New function.
17918 (grub_get_unaligned32): Likewise.
17919 (grub_get_unaligned64): Likewise.
17920 * util/import_gcry.py (cryptolist): Add adler32.
17922 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
17924 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
17925 in perspective decreases the complexity of build system and fixes
17926 compilation right now.
17928 2011-10-01 Ales Nesrsta <starous@volny.cz>
17930 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
17931 (fixed problem related to using UHCI with coreboot).
17933 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17935 * gentpl.py: Use Autogen macros so that the output template file
17936 (Makefile.tpl) size is reduced.
17938 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
17940 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
17943 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17945 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
17946 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
17948 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17950 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
17953 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17955 Remove extra declaration of sleep for mingw32.
17957 * util/misc.c (sleep) [__MINGW32__]: Removed.
17958 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
17960 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
17962 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
17964 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
17966 (NETBSD_BTINFO_BOOTWEDGE): New definition.
17967 (grub_netbsd_btinfo_bootwedge): New struct.
17968 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17970 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
17972 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
17974 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
17977 2011-09-28 Andreas Born <futur.andy@googlemail.com>
17979 Fix incorrect identifiers in bash-completion.
17981 * util/bash-completion.d/grub-completion.bash.in
17982 (_grub_mkpasswd-pbkdf2): Rename to ...
17983 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
17984 (_grub_script-check): Rename to ...
17985 (_grub_script_check): ... this. All users updated.
17987 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
17989 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
17990 Return 0 if disk isn't biosdisk.
17992 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17994 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
17996 * Makefile.util.def (grub-fstest): Likewise.
17998 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
18000 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
18001 Get sector size from disk label.
18003 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
18005 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
18006 */README* as well as README*.
18007 Reported by: Axel Beckert.
18009 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18011 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
18012 case of less than 256 MiB of RAM.
18014 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18016 * grub-core/commands/wildcard.c (make_regex): Handle @.
18018 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18020 * util/grub-install.in: Move cryptodisk logic to appropriate place.
18022 2011-08-21 Szymon Janc <szymon@janc.net.pl>
18024 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
18025 AC_LANG_CONFTEST macros.
18027 2011-08-20 Szymon Janc <szymon@janc.net.pl>
18029 Add grub-fstest option to uncompress data for commands.
18031 * util/grub-fstest.c (uncompress): New var.
18032 (options): New option -u.
18034 2011-08-20 Szymon Janc <szymon@janc.net.pl>
18036 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
18037 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
18039 2011-08-20 Szymon Janc <szymon@janc.net.pl>
18041 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
18042 file type was not recognized correctly (not gzip or corrupted).
18044 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18046 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
18047 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
18049 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18051 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
18053 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
18054 video_radeon_fuloong2e.
18055 * grub-core/video/radeon_fuloong2e.c: New file.
18056 * include/grub/video.h (grub_video_id_t): Add new ID
18057 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
18059 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18061 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
18063 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
18064 that PRID matches the detected subplatform and reset the subplatform
18067 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18069 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
18071 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18073 Fix PCI iterating on functions >= 4.
18075 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
18076 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
18078 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
18079 (grub_pci_read): Fix bitmask.
18080 (grub_pci_read_word): Likewise.
18081 (grub_pci_read_byte): Likewise.
18082 (grub_pci_write): Likewise.
18083 (grub_pci_write_word): Likewise.
18084 (grub_pci_write_byte): Likewise.
18086 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18088 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
18089 can still be specified in TARGET_CFLAGS)
18091 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18093 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
18095 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
18096 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
18097 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
18098 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
18099 (FULOONG): Rename to ...
18100 (FULOONG2F): ... this. All users updated.
18101 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
18102 (machtype_fuloong2f_str): ... this.
18103 (machtype_fuloong2e_str): New string.
18104 Check for machtype_fuloong2e_str.
18105 * grub-core/loader/mips/linux.c (loongson_machtypes)
18106 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
18107 * grub-core/term/serial.c (loongson_defserial)
18108 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
18109 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
18110 loongson_defserial.
18111 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
18113 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
18114 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
18115 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
18116 to IMAGE_FULOONG2F_FLASH. All users updated.
18117 (image_targets): Rename images.
18118 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
18120 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18122 Make enable of disk cache statistics code configurable.
18124 * configure.ac: --enable-cache-stats added.
18125 * config.h.in (DISK_CACHE_STATS): New define.
18126 * grub-core/Makefile.core.def (cacheinfo): New command.
18127 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
18128 * grub-core/commands/cacheinfo.c: New file.
18129 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
18130 moved to cacheinfo.c.
18131 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
18133 * include/grub/disk.h: Likewise.
18135 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18137 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
18138 * grub-core/Makefile.am: Likewise.
18140 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18142 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
18145 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18147 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
18149 (grub_jfs_lookup_symlink): Use correct starting inode.
18151 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18153 * util/grub-setup.c (main): Add missing gcry initialisation.
18155 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18157 Don't accept text modes on EFI when booting Linux.
18159 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
18160 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
18162 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
18163 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18165 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
18166 use of "/path/.." as in grub-install for EFI as well as handling
18167 symlinks correctly.
18168 Fixes Debian bug #637768.
18170 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18172 * util/grub-probe.c: Remove duplicate #include.
18174 2011-08-10 Robert Millan <rmh@gnu.org>
18176 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
18178 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
18180 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
18181 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
18183 2011-08-03 Robert Millan <rmh@gnu.org>
18185 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
18186 la_array as packed.
18187 Reported by: Zachary Bedell
18189 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18191 * configure.ac: The Loongson port requires grub-mkfont due to its
18192 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
18195 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18197 * util/grub-install.in: Don't source grub-mkconfig_lib until after
18198 processing arguments (otherwise help2man fails when GRUB has not yet
18201 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18203 New script grub-mkstandalone.
18205 * Makefile.util.def (grub-mkstandalone): New script.
18206 * docs/man/grub-mkstandalone.h2m: New file.
18207 * util/grub-mkstandalone.in: Likewise.
18209 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18211 Support ATA disks with 4K sectors.
18213 * include/grub/ata.h (grub_ata): New member log_sector_size.
18214 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
18215 (grub_ata_identify): Read sector size.
18216 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
18218 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18220 * util/grub-install.in: Don't use uhci outside of x86.
18222 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18224 * util/grub-mkrescue.in: Add missing quotes.
18226 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18228 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
18231 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18233 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
18235 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18237 * include/grub/video.h: add missing EXPORT_FUND on
18238 grub_video_edid_checksum and grub_video_edid_preferred_mode.
18240 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18242 * include/grub/mips/kernel.h: Fix define conflict.
18244 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18246 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
18249 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
18251 Preferred resolution detection for VBE.
18253 * grub-core/video/video.c (grub_video_edid_checksum): New function.
18254 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
18255 the Flat Panel extension, in line with the X.org VESA driver.
18256 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
18258 (grub_vbe_bios_get_ddc_capabilities): Likewise.
18259 (grub_vbe_bios_read_edid): Likewise.
18260 (grub_vbe_get_preferred_mode): Likewise.
18261 (grub_video_vbe_setup): When the mode is "auto", try to get the
18262 preferred mode from VBE, and use the largest mode that is no larger
18263 than the preferred mode (some BIOSes expose a preferred mode that is
18264 not in their mode list!). If this fails, fall back to 640x480 as a
18265 safe conservative choice.
18266 (grub_video_vbe_get_edid): New function.
18267 (grub_video_vbe_adapter): Add get_edid.
18268 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
18269 (struct grub_video_adapter): Add get_edid.
18270 (grub_video_edid_checksum): Add prototype.
18271 (grub_video_edid_preferred_mode): Likewise.
18272 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
18275 * grub-core/commands/videoinfo.c (print_edid): New function.
18276 (grub_cmd_videoinfo): Print EDID if available.
18278 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
18279 is more appropriate on a wider range of platforms than 640x480.
18280 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
18283 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18285 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
18287 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18289 * po/POTFILES.in: Regenerate.
18291 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18293 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
18294 incorrect memory usage.
18296 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18298 * util/grub-install.in: Source grub-mkconfig_lib.
18300 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18302 Remove getroot.c from core on emu platform.
18304 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
18306 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
18308 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
18309 * util/getroot.c (get_win32_path): ... here.
18310 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
18311 * util/getroot.c (fini_libzfs): ... here.
18312 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
18313 * util/getroot.c (grub_get_libzfs_handle): ... here.
18314 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
18316 * util/getroot.c (grub_find_zpool_from_dir): ... here.
18317 * grub-core/kern/emu/misc.c
18318 (grub_make_system_path_relative_to_its_root): Moved from here...
18319 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
18320 * grub-core/kern/emu/getroot.c: Moved from here ...
18321 * util/getroot.c: ... here. All users updated.
18322 * grub-core/kern/emu/raid.c: Moved from here ...
18323 * util/raid.c: ... here. All users updated.
18325 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18327 * po/POTFILES.in: Regenerate.
18329 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18331 Fix compilation on GNU/Linux.
18333 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
18335 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
18336 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
18337 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
18339 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18340 2011-07-07 Michael Gorven <michael@gorven.za.net>
18341 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
18343 LUKS and GELI support.
18345 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
18346 grub-core/disk/luks.c, grub-core/disk/geli.c,
18347 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
18348 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
18349 grub-core/lib/arg.c.
18350 (libgrubmods.a): Remove gcrypts cflags and cppflags.
18351 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
18352 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
18353 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
18354 (grub-bin2h): Add libgcry.a.
18355 (grub-mkimage): Likewise.
18356 (grub-mkrelpath): Likewise.
18357 (grub-script-check): Likewise.
18358 (grub-editenv): Likewise.
18359 (grub-mkpasswd-pbkdf2): Likewise.
18360 (grub-pe2elf): Likewise.
18361 (grub-fstest): Likewise.
18362 (grub-mkfont): Likewise.
18363 (grub-mkdevicemap): Likewise.
18364 (grub-probe): Likewise.
18365 (grub-ofpath): Likewise.
18366 (grub-mklayout): Likewise.
18367 (example_unit_test): Likewise.
18368 (grub-menulst2cfg): Likewise.
18369 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
18370 * grub-core/Makefile.core.def (cryptodisk): New module.
18373 * grub-core/disk/AFSplitter.c: New file.
18374 * grub-core/disk/cryptodisk.c: Likewise.
18375 * grub-core/disk/geli.c: Likewise.
18376 * grub-core/disk/luks.c: Likewise.
18377 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
18379 (grub_util_get_dm_abstraction): New function.
18380 (grub_util_follow_gpart_up): Likewise.
18381 (grub_util_get_geom_abstraction): Likewise.
18382 (grub_util_get_dev_abstraction): Use new functions.
18383 (grub_util_pull_device): Pull GELI and LUKS.
18384 (grub_util_get_grub_dev): Handle LUKS and GELI.
18385 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
18386 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
18387 (follow_geom_up): Removed.
18388 (grub_util_fd_seek): New function.
18389 (open_device): Use grub_util_fd_seek.
18390 (nread): Rename to ..
18391 (grub_util_fd_read): ... this. All users updated.
18392 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
18393 (grub_crypto_cbc_decrypt): Likewise.
18394 (grub_crypto_hmac_write): Likewise.
18395 (grub_crypto_hmac_buffer): Likewise.
18396 (grub_password_get): Extend to util.
18397 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
18398 New member modname.
18399 (gcry_md_spec) [GRUB_UTIL]: Likewise.
18400 * include/grub/cryptodisk.h: New file.
18401 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
18402 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
18404 (grub_util_follow_gpart_up): New proto.
18405 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
18406 (grub_util_fd_read): Likewise.
18407 (grub_cryptodisk_cheat_mount): Likewise.
18408 (grub_util_cryptodisk_print_uuid): Likewise.
18409 (grub_util_get_fd_sectors): Likewise.
18410 * util/grub-fstest.c (mount_crypt): New var.
18411 (fstest): Mount crypto if requested.
18412 (options): New option -C.
18413 (argp_parser): Parse -C.
18414 (main): Init and fini gcry.
18415 * util/grub-install.in: Support cryptodisk install.
18416 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
18417 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
18419 (prepare_grub_to_access_device): Likewise.
18420 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
18421 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
18422 (probe_cryptodisk_uuid): New function.
18423 (probe_abstraction): Likewise.
18424 (probe): Use new functions.
18425 * util/import_gcry.py: Create Makefile.utilgcry.def.
18426 Add modname member.
18428 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18430 Lazy device scanning.
18432 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
18433 (grub-setup): Remove util/raid.c.
18434 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
18435 * grub-core/disk/lvm.c (scan_depth): New variable.
18436 (grub_lvm_iterate): Rescan if necessary.
18437 (find_lv): New function based on grub_lvm_open.
18438 (grub_lvm_open): Use find_lv. Rescan on error.
18439 (is_node_readable): New function.
18440 (is_lv_readable): Likewise.
18441 (grub_lvm_scan_device): Skip already found disks.
18442 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
18443 Stop if searched device is found and readable.
18444 * grub-core/disk/raid.c (inscnt): New variable.
18445 (scan_depth): Likewise.
18446 (scan_devices): New function based on grub_raid_register. Abort if
18447 looked for device is found.
18448 (grub_raid_iterate): Rescan if needed.
18449 (find_array): NEw function based on -grub_raid_open.
18450 (grub_raid_open): Use find_array and rescan.
18451 (insert_array): Set became_readable_at.
18452 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
18453 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
18455 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
18456 (grub_util_pull_device): New function.
18457 (grub_util_get_grub_dev): Call grub_util_pull_device.
18458 * util/raid.c: Moved to ..
18459 * grub-core/kern/emu/raid.c: ... here.
18460 (grub_util_raid_getmembers): New parameter "bootable".
18461 All users updated. Support 1.x.
18462 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
18464 * include/grub/disk.h (grub_disk_pull_t): New enum.
18465 (grub_disk_dev): Change iterate prototype.
18467 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
18469 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
18470 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
18471 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
18472 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
18474 * include/grub/util/raid.h: Removed.
18476 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18478 * po/POTFILES.in: Regenerate.
18480 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18482 Unify sparc init with other ieee1275.
18484 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
18485 instead of kern/sparc64/ieee1275/init.c.
18486 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
18487 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
18488 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
18489 grub/machine/kernel.h.
18490 (grub_ieee1275_original_stack) [__sparc__]: New variable.
18491 (grub_claim_heap) [__sparc__]: Use sparc version.
18492 (grub_machine_init): Moved args parsing to
18493 (grub_parse_cmdline): ...this.
18494 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
18495 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
18497 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
18499 Move BOOTP to separate file.
18501 * grub-core/Makefile.core.def (net): Add net/bootp.c.
18502 * grub-core/net/net.c: Move all BOOTP functions to
18503 * grub-core/net/bootp.c: ... here.
18505 Use frame interface on PXE.
18507 * grub-core/Makefile.core.def (pxecmd): Removed.
18508 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
18509 * grub-core/commands/i386/pc/pxecmd.c: Removed.
18510 * grub-core/i386/pc/pxe.c: Moved from here ...
18511 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
18512 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
18513 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
18515 EFI network support.
18517 * grub-core/Makefile.core.def (efinet): New module.
18518 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
18520 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
18522 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
18523 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
18524 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
18525 * grub-core/net/drivers/efi/efinet.c: New file.
18526 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
18527 (grub_efi_net_config): New extern var.
18529 Various cleanups and bugfixes.
18531 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
18533 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
18534 disk declared as partition.
18535 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
18537 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
18538 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
18539 (grub_debug_zalloc): Likewise.
18540 (grub_debug_realloc): Likewise.
18541 (grub_debug_memalign): Likewise.
18542 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
18543 Check that target is IPv4.
18544 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
18545 local-mac-address as fallback.
18546 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
18548 * grub-core/net/ip.c (ipchksum): Rename to ...
18549 (grub_net_ip_chksum): ... this. All users updated.
18550 (grub_net_recv_ip_packets): Special handling for DHCP.
18551 * util/grub-mkimage.c (generate_image): Zero-out aout header.
18553 Unify prefix handling
18555 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
18556 (grub_machine_get_bootlocation): ... this.
18557 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
18558 (grub_machine_get_bootlocation): ... this.
18559 (grub_prefix): New variable.
18561 (root_dev): New variable.
18563 (main): Use new variables.
18564 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
18566 (grub_machine_get_bootlocation): ... this.
18567 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
18568 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
18569 (grub_machine_get_bootlocation): ... this.
18570 (grub_machine_set_prefix): Removed.
18571 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
18572 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
18574 (grub_machine_get_bootlocation): ... this.
18575 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
18576 (grub_set_prefix_and_root): ... this. All users updated.
18577 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
18579 (grub_machine_get_bootlocation): ... this.
18580 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
18581 (grub_machine_get_bootlocation): New proto.
18582 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
18584 Less intrusive and more reliable seek on network implementation.
18586 * grub-core/kern/file.c (grub_file_net_seek): Removed.
18587 (grub_file_seek): Don't call grub_file_net_seek.
18588 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
18589 (grub_net_fs_read_real): .. this.
18590 (grub_net_seek_real): Use net->offset.
18591 (grub_net_fs_read): Seek if necessary.
18593 Unify IEEE1275 netwotk config with the other platforms.
18595 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
18597 (grub_machine_get_bootlocation): Support network.
18598 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
18599 Support type and device parsing.
18600 (grub_ieee1275_get_device_type): New function.
18601 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
18603 (grub_ieee1275_net_config_real): ... this.
18604 (grub_ofnet_probecards): Removed.
18605 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
18606 * include/grub/ieee1275/ofnet.h: Removed.
18607 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
18609 (grub_ieee1275_get_device_type): New function.
18611 Unify network device closing across platforms and make more robust.
18613 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
18615 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
18617 * grub-core/net/net.c (grub_net_network_level_interface_register):
18619 (grub_net_card_unregister): Close all interfaces.
18620 (receive_packets): Don't poll if no iterfaces are registered.
18622 (grub_net_fini_hw): New function.
18623 (grub_net_restore_hw): Likewise.
18624 (fini_hnd): New variable.
18625 (GRUB_MOD_INIT): Register preboot hook.
18626 (GRUB_MOD_FINI): Run and unregister preboot hook.
18628 Poll network cards when idle.
18630 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
18631 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
18632 * grub-core/net/net.c (receive_packets): Save last poll time.
18633 (grub_net_poll_cards_idle_real): New function.
18634 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
18635 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
18636 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
18638 Rename ofnet interfaces.
18640 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
18641 (grub_ofnet_findcards): Use ofnet_%s names.
18643 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
18645 Cleanup socket opening.
18647 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
18648 (grub_net_fs_close): Likewise.
18649 (grub_net_fs_read_real): Use eof member.
18650 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
18651 (+grub_net_udp_close): New inline function.
18653 * include/grub/net/tftp.h: Moved to the top of ...
18654 * grub-core/net/tftp.c: ... here.
18655 * include/grub/net/ip.h: Moved mostly to the top of ...
18656 * grub-core/net/ip.c: ... here.
18657 * include/grub/net/ethernet.h: Moved mostly to the top of ...
18658 * grub-core/net/ethernet.c: ... here.
18660 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
18662 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
18665 * include/grub/net/ip.h (ipv4_ini): Removed.
18666 (ipv4_fini): Likewise.
18668 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
18669 (grub_net_send_ip_packets): Likewise.
18671 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18673 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
18674 grub_read_cmos prototype.
18676 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18678 VGA text support in qemu-mips
18680 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
18681 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
18682 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
18684 * grub-core/kern/i386/qemu/init.c: Renamed to ...
18685 * grub-core/kern/vga_init.c: ... this.
18686 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
18687 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
18688 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
18690 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
18691 GRUB_MACHINE_PCI_IO_BASE.
18693 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18695 MIPS qemu flash support.
18697 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
18699 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
18700 (grub_machine_init): Probe memory if its size isn't known.
18701 * util/grub-mkimage.c (image_targets): Add flash targets.
18702 (generate_image): Handle flash targets.
18704 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18706 MIPS qemu at_keyboard support.
18708 * gentpl.py (videoinkernel): Add qemu-mips.
18709 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
18710 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
18711 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
18713 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
18714 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
18715 * grub-core/term/serial.c (grub_serial_register)
18716 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
18718 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18720 CMOS support on sparc.
18722 * gentpl.py (cmos): Add powerpc and sparc.
18723 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
18725 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
18726 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
18727 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
18728 grub_set_datetime_cmos.
18729 * grub-core/lib/ieee1275/cmos.c: New file.
18730 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
18731 (find_rtc): Set no_ieee1275_rtc on error.
18732 (grub_get_datetime): Call grub_get_datetime_cmos on error.
18733 (grub_set_datetime): Call grub_set_datetime_cmos on error.
18734 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
18735 fail. Move value to argument. All users updated
18736 (grub_cmos_write): Likewise.
18737 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
18738 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
18739 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
18740 grub_get_datetime_cmos and grub_set_datetime_cmos.
18742 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
18744 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
18745 sourcing grub-mkconfig_lib.
18746 * util/update-grub_lib.in: Likewise.
18747 * util/grub.d/00_header.in: Likewise.
18748 * util/grub.d/10_hurd.in: Likewise.
18749 * util/grub.d/10_kfreebsd.in: Likewise.
18750 * util/grub.d/10_linux.in: Likewise.
18751 * util/grub.d/10_netbsd.in: Likewise.
18752 * util/grub.d/10_windows.in: Likewise.
18753 * util/grub.d/20_linux_xen.in: Likewise.
18754 * util/grub.d/30_os-prober.in: Likewise.
18756 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
18758 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
18759 default_bg_color rather than black.
18760 (grub_gfxterm_fullscreen): Likewise.
18761 (grub_gfxterm_background_color_cmd): Save new background color in
18764 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18766 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
18768 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18770 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
18773 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18775 Chainloading on coreboot support.
18777 * grub-core/Makefile.core.def (chain): Add coreboot.
18778 * grub-core/loader/i386/coreboot/chainloader.c: New file.
18780 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18782 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
18785 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18787 Implement time command.
18789 * grub-core/Makefile.core.def (time): New module.
18790 * grub-core/commands/time.c: New file.
18791 * grub-core/script/parser.y: Remove "time" keyword.
18792 * grub-core/script/yylex.l: Likewise.
18794 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18796 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
18798 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18800 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
18801 when handling leftovers.
18803 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18805 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18806 so that help2man doesn't fail.
18808 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18810 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18811 type in pointers on sparc64.
18812 (get_card_packet): Likewise.
18814 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
18816 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18818 (grub_cmd_videoinfo): Fetch current video mode.
18820 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18822 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18823 because of underlying system restrictions.
18825 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18827 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18830 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18832 Coreboot video support.
18834 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18836 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18837 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18839 * grub-core/kern/i386/int.S: ... here.
18840 * grub-core/video/i386/pc/vbe.c: Updated includes.
18841 * grub-core/video/i386/pc/vga.c: Likewise.
18842 * include/grub/i386/coreboot/memory.h
18843 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18844 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18845 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18846 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18847 Disable interrupts.
18848 * include/grub/i386/pc/vga.h: Removed. All users updated.
18850 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18852 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18853 definitions for dprintf.
18854 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18856 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18858 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18860 (get_card_packet): Likewise.
18862 2011-06-26 Yves Blusseau <blusseau@zetam.org>
18864 Display the path of the file when file is not found
18866 * grub-core/fs/fat.c: Display the filename when file is not found.
18867 * grub-core/fs/fshelp.c: Likewise.
18868 * grub-core/fs/hfs.c: Likewise.
18869 * grub-core/fs/jfs.c: Likewise.
18870 * grub-core/fs/minix.c: Likewise.
18871 * grub-core/fs/ufs.c: Likewise.
18872 * grub-core/fs/btrfs.c: Likewise.
18873 * grub-core/commands/i386/pc/play.c: Likewise.
18875 2011-06-26 Szymon Janc <szymon@janc.net.pl>
18877 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18878 pointer checks before calling grub_free().
18879 * grub-core/commands/wildcard.c (match_devices): Likewise.
18880 * grub-core/commands/wildcard.c (match_files): Likewise.
18881 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
18882 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
18883 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
18884 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
18885 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
18886 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
18887 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
18888 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
18889 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
18891 2011-06-25 Patrick <p55@mailinator.com>
18893 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
18895 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
18897 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
18898 (grub_pxe_send): Likewise.
18899 (GRUB_MOD_INIT): Fix types.
18901 2011-06-24 Szymon Janc <szymon@janc.net.pl>
18903 * grub-core/io/xzio.c: Fix code style issues
18905 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18906 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
18908 Network infrastructure.
18909 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
18911 * include/grub/net/arp.h: New file.
18912 * include/grub/net/device.h: Likewise.
18913 * include/grub/net/ethernet.h: Likewise.
18914 * include/grub/net/ip.h: Likewise.
18915 * include/grub/net/netbuff.h: Likewise.
18916 * include/grub/net/tftp.h: Likewise.
18917 * include/grub/net/udp.h: Likewise.
18918 * include/grub/ieee1275/ofnet.h: Likewise.
18919 * include/grub/emu/export.h: Likewise.
18920 * include/grub/net.h: Likewise.
18921 * grub-core/net/arp.c: Likewise.
18922 * grub-core/net/ethernet.c: Likewise.
18923 * grub-core/net/ip.c: Likewise.
18924 * grub-core/net/udp.c: Likewise.
18925 * grub-core/net/tftp.c: Likewise.
18926 * grub-core/net/netbuff.c: Likewise.
18927 * grub-core/net/net.c: Likewise.
18928 * grub-core/net/drivers/emu/emunet.c: Likewise.
18929 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
18930 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
18932 * grub-core/Makefile.core.def (net): New module.
18935 (emunet): Likewise.
18936 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
18938 * grub-core/kern/device.c (grub_net_open) : New variable.
18939 (grub_device_open): Handle network device.
18940 (grub_device_close): Likewise.
18941 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
18942 (grub_grubnet_fini): Likewise.
18943 (grub_file_seek): Seek in network device.
18944 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
18945 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
18947 (grub_machine_fini): Call grub_grubnet_fini.
18948 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
18950 (grub_ieee1275_get_aliasdevname): New function.
18951 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18952 Add unofficial Solaris network info.
18953 (grub_multiboot_make_mbi): Likewise.
18954 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
18955 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
18956 * include/grub/device.h (grub_fs): Removed.
18957 * include/grub/err.h (grub_err_t): Add network-related values.
18958 * include/grub/i386/pc/pxe.h: Removed bootp parts.
18959 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
18960 (grub_ieee1275_get_aliasdevname): New proto.
18961 * include/grub/net.h: Rewritten.
18963 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18965 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
18968 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18970 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
18971 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
18972 it truncates the output.
18973 Reported by: Ximin Luo.
18975 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18977 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
18979 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18981 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
18982 partmap before abstraction.
18984 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
18986 * util/grub-mkconfig_lib.in: Add missing quotes.
18988 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18990 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
18991 old method if mountinfo would return /dev/root and /dev/root doesn't
18994 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18998 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
18999 (decomp_table): Add zlib entries.
19000 (zio_read): USe 8 bits for compression function rather than 3.
19001 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
19003 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19005 * grub-core/disk/ahci.c: Add missing license statements.
19006 * grub-core/fs/romfs.c: Likewise.
19007 * grub-core/lib/ia64/setjmp.S: Likewise.
19008 * grub-core/loader/i386/pc/freedos.c: Likewise.
19009 * grub-core/loader/ia64/efi/linux.c: Likewise.
19010 * grub-core/video/colors.c: Likewise.
19011 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
19013 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19017 * grub-core/Makefile.core.def (ata_pthru): Removed.
19018 (ahci): New module.
19020 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
19022 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
19024 (grub_hdparm_do_check_powermode_cmd): Likewise.
19025 (grub_hdparm_do_smart_cmd): Likewise.
19026 (grub_hdparm_set_val_cmd): Likewise.
19027 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
19028 * grub-core/disk/ahci.c: New file.
19029 * grub-core/disk/ata.c: Factor out the low-level part into ...
19030 * grub-core/disk/pata.c: ... here.
19031 * grub-core/disk/ata_pthru.c: Contents moved to ...
19032 * grub-core/disk/pata.c: ... here.
19033 * grub-core/disk/scsi.c (grub_scsi_names): New array.
19034 (grub_scsi_iterate): Use grub_scsi_names.
19035 (grub_scsi_open): Likewise.
19036 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
19037 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
19038 (grub_ata_regs_t): New struct.
19039 (grub_disk_ata_pass_through_parms): Likewise.
19040 (grub_ata_device): Renamed to ...
19041 (grub_ata): ... this.
19042 (grub_ata_dev): New struct.
19043 Removed all low-level inline functions.
19044 * include/grub/scsi.h: Add PATA and AHCI subsystems.
19045 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
19046 iterate hooks and open. All users updated.
19047 * util/grub-install.in: Handle AHCI disk module.
19049 2011-06-23 Szymon Janc <szymon@janc.net.pl>
19051 Add support for DRI and RSTn markers in JPEG files.
19053 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
19054 (JPEG_MARKER_RST0): Likewise.
19055 (JPEG_MARKER_RST1): Likewise.
19056 (JPEG_MARKER_RST2): Likewise.
19057 (JPEG_MARKER_RST3): Likewise.
19058 (JPEG_MARKER_RST4): Likewise.
19059 (JPEG_MARKER_RST5): Likewise.
19060 (JPEG_MARKER_RST6): Likewise.
19061 (JPEG_MARKER_RST7): Likewise.
19062 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
19063 (grub_jpeg_decode_dri): New function.
19064 (grub_jpeg_decode_sos): Move image data related part into
19065 grub_jpeg_decode_data function.
19066 (grub_jpeg_decode_data): New function.
19067 (grub_jpeg_reset): New function.
19068 (grub_jpeg_decode_jpeg): Handle new markers.
19070 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19072 * util/ieee1275/ofpath.c (check_sas): Close fd.
19073 (main): Free of_path.
19074 Reported by: David Volgyes <dvolgyes>.
19076 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19078 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
19079 Reported by: David Volgyes <dvolgyes>.
19081 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19083 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
19085 Reported by: David Volgyes <dvolgyes>.
19087 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19089 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
19091 Reported by: David Volgyes <dvolgyes>.
19093 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19095 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
19096 Prevent memory leak.
19098 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19100 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
19101 (main): Close file.
19102 Reported by: David Volgyes <dvolgyes>.
19104 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19106 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
19107 to continue if allocation is failed.
19109 Reported by: David Volgyes <dvolgyes>.
19111 2011-06-23 David Volgyes <dvolgyes>
19113 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
19116 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19118 Fix spurious warning.
19120 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
19121 (acorn_partition_map_find): Use .bin member.
19123 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19125 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
19126 /dev/root as a valid device.
19128 2011-06-23 Jim Meyering <meyering@redhat.com>
19130 Avoid NULL deref in grub_device_open.
19132 * grub-core/kern/device.c (grub_device_open): Don't dereference
19133 a NULL pointer upon failed grub_env_get.
19135 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19137 Support non-512B sectors and agglomerate reads.
19139 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
19140 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
19141 (disk_io_guid): Removed.
19142 (make_devices): Locate solely by BlockIO.
19143 (grub_efidisk_open): Fill log_sector_size and total_sectors.
19144 (grub_efidisk_read): Use read_blocks.
19145 (grub_efidisk_write): Use write_blocks.
19146 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
19148 (get_safe_sectors): Handle non-512B sectors.
19149 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
19151 (grub_biosdisk_write): Handle non-512B sectors.
19152 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
19153 (grub_scsi_read): Remove special non-512B block handling (now handled
19155 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
19156 and do sanity checks.
19157 (grub_disk_adjust_range): Handle non-512B sectors.
19158 (transform_sector): New function.
19159 (grub_disk_read_small): Likewise.
19160 (grub_disk_read): Rewritten.
19161 (grub_disk_write): Handle non-512B sectors.
19162 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
19164 (open_device): Use log_sector_size.
19165 (grub_util_biosdisk_read): Likewise.
19166 (grub_util_biosdisk_write): Likewise.
19167 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
19169 (pc_partition_map_embed): Likewise.
19170 * include/grub/disk.h (grub_disk): New field log_sector_size.
19171 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
19172 (GRUB_DISK_CACHE_BITS): Increased to 6.
19173 * util/grub-fstest.c (fstest): New command testload.
19174 (argp_parser): Likewise.
19176 2011-06-16 Robert Millan <rmh@gnu.org>
19178 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
19179 `ata' driver on kernel of FreeBSD 9.
19181 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
19182 (get_ataraid_disk_name): New functions.
19183 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
19184 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
19185 get_ataraid_disk_name() and get_ada_disk_name().
19187 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
19189 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
19192 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
19194 * docs/grub.texi (Obtaining and Building GRUB): Substitute
19195 `ftp.gnu.org' for `alpha.gnu.org'.
19197 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19199 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
19200 partitions under /dev/disk/by-id/.
19202 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19204 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
19205 after ten consecutive open failures. Scanning all the way up to
19206 10000 is excessive and can cause serious performance problems in
19207 some configurations.
19208 Fixes Ubuntu bug #787461.
19210 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19212 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
19215 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
19216 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19218 Don't stat devices unless we have to.
19220 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
19221 dir == /dev/mapper.
19222 (grub_guess_root_device): Use already known os_dev if possible.
19223 * grub-core/kern/emu/hostdisk.c
19224 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
19225 if device is known to be a dm one.
19227 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
19229 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
19230 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
19231 Reported by: Pawel Tecza.
19233 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
19235 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
19236 (lsefisystab): Likewise.
19238 (lsefimmap): Likewise.
19239 (hdparm): Enable on qemu-mips.
19240 (setjmp): Add ia64 nodist.
19241 (serial): Simplify tags.
19243 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19245 * Makefile.util.def (grub-ofpathname): Install manual page.
19247 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19249 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
19251 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19253 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
19255 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19257 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
19260 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19262 Use full 64-bit division.
19264 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
19265 (grub_divmod64): ... this.
19266 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
19269 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19271 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
19274 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19276 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
19277 to avoid accidents when debugging with 'sh -x'.
19278 * grub-core/gensyminfo.sh.in: Likewise.
19279 * tests/example_scripted_test.in: Likewise.
19280 * tests/grub_cmd_regexp.in: Likewise.
19281 * tests/grub_script_blanklines.in: Likewise.
19282 * tests/grub_script_dollar.in: Likewise.
19283 * tests/grub_script_expansion.in: Likewise.
19284 * tests/grub_script_final_semicolon.in: Likewise.
19285 * tests/partmap_test.in: Likewise.
19286 * tests/util/grub-shell-tester.in: Likewise.
19287 * tests/util/grub-shell.in: Likewise.
19289 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19291 Move gfxmenu color handling to video, so that gfxterm can use it
19294 * grub-core/gfxmenu/named_colors.c: Move to ...
19295 * grub-core/video/colors.c: ... here. Rename
19296 grub_gui_get_named_color to grub_video_get_named_color.
19297 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
19298 * grub-core/video/colors.c (my_isxdigit): ... here.
19299 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
19301 * grub-core/video/colors.c (parse_hex_color_component): ... here.
19302 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
19304 * grub-core/video/colors.c (grub_video_parse_color): ... here.
19306 * include/grub/gui.h (grub_gui_color_t): Move to ...
19307 * include/grub/video.h (grub_video_rgba_color_t): ... here.
19308 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
19309 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
19310 * include/grub/gui.h (grub_gui_map_color): Move to ...
19311 * include/grub/video.h (grub_video_map_rgba_color): ... here.
19312 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
19314 * include/grub/video.h (grub_video_get_named_color): ... here.
19315 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
19316 * include/grub/video.h (grub_video_parse_color): ... here.
19318 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
19320 (gfxmenu): Remove gfxmenu/named_colors.c.
19321 (video) [videomodules]: Add video/colors.c.
19323 Add a background_color command.
19325 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
19327 (GRUB_MOD_INIT): Register background_color command.
19328 (GRUB_MOD_FINI): Unregister background_color command.
19329 (redraw_screen_rect): Allow blend/replace of text layer to be
19330 controlled independently from whether there is a background bitmap.
19331 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
19334 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19336 Patch BPB in ntldr and chainloader --bpb.
19338 * grub-core/fs/fat.c: Include grub/fat.h.
19339 (grub_fat_bpb): Moved to ...
19340 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
19341 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
19343 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
19345 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
19347 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
19349 (grub_chainloader_cmd): Patch BPB if --bpb is given.
19350 (GRUB_MOD_INIT): Show --bpb.
19351 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
19352 * grub-core/normal/main.c (features): New variable.
19353 (GRUB_MOD_INIT): Set feature_* variables.
19354 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
19356 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
19358 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19360 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
19363 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19365 FreeDOS direct loading support.
19367 * docs/grub.texi (Supported OS): Add FreeDOS.
19368 * grub-core/Makefile.core.def (freedos): New module.
19369 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
19371 (grub_relocator16_boot): Handle %ebx.
19372 * grub-core/lib/i386/relocator16.S: Likewise.
19373 * grub-core/loader/i386/pc/freedos.c: New file.
19375 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19377 Long Linux command line support.
19379 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19380 (maximal_cmdline_size): New variable.
19381 (allocate_pages): Use maximal_cmdline_size.
19382 (grub_cmd_linux): Set and use maximal_cmdline_size.
19383 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19384 (allocate_pages): Use maximal_cmdline_size.
19385 (grub_cmd_linux): Set and use maximal_cmdline_size.
19386 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
19387 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
19390 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19391 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19393 Improve devmapper support
19395 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
19396 (grub_util_is_lvm): New function.
19397 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
19398 than lvm if not dmraid.
19399 Handle mapped md nodes.
19400 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
19401 (grub_util_device_is_mapped): ... this. Make always available. All users
19403 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
19404 (convert_system_partition_to_system_disk): Handle lvm, mpath and
19406 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
19408 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19410 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
19412 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
19413 * grub-core/modinfo.sh.in: New file.
19414 * grub-core/Makefile.core.def (modinfo.sh): New script.
19415 * util/grub-mknetdir.in: Use modinfo.sh.
19416 * util/grub-mkrescue.in: Likewise.
19418 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19420 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
19421 Fix potential usage of Elf32 instead of Elf64 when compiling on
19422 32-bit architecture. Add endianness macros while on it.
19424 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19426 Use mipsel- rather than mips- in directories involving mipsel ports to
19427 allow both endiannesses coexist.
19429 * configure.ac: proparate target_cpu=mipsel rather than resetting to
19430 mips. All conditions adjusted.
19431 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
19433 * util/grub-install.in: Adjust conditions to take renaming into account.
19434 * util/grub-mkimage.c (image_targets): Likewise. New target
19435 mips-qemu_mips-elf for bigendian mips.
19437 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19439 Avoid unnecessary copying on MIPS.
19441 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
19442 early if src == dest.
19443 * util/grub-mkimage.c (generate_image): Arange for src == dest if
19444 compression is none.
19446 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19448 Reduce memory footprint on SGI by putting modules before the kernel
19449 as opposed to after.
19451 * grub-core/Makefile.core.def (kernel): Increase linking address.
19452 (none_decompress): Likewise.
19453 (xz_decompress): Likewise.
19454 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
19456 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
19458 (grub_arch_modules_addr): New function.
19459 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
19460 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
19461 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
19463 * grub-core/kern/mips/startup.S (total_size): Rename to ...
19464 (grub_total_modules_size): ... this. Make global.
19465 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
19466 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
19468 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
19469 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
19470 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
19471 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
19472 * util/grub-mkimage.c (image_target_desc): New flag
19473 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
19474 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
19475 (generate_image): Handle images with modules before kernel.
19477 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19479 Prevent potential loss of memory map by overwrite on qemu-mips.
19481 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19482 Save ram size in $s4.
19483 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
19484 All users changed to grub_arch_memsize.
19485 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
19487 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
19488 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
19489 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
19492 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19494 * .bzrignore: Remove grub-dumpbios.
19496 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19498 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
19499 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
19500 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
19501 existing options which append).
19502 * docs/grub.texi (Simple configuration): Document new options.
19503 Reported by: Ian Jackson. Fixes Debian bug #617538.
19505 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19507 * util/grub-fstest.c (cmd_cat): New function.
19508 (fstest): Handle CMD_CAT.
19509 (options): Add cat.
19510 (argp_parser): Handle cat.
19512 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19514 * Makefile.util.def (grub-bin2h): Don't install.
19515 * docs/man/grub-bin2h.h2m: Remove.
19517 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19519 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
19522 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19524 Reenable qemu-mips port.
19526 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
19527 Fix small arc bug while on it.
19528 * gentpl.py: Handle qemu_mips.
19529 * grub-core/Makefile.am: Likewise.
19530 * grub-core/Makefile.core.def: Likewise.
19531 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
19532 inappropriate includes.
19533 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
19534 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
19535 * grub-core/kern/main.c (grub_modules_get_end)
19536 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
19537 * grub-core/kern/mips/qemu-mips: Moved to ..
19538 * grub-core/kern/mips/qemu_mips: ... this.
19539 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
19540 (grub_machine_init): Call terminfo_init and serial_init.
19541 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
19542 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19544 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
19546 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
19547 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
19548 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
19549 * include/grub/mips/qemu_mips/cmos.h: New file.
19550 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
19551 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
19553 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
19554 Use correct mips-style address.
19555 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
19556 (GRUB_TICKS_PER_SECOND): Removed.
19557 (grub_get_rtc): Likewise.
19558 (grub_cpu_idle): Likewise.
19559 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
19561 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
19562 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
19563 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
19564 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
19565 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
19566 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
19567 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
19568 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
19570 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19574 * Makefile.util.def (libgrubmods.a): Add dvh.c.
19575 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
19577 * configure.ac: New target mips-arc.
19578 * gentpl.py: Likewise.
19579 * grub-core/Makefile.am: Likewise.
19580 * grub-core/Makefile.core.def: Likewise.
19581 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
19582 (none_decompress): Likewise.
19583 (lsdev): New module.
19584 (datetime): Use lib/arc/datetime.c on ARC.
19585 (part_dvh): New module.
19586 * grub-core/commands/arc/lsdev.c: New file.
19587 * grub-core/disk/arc/arcdisk.c: Likewise.
19588 * grub-core/kern/mips/arc/init.c: Likewise.
19589 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
19591 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
19593 (grub_arch_dl_relocate_symbols): Likewise.
19594 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
19595 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
19596 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
19598 * grub-core/lib/arc/datetime.c: New file.
19599 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
19600 pci.h on non-loongson.
19601 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
19602 (grub_linux_boot): Set unused registers to 0.
19603 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
19604 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
19605 * grub-core/mmap/mips/uppermem.c: ...here.
19606 * grub-core/partmap/dvh.c: New file.
19607 * grub-core/term/arc/console.c: Likewise.
19608 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
19609 (grub_terminfo_set_current): Add terminal "arc".
19610 (grub_terminfo_readkey): Support ARC sequences.
19611 * include/grub/arc/arc.h: New file.
19612 * include/grub/arc/console.h: Likewise.
19613 * include/grub/disk.h (grub_disk_dev_id): Add
19614 GRUB_DISK_DEVICE_ARCDISK_ID.
19615 * include/grub/mips/arc/kernel.h: New file.
19616 * include/grub/mips/arc/memory.h: Likewise.
19617 * include/grub/mips/arc/time.h: Likewise.
19618 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
19619 * include/grub/mips/kernel.h (grub_halt): ... here.
19620 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
19622 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
19623 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
19624 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
19625 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
19627 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
19629 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
19630 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
19631 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
19632 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
19633 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
19634 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
19635 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
19636 (grub_phys_addr_t): Moved from here ...
19637 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
19638 (grub_vtop): Moved from here ...
19639 * include/grub/mips/memory.h (grub_vtop): ... here.
19640 (grub_map_memory): Moved from here ...
19641 * include/grub/mips/memory.h (grub_map_memory): ... here.
19642 (grub_unmap_memory): Moved from here ...
19643 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
19644 (grub_machine_mmap_iterate): Moved from here ...
19645 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
19646 (grub_mmap_get_lower): Moved from here ...
19647 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
19648 (grub_mmap_get_upper): Moved from here ...
19649 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
19650 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19652 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19653 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
19655 * include/grub/mips/time.h (grub_get_rtc): ... here.
19656 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19658 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19659 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
19661 * include/grub/mips/time.h (grub_cpu_idle): ... here.
19662 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
19664 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
19665 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
19666 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
19667 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
19668 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
19669 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
19670 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
19671 (GRUB_MACHINE_LINK_ADDR): Likewise.
19672 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
19674 * util/grub-install.in: Run dvhtool on ARC.
19675 * util/grub-mkimage.c (image_targets): Add mips-arc.
19676 (generate_image): Handle ECOFF output for mips-arc.
19678 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19680 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
19683 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19685 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
19686 after enabling port.
19688 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19690 Skip incorrect USB devices.
19692 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
19694 * include/grub/usb.h (grub_usb_err_t): New enum value
19695 GRUB_USB_ERR_BADDEVICE.
19697 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19699 Fuloong video init support.
19701 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
19703 (grub_vga_read_arx): New function.
19704 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
19706 (framebuffer): New members io, mmioptr and mmiobase.
19707 (read_sis_cmd): New function.
19708 (write_sis_cmd): Likewise.
19709 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
19710 rather than 640x400.
19711 * grub-core/video/sis315_init.c: New file.
19713 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19715 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
19717 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
19718 to grub_dl_register_symbol.
19720 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19722 Fix compilation errors.
19724 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
19725 potentially unused.
19726 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
19727 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
19728 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
19729 to loongson machines.
19731 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19733 Several FS mtime support.
19735 * grub-core/fs/affs.c (grub_affs_time): New struct.
19736 (grub_affs_file): New field mtime.
19737 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
19738 type. Removed 'size'. New field 'di'. All users updated.
19739 (grub_affs_mount): Simplify checsum checking.
19740 (grub_affs_iterate_dir): New helper grub_affs_create_node.
19741 (grub_affs_dir): Handle mtime.
19742 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
19743 (grub_cpio_dir): Likewise.
19744 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
19745 (grub_hfs_filerec): New field mtime.
19746 (grub_hfs_dir): Handle mtime.
19747 (grub_hfs_mtime): New function.
19748 (grub_hfs_fs): Register grub_hfs_mtime.
19749 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
19750 (grub_iso9660_dir): New field mtime.
19751 (grub_fshelp_node): New field dirent.
19752 (iso9660_to_unixtime): New function.
19753 (iso9660_to_unixtime2): Likewise.
19754 (grub_iso9660_read_symlink): Use node->dirent.
19755 (grub_iso9660_iterate_dir): Likewise.
19756 (grub_iso9660_dir): Set mtime.
19757 (grub_iso9660_mtime): New function.
19758 (grub_iso9660_fs): Register grub_iso9660_mtime.
19759 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
19760 (grub_jfs_inode): New fields atime, ctime and mtime.
19761 (grub_jfs_dir): Set mtime.
19762 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19763 * grub-core/fs/ntfs.c (list_file): Set mtime.
19764 (grub_ntfs_dir): Likewise.
19765 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
19766 (grub_reiserfs_iterate_dir): Set mtime.
19767 (grub_reiserfs_dir): Likewise.
19768 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
19769 (grub_fshelp_node): Likewise.
19770 (grub_sfs_iterate_dir): Set mtime.
19771 (grub_sfs_dir): Likewise.
19772 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
19773 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
19774 (grub_xfs_inode): New fields atime, mtime, ctime.
19775 (grub_xfs_dir): Set mtime.
19776 * include/grub/datetime.h (grub_datetime2unixtime): New function.
19777 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
19778 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
19780 Support UDF symlinks.
19782 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
19783 (grub_ufs_read_symlink): New function. All users updated.
19785 Check amiga partmap checksum.
19787 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
19788 (grub_amiga_partition): Likewise.
19789 (amiga_partition_map_checksum): New function.
19790 (amiga_partition_map_iterate): Check checksum.
19792 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19796 * Makefile.util.def (libgrubmods.a): Add romfs.
19797 * grub-core/Makefile.core.def (romfs): New module.
19798 * grub-core/fs/romfs.c: New file.
19800 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19802 Squashfs v4 support.
19804 * Makefile.util.def (libgrubmods.a): Add squash4.
19805 * grub-core/Makefile.core.def (squash4): New module.
19806 * grub-core/fs/squash4.c: New file.
19807 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19808 disk_input_start, disk_input.
19809 (get_byte): Handle disk_input.
19810 (grub_zlib_disk_read): New function.
19811 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19813 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19814 2011-05-15 Feiran Zheng <famcool@gmail.com>
19816 * Makefile.util.def (libgrubmods.a): Add minix3.
19817 * grub-core/Makefile.core.def (minix3): New module.
19818 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19819 (GRUB_MINIX_BSIZE): Removed.
19820 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19821 (grub_minix_ino_t): New type.
19822 (grub_minix_le_to_cpu_ino): New macro.
19823 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19824 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19825 (grub_minix_data): New field block_size.
19826 (grub_minix_read_file): Handle 64-bit correctly.
19827 * grub-core/fs/minix3.c: New file.
19829 2011-05-15 Tristan Gingold <gingold@free.fr>
19830 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
19831 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19835 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19836 * configure.ac: Add ia64-efi target.
19837 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19838 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19839 * gentpl.py: Add ia64_efi platform.
19840 Rename x86_efi to efi and Add ia64-efi. All users updated.
19841 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19842 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19843 Remove kern/generic/rtc_get_time_ms.c on EFI.
19844 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19845 kern/ia64/dl_helper.c on ia64-efi.
19846 Add kern/emu/cache.c on emu.
19847 (linux): Use on loader/ia64/efi/linux.c on ia64.
19848 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19849 whether symbol is a function.
19850 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19851 (grub_symbol): New field 'isfunc'.
19852 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19853 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19854 (grub_dl_load_segments): Place all sections into the same region.
19855 [__ia64__]: Create trampolines and got.
19856 [GRUB_MACHINE_EMU]: Call mprotect.
19857 (grub_dl_resolve_symbols): Resolve symbol type as well.
19858 [__ia64__]: Create function descriptors.
19859 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19860 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19861 (grub_get_rtc): New function.
19862 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19863 * grub-core/kern/emu/cache.S: Renamed to ...
19864 * grub-core/kern/emu/cache_s.S: ... this.
19865 [__ia64__]: Add a nop.
19866 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19867 [__ia64__]: New function.
19868 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19869 * grub-core/kern/ia64/dl.c: New file.
19870 * grub-core/kern/ia64/dl_helper.c: Likewise.
19871 * grub-core/kern/ia64/efi/init.c: New file.
19872 * grub-core/kern/ia64/efi/startup.S: Likewise.
19873 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19874 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19875 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19876 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19877 * grub-core/loader/ia64/efi/linux.c: New file.
19878 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
19879 (GRUB_MOD_DEP): Likewise.
19880 (grub_dl) [__ia64__]: New fields got and tramp.
19881 (grub_dl): New field 'base'.
19882 (grub_dl_register_symbol): New argument isfunc. All users updated.
19883 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
19884 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
19885 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
19886 (grub_ia64_dl_get_tramp_got_size): New proto.
19887 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
19888 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
19889 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
19890 * include/grub/efi/api.h: Skip call wrappers on ia64.
19891 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
19892 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
19893 * include/grub/elf.h (ELF_ST_INFO): New definition.
19894 * include/grub/ia64/efi/kernel.h: New file.
19895 * include/grub/ia64/efi/memory.h: Likewise.
19896 * include/grub/ia64/efi/time.h: Likewise.
19897 * include/grub/ia64/kernel.h: Likewise.
19898 * include/grub/ia64/setjmp.h: Likewise (from glibc).
19899 * include/grub/ia64/time.h: New file.
19900 * include/grub/ia64/types.h: Likewise.
19901 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
19902 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
19904 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
19905 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
19906 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
19907 * util/grub-mkimage.c (image_target_desc): New field pe_target.
19909 (EFI64_HEADER_SIZE): New definition. All users updated.
19910 (image_targets): Add ia64-efi.
19911 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
19912 jumpers_addr. All users updated.
19913 Create function descriptors.
19914 (count_funcs): New function.
19915 (unaligned_uint32): New struct.
19916 (MASK20): New definition.
19917 (MASK19): Likewise.
19918 (MASKF21): Likewise.
19919 (add_value_to_slot_20b): New function.
19920 (add_value_to_slot_21_real): Likewise.
19921 (add_value_to_slot_21): Likewise.
19922 (ia64_kernel_trampoline): New struct.
19923 (nopm): New variable.
19925 (make_trampoline): New function.
19926 (relocate_addresses): Handle ia64.
19927 (make_reloc_section): Likewise.
19928 (load_image): Likewise.
19930 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19932 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
19933 warning. Move variables before code while on it.
19935 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19939 * configure.ac: Rename yeeloong platform to loongson. All users updated.
19940 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
19941 * grub-core/boot/mips/loongson/fuloong.S: New file.
19942 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
19943 Explicitly init CS5536.
19944 [FULOONG]: Don't use serial until CS5536 is available.
19945 Set GPIO based on dumps.
19946 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
19947 [FULOONG]: Handle GPIO and memory controller differences.
19948 Parse machine type in $a2.
19949 * grub-core/boot/mips/startup_raw.S: Determine and save the
19951 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
19952 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
19953 init on architecture type.
19954 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
19955 SIS315E. Don't init at_keyboard on fuloong.
19956 (grub_halt): Support Fuloong.
19957 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
19958 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
19959 (loongson_machtypes): New array.
19960 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
19962 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
19963 config. All users updated. Handle CS5536 serial.
19964 * grub-core/term/serial.c (grub_serial_register): Conditionalise
19965 default port on machine type. Register serial as inactive.
19966 * grub-core/video/sis315pro.c: New file.
19967 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
19969 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
19970 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
19971 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
19972 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
19973 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
19974 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
19976 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
19977 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
19979 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
19980 (grub_arch_machine): New extern var.
19981 * include/grub/mips/loongson/serial.h
19982 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
19983 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
19984 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
19985 (GRUB_MACHINE_SERIAL_PORT0): ... this.
19986 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
19987 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
19988 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
19989 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
19990 * include/grub/term.h (grub_term_register_input_inactive): New inline
19992 (grub_term_register_output_inactive): Likewise.
19993 * include/grub/video.h (grub_video_driver_id): New value
19994 GRUB_VIDEO_DRIVER_SIS315PRO.
19995 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
19996 New field "names". All users updated.
19997 New field value IMAGE_FULOONG_FLASH.
19998 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
20000 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
20002 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
20003 and add some clarification.
20005 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20007 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
20008 platforms if kernel is compressed.
20010 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20012 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
20013 unused modules since currently referrence counter isn't reliable and
20014 there isn't much memory to recover there anyway.
20016 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20018 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
20019 rather than resetting it to allow modules to reference themselves
20022 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20024 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
20025 counter on dependencies since grub_dl_unref already handles this.
20027 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20029 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
20030 on error if not already done.
20032 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20034 Fix few potential memory misusage.
20036 * grub-core/font/font.c (load_font_index): Don't free char_index to
20038 (grub_font_load): Zero-fill font at alloc for safety.
20039 Close file on error.
20040 (free_font): Free bmp_idx.
20042 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20044 * docs/grub.texi (Installation): Fix several outdated claims.
20046 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20048 Handle module_license on windows.
20050 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
20052 (insert_string): Make argument const char * instead of char *.
20053 (write_section_data): Handle long section names.
20054 Handle module_license.
20056 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20058 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
20059 handle class-free menuentries.
20060 (grub_normal_add_menu_entry): Add a check to be sure.
20062 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20064 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
20067 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20069 * configure.ac: Bump version to 1.99.
20071 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20073 Give ATA device a bit more time on first try in order to allow disks
20076 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
20077 if dev->present is 1. Reset dev->present on failure.
20078 (grub_ata_device_initialize): Set dev->present to 1.
20079 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
20080 (grub_ata_device): New member 'present'.
20082 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20084 * util/grub-mkimage.c (generate_image): Update hash.
20086 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20088 Flush caches on DMA memory.
20090 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
20091 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
20092 (grub_dma_free): Likewise.
20093 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
20095 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20097 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
20098 to avoid asm treating ld and sd as macros.
20100 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20102 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
20105 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20107 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
20108 grub_decompress_core since later would fail if grub_decompress_core
20111 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20113 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
20114 R_MIPS_JALR since it's used by newer compiler.
20116 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
20118 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
20120 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20122 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
20123 file_path to 0 for surety.
20124 (grub_chainloader_boot): Set exit_data to NULL.
20125 Unset the loader once done.
20126 (grub_cmd_chainloader): Fix confusing error message if file is empty.
20128 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20130 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
20131 unknown key into a dprintf.
20133 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20135 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
20136 on first non-existant partition.
20138 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20140 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
20142 Reported by: Mark Korenberg.
20144 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20146 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
20149 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20151 * util/grub-mkimage.c (main): Explicitely flush and sync the output
20152 before closing to ensure that it will be readable by grub-setup.
20154 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20156 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
20157 (devpath_1): Use MAKE_PIWG_PATH.
20158 (devpath_2): Likewise.
20159 (devpath_3): Likewise.
20160 (devpath_4): Likewise.
20161 (devpath_5): Likewise.
20162 (devpath_6): Likewise.
20164 The appleldr.mod was checked that to be binary identical to previous
20167 2011-05-05 Zach <mikezackles>
20169 Support 2010 Macbooks.
20171 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
20172 (devs): Add devpath_6.
20174 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20176 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
20177 /dev/random. /dev/urandom is good enough for our purposes (salting).
20179 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20181 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
20183 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20185 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
20188 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20190 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
20191 and not 0 on failure.
20193 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20195 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
20196 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
20197 disk; otherwise grub_fs_probe will not fall back to the next
20199 (grub_pxefs_open): Likewise, for consistency.
20200 Reported and tested by: Ezekiel Grave.
20202 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20204 * tests/partmap_test.in: Don't hardcode path to parted.
20205 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
20207 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
20209 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
20210 of `ls' to find out which devices are available.
20212 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20214 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
20215 than source address for efi mmap buffer.
20217 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20219 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
20220 wrong action on non-detecting the magic.
20222 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20224 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
20225 already supplied by another part of the module (fixes compilation on
20228 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20230 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
20231 match the one used by mdadm.
20233 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20235 * po/README: Add instructions for creating po/LINGUAS.
20237 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20239 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
20242 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
20243 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
20244 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
20245 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
20246 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
20247 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
20248 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
20249 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
20250 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
20251 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
20252 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
20253 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
20254 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
20255 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
20256 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
20257 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
20258 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
20259 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
20260 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
20261 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
20262 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
20263 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
20265 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20267 * grub-core/kern/emu/getroot.c
20268 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
20269 test that was incorrectly reintroduced in r3214.
20270 Reported by: Ian Dall. Fixes Savannah bug #33133.
20272 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20274 Fix stack pointer handling in 16-bit relocator.
20276 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
20277 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
20278 Fixes Ubuntu bug #683904.
20280 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20282 * configure.ac: Bump version to 1.99~rc2.
20284 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20286 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
20287 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
20288 * grub-core/lib/x86_64/setjmp.S: Likewise.
20289 * grub-core/lib/mips/setjmp.S: Likewise.
20290 * grub-core/lib/powerpc/setjmp.S: Likewise.
20291 * grub-core/lib/sparc64/setjmp.S: Likewise.
20293 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20295 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
20296 * grub-core/lib/efi/datetime.c: Likewise.
20298 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20300 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
20302 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
20303 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
20304 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
20306 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20308 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
20310 (grub_gfxterm_term_init): Likewise.
20312 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20314 Take into account the decorations the computing menu entry width.
20316 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
20317 (grub_gfxmenu_create_box): Register get_border_width.
20318 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
20320 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
20323 2011-04-18 Endres Puschner <code@e7p.de>
20325 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
20326 Don't skip first class.
20328 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20330 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
20332 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
20334 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20336 Complete 64-bit division support.
20338 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
20339 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
20340 * include/grub/misc.h (grub_divmod64): Rename to ...
20341 (grub_divmod64_full): ... this.
20342 (grub_divmod64): New inline function.
20344 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20346 * util/grub-mkimage.c (generate_image): Add forgotten comma.
20348 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20350 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
20351 performing the necessary test.
20353 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20355 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
20356 (kfreebsd.elf): Likewise.
20357 (pc-chainloader.elf): Likewise.
20358 (ntldr.elf): Likewise.
20360 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20362 Identify RAID by its UUID rather than (guessed) name.
20364 * grub-core/disk/raid.c (ascii2hex): New function.
20365 (grub_raid_open): Accept mduuid/%s specification.
20366 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
20367 (get_mdadm_uuid): ... this.
20368 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
20370 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
20372 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
20375 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20377 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
20379 * util/grub.d/20_linux_xen.in: Likewise.
20381 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20383 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
20384 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
20386 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20387 Build a list of relevant visible mounts using the mnt_id and
20388 parent_mnt_id fields, and then scan that list at the end.
20390 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20392 * docs/grub.texi (normal): New section.
20393 (normal_exit): New section.
20394 (Embedded configuration): Add reference to normal.
20395 (GRUB only offers a rescue shell): Likewise.
20396 * docs/grub-dev.texi (Error Handling): Fix typo.
20398 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20400 * NEWS: Drop obsolete entry about probe-only btrfs support.
20402 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20404 * util/import_gcry.py: Fix typo.
20406 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20408 * NEWS: Add btrfs support.
20410 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20411 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20413 BtrFS support. Written by me (Vladimir) with important bugfixes and
20414 even more important testing by Colin.
20416 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
20417 * grub-core/Makefile.core.def (btrfs): Add crc.c.
20418 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
20419 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
20420 mem_input_off and mem_input. All users updated to accept in-RAM input.
20421 (gzio_seek): New function.
20422 (test_zlib_header): Likewise.
20423 (grub_gzio_read): Likewise.
20424 (grub_zlib_decompress): Likewise.
20425 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
20426 Accept partial and non-virtual mounts.
20427 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
20428 avoid receiving /dev/dm-X as device.
20429 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
20430 Handle bind and partial mounts.
20431 * grub-core/lib/crc.c: New file.
20432 * include/grub/deflate.h: Likewise.
20433 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
20435 * include/grub/lib/crc.h: New file.
20437 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20439 Implement automatic module license checking according to new GNU
20442 * grub-core/kern/dl.c (grub_dl_check_license): New function.
20443 (grub_dl_load_core): Use grub_dl_check_license.
20444 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
20445 (GRUB_MOD_LICENSE): Likewise.
20446 (GRUB_MOD_DUAL_LICENSE): Likewise.
20447 All modules updated.
20449 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20451 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
20452 reserved_first_sector to 1. btrfs reserves plenty of space for boot
20454 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
20456 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20458 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
20460 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20462 * util/grub-fstest.c (read_file): Report GRUB error if file opening
20465 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20467 * grub-core/kern/file.c (grub_file_open): Don't take into account the
20468 parenthesis in the middle of the filename.
20470 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20472 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
20473 rather than trying to put initrd way too high.
20474 Reported by: Ryan Lortie <desrt@desrt.ca>
20476 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20478 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
20479 improperly removed string.
20481 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20483 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
20485 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
20486 (open_device) Likewise.
20487 (grub_util_biosdisk_close): Likewise.
20488 Reported by: Mark Korenberg.
20490 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
20492 * util/grub-mkconfig_lib.in: Add missing quotes.
20494 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
20496 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
20499 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20501 Dynamically count the number of lines for the lower banner.
20503 * grub-core/normal/menu_entry.c (per_term_screen): New member
20505 (print_down): Use num_entries.
20506 (update_screen): Likewise.
20507 (grub_menu_entry_run): Set num_entries.
20508 * grub-core/normal/menu_text.c (menu_viewer_data): New member
20510 (grub_print_message_indented): Move real part to ...
20511 (grub_print_message_indented_real): ... here. Additional argument
20513 (draw_border): Additional argument num_entries.
20514 (print_message): Additional argument dry_run.
20515 (print_entries): Receive menu viewer data.
20516 (grub_menu_init_page): New argment num_entries.
20517 (menu_text_set_chosen_entry): Use num_entries.
20518 (grub_menu_try_text): Likewise.
20519 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
20521 (grub_ucs4_count_lines): New function.
20522 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
20523 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
20524 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
20525 (grub_term_border_height): Likewise.
20526 (grub_term_num_entries): Likewise.
20528 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20530 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
20531 Remove now unused string.
20533 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20535 * docs/grub-dev.texi (Finding your way around): Update for 1.99
20537 (Getting started): GRUB is developed in Bazaar now, not Subversion.
20539 (Comment): Fix typo.
20540 (Getting started): General copy-editing.
20541 (Typical Development Experience): Likewise.
20542 (Error Handling): Likewise.
20543 (Video API): Likewise.
20545 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20547 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
20550 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20552 * util/grub-mkimage.c (main): Handle special naming of yeeloong
20555 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20557 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
20558 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
20561 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20563 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
20564 grub_strcpy since the lines aren't necessarily 0-terminated.
20566 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20568 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
20571 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20573 * grub-core/commands/probe.c (options): Argument to set isn't optional.
20574 (GRUB_MOD_INIT): DEVICE isn't optional.
20576 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20578 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
20579 word on new line if it's too long anyway. Fixes a hang.
20581 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20583 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
20585 * util/grub-setup.c (main): Reuse md device name if available.
20586 * util/raid.c (grub_util_raid_getmembers): Receive device name and
20587 not GRUB name as argument.
20588 Based on patch by: Florian Wagner <fwagner>.
20590 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20592 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20593 Place mbi on low memory for better compatibility.
20595 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20597 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
20599 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20600 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20602 * autogen.sh: Ensure that collate and ctype locale is C.
20603 * conf/Makefile.common: Likewise.
20605 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20607 * grub-core/normal/menu.c: Add missing include.
20609 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20611 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
20613 2011-04-08 Martin Zuther <mzuther@mzuther.de>
20615 * util/grub-mkconfig.in: Ignore emacsen backup.
20617 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20619 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
20621 (grub_util_biosdisk_close): Likewise.
20623 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20625 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
20626 const attribute and use grub_isdigit.
20628 2011-04-06 Andrey <dev_null@ukr.net>
20630 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
20633 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20635 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
20636 useful grub_dprintf's.
20638 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20640 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
20642 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20644 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
20646 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20648 Output errors if theme loading failed.
20650 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
20651 grub_gfxterm_fullscreen on error paths to ...
20652 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
20653 theme loading error.
20655 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20657 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
20658 space for older compilers.
20659 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20661 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20663 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
20664 and report them as not RAID members since they are useless for GRUB.
20665 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20667 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20669 Increase LVM implementation robustness in order not to crash on
20670 configurations like pvmove. Previously code assumed that in some places
20671 only lvs or only pvs are used whereas it seems that they are used
20674 * grub-core/disk/lvm.c (read_node): New function.
20675 (read_lv): Use read_node.
20676 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
20677 Match volumes only at the end when all lvs are found. Take both
20678 pvs (first) and lvs (second) into account.
20679 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
20680 mirror_* into node_*. All users updated.
20681 (grub_lvm_stripe): Merge this ...
20682 (grub_lvm_mirror): ... and this ...
20683 (grub_lvm_node): ... into this. All users updated.
20685 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20687 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
20688 of function to allow further scanning for LVMs.
20690 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20692 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
20693 on failed seek as it breaks open fd reusage.
20695 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20697 * util/grub-install.in: Add a recommendation to use --recheck before
20700 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20702 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
20705 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20707 GRUB developper manual based on existing Internals section and
20708 contributions by the various authors with active copyright assignment.
20710 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
20711 * docs/font_char_metrics.png: New file.
20712 * docs/font_char_metrics.txt: Likewise.
20713 * docs/grub-dev.texi: Likewise.
20714 * docs/grub.texi (Internals): Move from here ...
20715 * docs/grub-dev.texi: ... here.
20717 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20719 Store the loopback device as data on loopback grub_disk structures,
20720 rather than the file it points to. This fixes use of freed memory
20721 if an existing loopback device is replaced.
20723 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
20724 disk->data, not dev->file.
20725 (grub_loopback_read): Adjust file assignment to match.
20726 Fixes Ubuntu bug #742967.
20728 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20730 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
20731 when replacing an existing device.
20733 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
20735 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
20736 memory corruptions.
20738 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
20740 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
20741 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
20742 (grub_jfs_read_inode): Likewise.
20743 (grub_jfs_opendir): Likewise. Remove now useless casts.
20744 (grub_jfs_getent): Likewise.
20745 Make ino a grub_uint32_t rather than int.
20746 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
20747 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
20748 division and module with bit operations.
20749 (grub_jfs_find_file): Make ino a grub_uint32_t.
20750 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
20752 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20754 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
20755 warning. (This was in fact always initialised before use, but GCC
20756 wasn't smart enough to prove that.)
20757 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
20759 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20761 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
20763 (efi_wrap_1): Likewise.
20764 (efi_wrap_2): Likewise.
20765 (efi_wrap_3): Likewise.
20766 (efi_wrap_4): Likewise.
20767 (efi_wrap_5): Likewise.
20768 (efi_wrap_6): Likewise.
20769 (efi_wrap_10): Likewise.
20770 Based on information by: Red Hat/Peter Jones.
20772 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20774 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
20775 set-but-not-used variable.
20777 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20779 * docs/grub.texi (Simple configuration): Be more explicit about
20780 GRUB_DEFAULT, and add an example.
20781 Reported by: Leslie Rhorer.
20783 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20785 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
20788 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20790 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
20791 * util/grub.d/20_linux_xen.in: Likewise.
20793 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20795 * util/grub.d/10_linux.in: Try alternative config filenames where
20796 we parse config file.
20797 * util/grub.d/20_linux_xen.in: Likewise.
20799 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20801 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
20802 * util/grub.d/20_linux_xen.in: Likewise.
20804 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20806 * grub-core/disk/raid.c (insert_array): Add few potentially
20807 useful grub_util_info.
20808 (grub_raid_register): Likewise.
20810 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20812 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20813 Preserve partition number in mdadm code path.
20815 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20817 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20818 few potentially useful grub_util_info.
20820 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20822 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20824 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20826 * docs/grub.texi (default): Use @example rather than nested
20827 itemized lists to avoid breaking gendocs.
20829 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20831 * docs/grub.texi (Future): Update.
20833 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20835 * docs/grub.texi (Environment): New chapter.
20836 (Changes from GRUB Legacy): Link to "Environment block" section for
20837 details of limitations.
20838 (Simple configuration): Likewise. Link to documentation of gfxmode
20839 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20841 (Shell-like scripting): Note that normal variables are stored in the
20843 (gettext): Link to documentation of lang and locale_dir.
20844 (list_env): New section.
20845 (load_env): New section.
20846 (save_env): New section.
20848 (Reporting bugs): Fix typo.
20850 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20852 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20855 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20857 * grub-core/term/at_keyboard.c (set_scancodes)
20858 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20860 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20862 * docs/grub.texi (Menu-specific commands): Remove some semantics
20863 that were true in GRUB Legacy but not in GRUB 2.
20864 (submenu): New section.
20865 (false): New section.
20866 (read): New section.
20867 (true): New section.
20869 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20871 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20873 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20875 * docs/grub.texi (Simple configuration): Explain some of the
20876 current limitations of grub-mkconfig.
20877 Reported by: Leslie Rhorer.
20879 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20881 Old macs search for boot.efi rather than for bootia32.efi.
20883 * util/grub-install.in: Copy bootia32.efi to boot.efi.
20884 * util/grub-mkrescue.in: Likewise.
20885 Suggested by: Peter Jones.
20887 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20889 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
20891 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20893 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
20894 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
20895 (grub_lvm_mirror): New struct.
20896 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
20897 (grub_lvm_iterate): Iterate only visible volumes.
20898 (grub_lvm_read): Factor out to ..
20899 (read_lv): ... this. Support mirrors.
20900 (grub_lvm_read): New wrapper function.
20901 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
20902 stripped or mirrored.
20904 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20906 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
20908 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20910 * docs/grub.texi (loopback): New section.
20912 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20914 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
20917 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20919 * docs/grub.texi (BIOS installation): New section, partly based on
20920 previous text in other sections.
20921 (Installing GRUB using grub-install): Replace BIOS discussion with a
20923 (Images): Likewise.
20925 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20927 * grub-core/kern/emu/hostdisk.c (find_partition_start)
20928 [HAVE_DIOCGDINFO]: Add safety checks.
20930 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20932 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
20933 per default compiled in kernel and prior to 8.0 isn't shipped at all.
20935 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20937 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
20938 real_sb->size is zero (e.g. RAID-0), get the disk size from
20939 real_sb->data_size instead.
20940 Fixes Ubuntu bug #743136.
20942 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20944 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
20945 printf clauses for printing size and start.
20947 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20949 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
20950 Reported and tested by: Timothy Nikkel.
20952 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20954 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
20955 (dirty_region_add_real): ... this.
20956 (dirty_region_add): Don't discard margin refresh when performing
20959 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20961 * grub-core/lib/relocator.c (allocate_regstart)
20962 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
20963 terminals are capabple of malloc-free operation.
20964 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20965 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20967 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
20969 * util/grub-setup.c: Copy the partition table zone if floppy support
20970 is disabled, even if no partition table is found.
20972 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
20973 during POST if an invalid partition table is contained in the PBR
20974 of the active partition when GRUB is installed to a partition.
20976 2011-03-28 Colin Watson <cjwatson@debian.org>
20978 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
20981 2011-03-28 Colin Watson <cjwatson@debian.org>
20983 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
20984 to be specific about what kind of RAID device we're scanning for.
20986 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
20988 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
20989 return freed string.
20991 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20993 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
20995 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20997 Use libgeom on FreeBSD to detect partitions.
20999 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
21000 (grub-mkrelpath): Likewise.
21001 (grub-script-check): Likewise.
21002 (grub-editenv): Likewise.
21003 (grub-mkpasswd-pbkdf2): Likewise.
21004 (grub-fstest): Likewise.
21005 (grub-mkfont): Likewise.
21006 (grub-mkdevicemap): Likewise.
21007 (grub-probe): Likewise.
21008 (grub-setup): Likewise.
21009 (grub-ofpathname): Likewise.
21010 (grub-mklayout): Likewise.
21011 (example_unit_test): Likewise.
21012 (grub-menulst2cfg): Likewise.
21013 * grub-core/Makefile.core.def (grub-emu): Likewise.
21014 (grub-emu-lite): Likewise.
21015 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
21016 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
21017 define HAVE_DIOCGDINFO.
21018 (follow_geom_up) [FreeBSD]: New function.
21019 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
21020 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
21021 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
21022 unconditionally of HAVE_DIOCGDINFO.
21024 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21026 Fix FreeBSD compilation problem.
21028 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
21029 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
21031 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
21033 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
21034 Switch back to page zero before loading a kernel, since some kernel
21035 drivers expect that.
21036 Thanks to: Felix Kuehling.
21038 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21040 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
21041 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
21042 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
21044 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21046 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
21047 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
21049 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21051 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
21052 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
21053 malloc is disabled.
21055 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21057 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
21058 for modules headers when counting the needed allocation size.
21060 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21062 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
21063 if no ASCII character is found to prevent crash.
21065 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
21067 * grub-core/video/bitmap.c (match_extension): Ignore case.
21069 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21071 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
21073 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21075 * grub-core/script/parser.y: Declare "time" as valid argument.
21077 2011-03-23 Peter Jones <pjones@redhat.com>
21079 Fix incorrect assert failure reporting.
21081 * grub-core/tests/example_functional_test.c (example_test): Add
21083 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
21084 (failure_start): ...this. Check that malloc succeeded.
21085 Don't call xvasprintf. Return failure struct.
21086 (failure_append_vtext): New function.
21087 (failure_append_text): Likewise.
21088 (add_failure): Likewise.
21089 (grub_test_assert_helper): Likewise.
21090 * include/grub/test.h (grub_test_assert_helper): New declaration.
21091 (grub_test_assert): Macro rewritten.
21093 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21095 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
21097 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21099 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
21101 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21103 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
21104 into GRUB-style one.
21106 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21108 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
21109 error and not grub_errno.
21110 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
21112 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21114 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
21115 GRUB_USB_SPEED_NONE in case of failure and not the error code.
21117 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21119 * grub-core/efiemu/i386/pc/cfgtables.c
21120 (grub_machine_efiemu_init_tables): Make declaration a prototype.
21121 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
21122 (grub_xnu_unlock): Likewise.
21123 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
21125 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21127 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
21128 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
21129 * grub-core/commands/hashsum.c (aliases): Likewise.
21130 * grub-core/commands/setpci.c (pci_registers): Likewise.
21131 * grub-core/disk/usbms.c (attach_hook): Likewise.
21132 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
21133 (zio_checksum_table): Likewise.
21134 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
21135 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
21136 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
21137 * grub-core/lib/relocator.c (leftovers): Likewise.
21138 (extra_blocks): Likewise.
21139 * grub-core/loader/i386/bsd.c (relocator): Likewise.
21140 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
21141 (modules_last): Likewise.
21142 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
21143 (devices): Likewise.
21144 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
21145 (modules_last): Likewise.
21146 * grub-core/normal/auth.c (users): Likewise.
21147 * grub-core/normal/context.c (initial_menu): Likewise.
21148 (current_menu): Likewise.
21149 * grub-core/normal/crypto.c (crypto_specs): Likewise.
21150 * grub-core/term/serial.c (grub_serial_ports): Likewise.
21151 (grub_serial_terminfo_input_template): Likewise.
21152 (grub_serial_terminfo_output_template): Likewise.
21153 (grub_serial_terminfo_input): Likewise.
21154 (grub_serial_terminfo_output): Likewise.
21155 (registered): Likewise.
21156 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
21158 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21160 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
21161 grub_video_mode_type_t.
21162 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
21163 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
21164 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
21166 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21168 * util/grub-install.in: Correct the x86-64 name as x86_64.
21170 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
21172 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
21173 initial chunk read from the kernel always includes GRUB's multiboot
21174 header, which is now outside the first sector.
21176 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21178 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
21179 cached mmap_size, so that this works correctly when called multiple
21181 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
21183 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21185 * docs/grub.texi (Simple configuration): Tidy up formatting.
21187 2011-03-07 Szymon Janc <szymon@janc.net.pl>
21189 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
21190 Set-but-not-used variable removed.
21192 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21194 Workaround yet another IEEE1275 bug.
21196 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
21197 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
21198 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
21199 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
21201 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21202 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
21204 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21206 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
21209 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
21211 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
21212 empty, since in that case we can only generate either nothing or a
21213 syntactically invalid configuration file.
21214 Reported by: Michal Suchanek. Fixes Debian bug #612898.
21216 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21218 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
21219 (Making a GRUB bootable CD-ROM): Likewise.
21220 (Invoking grub-mkrescue): New section.
21221 Reported by: Yann Dirson. Fixes Debian bug #612585.
21223 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21225 * util/grub-install.in: Remove unnecessary brackets from tr
21227 * util/grub.d/10_hurd.in: Likewise.
21228 * util/grub.d/10_kfreebsd.in: Likewise.
21229 * util/grub.d/10_linux.in: Likewise.
21230 * util/grub.d/20_linux_xen.in: Likewise.
21231 Reported by: Jamie Heilman. Fixes Debian bug #612564.
21233 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
21235 * include/grub/file.h (not_easly_seekable): Rename to ...
21236 (not_easily_seekable): ... this. Update all users.
21238 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
21240 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
21243 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
21245 * util/grub-mkimage.c (generate_image): Refuse to create the images
21246 bigger than the actual flash (512K) in Loongson machines. 512K is also
21247 the biggest chip supported by them.
21249 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21251 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
21253 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
21255 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
21256 super_offset field.
21258 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21260 * util/grub-install.in: Ignore install device on platforms
21261 where it doesn't make sense. Always use UUIDs except on pc, efi and
21263 Reported by: Daniel Kahn Gillmor.
21265 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21267 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
21269 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21271 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
21272 (iterate_real): Don't rely on partition being non-NULL.
21274 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21276 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
21277 supported platforms. Put a compile time assert for this rather than
21278 generate a warning with 32-bit shift.
21280 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21282 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
21283 logical expression more readable.
21285 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21287 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
21288 even if some elements have a name.
21289 Reported by: Alexander GQ Gerasiov.
21291 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21293 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
21294 path unreadable if `grub-probe -t abstraction' fails, for example if
21295 memberlist fails on an LVM volume group.
21296 Reported by: Darius Jahandarie.
21298 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21300 * docs/grub.texi (Simple configuration): Document
21301 GRUB_PRELOAD_MODULES.
21303 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
21305 * .bzrignore: Remove nonexistent grub-pbkdf2.
21307 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
21309 * configure.ac: Bump version to 1.99~rc1.
21311 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
21313 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
21316 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21318 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
21321 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21323 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
21325 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21327 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
21330 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21332 Fix compilation on cygwin.
21334 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
21335 -R .drectve on cygwin.
21336 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
21337 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
21338 (COND_CYGWIN): New condition.
21339 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
21340 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
21341 not @TARGET_OBJ2ELF@.
21342 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
21343 type to determine whether aux is to be used.
21345 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21347 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
21348 realpath'ed device string.
21349 Handle floppy (somewhat).
21350 Issue error in unknown case rather than garbage.
21351 Reported by: Axel Beckert.
21353 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21355 * util/grub.d/00_header.in (load_video): Handle the case when no video
21357 Thanks to: Axel Beckert.
21359 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21361 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
21362 variable. Fixes problem on big endian platforms.
21364 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21366 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
21367 It doesn't work well there.
21369 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21371 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
21373 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
21374 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
21377 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21379 Use alias->path rather than buggy "canon".
21381 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
21382 (ofdisk_hash_add): New argument curcan. All users updated.
21384 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21386 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
21388 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21390 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
21391 loadmask before doing any calculations. Use correct type for offset.
21392 (grub_linux_load64): Likewise.
21394 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21396 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
21398 (console_grub_equivalences_unshift): Likewise.
21399 Reported by: Daniel Dehennin.
21401 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21403 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
21404 (set_env_limn_ro): Likewise.
21405 (GRUB_MOD_INIT): Likewise.
21406 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
21407 ARRAY_SIZE while on it.
21408 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
21409 * grub-core/normal/context.c (grub_env_export): Move from here ...
21410 * grub-core/kern/env.c (grub_env_export): ... here.
21411 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
21413 * grub-core/kern/main.c (grub_main): Export root and prefix.
21414 * include/grub/env.h (grub_env_export): Export.
21415 Reported by: Seth Goldberg.
21417 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21419 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21420 Take into account space used by ELF sections and multiboot palette.
21421 Reported by: Grégoire Sutre.
21423 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21427 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21429 Pass more appropriate video id to Linux.
21431 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
21432 grub_video_get_driver_id and variable gfxpayloadforcelfb to
21434 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
21435 shift params->lfb_size.
21436 * include/grub/i386/linux.h: Make an enume out of have_vga values.
21438 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21440 * util/grub-menulst2cfg.c: Add missing include of misc.h.
21442 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21444 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
21445 separator and pass bootpath/devid even if only one of them is available.
21446 Reported by: Seth Goldberg.
21448 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21450 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
21451 implementations bug on them.
21453 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
21455 (filter_memory_map): Likewise.
21457 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21459 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
21460 Reported by: nebuchadnezzar.
21462 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21464 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
21465 Reported by: nebuchadnezzar.
21467 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21469 Submenu default support.
21471 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
21472 auto_boot. All users updated.
21474 Handle chosen and default with submenus.
21475 (grub_menu_execute_with_fallback): Declared static.
21476 Don't notify failure if autobooted. Upper level does it.
21477 (menuentry_eq): New function.
21478 (get_entry_number): Use menuentry_eq.
21479 (show_menu): New parameter "autobooted". All users updated.
21480 (grub_show_menu): Likewise.
21481 * include/grub/normal.h (grub_show_menu): Likewise.
21482 * include/grub/menu.h (grub_menu_execute_entry): Removed.
21483 (grub_menu_execute_with_fallback): Likewise.
21485 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21487 * util/grub-mklayout.c (usage): Update help text.
21489 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21491 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
21493 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21495 * util/grub-menulst2cfg.c (main): Trim the line.
21497 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21499 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
21500 (grub_machine_init): Don't check amount of low memory as reportedly
21501 INT 12h can be broken and if low memory is too low we wouldn't have
21502 gotten into grub_machine_init anyway.
21504 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21506 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
21507 (grub_machine_mmap_iterate): Take low memory into account
21509 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21511 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
21513 Reported by: TiCPU.
21515 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21517 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
21520 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21522 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
21523 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
21525 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21527 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
21528 openbsd and netbsd types being in part_bsd module.
21530 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21532 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
21533 (_FILE_OFFSET_BITS): Likewise.
21534 Reported by: Seth Goldberg.
21536 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21538 * configure.ac: Check for libdevmapper header.
21540 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21542 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
21544 (fzap_lookup): Likewise.
21545 (dnode_get): Likewise.
21546 (make_mdn): Likewise.
21547 (zfs_mount): Likewise.
21548 (fzap_iterate): Use temporary pointer to avoid aliasing.
21549 (grub_zfs_read): Likewise.
21550 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
21551 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
21552 pointers to avoid aliasing.
21553 (grub_cmd_xnu_kernel64): Likewise.
21554 (grub_xnu_load_driver): Likewise.
21556 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21558 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
21560 (grub_cmd_terminal_output): Likewise.
21561 Reported and tested by: Grégoire Sutre.
21563 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21565 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
21567 Reported and tested by: Grégoire Sutre.
21569 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21571 * configure.ac: Do CPU substitution even if it's specified explicitly.
21572 Reported and tested by: Alain Greppin.
21574 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21576 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
21577 Reported and tested by: Alain Greppin.
21579 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21581 Satisfy some bison versions need for inttypes.h.
21583 * grub-core/lib/posix_wrap/inttypes.h: New file.
21584 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
21585 (int16_t): Likewise.
21586 (int32_t): Likewise.
21587 (int64_t): Likewise.
21588 Reported and tested by: Alain Greppin.
21590 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21592 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
21593 Silence spurious warning.
21594 Reported and tested by: Alain Greppin.
21596 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21598 * docs/grub.texi (Support automatic decompression): Update with xz
21599 decompression support.
21601 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21603 Improve loaders' kernel command line handling.
21605 * grub-core/lib/cmdline.c: New file.
21606 * include/grub/lib/cmdline.h: Likewise.
21607 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
21608 grub_create_loader_cmdline to create kernel command line.
21609 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21610 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
21611 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
21612 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
21613 (linux): Add lib/cmdline.c on common.
21615 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21617 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
21618 inopos might be unaligned.
21620 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21622 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
21623 endian transformations.
21624 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21625 Based on report by: Doug Nazar.
21627 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
21629 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
21630 array->members[i].start_sector.
21631 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
21633 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21635 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
21636 Reported and tested by: Grégoire Sutre.
21638 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21640 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
21641 avoid causing test failures by clearing the screen.
21643 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21645 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
21646 Fix prefix check to handle the case where dir ends with a slash
21647 (most significantly, "/" itself).
21648 Reported by: Michael Vogt.
21650 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21652 Run terminfo_cls on initing terminfo output to clear the screen and
21653 move the cursor to (0,0).
21655 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
21656 Call grub_terminfo_output_init.
21657 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
21658 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
21659 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
21661 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21663 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
21666 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21668 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
21671 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21673 The E820 type 5 is BADRAM, not EXEC_CODE.
21675 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21676 (GRUB_E820_BADRAM): New define.
21677 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
21678 into reserved. Propagate BADRAM.
21679 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21680 (GRUB_E820_BADRAM): New define.
21682 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21684 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
21685 Ignore the memory post-4G.
21686 (grub_relocator_firmware_alloc_region): Additional debug statement.
21688 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21690 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
21692 Reported by: David Pravec.
21694 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21696 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
21699 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21701 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
21703 (grub_reed_solomon_recover): Likewise.
21705 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21707 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
21709 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21711 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
21714 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
21716 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
21717 descriptions of extract_legacy_entries_source and
21718 extract_legacy_entries_configfile.
21719 Reported by: Seung Soo, Ha.
21721 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
21723 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
21724 on devices that do not implement function 0.
21726 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
21728 * grub-core/fs/hfsplus.c: Make parent unsigned.
21729 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
21731 (grub_hfsplus_cmp_extkey): Likewise
21733 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21735 * util/grub-install.in: Correctly use bootloader_id and not
21736 GRUB_DISTRIBUTOR on efibootmgr line.
21738 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21740 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
21742 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
21744 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
21745 Xen and reorder menu item wording to make it clearer that this entry
21746 will launch Xen. Print separate messages when loading Xen and
21749 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21751 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
21752 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
21753 loop in case of incorrect amiga partmap.
21755 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21757 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
21758 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
21761 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21763 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
21765 Reported by: crocket
21767 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21769 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
21771 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
21773 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21775 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
21777 (grub_cmd_xnu_kextdir): Likewise.
21778 (grub_cmd_xnu_splash): Likewise.
21780 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21782 Avoid using Reed-Solomon with 0 redundancy.
21784 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
21785 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
21787 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
21788 (grub_reed_solomon_recover): Likewise.
21790 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21792 Don't use disk subsystem in freebsd_boot.
21794 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
21795 (freebsd_biosdev): Likewise.
21796 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
21797 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
21799 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
21801 Handling of files of unknown size is currently limited. They can't be
21802 used e.g. for initrd or modules. Moreover gzip handling of not
21803 easily seekable files is buggy. Disable unknown file size for now. May
21804 be inefficient but works.
21806 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21807 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21809 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21811 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21814 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21816 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21818 2010-12-25 Shea Levy <shlevy>
21820 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21822 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21824 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21825 Windows Server 2008.
21826 Reported by: Devin Giddings.
21828 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21830 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21831 writing an error message because of async power management.
21832 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21833 (grub_reboot): Likewise.
21835 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21837 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21838 keep unit tests from failing when they shouldn't.
21840 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21842 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21843 previous patch increased the size of the RS code by 20 bytes (at
21844 least with gcc-4.4), so increase this by 20 bytes to match.
21845 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21847 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21849 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21850 scratch area. Make sure to initialise chosen in standalone mode as
21851 well as non-standalone.
21852 Reported by: Robert Hooker and Andy Whitcroft.
21853 Tested by: Andy Whitcroft.
21855 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21857 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21858 constructing a new unescaped string and passing it to grub_xputs in
21859 one go, rather than passing characters to grub_printf one at a time.
21861 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21863 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21864 initialising utf16.
21866 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21868 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21869 comment. Add an extra layer of quotation, requiring the output of
21870 this function to be used in a printf format string.
21871 (gettext_printf): New function.
21872 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21873 Extract translatable strings from here-documents and use a temporary
21874 variable instead, so that xgettext can find them.
21875 * util/grub.d/10_kfreebsd.in: Likewise.
21876 * util/grub.d/10_linux.in: Likewise.
21877 * util/grub.d/20_linux_xen.in: Likewise.
21879 * po/grub.d.sed: New file.
21880 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
21881 arguments. Set c-format flags on all strings extracted from
21882 util/grub.d/ (xgettext refuses to include these itself for strings
21883 it extracted from a shell file, but these really are c-format).
21885 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21887 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
21888 Avoid next pointing to nowhere.
21890 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21892 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
21893 rather than assuming than rootblock is exactly in the middle.
21894 (grub_affs_label): Likewise.
21896 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21898 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
21899 reserved_first_sector to 0.
21900 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
21901 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
21902 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
21904 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21906 Fix handling of UTF-16 UDF labels.
21908 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
21909 (read_string): .. here.
21910 (grub_udf_label): Use read_string.
21912 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
21914 * grub-core/normal/menu_entry.c (run): Execute commands from menu
21915 editor under argument scope.
21916 Reported by: Jordan Uggla
21918 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21920 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
21922 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
21924 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
21925 line, and other keys scroll an entire page (previous handling was
21926 for \r and \n to scroll a page and other keys to scroll two lines).
21928 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21930 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21931 Set ptrdest to correct get_physical_target_address rather than
21932 incorrect get_virtual_current_address.
21934 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
21936 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
21937 correct cat to grub_uint8_t * rather than grub_uint32_t *.
21939 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21941 * .bzrignore: Ignore grub-core/rs_decoder.S.
21943 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21945 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
21946 .mo/.mo.gz opening sequence to ...
21947 (grub_mofile_open_lang): ... here.
21948 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
21949 * util/grub.d/00_header.in (grub_lang): Include country part of
21951 Reported by: Mario Limonciello.
21953 2010-12-09 Robert Millan <rmh@gnu.org>
21955 * NEWS: Document addition of ZFS support.
21957 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
21959 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
21960 rather than `/ 2', as the latter requires -Wa,--divide which would
21961 require bumping our minimum binutils version.
21963 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
21965 * util/grub-script-check.c (main): Print script line number on
21968 2010-12-01 Robert Millan <rmh@gnu.org>
21970 * grub-core/fs/zfs/zfs.c: New file.
21971 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
21972 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
21973 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
21974 * grub-core/fs/zfs/zfsinfo.c: Likewise.
21976 * include/grub/zfs/dmu.h: Likewise.
21977 * include/grub/zfs/dmu_objset.h: Likewise.
21978 * include/grub/zfs/dnode.h: Likewise.
21979 * include/grub/zfs/dsl_dataset.h: Likewise.
21980 * include/grub/zfs/dsl_dir.h: Likewise.
21981 * include/grub/zfs/sa_impl.h: Likewise.
21982 * include/grub/zfs/spa.h: Likewise.
21983 * include/grub/zfs/uberblock_impl.h: Likewise.
21984 * include/grub/zfs/vdev_impl.h: Likewise.
21985 * include/grub/zfs/zap_impl.h: Likewise.
21986 * include/grub/zfs/zap_leaf.h: Likewise.
21987 * include/grub/zfs/zfs.h: Likewise.
21988 * include/grub/zfs/zfs_acl.h: Likewise.
21989 * include/grub/zfs/zfs_znode.h: Likewise.
21990 * include/grub/zfs/zil.h: Likewise.
21991 * include/grub/zfs/zio.h: Likewise.
21992 * include/grub/zfs/zio_checksum.h: Likewise.
21994 * Makefile.util.def: Build ZFS into libgrubmods.
21995 * grub-core/Makefile.core.def: Build zfs.mod.
21997 2010-11-30 Szymon Janc <szymon@janc.net.pl>
21999 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
22001 * grub-core/commands/wildcard.c (match_files): Likewise.
22003 2010-11-30 Robert Millan <rmh@gnu.org>
22005 * grub-core/loader/i386/bsd.c
22006 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
22007 whether kernel is loaded using grub_loader_is_loaded(), rather
22008 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
22009 certain error conditions.
22011 2010-11-30 Robert Millan <rmh@gnu.org>
22013 * grub-core/commands/echo.c: Include `<grub/term.h>'.
22014 (grub_cmd_echo): Call grub_refresh() after printing a message.
22016 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
22018 Avoid using tricks for initialising endian variables.
22020 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
22022 (GRUB_MOD_INIT): Don't byte-swap.
22023 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
22024 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
22025 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
22026 (grub_swap_bytes32_compile_time): Likewise.
22027 (grub_cpu_to_le32_compile_time): Likewise.
22028 (grub_cpu_to_le16_compile_time): Likewise.
22030 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
22032 * util/grub-setup.c (setup): Stop recommending --force. People who
22033 understand the dangers of blocklists are able to find this option
22034 anyway and the ones who don't shouldn't use it anyway.
22036 2010-11-26 Robert Millan <rmh@gnu.org>
22038 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
22041 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
22043 Fix LVM-on-RAID probing.
22045 * util/grub-probe.c (probe): Remember which disk was detected as
22046 RAID (perhaps an LVM physical volume). Use that disk's raidname
22047 rather than that of the top-level disk.
22049 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
22051 Fix cmdline argument quotes for setparams command of menuentry
22054 * grub-core/commands/menuentry.c (setparams_prefix): Use single
22055 quotes for arguments.
22056 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
22057 grub_strchrsub function instead.
22059 * include/grub/misc.h (grub_strchrsub): New function.
22061 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22063 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
22064 effort by skipping "." and ".." entries up-front.
22065 Suggested by: Michael Lazarev.
22067 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22069 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
22070 ldflags to ldadd, to fix link line ordering.
22071 (none_decompress): Likewise.
22073 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22075 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
22077 (grub-emu-lite): Remove kern/emu/cache.S.
22079 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22081 * util/deviceiter.c (compare_devices): If the by-id link for a
22082 device couldn't be resolved, fall back to sorting by the by-id link
22083 rather than segfaulting.
22084 Reported and tested by: Daniel Mierswa.
22086 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22088 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
22089 ldflags, to fix link line ordering.
22091 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22093 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
22094 linkers are picky about this.
22096 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22098 * grub-core/Makefile.am (command.lst): Adjust sed expression
22099 ordering so that extended and priority commands aren't treated as
22102 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22104 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
22105 Remove byte-swapping function calls, which are not valid in
22106 structure initialisers.
22107 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
22109 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
22110 grub_gpt_partition_type_bios_boot.
22112 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22114 Fix test program build on GNU/kFreeBSD.
22116 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
22117 $(LIBNVPAIR)' library dependencies.
22119 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22121 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
22123 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22125 * util/grub-install.in: Remove excessive quoting that broke
22126 installations to RAID devices.
22128 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22130 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
22131 bootloader version instead of 0.
22133 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22135 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
22138 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22140 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
22141 retrieve the metadat sector if size isn't known.
22142 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22144 2010-11-18 Robert Millan <rmh@gnu.org>
22146 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
22147 with grub_memcmp().
22149 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
22151 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
22153 Reported by: Jordan Uggla.
22155 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22157 Make better UTF compliant.
22159 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
22160 sequences as incorrect.
22161 (grub_is_valid_utf8): Likewise.
22162 (grub_utf8_to_ucs4): Likewise.
22163 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
22164 (grub_ucs4_to_utf8_alloc): Likewise.
22165 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
22167 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22169 Make legacy_source behave like source.
22171 * grub-core/commands/legacycfg.c (legacy_file): Don't call
22173 (grub_cmd_legacy_source): Call grub_show_menu if needed.
22175 2010-11-16 Colin Watson <cjwatson@debian.org>
22177 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
22178 (-Wunused implies -Wunused-parameter, but not vice versa).
22180 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
22182 * configure.ac: Make error messages less confusing by testing for
22183 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
22184 accepted, but produces a diagnostic if something else is wrong).
22186 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22188 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
22189 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
22191 (grub_keyboard_controller_init)
22192 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
22193 read the initial state since controller isn't inited yet.
22195 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22197 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
22198 allocate_regbeg may need to create new chunk header.
22200 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22202 Fix quoting in legacy parser.
22204 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
22206 (grub_legacy_parse): Likewise.
22207 Reported by: Jordan Uggla.
22208 Tested by: Jordan Uggla.
22210 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22212 Don't add -lgcc on i386 and x86_64.
22214 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
22215 * conf/Makefile.common (LDADD_KERNEL): Likewise.
22216 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
22218 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22220 * configure.ac: Add -Wno-trampolines when supported.
22222 2010-11-14 Modestas Vainius <modax@debian.org>
22224 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
22227 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22229 Add generic logical block size support for UDF.
22231 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
22232 (GRUB_UDF_BLKSZ): Removed.
22233 (struct grub_udf_data): New field "lbshift" to hold the logical block
22234 size of the file system in log2 format. All users updated.
22235 (sblocklist): Change type to unsigned.
22236 (grub_udf_mount): Change type of "sblklist" to unsigned.
22237 Move AVDP search before VRS recognition, because the latter requires
22238 knowledge of the logical block size, which is detected during the
22240 Detect and validate logical block size during AVDP search, adding
22241 support for block sizes 512, 1024 and 4096.
22242 Make VRS recognition independent of block size.
22244 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22246 Properly handle deleted files on UDF.
22248 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
22249 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
22252 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22254 Support reading files larger than 2 GiB.
22256 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
22257 "offset" to grub_off_t.
22258 (grub_udf_read_file): Likewise for parameter "pos".
22260 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22262 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
22264 (Simple configuration): Refer to Changes from GRUB Legacy about
22265 save_env availability.
22267 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22269 * util/grub-install.in: Ignore empty partition table detection
22270 instead of trying to include part_ module.
22272 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22274 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
22275 LVM on RAID support.
22277 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22279 Properly define WORDS_BIGENDIAN in wrapped environments.
22281 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
22283 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
22285 Reported by: Manoel Rebelo Abranches.
22286 Tested by: Manoel Rebelo Abranches.
22288 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22290 * util/grub-mkconfig.in: Fix quoting.
22292 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22294 Support big ext2 files.
22296 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
22297 (grub_ext2_read_block): Support triple indirect blocks.
22298 (grub_ext2_read_file): Use 64-bit types and read size_high.
22299 (grub_ext2_open): Read size_high.
22300 Reported by: Ximin Luo.
22301 Tested by: Manoel Rebelo Abranches.
22303 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22305 * util/grub-install.in: Handle filenames containing spaces.
22306 Reported by: Jordan Uggla.
22307 Tested by: Jordan Uggla.
22309 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22311 * util/grub-mkconfig.in (grub_script_check): New variable.
22312 Use grub_script_check instead of grub-script-check.
22313 Reported by: Barry Jackson.
22315 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22317 * docs/grub.texi (menu): Correct the order.
22318 Reported by: D. Hugh Redelmeier.
22320 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
22322 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
22325 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22327 * include/grub/elfload.h (grub_elf32_size): New parameter.
22329 Return maximum segments alignment.
22330 (grub_elf64_size): Likewise.
22331 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
22332 Return maximum segments alignment.
22333 (grub_elf64_size): Likewise.
22334 * grub-core/loader/powerpc/ieee1275/linux.c:
22335 (grub_linux_claimmap_iterate): New function. Uses the
22336 "available" property in the "memory" node for memory allocation
22337 for kernel in the PowerPC loader.
22338 (grub_linux_load32): Correctly find linux entry point offset.
22339 (grub_linux_load64): Likewise.
22341 2010-11-07 Robert Millan <rmh@gnu.org>
22343 On mips-yeeloong, build with -march=loongson2f when this flag is
22344 available (GCC >= 4.4).
22345 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
22347 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
22348 or otherwise add -march=mips3.
22350 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
22352 Suppress shell expansion on echo '*' and echo "*" like cases.
22353 Reported by: Jordan Uggla.
22355 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
22356 string arguments before shell expansion.
22357 * tests/grub_cmd_echo.in: New testcases.
22359 2010-11-07 Robert Millan <rmh@gnu.org>
22361 * conf/mips-qemu-mips.rmk: Remove stale file from previous
22364 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
22366 * grub-core/kern/emu/hostdisk.c
22367 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
22369 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22371 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
22372 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
22373 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
22375 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22377 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
22379 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22381 * util/grub-install.in: Replace useless recomendation to pass
22382 --modules with a recomendation to report a bug.
22384 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22386 Properly register serial terminfo.
22387 Reported by: Jordan Uggla
22389 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
22391 (grub_serial_terminfo_output_template): Likewise.
22392 (grub_cmd_serial): Register "serial" with terminfo.
22393 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
22394 grub_serial_terminfo_output.
22396 2010-11-05 Robert Millan <rmh@gnu.org>
22398 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
22401 2010-11-05 Robert Millan <rmh@gnu.org>
22403 On Yeeloong, pass machine type information to Linux.
22405 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
22406 (LOONGSON_MACHTYPE): New macro, set to
22407 "machtype=lemote-yeeloong-2f-8.9inches".
22408 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
22409 additional argument to Linux.
22411 2010-11-04 Robert Millan <rmh@gnu.org>
22413 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
22414 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
22415 (its SATA disks are detected as slaveless IDE master drives on
22417 Reported by Carsten Aulbert.
22419 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
22421 * util/bin2h.c (main): Fix spelling error in generated output.
22423 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
22425 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
22427 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22429 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
22430 vga= option is supplied.
22432 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22434 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
22435 * util/grub.d/10_kfreebsd.in: Likewise.
22436 * util/grub.d/10_linux.in: Likewise.
22437 * util/grub.d/20_linux_xen.in: Likewise.
22439 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22441 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
22442 argument as an argument to no-argument option.
22444 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22446 * util/grub.d/10_linux.in: Add missing load_video with explicit
22447 GRUB_GFXPAYLOAD_LINUX.
22449 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22451 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
22453 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22455 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
22456 elements with invlid index.
22457 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22458 * grub-core/disk/raid.c (insert_array): Automatically reallocate
22460 * include/grub/raid.h (grub_raid_member): New struct.
22461 (grub_raid_array): Transform devices and start_sector into usage of
22462 grub_raid_member. All users updated
22463 (allocated_devs): New member.
22465 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22467 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
22470 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
22472 NetBSD build fix for getline function conflict from gnulib.
22474 * Makefile.util.def (libgrubkern.a): New library for grub kernel
22475 components that depend on gnulib headers.
22476 (libgrubmods.a): Renamed from earlier libgrub.a.
22477 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
22479 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22481 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
22482 install rather than creating a broken install.
22484 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22486 * util/grub-setup.c (argp): Remove misleading example of installing to
22489 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22491 * util/grub-setup.c (setup): Clarify the error message.
22493 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22495 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
22497 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22499 * grub-core/kern/emu/misc.c
22500 (grub_make_system_path_relative_to_its_root)
22501 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
22503 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22505 * grub-core/kern/emu/misc.c
22506 (grub_make_system_path_relative_to_its_root): Revert r2882.
22508 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
22510 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
22511 useless field head. All users updated.
22512 (free_subchunk): Correct handling of IN_REGION subchunk.
22514 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
22516 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
22517 (Supported kernels): Likewise.
22519 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22521 Make mktemp invocations portable.
22523 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
22524 exit if mktemp fails.
22525 * tests/grub_script_blockarg.in: Likewise.
22526 * tests/partmap_test.in: Likewise.
22527 * tests/util/grub-shell-tester.in: Likewise.
22528 * tests/util/grub-shell.in: Likewise.
22529 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22530 * Makefile.am: Likewise, and chain shell commands with `&&'
22532 * util/grub-mkrescue.in: Use the same explicit template as above, and
22533 exit if mktemp fails.
22535 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
22537 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
22538 Linux kernel, reported by Dennis Schridde.
22540 2010-10-17 Szymon Janc <szymon@janc.net.pl>
22542 * grub-core/normal/auth.c (grub_auth_check_authentication):
22543 Set-but-not-used variable removed.
22545 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22547 * docs/grub.texi (GNU/Linux): Document APM unavailability with
22548 32-bit linux protocol.
22550 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22552 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
22553 cursor shape for sanity.
22555 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22557 * docs/grub.texi (Installation): Document buggy BIOS install.
22559 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22561 * docs/grub.texi (Installation): Indent.
22563 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22565 * util/grub-setup.c (setup): New parameter allow_floppy.
22566 (arguments): New member allow_floppy.
22567 (argp_parser): Handle --allow-floppy.
22568 (main): Pass allow_floppy.
22569 * util/grub-install.in: New option --allow-floppy passed though to
22572 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22574 * util/grub-install.in: Handle partitionless disks.
22576 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22578 * util/grub-setup.c (setup): Don't clean blocklists before readability
22581 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22583 * docs/grub.texi (Installation): Document embedding zone. Remove
22584 obsolete grub-install example.
22586 2010-10-16 Szymon Janc <szymon@janc.net.pl>
22588 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
22589 Set-but-not-used variable ifdef'ed.
22590 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
22591 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
22593 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
22594 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
22595 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
22596 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
22597 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
22598 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22599 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
22600 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
22601 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
22602 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
22603 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
22606 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22608 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
22609 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
22612 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22614 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
22615 synonym to _S5_. Needed for some DSDTs.
22617 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22619 Userspace ACPI parser debugging.
22621 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
22622 headers and add relevant defines. Don't include standard headers.
22623 (main) [GRUB_DSDT_TEST]: New function.
22624 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
22625 Don't declare functions.
22627 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22629 Remove dead grub_efi_mm_fini.
22631 * grub-core/kern/efi/mm.c (allocated_page): Removed.
22632 (ALLOCATED_PAGES_SIZE): Likewise.
22633 (MAX_ALLOCATED_PAGES): Likewise.
22634 (allocated_pages): Likewise.
22635 (grub_efi_allocate_pages): Don't record allocated pages.
22636 (grub_efi_free_pages): Likewise.
22637 (grub_efi_mm_init): Likewise.
22638 (grub_efi_mm_fini): Removed.
22640 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22642 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
22643 (grub_efi_mm_init): Take into account the memory map size increase.
22645 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22647 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
22648 (serial_hw_put): Wait based on real time rather than port reads. Don't
22650 * include/grub/serial.h (grub_serial_port): New field broken.
22652 2010-10-16 Robert Millan <rmh@gnu.org>
22654 * grub-core/kern/emu/misc.c
22655 (grub_make_system_path_relative_to_its_root): Fix premature return
22656 when processing non-root ZFS filesystems.
22657 Reported by Sergio Talens-Oliag.
22659 2010-10-15 Robert Millan <rmh@gnu.org>
22661 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
22662 guarantee compressed ones are processed first.
22664 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22666 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
22667 grub_efiemu_autocore.
22669 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22671 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
22673 (grub_console_getkey): Use correct jae opcode rather than ja.
22675 2010-10-12 Robert Millan <rmh@gnu.org>
22677 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
22678 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
22679 variable. All references updated.
22681 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
22683 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
22685 Correctly distinguish mdraid flavours.
22687 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
22688 (insert_array): New argument raid.
22689 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
22690 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
22691 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
22693 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
22695 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
22696 handling of special keys.
22698 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22700 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
22701 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
22703 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22705 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
22706 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
22708 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
22709 Use right endpoint when querying descriptor.
22711 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22713 Clear out 0x80 color bit on EFI.
22715 Reported by: decoder and meta tech.
22717 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
22718 (grub_console_setcolorstate): Clear out 0x80 bit.
22719 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
22720 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
22721 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
22723 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22725 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
22728 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22730 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
22731 mo_file after freeing.
22733 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22735 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
22737 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22739 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
22742 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22744 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
22747 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22749 Put terminfo into core on ieee1275 and yeeloong (needed for console).
22751 * gentpl.py: New groups terminfoinkernel and terminfomodule.
22752 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
22753 and terminfo.h when needed.
22754 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
22755 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
22756 (terminfo): Enable only on terminfokernel.
22757 (extcmd): Likewise.
22758 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
22759 * include/grub/lib/arg.h: Likewise.
22760 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
22761 incorrect usage of ->.
22763 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22765 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
22766 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
22768 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22770 Fix coreboot compilation.
22772 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22773 Take VBE info into account even if only text is supported.
22774 (fill_vbe_info): Take into account the case when only VGA text
22776 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
22777 on coreboot, multiboot and qemu.
22779 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22781 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
22783 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
22785 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22787 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
22790 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22792 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
22793 if they were BSD-style.
22795 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22797 * grub-core/boot/i386/pc/lnxboot.S: Replace
22798 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
22799 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
22801 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22803 Write embedding zone using Reed-Solomon.
22805 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22806 * grub-core/Makefile.am (rs_decoder.S): New target.
22807 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22808 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22809 (multiboot): Move to RS part.
22810 (post_reed_solomon): New label.
22811 (grub_boot_drive): Move to non-RS part since it's modified in memory
22813 Include rs_decoder.S.
22814 * grub-core/lib/reed_solomon.c: New file.
22815 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22817 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22818 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22819 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22820 * include/grub/partition.h (grub_partition_map): Change prototype of
22821 embed to allow returning additional sectors.
22822 * include/grub/reed_solomon.h: New file.
22823 * util/grub-setup.c (setup): Handle Reed-Solomon.
22825 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
22827 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22828 i386 and x86-64 definedness tests.
22830 2010-09-27 Yves Blusseau <blusseau@zetam.org>
22832 Fix generation of kernel_syms.lst
22834 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22837 2010-09-26 Robert Millan <rmh@gnu.org>
22839 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22841 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22842 the pool is an array of devices, iterate through it and return the
22843 first device that passes a stat() test (instead of blindly returning
22846 2010-09-26 Robert Millan <rmh@gnu.org>
22848 Build fixes for GNU/kFreeBSD.
22850 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22851 to programs that require ZFS conversion.
22852 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22853 kernels that don't have FLOPPY_MAJOR.
22855 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22857 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22859 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22861 Fix grub-emu build.
22863 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22864 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22865 mdraid09 and mdraid1x.
22867 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
22869 Re-enable grub-extras.
22871 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22872 avoid confusing Automake. Run autogen only twice, once for the top
22873 level and once for grub-core. Add Makefile.util.def and
22874 Makefile.core.def from extra modules to the appropriate autogen
22875 invocations. If Makefile.common exists in an extra module, include
22876 it in both Makefile.util.am and grub-core/Makefile.core.am;
22877 similarly, include any Makefile.util.common file in Makefile.util.am
22878 and any Makefile.core.common file in grub-core/Makefile.core.am.
22879 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
22880 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
22881 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
22882 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
22884 * gentpl.py (gvar_add): Turn GVARS into a set.
22885 (global_variable_initializers): Sort global variables on output.
22886 (vars_init): New function.
22887 (first_time): Likewise.
22888 (library): Ensure that non-global variable initialisations are
22889 emitted before the first time we emit code for a library block.
22890 Append to variables rather than setting them. Only emit
22891 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
22892 each conditional path.
22893 (program): installdir() emits an Autogen macro, so must be passed to
22894 var_add rather than gvar_add.
22896 (script): Likewise.
22897 (rules): New function, centralising handling for different target
22898 types. Set up Guile association lists for first_time and vars_init,
22899 and send most output to a diversion so that variable initialisations
22900 can be emitted first.
22901 (module_rules): Use new rules function.
22902 (kernel_rules): Likewise.
22903 (image_rules): Likewise.
22904 (library_rules): Likewise.
22905 (program_rules): Likewise.
22906 (script_rules): Likewise.
22907 (data_rules): Likewise.
22909 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
22911 * .bzrignore: Add contrib and grub-core/contrib. Remove
22912 grub-core/Makefile.gcry.am.
22914 2010-09-24 Yves Blusseau <blusseau@zetam.org>
22916 * grub-core/lib/LzFind.c: Add missing include.
22917 * grub-core/lib/LzmaEnc.c: Likewise.
22918 * grub-core/script/lexer.c: Likewise.
22919 * grub-core/script/yylex.l: Likewise.
22920 * util/grub-macho2img.c: Likewise.
22921 * util/grub-menulst2cfg.c: Likewise.
22922 * util/grub-mklayout.c: Likewise.
22923 * util/grub-mkpasswd-pbkdf2.c
22924 * util/grub-mkrelpath.c: Likewise.
22925 * util/resolve.c: Likewise.
22927 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
22929 * Makefile.util.def (example_unit_test): Add
22930 grub-core/gnulib/libgnu.a.
22932 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
22934 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
22936 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
22938 Support xz compression on yeeloong.
22940 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
22941 * configure.ac: Check for LZMA.
22942 * grub-core/Makefile.core.def (xz_decompress): New target.
22943 (none_decompress): Likewise.
22944 * grub-core/boot/decompressor/minilib.c: New file.
22945 * grub-core/boot/decompressor/none.c: Likewise.
22946 * grub-core/boot/decompressor/xz.c: Likewise.
22947 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
22948 * grub-core/kern/mips/cache_flush.S: Likewise.
22949 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
22950 * grub-core/kern/mips/startup.S: Move first stage to ...
22951 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
22953 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
22954 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
22955 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
22956 Allocate statically.
22957 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
22958 Allocate statically or use scratch. Don't check CRC32.
22959 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
22960 Allocate statically. Don't check CRC32.
22961 * include/grub/decompressor.h: New file.
22962 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
22964 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
22965 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
22966 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
22967 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
22968 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
22969 * util/grub-mkimage.c (grub_compression_t): New type.
22970 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
22971 (image_target_desc): New field default_compression.
22972 (image_targets): Adjust yeeloong targets.
22973 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
22974 (compress_kernel): New parameter comp.
22975 (generate_image): Likewise. Handle new compression case.
22976 (options): New option --compression
22978 (main): Handle new option.
22980 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
22982 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
22984 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
22986 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22987 typo in __i386__ conditional.
22989 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22991 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
22994 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22996 Implement EFI and ACPI multiboot2 extensions.
22998 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
22999 new tags as supported.
23000 (acpiv2_size): New function.
23001 (grub_multiboot_get_mbi_size): Take new tags into account.
23002 (grub_multiboot_make_mbi): Add new tags.
23003 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
23005 2010-09-21 Aleš Nesrsta <starous@volny.cz>
23007 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
23008 Added missing configuration of USB device.
23010 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23012 * grub-core/normal/menu_entry.c (run): Make sure we always return
23015 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23017 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
23018 NumberOfPages is UINT64 according to the UEFI specification, not
23019 UINTN. Fix printf format.
23021 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23023 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
23024 `err' to grub_usb_err_t.
23025 Reported and tested by: KESHAV P.R.
23027 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23029 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
23030 tpart non-const, so that we can assign to it. (Since this is a
23031 typedef, the constness refers to the pointer rather than what it
23034 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23036 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
23037 $(top_srcdir)/grub-core/gnulib as well as
23038 $(top_builddir)/grub-core/gnulib.
23039 Reported by: KESHAV P.R.
23041 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23043 * util/grub-install.in: Fix the bootloader ID option to be
23044 consistently --bootloader-id, not --bootloader_id.
23045 Reported by: KESHAV P.R.
23047 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23049 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
23050 check hash checksum." consistently translatable.
23052 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23054 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
23057 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23059 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
23060 (GRUB_MOD_INIT): Register sha1sum command.
23061 (GRUB_MOD_FINI): Unregister sha1sum command.
23063 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23065 Keep boot and grub directory names in sync with utils scripts
23067 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
23068 * config.h.in: Add previous macros.
23069 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
23070 * util/grub-install.in: Use $bootdir and $grubdir variables.
23072 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23074 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
23075 convert partition names to disk names if the new `convert' parameter
23077 (grub_util_biosdisk_get_grub_dev): If opening the disk device
23078 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
23079 disk in its own right. This can happen with Xen disk images.
23081 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23083 * util/grub-editenv.c: Update strings to avoid warnings when generating
23085 * util/grub-setup.c: Likewise.
23087 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23089 * configure.ac: Change version to 1.99~beta0.
23091 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23093 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
23095 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
23097 * include/multiboot.h: Resynced with specification.
23098 * include/multiboot2.h: Likewise.
23100 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23102 Fix po directory handling.
23104 * configure.ac: Create po/Makefile.in rather than po/Makefile.
23105 * grub-core/gnulib/Makefile.am: Import gettext module.
23106 * m4/gnulib-cache.m4: Likewise.
23107 * m4/gnulib-comp.m4: Likewise.
23108 * m4/gettext.m4: New file, from gnulib.
23109 * m4/glibc2.m4: Likewise.
23110 * m4/iconv.m4: Likewise.
23111 * m4/intdiv0.m4: Likewise.
23112 * m4/intl.m4: Likewise.
23113 * m4/intldir.m4: Likewise.
23114 * m4/intlmacosx.m4: Likewise.
23115 * m4/intmax.m4: Likewise.
23116 * m4/inttypes-pri.m4: Likewise.
23117 * m4/lcmessage.m4: Likewise.
23118 * m4/lib-ld.m4: Likewise.
23119 * m4/lib-link.m4: Likewise.
23120 * m4/lib-prefix.m4: Likewise.
23121 * m4/lock.m4: Likewise.
23122 * m4/nls.m4: Likewise.
23123 * m4/po.m4: Likewise.
23124 * m4/printf-posix.m4: Likewise.
23125 * m4/progtest.m4: Likewise.
23126 * m4/threadlib.m4: Likewise.
23127 * m4/uintmax_t.m4: Likewise.
23128 * m4/visibility.m4: Likewise.
23129 * po/Makefile.am: Remove.
23130 * po/Makefile.in.in: New file, from gettext.
23131 ($(DOMAIN).pot-update): Support POTFILES-shell.
23132 * po/Makevars: New file.
23133 * po/POTFILES-shell: Rename to ...
23134 * po/POTFILES-shell.in: ... this. Update.
23135 * po/POTFILES: Rename to ...
23136 * po/POTFILES.in: ... this. Update.
23137 * po/Rules-quot: New file, from gettext.
23138 * po/boldquot.sed: Likewise.
23139 * po/en@boldquot.header: Likewise.
23140 * po/en@quot.header: Likewise.
23141 * po/insert-header.sin: Likewise.
23142 * po/quot.sed: Likewise.
23143 * po/remove-potcdate.sin: Likewise.
23145 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23147 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
23149 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23151 * util/grub.d/20_linux_xen.in: Use submenus.
23153 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23157 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
23158 parameter submenu. All users updated.
23159 * grub-core/normal/main.c (free_menu): Rename to ...
23160 (grub_normal_free_menu): ... this. Made global.
23161 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
23163 * grub-core/normal/menu_entry.c (screen): New field submenu.
23164 (make_screen): Set submenu.
23165 (run): Open new context if requested.
23166 * include/grub/menu.h (grub_menu_entry): New field submenu.
23167 * include/grub/normal.h (grub_normal_free_menu): New proto.
23169 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23171 Menu entries extractor.
23173 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
23175 (GRUB_MOD_INIT): Register new variants.
23176 (GRUB_MOD_FINI): Unregister new variants.
23177 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
23178 into grub_cmd_legacy_source.
23179 (grub_cmd_legacy_source): Implement extractor variants.
23180 (GRUB_MOD_INIT): Register new variants.
23181 (GRUB_MOD_FINI): Unregister new variants.
23182 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
23184 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
23185 search as an extractor.
23186 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
23187 test as an extractor.
23188 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
23190 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
23191 (grub_env_new_context): New function.
23192 (grub_env_context_open): Likewise.
23193 (grub_env_extractor_open): Likewise.
23194 (grub_env_extractor_close): Likewise.
23195 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
23196 grub_extractor_level.
23197 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
23198 * include/grub/env.h (grub_env_extractor_open): New proto.
23199 (grub_env_extractor_close): Likewise.
23200 * include/grub/normal.h (grub_extractor_level): New external variable.
23202 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23204 Make cutmem accept a region specification.
23205 Suggested by: Samuel Thibault
23207 * grub-core/mmap/mmap.c (parsemem): New function.
23208 (grub_cmd_cutmem): Handle new arguments.
23210 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23212 New command cutmem.
23214 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
23215 (GRUB_MOD_INIT): Register new command.
23216 (GRUB_MOD_FINI): Unregister new command.
23218 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23220 Support some annoying BSD and Minix subpartitions.
23222 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
23223 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
23224 Properly handle concatenation.
23225 * grub-core/kern/device.c (grub_device_iterate): Likewise.
23226 * grub-core/normal/completion.c (iterate_partition): Likewise.
23227 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
23228 contain partition. All users updated.
23229 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
23231 (grub_openbsdlabel_partition_map): Likewise.
23232 (bsdlabel_partition_map_iterate): Rename to ..
23233 (iterate_real): ... this. New arguments sector, freebsd and pmap.
23234 (bsdlabel_partition_map_iterate): New function.
23235 (netopenbsdlabel_partition_map_iterate): Likewise.
23236 (netbsdlabel_partition_map_iterate): Likewise.
23237 (openbsdlabel_partition_map_iterate): Likewise.
23238 (GRUB_MOD_INIT): Register new partmaps.
23239 (GRUB_MOD_FINI): Unregister new partmaps.
23240 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
23241 (grub_partition_msdos_iterate): ... this. All users updated.
23242 Don't support embedding other than in a minix partition.
23243 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
23245 * include/grub/partition.h (grub_partition): New field msdostype.
23246 * util/grub-install.in: Handle openbsd and netbsd types being in
23249 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23251 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
23253 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
23254 * grub-core/Makefile.core.def (mdraid): Renamed to ...
23255 (mdraid09): ... this.
23256 (mdraid1x): New module.
23257 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
23258 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
23260 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23262 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
23265 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23267 * grub-core/commands/efi/lsefimmap.c: Correct header.
23270 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23272 * util/grub-editenv.c (argp_parser): Don't pass translated strings
23273 as printf format strings; the translations might contain '%' which
23274 could cause a crash.
23276 * util/grub-fstest.c (argp_parser): Likewise.
23277 * util/grub-setup.c (argp_parser): Likewise.
23280 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23282 Use argp in grub-fstest.
23284 * util/grub-fstest.c: Don't include getopt.h.
23286 (root): New variable.
23287 (args_count): Likewise.
23289 (num_disks): Likewise.
23290 (images): Likewise.
23292 (debug_str): Likewise.
23294 (options): Transformed to argp.
23296 (main): Split argument parsing into ...
23297 (argp_parser): ... this. Changed to argp format.
23298 (argp): New variable.
23299 (main): Use argp_parse.
23301 2010-09-20 Tristan Gingold <gingold@free.fr>
23302 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
23303 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23305 * grub-core/commands/efi/lsefimmap.c: New file.
23306 * grub-core/Makefile.core.def (lsefimmap): New module.
23307 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
23309 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23311 Pause the execution (10s max) if any errors are displayed so the user
23312 has a chance to see them.
23314 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
23315 (grub_print_error): Increment grub_err_printed_errors.
23316 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
23317 execution if any errors were displayed.
23318 (show_menu): Remove old code for pause.
23319 * grub-core/normal/menu_entry.c (run): Likewise.
23320 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
23322 (grub_normal_get_char_counter): Likewise.
23323 * include/grub/err.h (grub_err_printed_errors): New external variable.
23324 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
23326 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23328 Support multiboot VBE info.
23330 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
23331 Take VBE info into account.
23332 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
23333 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23334 Call fill_vbe_info when appropriate.
23335 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
23336 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
23338 (grub_multiboot_get_mbi_size): Take new tags into account.
23339 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
23340 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23341 Call fill_vbe_tag when appropriate.
23342 (grub_multiboot_make_mbi): Properly align tags.
23343 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
23345 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
23347 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
23349 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23351 Suport manual terminal geometry specification.
23353 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
23354 Save state in grub_ofconsole_terminfo_output.
23355 (grub_ofconsole_term): Use grub_terminfo_getwh.
23356 (grub_ofconsole_getwh): Removed.
23357 * grub-core/term/serial.c (grub_serial_getwh): Removed.
23358 (grub_serial_term): Use grub_terminfo_getwh.
23359 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
23360 (options): New struct.
23361 (OPTION_*): New enum.
23362 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
23363 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
23365 (grub_terminfo_getwh): New proto.
23366 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
23368 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23370 Handle legacy "terminal" command.
23372 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
23374 (legacy_commands): Add terminal and title.
23375 (grub_legacy_parse): Handle terminal. Simplify title handling.
23377 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23379 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
23380 parameters overflow.
23382 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23384 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
23387 * docs/grub.texi (Shell-like scripting): Document `!'.
23388 (Network): Simplify using new i386-pc-pxe format. Mention
23393 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23395 * Makefile.am (SUBDIRS): Restore "."; it's important to force
23396 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
23399 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23401 * grub-core/commands/efi/lsefisystab.c: Correct header.
23402 * grub-core/commands/efi/lssal.c: Likewise.
23403 * grub-core/commands/testload.c: Likewise.
23405 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23407 * util/grub-mkrescue.in: Add explicit root argument to --set to
23408 prevent the UUID being interpreted as an argument to --set (matches
23409 previous change to prepare_grub_to_access_device).
23411 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23413 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
23414 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
23415 the verbosity of later #ifs.
23416 (find_partition_start): Define this function on FreeBSD too.
23417 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
23419 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
23422 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23424 * util/grub-editenv.c: Use argp instead of getopt.
23426 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23428 * util/grub-setup.c: Use argp instead of getopt.
23430 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23432 Use gnulib-tool to create gnulib source files.
23434 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
23435 grub-core/gnulib directories
23436 * .bzignore: Add **/.deps and autogenerated gnulib files
23437 * configure.ac: Assign auxiliary directory to build-aux, add invocation
23438 of gnulib macros, add grub-core/gnulib/Makefile
23439 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
23440 include m4 directory to aclocal.
23441 * Makefile.util.def: Remove direct compilation of gnulib source files
23442 and use the new grub-core/gnulib/libgnu.a.
23443 * build-aux/config.rpath: move config.rpath from top directory to
23445 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
23447 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
23448 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
23449 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
23451 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
23454 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23456 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
23457 grub-core/genmod.sh and grub-core/gensyminfo.sh
23459 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
23461 Add a test for echo command options.
23463 * tests/grub_cmd_echo.in: New test.
23464 * Makefile.util.def: Rules for new test.
23466 2010-09-20 Szymon Janc <szymon@janc.net.pl>
23468 Remove crc.mod and move crc command to hashsum.mod.
23469 Remove lib/crc.c - users updated to use gcrypt implementation.
23471 * grub-core/commands/crc.c: Removed.
23472 * grub-core/Makefile.core.def (crc): Module removed.
23473 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
23474 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
23475 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
23476 * grub-core/lib/crc.c: Removed.
23477 * include/grub/lib/crc.h: Removed.
23478 * Makefile.util.def (crc): Remove lib/crc.c
23479 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
23480 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
23481 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
23482 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
23483 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
23484 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
23486 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23488 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
23490 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23492 Split config.h for util and core.
23494 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
23495 (ADDR32): Likewise.
23496 (DATA32): Likewise.
23497 (BSS_START_SYMBOL): Likewise.
23498 (END_SYMBOL): Likewise.
23499 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
23500 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
23501 * config.h.in: New file.
23502 * configure.ac: Use config-util.h as config define file.
23503 Rename MACHINE into GRUB_MACHINE. All users updated.
23504 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
23506 (NESTED_FUNC_ATTR): Likewise.
23507 Substitue new variables.
23508 (COND_HAVE_ASM_USCORE): New conditional.
23509 * grub-core/Makefile.am (ASM_PREFIX): New variable.
23510 (kernel_syms.lst): Use ASM_PREFIX.
23511 * grub-core/kern/emu/console.c: Include config-util.h.
23512 * grub-core/kern/emu/misc.c: Likewise.
23513 * grub-core/kern/emu/mm.c: Likewise.
23514 * include/grub/emu/misc.h: Likewise.
23515 * include/grub/libgcc.h: Likewise.
23517 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23519 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
23521 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
23522 Fix GRUB_TERM_KEY_* constants usage.
23523 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
23525 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23527 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
23529 * grub-core/bus/usb/uhci.c: Remove empty define.
23530 (grub_uhci_check_transfer): Add missing cast.
23531 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
23533 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
23535 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
23537 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23539 * grub-core/Makefile.core.def (legacycfg): Add
23540 lib/i386/pc/vesa_modes_table.c on emu.
23542 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23544 Reduce number of temporary files generated by build system.
23546 * grub-core/gencmdlist.sh: Removed.
23547 * grub-core/genfslist.sh: Removed.
23548 * grub-core/genhandlerlist.sh: Removed.
23549 * grub-core/genmodsrc.sh: Removed.
23550 * grub-core/genpartmaplist.sh: Removed.
23551 * grub-core/genparttoollist.sh: Removed.
23552 * grub-core/gentermiinallist.sh: Removed.
23553 * grub-core/genvideolist.sh: Removed.
23555 * grub-core/genmod.sh.in: New file.
23556 * grub-core/gensyminfo.sh.in: New file.
23558 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
23559 * conf/Makefile.extra-dist: Update with new files.
23560 * gentpl.py: Remove rules related to unnecessary temporary files.
23561 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
23563 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
23565 * grub-core/bus/usb/uhci.c: Remove empty #define.
23566 * grub-core/genmoddep.awk: Updated with new syminfo format.
23567 * util/bash-completion.d/Makefile.am: Add config.log to
23570 2010-09-19 Yves Blusseau <blusseau@zetam.org>
23572 * Makefile.util.def: Add forgotten $(LIBINTL) library.
23574 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23576 * util/grub-mkconfig.in: Check the config script for syntax errors
23579 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
23580 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23582 * Makefile.util.def (grub-install): Use util/grub-install.in on all
23584 * util/grub-install.in: Add EFI and IEEE1275 support.
23585 * util/i386/efi/grub-install.in: Removed.
23586 * util/ieee1275/grub-install.in: Likewise.
23588 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23590 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
23591 (grub_cmd_cmosclean): Likewise.
23592 (GRUB_MOD_INIT): Register command cmosclean.
23593 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
23594 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
23596 2010-09-18 Carles Pina i Estany <carles@pina.cat>
23597 2010-09-18 Aleš Nesrsta <starous@volny.cz>
23598 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23600 Add keyboard layouts support.
23602 * Makefile.util.def (grub-mklayout): New file.
23603 (grub-kbdcomp): New script.
23604 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
23605 Add keyboard_layouts.h.
23606 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
23607 commands/boot.c on yeeloong.
23608 (keylayouts): New module.
23609 * grub-core/bus/usb/ohci.c
23610 * grub-core/bus/usb/uhci.c
23611 * grub-core/bus/usb/usbhub.c (rescan): New variable.
23612 (grub_usb_add_hub): Poll interrupt pipe for device handling.
23613 (attach_root_port): Likewise.
23614 (poll_nonroot_hub): Likewise.
23615 (grub_usb_poll_devices): Likewise.
23616 (detach_device): Close transfer.
23617 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
23619 (grub_usb_bulk_setup_readwrite): Likewise.
23620 (grub_usb_bulk_finish_readwrite): Likewise.
23621 * grub-core/commands/keylayouts.c: New file.
23622 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
23623 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
23625 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
23626 support scancode 2.
23627 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
23628 * include/grub/keyboard_layouts.h: New file.
23629 * util/grub-mklayout.c: New file.
23630 * util/grub-kbdcomp.in: Likewise.
23632 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23634 Unify memory types.
23636 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
23637 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
23639 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
23640 (grub_upper_mem): Likewise.
23641 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
23642 * include/grub/memory.h (grub_memory_type_t): New enum.
23645 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23647 * grub-core/Makefile.core.def (lsapm): New module.
23648 * grub-core/commands/i386/pc/lsapm.c: New file.
23649 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
23650 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
23652 * include/grub/i386/pc/apm.h: New file.
23653 * include/multiboot.h (multiboot_apm_info): New struct.
23655 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23657 GRUB-legacy configuration file support.
23659 * Makefile.util.def (grub-menulst2cfg): New util.
23660 * docs/man/grub-menulst2cfg.h2m: New file.
23661 * grub-core/Makefile.core.def (legacycfg): New module.
23662 * grub-core/commands/legacycfg.c: New file.
23663 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
23664 (grub_normal_add_menu_entry): ... this.
23665 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
23666 (grub_normal_set_password): ...this.
23667 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
23668 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
23669 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
23670 * grub-core/lib/legacy_parse.c: New file.
23671 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
23672 * include/grub/i386/pc/vesa_modes_table.h: New file.
23673 * include/grub/legacy_parse.h: Likewise.
23674 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
23675 * util/grub-menulst2cfg.c: New file.
23677 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23679 * grub-core/kern/emu/hostdisk.c
23680 (convert_system_partition_to_system_disk): Initialise node.
23682 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23684 * grub-core/kern/emu/hostdisk.c
23685 (convert_system_partition_to_system_disk): Fix devmapper memory pool
23687 Reported and based on patch by: Modestas Vainius.
23689 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23691 Fix DM-RAID probing with recent versions of device-mapper udev
23694 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
23695 canonicalise device paths under /dev/mapper/.
23696 (convert_system_partition_to_system_disk): Compare the
23697 uncanonicalised path to /dev/mapper/ rather than the canonicalised
23698 path, since device nodes under /dev/mapper/ are often symlinks.
23700 2010-09-17 Yves Blusseau <blusseau@zetam.org>
23702 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
23704 2010-09-16 Yves Blusseau <blusseau@zetam.org>
23706 * configure.ac: Avoid some annoying error messages if freetype-config
23707 program is not found.
23709 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23711 Support RAID on virtio devices, and others.
23713 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
23715 [__MINGW32__] (grub_find_device): ... this.
23716 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
23717 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
23718 reasonable default if dir is NULL.
23719 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
23721 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
23722 (grub_guess_root_device): Update callers.
23723 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
23725 * util/raid.c (grub_util_getdiskname): Remove.
23726 (grub_util_raid_getmembers): Use grub_find_device rather than
23727 grub_util_getdiskname.
23729 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23731 * docs/grub.texi (serial): Remove obsolete comment about GRUB
23732 needing to be compiled with serial support.
23733 (ls): Indicate that multiple files are accepted.
23734 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
23735 indicate that multiple files are accepted.
23737 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23739 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
23740 libgrub_a_init.c, and util/bash-completion.d/grub.
23742 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23744 * util/grub-setup.c (setup): Fix incorrect container semantics.
23746 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23748 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
23750 Reported by: J. Nick Terry
23752 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23754 Move embedding routines to partmap sources files.
23756 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
23757 [GRUB_UTIL]: New variable.
23758 (gpt_partition_map_iterate): Set part.parent.
23759 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
23760 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
23761 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
23763 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
23764 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
23765 (grub_partition_map) [GRUB_UTIL]: New field embed.
23766 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
23767 (setup): Use ->embed.
23769 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23771 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
23773 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
23774 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
23776 2010-09-15 Yves Blusseau <blusseau@zetam.org>
23778 Add function to get completions from usage.
23780 * util/bash-completion.d/grub-completion.bash.in: Add function to get
23781 completions from usage. Use LC_ALL=C to get options properly.
23783 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23785 * grub-core/gnulib/basename-lgpl.c: Imported.
23786 * grub-core/gnulib/basename.c: Likewise.
23787 * grub-core/gnulib/dirname-lgpl.c: Likewise.
23788 * grub-core/gnulib/dirname.c: Likewise.
23789 * grub-core/gnulib/dirname.h: Likewise.
23790 * grub-core/gnulib/stripslash.c: Likewise.
23792 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23794 * grub-core/gnulib/error.c: Resynced.
23795 * grub-core/gnulib/getopt.c: Likewise.
23796 * grub-core/gnulib/getopt_int.h: Likewise.
23797 * grub-core/gnulib/regex.h: Likewise.
23798 * grub-core/gnulib/regex_internal.c: Likewise.
23799 * grub-core/gnulib/regex_internal.h: Likewise.
23801 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23803 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
23804 CRC calculations and validity checks.
23805 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23808 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23810 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23812 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23814 Fix incorrect echo options handling.
23815 Reported by: Yves Blusseau.
23817 * include/grub/command.h (grub_command_flags_t): New flags
23818 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23819 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23820 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23822 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23824 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23826 (GRUB_COMMAND_FLAG_MENU): Likewise.
23827 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23828 (GRUB_COMMAND_FLAG_TITLE): Removed.
23829 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23830 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23831 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23832 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23833 (grub_command_flags_t): New enum. All users updated.
23835 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23837 Fix solaris compilation.
23839 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23840 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23841 (grub-emu-list): Likewise.
23843 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23845 Remove deprecated root command.
23847 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23850 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23852 * util/i386/pc/grub-setup.c: Merge this ...
23853 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23854 * util/grub-setup.c: ... into this.
23855 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23858 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23860 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23863 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23865 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23868 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23870 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23871 explicit root argument to set to prevent UUID to be interpreted as
23874 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23876 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23878 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23880 Don't export grub_gate_a20.
23882 * grub-core/kern/i386/pc/init.c: Remove leftovers.
23883 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
23885 (grub_gate_a20): ... this. All users updated.
23886 * include/grub/i386/pc/init.h: Removed. All users updated.
23888 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23890 Create euro.pf2 which supports most European languages.
23892 * Makefile.am (grubdata_DATA): Add euro.pf2.
23893 (euro.pf2): New target.
23894 (CLEANFILES): Add euro.pf2.
23896 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23898 * configure.ac: Disable emu-usb by default to prevent inadvertent
23901 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23903 Disable usbserial on grub-emu since our libusb code isn't good enough
23906 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
23907 (usbserial_pl2303): Likewise.
23908 (usbserial_ftdi): Likewise.
23910 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23912 * include/grub/disk.h (grub_disk): Remove has_partitions.
23914 * disk/loopback.c (grub_loopback): Remove has_partitions.
23916 (options): Remove partitions. All users updated.
23917 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
23918 * util/i386/pc/grub-setup.c (setup): copy partition table only when
23919 actual partition table is found.
23921 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23923 Remove readability checks (too many false negatives).
23925 * util/grub-install.in: Remove readability checks.
23926 * util/grub-mkconfig.in: Likewise.
23927 * util/grub.d/10_hurd.in: Likewise.
23928 * util/grub.d/10_kfreebsd.in: Likewise.
23929 * util/grub.d/10_linux.in: Likewise.
23930 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
23933 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23935 Enable acpi shutdown on all ACPI platforms.
23937 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
23938 on coreboo, multiboot and EFI.
23939 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
23940 (grub_acpi_halt): Likewise.
23941 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
23942 (grub_cmd_halt): Don't call grub_acpi_halt directly.
23943 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
23944 * grub-core/lib/i386/halt.c (grub_halt)
23945 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
23947 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23949 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
23952 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23954 * grub-core/video/efi_gop.c: Fix over-80-chars line.
23955 * grub-core/video/efi_uga.c: Likewise.
23957 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23959 Filter devaliases and never open same device twice.
23961 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
23962 (last_ihandle): Likewise.
23963 (ofdisk_hash_ent): New member shortest.
23964 (ofdisk_hash_add): Add canonical path too.
23965 (scan): New function.
23966 (grub_ofdisk_iterate): Iterate over hashed entries.
23967 (compute_dev_path): Don't add :0.
23968 (grub_ofdisk_open): Don't really open the disk.
23969 (grub_ofdisk_close): Avoid closing unrelated disk.
23970 (grub_ofdisk_read): Implement reopen logic.
23971 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
23973 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
23976 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23980 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
23981 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
23982 right address. Add sparc64_ieee1275_ldflags.
23983 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
23984 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
23985 to grub_host_to_target_addr
23986 (load_image): Likewise.
23988 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23990 * grub-core/normal/completion.c (complete_file): Handle device
23992 Fix based on patch by Doug Nazar.
23994 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23996 grub-mknetdir script.
23998 * Makefile.util.def (grub-mknetdir): New module.
23999 * tests/util/grub-shell.in: Support boot=net
24000 * util/grub-mknetdir.in: New file.
24002 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24004 videoinfo on non-vbe.
24006 * grub-core/Makefile.core.def (vbeinfo): Removed.
24007 (vbetest): Removed.
24008 (videoinfo): New module.
24009 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
24010 * grub-core/commands/i386/pc/vbetest.c: Removed.
24011 * grub-core/commands/videoinfo.c: New file.
24012 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
24014 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
24016 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
24017 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
24018 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
24019 mode_number. New parameter mode. All users updated.
24020 (grub_video_gop_iterate): New function.
24021 (grub_video_efi_gop): New member iterate.
24022 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
24023 (grub_vbe_set_video_mode): Remove setting useless fields.
24024 (vbe2videoinfo): New function.
24025 (grub_video_vbe_iterate): Likewise.
24026 (grub_video_vbe_setup): Use vbe2videoinfo.
24027 (grub_video_vbe_print_adapter_specific_info): New function.
24028 (grub_video_vbe_adapter): New fields iterate and
24029 print_adapter_specific_info.
24030 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
24032 (grub_video_mode_info): New field mode_number.
24033 (grub_video_adapter): New fields iterate and
24034 print_adapter_specific_info.
24036 2010-09-13 Tristan Gingold <gingold@free.fr>
24037 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
24038 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24040 * grub-core/commands/efi/lsefisystab.c: New file.
24041 * grub-core/commands/efi/lssal.c: Likewise.
24042 * grub-core/Makefile.core.def (lsacpi): New module.
24043 (lsefisystab): Likewise.
24044 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
24045 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
24046 (grub_efi_sal_system_table): New struct.
24047 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
24048 (grub_efi_sal_system_table_memory_descriptor): Likewise.
24049 (grub_efi_sal_system_table_platform_features): Likewise.
24050 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
24051 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
24052 (grub_efi_sal_system_table_ap_wakeup): Likewise.
24053 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
24055 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24057 Support explicit user claim that a device is BIOS-visible.
24059 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
24060 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
24061 * grub-core/kern/emu/hostdisk.c
24062 (convert_system_partition_to_system_disk): Support mdX.
24063 (find_system_device): New parameter add. All users updated.
24064 (grub_util_biosdisk_is_present): New function.
24065 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
24068 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24070 Search hints support.
24072 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
24075 2010-09-13 Yves Blusseau <blusseau@zetam.org>
24077 Bash completion script for util commands
24079 * Makefile.am: Add util/bash-completion.d directory
24080 * configure.ac: Likewise.
24081 * util/bash-completion.d/Makefile.am: New file.
24082 * util/bash-completion.d/grub-completion.bash.in: Likewise.
24084 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24086 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
24087 (print_backlog): set backlog_ucs4 and backlog_glyphs.
24088 Reported by: Yves Blusseau.
24090 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24092 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
24093 partition size and offset.
24095 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24097 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
24099 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24101 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
24103 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24105 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
24106 (grub_xvasprintf): Likewise.
24108 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24110 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
24112 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24114 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
24115 args ending with NULL.
24117 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24119 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
24122 2010-09-11 Szymon Janc <szymon@janc.net.pl>
24124 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
24126 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24128 Shutdown using ACPI.
24130 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
24131 * grub-core/commands/acpihalt.c: New file.
24132 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
24133 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
24134 (grub_acpi_halt): New proto.
24135 (GRUB_ACPI_SLP_EN): New const.
24136 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
24137 (GRUB_ACPI_OPCODE_*): New enum.
24138 (GRUB_ACPI_EXTOPCODE_*): Likewise.
24140 2010-09-11 Tristan Gingold <gingold@free.fr>
24141 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
24142 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24144 * commands/lsacpi.c: New file.
24145 * grub-core/Makefile.core.def (lsacpi): New module.
24146 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
24147 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
24148 (grub_acpi_madt_entry_header): New struct.
24149 (grub_acpi_madt): Likewise.
24150 (grub_acpi_madt_entry_interrupt_override): Likewise.
24151 (grub_acpi_madt_entry_sapic): Likewise.
24152 (grub_acpi_madt_entry_lsapic): Likewise.
24153 (grub_acpi_madt_entry_platform_int_source): Likewise.
24154 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
24155 (PRIuGRUB_UINT32_T): Likewise.
24156 (PRIxGRUB_UINT64_T): Likewise.
24158 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24160 Implement loading palette on ieee1275_fb.
24162 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
24163 (have_setcolors): Likewise.
24164 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
24165 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
24166 (grub_video_ieee1275_set_palette): Implement.
24168 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24169 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
24171 * util/grub-install.in (grub_partition): New variable.
24172 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
24173 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
24174 Fixes a bug reported by Yves Blusseau.
24176 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24180 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
24181 =grub_cpu_flush_cache on all mips and not only yeeloong.
24182 * configure.ac (COND_mips): New conditional.
24183 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
24185 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
24186 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
24187 [GRUB_LINKER_HAVE_INIT]: New function.
24188 (grub_emu_post_init): Likewise.
24189 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
24190 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
24191 * include/grub/cache.h (_mips): Include mips/cache.h.
24192 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
24193 LVM and RAID prototypes.
24194 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
24195 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
24198 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24200 * util/grub-install.in: Don't try to verify core.img until after
24201 running grub-mkimage to create it.
24203 2010-09-10 Robert Millan <rmh@gnu.org>
24205 * util/grub.d/10_hurd.in: Add misc readability checks.
24206 * util/grub.d/10_kfreebsd.in: Likewise.
24207 * util/grub.d/10_linux.in: Likewise.
24209 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24211 * util/grub-install.in: ${imgext} won't be defined here until the
24212 install branch is merged. For the meantime, only verify core.img on
24213 i386-pc and sparc64-ieee1275 platforms.
24215 2010-09-10 Robert Millan <rmh@gnu.org>
24217 Solaris support in grub_find_zpool_from_dir(). Thanks
24218 Seth Goldberg for referring to getextmntent() facility.
24220 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
24222 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
24224 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
24225 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
24226 method for finding zpool name.
24228 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24230 grub-fstest needs the host and hostfs modules while other utilities
24231 actively require those modules to be absent, so grub-fstest needs
24232 its own initialisation and finalisation code.
24234 * Makefile.am (grub_fstest.pp): New target.
24235 (grub_fstest_init.lst): Likewise.
24236 (grub_fstest_init.c): Likewise.
24237 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
24239 2010-09-10 Robert Millan <rmh@gnu.org>
24241 * configure.ac: Check for `struct statfs.f_fstypename' and
24242 `struct statfs.f_mntfromname'.
24244 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
24245 kFreeBSD-specific code.
24247 2010-09-10 Robert Millan <rmh@gnu.org>
24249 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
24250 on ZFS. Now non-main filesystems are supported as / too.
24252 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
24254 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
24255 and grub-core/disk/host.c to ...
24256 (grub-fstest): ... here. Having the host disk implementation
24257 present confuses grub-probe and other utility programs.
24259 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
24260 when writing to a file, not when writing to stdout.
24262 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
24264 * tests/partmap_test.in: New test for partitions.
24265 * Makefile.util.def: Rules for new test.
24267 2010-09-09 Robert Millan <rmh@gnu.org>
24269 * util/grub-probe.c (probe): Fix a pair of unhandled error
24272 2010-09-09 Robert Millan <rmh@gnu.org>
24274 Basic Btrfs support (detection and UUID).
24276 * grub-core/fs/btrfs.c: New file.
24277 * Makefile.util.def (library): Register btrfs.c.
24278 * grub-core/Makefile.core.def: Likewise.
24280 2010-09-08 Robert Millan <rmh@gnu.org>
24282 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
24283 with (optional) parameters to specify device and relative path.
24284 * util/grub-install.in: Use is_path_readable_by_grub() to
24285 verify readability of a few critical files.
24286 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
24287 verify readability of grub.cfg.new.
24289 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24291 Split minix.mod into minix.mod and minix2.mod.
24293 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
24294 * grub-core/Makefile.core.def (minix2): New module.
24295 * grub-core/fs/minix.c: Use definitions instead of runtime version
24297 * grub-core/fs/minix2.c: New file.
24299 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24301 Add new --boot-directory option to replace --root-directory
24303 * util/grub-install.in: Add new --boot-directory option
24304 * util/grub-reboot.in: Likewise.
24305 * util/grub-set-default.in: Likewise.
24307 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24309 * util/grub-mkconfig.in: Use new variable.
24311 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24313 * configure.ac: Define some useful variables.
24315 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24317 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24318 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
24319 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
24320 Use terminfo and don't use cursor-on/cursor-off unless it's known
24322 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
24323 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
24325 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
24327 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
24328 starts with "(,", fill the drive containing the loaded image in
24329 between those two characters, but expect that a full partition
24330 specification including partition map names will follow.
24332 2010-09-08 Robert Millan <rmh@gnu.org>
24334 * configure.ac: Remove `--enable-grub-fstest' option.
24335 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
24337 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
24338 `grub-fstest' instead of `grub-probe' for readability verification.
24339 * util/grub-probe.c (probe): Remove readability verification kludge.
24341 2010-09-08 Robert Millan <rmh@gnu.org>
24343 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
24344 initializing `GRUB_FS'.
24346 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
24348 Not command (!) support to GRUB script.
24350 * tests/grub_script_not.in: New test.
24351 * Makefile.util.def: Rules for new test.
24353 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
24354 ! command as a special case.
24355 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
24357 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24359 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
24362 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24364 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
24366 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24368 * docs/grub.texi (Shell-like scripting): Documentation for break,
24369 continue, shift and return commands.
24371 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
24373 Rename CD-ROM to cd on BIOS.
24375 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
24377 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
24379 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24381 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
24382 * util/grub-probe.c (main): Likewise.
24383 * util/i386/pc/grub-setup.c (main): Likewise.
24384 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24385 Reported and debugged by: alexxy
24387 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24389 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
24392 2010-09-05 Jo Shields <directhex@apebox.org>
24394 * util/grub.d/30_os-prober.in: Add missing classes.
24396 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24398 * docs/grub.texi (Theme file format): Document new position format.
24400 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24402 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
24403 a table. Use @code instead of @verbatim.
24405 2010-09-05 Colin D Bennett <colin@gibibit.com>
24407 Gfxmenu documentation.
24409 * docs/grub.texi (Theme file format): New chapter.
24411 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24413 * grub-core/Makefile.core.def (xzio): New module.
24414 * grub-core/io/xzio.c: New file.
24415 * grub-core/lib/xzembed/xz.h: New file (from xembed).
24416 * grub-core/lib/xzembed/xz_config.h: Likewise.
24417 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
24418 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
24419 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
24420 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
24421 * grub-core/lib/xzembed/xz_private.h: Likewise.
24422 * grub-core/lib/xzembed/xz_stream.h: Likewise.
24423 * include/grub/file.h (grub_file_filter_id): New compression filter
24424 GRUB_FILE_FILTER_XZIO.
24426 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24428 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
24429 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
24432 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24434 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
24435 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
24437 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24439 Uncompressed checksum support.
24441 * grub-core/commands/hashsum.c (options): Add option --uncompress.
24442 (check_list): New parameter uncompress.
24443 (grub_cmd_hashsum): Handle --uncompress.
24445 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24447 Reintroduce testload.
24449 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
24451 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
24452 (GRUB_MOD_INIT): New function.
24453 (GRUB_MOD_FINI): Likewise.
24454 * grub-core/Makefile.core.def (testload): New module.
24456 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24458 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
24459 (uint8_t): New type.
24460 (uint16_t): Likewise.
24461 (uint32_t): Likewise.
24462 (uint64_t): Likewise.
24464 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24466 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
24468 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24470 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
24472 (grub_gzfile_open): Removed. All users updated.
24473 (GRUB_MOD_INIT): New function.
24474 (GRUB_MOD_FINI): Likewise.
24475 * grub-core/kern/file.c (grub_file_filters_all): New variable.
24476 (grub_file_filters_enabled): Likewise.
24477 (grub_file_open): Handle filters.
24478 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
24479 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
24480 * include/grub/file.h (grub_file_filter_id_t): New type.
24481 (grub_file_filter_t): Likewise.
24482 (grub_file_filters_all): New extern variable.
24483 (grub_file_filters_enabled): Likewise.
24484 (grub_file_filter_register): New inline function.
24485 (grub_file_filter_unregister): Likewise.
24486 (grub_file_filter_disable): Likewise.
24487 (grub_file_filter_disable_compression): Likewise.
24488 * include/grub/gzio.h: Removed.
24490 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24492 Filename expansion support for wildcards in GRUB script.
24494 * tests/grub_script_expansion.in: New test.
24495 * Makefile.util.def: Rule for new test.
24497 * grub-core/commands/wildcard.c: New file, implements filename
24498 expansion support for GRUB script.
24499 * grub-core/Makefile.core.def: Rule update for regexp.mod.
24500 * grub-core/script/argv.c: Cosmetic changes.
24501 * grub-core/script/execute.c (grub_script_arglist_to_argv):
24502 Refactored to perform wildcard expansion on arguments.
24503 * include/grub/script_sh.h (grub_script_wildcard_translator): New
24506 * tests/util/grub-shell.in: Fix quoting for read input.
24508 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24510 Support for updating environment variables with matched substrings
24513 * tests/grub_cmd_regexp.in: New test.
24514 * Makefile.util.def: Rule for new test.
24516 * grub-core/commands/regexp.c: New option -s to update environment
24517 variables with regexp matches.
24519 2010-09-04 Szymon Janc <szymon@janc.net.pl>
24521 * include/grub/file.h (grub_file): New member not_easly_seekable.
24522 (grub_file_seekable): New inline function.
24523 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
24525 (grub_gzio_open): Set not_easly_seekable.
24526 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
24527 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
24529 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24531 Support for options to appear multiple times on cmdline.
24533 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
24534 * grub-core/commands/extcmd.c: Support for repeatable option.
24535 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
24536 repeatable option support.
24538 Refactor menuentry into a regular command.
24540 * grub-core/commands/menuentry.c: New file, menuentry command
24542 * grub-core/Makefile.core.def: Rule update for normal.mod.
24543 * grub-core/normal/main.c: Moved menuentry creation to
24544 grub-core/commands/menuentry.c.
24545 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
24546 (grub_menu_execute_entry_real): Removed.
24547 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
24549 (grub_script_execute_menuentry): Removed.
24550 * grub-core/script/parser.y (menuentry): Removed.
24551 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
24552 * grub-core/script/yylex.l (menuentry): Removed.
24553 * include/grub/menu.h (grub_menu_init): New prototype.
24554 (grub_menu_fini): New prototype.
24555 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
24556 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
24557 (grub_script_execute_sourcecode): New prototype.
24559 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24561 "return" command for GRUB script functions.
24563 * tests/grub_script_return.in: New test.
24564 * Makefile.util.def: Rules for new test.
24566 * grub-core/script/execute.c (grub_script_return): New function.
24567 * grub-core/script/main.c: Register/unregister return commaond.
24568 * include/grub/script_sh.h (grub_script_return): New prototype.
24570 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24572 "setparams" command to update positional parameters.
24574 * tests/grub_script_setparams.in: New test.
24575 * Makefile.util.def: Rules for new test.
24577 * grub-core/script/argv.c (grub_script_argv_make): New function.
24578 * grub-core/script/execute.c (replace_scope): New function.
24579 (grub_script_setparams): New function.
24580 * grub-core/script/lexer.c: Remove unused variables.
24581 * grub-core/script/main.c: Register/unregister setparams command.
24582 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
24583 (grub_script_setparams): New prototype.
24585 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24587 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
24590 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24592 Support for passing block of commands as an argument to extcmds.
24594 * Makefile.util.def: Rules for new test.
24595 * tests/grub_script_blockarg.in: New test.
24596 * grub-core/tests/test_blockarg.c: New file, block argument
24597 command used in the test.
24599 * include/grub/extcmd.h (grub_extcmd_context): New struct.
24600 (grub_register_extcmd_prio): New function prototype.
24601 (grub_extcmd_dispatcher): New function prototype.
24602 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
24604 * include/grub/script_sh.h (struct grub_script): New members
24605 `children', `next_siblings' and `refcnt' for block arguments and
24606 reference counting.
24607 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
24608 (grub_script_arg): New member `script' for block argument.
24609 (grub_script_argv): New member `script' for block argument.
24610 (grub_parser_param): New member `scripts' for block argument.
24611 (grub_script_mem_free): New extern function prototype.
24612 (grub_script_ref): New function prototype.
24613 (grub_script_unref): New function prototype.
24615 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
24616 extcmd form to support block arguments.
24617 * grub-core/script/argv.c: Block arguments support.
24618 * grub-core/script/execute.c: Likewise.
24619 * grub-core/script/lexer.c: Likewise.
24620 * grub-core/script/main.c: Likewise.
24621 * grub-core/script/script.c: Likewise.
24622 * grub-core/script/parser.y: Likewise. New `block' and `block0'
24625 * grub-core/commands/acpi.c: Update extcmd implementations with
24626 grub_extcmd_context_t.
24627 * grub-core/commands/cat.c: Likewise.
24628 * grub-core/commands/echo.c: Likewise.
24629 * grub-core/commands/extcmd.c: Likewise.
24630 * grub-core/commands/hashsum.c: Likewise.
24631 * grub-core/commands/hdparm.c: Likewise.
24632 * grub-core/commands/help.c: Likewise.
24633 * grub-core/commands/hexdump.c: Likewise.
24634 * grub-core/commands/i386/cpuid.c: Likewise.
24635 * grub-core/commands/i386/pc/drivemap.c: Likewise.
24636 * grub-core/commands/i386/pc/halt.c: Likewise.
24637 * grub-core/commands/i386/pc/sendkey.c: Likewise.
24638 * grub-core/commands/iorw.c: Likewise.
24639 * grub-core/commands/keystatus.c: Likewise.
24640 * grub-core/commands/loadenv.c: Likewise.
24641 * grub-core/commands/ls.c: Likewise.
24642 * grub-core/commands/lspci.c: Likewise.
24643 * grub-core/commands/memrw.c: Likewise.
24644 * grub-core/commands/probe.c: Likewise.
24645 * grub-core/commands/search_wrap.c: Likewise.
24646 * grub-core/commands/setpci.c: Likewise.
24647 * grub-core/commands/sleep.c: Likewise.
24648 * grub-core/disk/loopback.c: Likewise.
24649 * grub-core/hello/hello.c: Likewise.
24650 * grub-core/loader/i386/bsd.c: Likewise.
24651 * grub-core/loader/xnu.c: Likewise.
24652 * grub-core/term/gfxterm.c: Likewise.
24653 * grub-core/term/serial.c: Likewise.
24654 * grub-core/tests/lib/functional_test.c: Likewise.
24656 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24658 Multi-line quoted strings support.
24660 * grub-core/script/lexer.c (append_newline): Removed.
24661 (grub_script_lexer_yywrap): Refactored.
24662 (grub_script_lexer_init): Refactored.
24663 * grub-core/script/yylex.l (yywrap): New function.
24664 (grub_lexer_resplit): New function.
24665 (grub_lexer_unput): New function.
24666 * include/grub/script_sh.h (grub_lexer_param): New members, unput
24668 * tests/grub_script_echo1.in: Added few more testcases.
24670 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
24672 * grub-core/kern/misc.c: Don't add abort alias in utils.
24673 Reported by: echoline.
24675 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
24677 Add missing files into "make dist" tarball for other platforms.
24679 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
24680 * conf/Makefile.common (dist_noinst_DATA): New variable.
24681 * conf/Makefile.extra-dist: Added missing make dist files.
24682 * grub-core/Makefile.core.def: Likewise.
24684 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24686 Compress grub_prefix.
24688 * grub-core/boot/i386/pc/lnxboot.S: Use
24689 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
24690 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
24691 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
24692 GRUB_MACHINE_PREFIX_END. All users updated.
24693 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
24694 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
24696 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
24697 * util/grub-mkimage.c (image_target_desc): Change data_end to
24698 prefix_end. All users updated.
24700 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24702 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
24704 (grub_openbsd_boot): Likewise.
24705 (grub_netbsd_boot): Likewise.
24706 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
24707 (grub_xnu_boot): Likewise.
24709 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24711 * configure.ac: Clean LIBS variable after tests.
24713 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24715 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
24717 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24719 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
24720 echo if libdevmapper will be used.
24722 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
24724 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
24725 constant for the same file.
24727 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24729 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
24731 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24733 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
24736 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24738 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
24739 required by the boot protocol.
24741 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
24742 ebp and edi members.
24743 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
24744 state.ebp and state.edi.
24745 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
24746 %ebp and %edi according to grub_relocator32_ebp and
24747 grub_relocator32_edi respectively.
24748 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
24751 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24753 Add i386-pc-pxe image target.
24755 * util/grub-mkimage.c (image_target_desc): New enum value
24757 (image_targets): New target i386-pc-pxe.
24758 (generate_image): Handle i386-pc-pxe image.
24760 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24764 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
24765 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
24767 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
24768 (grub_pxe_pxenv): Correct type.
24770 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24772 * NEWS: Document most of the important changes since 1.98.
24774 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24776 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
24777 generated manual page) a little.
24779 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24781 * docs/grub.texi: Add myself as an author.
24783 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24785 * Makefile.util.def (libgrub.a): Add missing sunpc.
24786 Reported by: Seth Goldberg.
24788 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24790 Interrupt wrapping and code simplifications.
24792 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
24793 x86_noieee1275 which are functionaly equivalent in this case.
24794 (grub-install): Make source on each platform explicit. Enable on
24796 * gentpl.py (x86_efi_pc): Removed group.
24797 (x86_noefi): Likewise.
24798 (i386_noefi): Likewise.
24799 (x86_noieee1275): Likewise.
24800 (i386_noieee1275): Likewise.
24801 (i386_noefi_noieee1275): Likewise.
24802 (i386_pc_qemu_coreboot): Likewise.
24803 (i386_coreboot_multiboot): Likewise.
24804 (i386_pc_coreboot_multiboot_qemu): Likewise.
24805 (x86_noefi_mips): Likewise.
24806 (noieee1275): Likewise.
24807 (ieee1275_mips): Likewise.
24808 (noemu_noieee1275): Likewise.
24811 (videoinkernel): Likewise.
24812 (videomodules): Likewise.
24813 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
24814 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24815 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24816 include/grub/loader.h, include/grub/msdos_partition.h,
24817 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24818 include/grub/machine/console.h, include/grub/machine/vga.h,
24819 include/grub/machine/vbe.h, include/grub/machine/init.h,
24820 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24821 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
24822 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
24823 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24824 * grub-core/Makefile.core.def (kernel): Explicit the source for
24825 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24826 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24827 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24828 Use videoinkernel tag.
24829 (usb): Enable on all usb.
24830 (usbserial_common): Likewise.
24831 (usbserial_pl2303): Likewise.
24832 (usbserial_ftdi): Likewise.
24833 (uhci): Enable on all x86.
24834 (ohci): Enable on all pci.
24835 (cmostest): Enable on all CMOS.
24836 (acpi): Include commands/acpi.c on all platforms.
24837 (halt): Add relevant lib/*/halt.c.
24838 (hdparm): Enable on all pci.
24840 (usbtest): Enable on all usb.
24841 (ata): Enable on all pci.
24842 (ata_pthru): Likewise.
24843 (usbms): Enable on all usb.
24844 (usb_keyboard): Likewise.
24845 (font): Use tag videomodules.
24847 (datetime): Use tag cmos. Enable on all noemu.
24848 (mmap): Use tags common and x86.
24849 (gfxterm): Use tag videomodules.
24850 (bitmap): Likewise.
24851 (bitmap_scale): Likewise.
24852 (video_fb): Likewise.
24854 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24855 adjust padding accordingly. All users updated.
24856 (grub_ohci_transaction): Fix bad format specification.
24857 (GRUB_MOD_INIT): Add asserts for struct size.
24858 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24859 (grub_alloc_td): Likewise.
24860 (grub_free_queue): Likewise.
24861 (grub_uhci_transfer): Likewise.
24862 (grub_uhci_transaction): Fix bad format specification.
24863 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24864 (grub_usb_bulk_readwrite): Likewise.
24865 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24866 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24868 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24870 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24871 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24872 Transformed into C.
24873 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24874 Moved from here ...
24875 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24876 ... here. Transformed into C. Made static.
24877 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24878 Moved from here ...
24879 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
24880 ... here. Transformed into C. Made static.
24881 * grub-core/kern/i386/pc/startup.S
24882 (grub_biosdisk_check_int13_extensions): Moved from here ...
24883 * grub-core/disk/i386/pc/biosdisk.c
24884 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
24886 * grub-core/kern/i386/pc/startup.S
24887 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
24888 * grub-core/disk/i386/pc/biosdisk.c
24889 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
24890 Transformed into C. Made static.
24891 * grub-core/kern/i386/pc/startup.S
24892 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
24893 * grub-core/disk/i386/pc/biosdisk.c
24894 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
24895 Transformed into C. Made static.
24896 * grub-core/kern/i386/pc/startup.S
24897 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
24898 * grub-core/disk/i386/pc/biosdisk.c
24899 (grub_biosdisk_get_diskinfo_standard): ... here.
24900 Transformed into C. Made static.
24901 * grub-core/kern/i386/pc/startup.S
24902 (grub_biosdisk_get_num_floppies): Moved from here ...
24903 * grub-core/disk/i386/pc/biosdisk.c
24904 (grub_biosdisk_get_num_floppies): ... here.
24905 Transformed into C. Made static.
24906 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
24908 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
24909 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
24910 Transformed into C. Made static.
24911 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
24912 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
24913 Transformed into C. Made static.
24914 * grub-core/kern/i386/ieee1275/init.c: Removed.
24915 * grub-core/kern/i386/misc.S: Likewise.
24916 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
24917 Splitted from here ...
24918 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
24919 Transformed into C. Made static. All users updated.
24920 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
24921 Transformed into C. Made static. All users updated.
24922 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
24924 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
24925 Transformed into C. Made static. All users updated.
24926 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
24928 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
24929 Transformed into C. Made static. All users updated.
24930 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
24931 Removed (replaced by C version).
24932 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
24934 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
24935 Transformed into C. Made static.
24936 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
24938 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
24939 ... here. Transformed into C.
24940 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
24942 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
24943 ... here. Transformed into C.
24944 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
24946 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
24947 ... here. Transformed into C. Made static.
24948 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
24950 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
24951 ... here. Transformed into C.
24952 * grub-core/kern/i386/pc/startup.S
24953 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
24954 * grub-core/video/i386/pc/vbe.c
24955 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
24956 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
24958 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
24959 ... here. Transformed into C.
24960 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
24962 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
24963 ... here. Transformed into C.
24964 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
24966 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
24967 ... here. Transformed into C.
24968 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
24970 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
24971 ... here. Transformed into C.
24972 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
24974 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
24975 ... here. Transformed into C. Made static.
24976 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
24978 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
24979 ... here. Transformed into C. Made static.
24980 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
24982 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
24983 ... here. Transformed into C. Made static.
24984 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
24985 pxe_rm_entry as third argument.
24986 (grub_bios_interrupt): New function.
24987 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
24988 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
24989 of calling grub_stop.
24990 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
24991 * grub-core/lib/efi/halt.c (grub_halt): ...here.
24992 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
24993 * grub-core/lib/emu/halt.c (grub_halt): ... here.
24994 * grub-core/lib/i386/halt.c: Moved from here ...
24995 * grub-core/lib/i386/halt.c: ... here.
24996 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
24997 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
24998 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
25000 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
25001 * include/grub/i386/coreboot/init.h: Removed.
25002 * include/grub/i386/multiboot/init.h: Likewise.
25003 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
25004 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
25005 * include/grub/i386/pc/int.h: New file.
25006 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
25007 (grub_pxe_scan): Removed.
25008 (grub_pxe_call): Update prototype.
25009 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
25011 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
25012 * include/grub/i386/qemu/init.h: Removed.
25013 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
25015 (grub_halt): Likewise.
25016 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
25017 (grub_reboot): Likewise.
25018 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
25019 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
25020 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
25022 2010-08-30 Robert Millan <rmh@gnu.org>
25024 * NEWS: Document addition of ZFS support in `grub-install' and
25027 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
25029 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
25032 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25034 Remove leftover embedding of font objects.
25036 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
25037 * util/grub-install.in (font): Removed.
25038 * util/grub-mkimage.c (generate_image): Remove font support. All users
25041 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25043 Remove leftover embedding of font objects.
25045 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
25046 * util/grub-install.in (font): Removed.
25047 * util/grub-mkimage.c (generate_image): Remove font support. All users
25050 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25052 * docs/grub.texi (Network): Fix reference to pxe_blksize.
25053 Reported by: Ian Turner
25055 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25057 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
25058 timeout to avoid indefinite boot stalling.
25060 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25062 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
25063 (grub_env_write_color_highlight): Likewise.
25065 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25067 * grub-core/normal/term.c (print_more): Return to normal and not
25068 to standard state after printing "---MORE---".
25070 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25072 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
25073 Mask out the bit 0x80 since it has other meaning that specifiing color.
25075 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25077 New relocator. Allows for more kernel support and more straightforward
25080 * Makefile.am (BOOTTARGET): New variable.
25081 (QEMU32): Likewise.
25082 (linux.init.x86_64): New target.
25083 (linux.init.i386): Likewise.
25084 (multiboot.elf): Likewise.
25085 (kfreebsd.elf): Likewise.
25086 (kfreebsd.aout): Likewise.
25087 (pc-chainloader.elf): Likewise.
25088 (pc-chainloader.bin): Likewise.
25089 (ntldr.elf): Likewise.
25090 (ntldr.bin): Likewise.
25091 (multiboot2.elf): Likewise.
25092 (kfreebsd.init.x86_64): Likewise.
25093 (kfreebsd.init.i386): Likewise.
25094 (knetbsd.init.i386): Likewise.
25095 (kopenbsd.init.i386): Likewise.
25096 (knetbsd.init.x86_64): Likewise.
25097 (kopenbsd.init.x86_64): Likewise.
25098 (linux-initramfs.i386): Likewise.
25099 (linux-initramfs.x86_64): Likewise.
25100 (kfreebsd-mfsroot.i386.img): Likewise.
25101 (knetbsd.image.i386): Likewise.
25102 (kopenbsd.image.i386): Likewise.
25103 (kopenbsd.image.x86_64): Likewise.
25104 (knetbsd.miniroot-image.i386.img): Likewise.
25105 (kfreebsd-mfsroot.x86_64.img): Likewise.
25106 (knetbsd.image.x86_64): Likewise.
25107 (knetbsd.miniroot-image.x86_64.img): Likewise.
25108 (kfreebsd-mfsroot.i386.gz): Likewise.
25109 (bootcheck-kfreebsd-i386): Likewise.
25110 (kfreebsd-mfsroot.x86_64.gz): Likewise.
25111 (bootcheck-kfreebsd-x86_64): Likewise.
25112 (knetbsd.miniroot-image.i386.gz): Likewise.
25113 (bootcheck-knetbsd-i386): Likewise.
25114 (bootcheck-kopenbsd-i386): Likewise.
25115 (bootcheck-kopenbsd-x86_64): Likewise.
25116 (knetbsd.miniroot-image.x86_64.gz): Likewise.
25117 (bootcheck-knetbsd-x86_64): Likewise.
25118 (bootcheck-linux-i386): Likewise.
25119 (bootcheck-linux-x86_64): Likewise.
25120 (bootcheck-linux16-i386): Likewise.
25121 (bootcheck-linux16-x86_64): Likewise.
25122 (bootcheck-multiboot): Likewise.
25123 (bootcheck-multiboot2): Likewise.
25124 (bootcheck-kfreebsd-aout): Likewise.
25125 (bootcheck-pc-chainloader): Likewise.
25126 (bootcheck-ntldr): Likewise.
25127 (CLEANFILES): Add new targets.
25128 (BOOTCHECKS): New variable.
25129 (.PHONY): Add bootchecks.
25130 (SUCCESSFUL_BOOT_STRING): New variable.
25131 (BOOTCHECK_TIMEOUT): Likewise.
25132 (bootcheck): New target
25133 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
25134 * configure.ac: Correct efiemu excuse.
25135 * docs/grub.texi (Supported kernels): New chapter.
25136 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
25137 include/grub/mm_private.h. Simplify inclusion of
25138 include/grub/boot.h, include/grub/loader.h
25139 and include/grub/msdos_partition.h
25140 (KERNEL_HEADER_FILES) [i386_coreboot]:
25141 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
25142 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
25143 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
25144 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
25145 include/grub/machine/loader.h.
25146 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
25147 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
25149 (pci.mod): Enable on i386-multiboot.
25150 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
25151 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
25153 (relocator.mod): Rewritten.
25154 (aout.mod): Enable on all x86.
25155 (bsd.mod): Likewise.
25156 (ntldr.mod): New module.
25157 (linux.mod): Use loader/i386/linux.c on all x86.
25158 (xnu.mod): Enable on all x86.
25159 (vga_text.mod): disable on EFI and QEMU.
25160 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
25161 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
25162 * grub-core/efiemu/loadcore.c: Likewise.
25163 * grub-core/efiemu/main.c: Likewise.
25164 (grub_efiemu_exit_boot_services): Removed.
25165 (grub_efiemu_finish_boot_services): Likewise.
25166 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
25168 * grub-core/efiemu/i386/nocfgtables.c: New file.
25169 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
25170 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
25171 (grub_efi_finish_boot_services): Moved from here ...
25172 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
25173 Fille finish memory map and related data.
25174 (finish_mmap_buf): New variable.
25175 (grub_efi_uintn_t finish_mmap_size): Likewise.
25176 (grub_efi_uintn_t finish_key): Likewise.
25177 (grub_efi_uintn_t finish_desc_size): Likewise.
25178 (grub_efi_uint32_t finish_desc_version): Likewise.
25179 (grub_efi_is_finished): Likewise.
25180 (grub_efi_get_memory_map): Use saved memory map if EFI is already
25182 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
25183 (grub_elf64_phdr_iterate): Likewise.
25184 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
25185 (grub_os_area_size): Likewise.
25186 (grub_machine_init): Don't reserve os area.
25187 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
25188 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
25189 * grub-core/kern/i386/loader.S: Removed.
25190 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
25191 (grub_os_area_size): Likewise.
25192 (grub_machine_init): Don't reserve os area.
25193 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
25194 Don't call grub_dl_unload_all.
25195 Don't include loader.S.
25196 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
25197 Declare the memory after _end as available.
25198 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
25199 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
25200 (GRUB_MM_ALLOC_MAGIC): Moved from here...
25201 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
25202 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
25203 * include/grub/mm_private.h (grub_mm_header): ... here.
25204 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
25205 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
25206 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
25207 (grub_mm_region): ..here. Removed addr. Added pre_size.
25209 * grub-core/kern/mm.c (base): Renamed to ...
25210 (grub_mm_base): ... this. Made global.
25211 (grub_real_malloc): Alloc from end of region.
25212 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
25213 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
25214 * grub-core/kern/powerpc/cache_flush.S: ... here.
25215 * grub-core/lib/efi/relocator.c: New file.
25216 * grub-core/lib/i386/relocator.c: Rewritten.
25217 * grub-core/lib/i386/relocator16.S: New file.
25218 * grub-core/lib/i386/relocator32.S: Likewise.
25219 * grub-core/lib/i386/relocator64.S: Likewise.
25220 * grub-core/lib/i386/relocator_asm.S: Rewritten.
25221 * grub-core/lib/i386/relocator_common.S: New file.
25222 * grub-core/lib/ieee1275/relocator.c: Likewise.
25223 * grub-core/lib/mips/relocator.c: Rewritten.
25224 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
25225 stylistic adjustments.
25226 * grub-core/lib/powerpc/relocator.c: New file.
25227 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
25228 * grub-core/lib/relocator.c: Rewritten.
25229 * grub-core/lib/x86_64/relocator_asm.S: New file.
25230 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
25231 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
25232 (bsd_tag): New struct.
25233 (tags): New variable.
25234 (tags_last): Likewise.
25235 (netbsd_module): New struct.
25236 (netbsd_mods): New variable.
25237 (netbsd_mods_last): Likewise.
25238 (openbsd_opts): New parameter "serial".
25239 (OPENBSD_SERIAL_ARG): New definition.
25240 (netbsd_opts): New parameter "serial".
25241 (NETBSD_SERIAL_ARG): New definition.
25242 (grub_freebsd_add_meta): Reorganised into ...
25243 (grub_bsd_add_meta): ...this. All users updated.
25244 (grub_freebsd_add_mmap): Reorganised into ...
25245 (generate_e820_mmap): ...this...
25246 (grub_bsd_add_mmap): ...and this. All users updated.
25247 (grub_freebsd_list_modules): Use tags.
25248 (grub_netbsd_add_meta_module): New function.
25249 (grub_netbsd_list_modules): Likewise.
25250 (grub_freebsd_boot): Use relocator and finish EFI.
25251 (grub_openbsd_boot): Likewise.
25252 (grub_netbsd_setup_video): New function.
25253 (grub_netbsd_add_modules): Likewise.
25254 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
25256 (grub_bsd_unload): Unload tags.
25257 (grub_bsd_load_aout): Use relocator.
25258 (grub_bsd_elf32_size_hook): New function.
25259 (grub_bsd_elf32_hook): Use relocator.
25260 (grub_bsd_elf64_size_hook): New function.
25261 (grub_bsd_elf64_hook): Use relocator.
25262 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
25263 (grub_bsd_load): Zero-out openbsd_ramdisk.
25264 (grub_bsd_load): Use relocator.
25265 (grub_cmd_openbsd): Support serial.
25266 (grub_cmd_netbsd): Support modules.
25267 (grub_cmd_freebsd_module): Use relocator.
25268 (grub_netbsd_module_load): New function.
25269 (grub_cmd_netbsd_module): Likewise.
25270 (grub_cmd_openbsd_ramdisk): Likewise.
25271 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
25273 (GRUB_MOD_FINI): Unregister new commands.
25274 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
25275 (grub_freebsd_load_elfmodule_obj): Use relocator.
25276 (grub_freebsd_load_elfmodule): Likewise.
25277 (grub_freebsd_load_elf_meta): Likewise.
25278 (grub_netbsd_load_elf_meta): New function.
25279 (grub_openbsd_find_ramdisk): Likewise.
25280 * grub-core/loader/i386/bsd_helper.S: Removed.
25281 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
25282 * grub-core/loader/i386/bsd_trampoline.S: Removed.
25283 * grub-core/loader/i386/efi/linux.c: Likewise.
25284 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
25285 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
25286 (DEFAULT_VIDEO_MODE): Likewise.
25287 (real_mode_target): New variable.
25288 (prot_mode_target): Likewise.
25289 (initrd_mem_target): Likewise.
25290 (relocator): Likewise.
25291 (efi_mmap_buf): Likewise.
25292 (efi_mmap_size): Likewise.
25293 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
25294 (free_pages): Use relocator.
25295 (allocate_pages): Account for efi_mmap and use relocator. Return error.
25296 (grub_linux_setup_video): Return error.
25297 (grub_linux_trampoline_start): Removed.
25298 (grub_linux_trampoline_end): Likewise.
25299 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
25300 andd video parameters depending on firmware.
25301 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
25302 [GRUB_MACHINE_EFI]: Pass EFI parameters.
25303 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
25304 (grub_cmd_initrd): Use relocator.
25305 * grub-core/loader/i386/linux_trampoline.S: Removed.
25306 * grub-core/loader/i386/multiboot_mbi.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_multiboot_free_mbi): Free sections.
25315 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
25316 (grub_linux_real_target): Likewise.
25317 (grub_linux_real_chunk): Likewise.
25318 (grub_linux16_prot_size): Likewise.
25319 (grub_linux16_boot): Use relocator.
25320 (grub_linux_unload): Unload relocator.
25321 (grub_cmd_linux): Use relocator.
25322 (grub_cmd_initrd): Likewise.
25323 * grub-core/loader/i386/pc/ntldr.c: New file.
25324 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
25325 Don't try to guess CPU frequency.
25326 (grub_xnu_set_video): Stretch bitmap.
25327 (grub_xnu_boot): Use relocator.
25328 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
25329 (grub_linux_unload): Free relocator.
25330 (grub_linux_load32): Use relocator.
25331 (grub_linux_load64): Likewise.
25332 (grub_cmd_initrd): Likewise.
25333 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
25334 (grub_multiboot_unload): Unload relocator.
25335 (grub_cmd_multiboot): Use relocator.
25336 (grub_cmd_module): Likewise.
25337 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
25338 Use relocator and support sections.
25339 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
25340 (elf_sec_entsize): Likewise.
25341 (elf_sec_shstrndx): Likewise.
25342 (elf_sections): Likewise.
25343 (grub_multiboot_load): Use relocator.
25344 (grub_multiboot_get_mbi_size): Account for sections.
25345 (grub_multiboot_make_mbi): Use relocator and support sections.
25346 (grub_multiboot_add_elfsyms): New function.
25347 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
25348 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
25349 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
25350 Prototype changed. All users updated.
25351 (grub_xnu_align_heap): Simplified.
25352 (grub_xnu_writetree_toheap): Likewise.
25353 (grub_xnu_unload): Unload relocator.
25354 (grub_cmd_xnu_kernel): Use relocator.
25355 (grub_cmd_xnu_kernel64): Likewise.
25356 (grub_xnu_register_memory): Simplified.
25357 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
25358 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
25360 (grub_console_checkkey): Likewise.
25361 (grub_console_getkey): Likewise.
25362 (grub_console_getwh): Likewise.
25363 (grub_console_getxy): Likewise.
25364 (grub_console_gotoxy): Likewise.
25365 (grub_console_cls): Likewise.
25366 (grub_console_setcolorstate): Likewise.
25367 (grub_console_setcursor): Likewise.
25368 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
25369 * grub-core/tests/boot/kbsd.init-i386.S: New file.
25370 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
25371 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
25372 * grub-core/tests/boot/kernel-8086.S: Likewise.
25373 * grub-core/tests/boot/kernel-i386.S: Likewise.
25374 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
25375 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
25376 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
25377 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
25378 * grub-core/tests/boot/knetbsd.cfg: Likewise.
25379 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
25380 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
25381 * grub-core/tests/boot/linux.cfg: Likewise.
25382 * grub-core/tests/boot/linux.init-i386.S: Likewise.
25383 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
25384 * grub-core/tests/boot/linux16.cfg: Likewise.
25385 * grub-core/tests/boot/multiboot.cfg: Likewise.
25386 * grub-core/tests/boot/multiboot2.cfg: Likewise.
25387 * grub-core/tests/boot/ntldr.cfg: Likewise.
25388 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
25389 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
25390 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
25392 * include/grub/dl.h (grub_dl_unload_all): Removed.
25393 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
25394 (grub_efi_finish_boot_services): Change prototype.
25395 (grub_efi_is_finished): New variable.
25396 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
25398 (grub_efiemu_finish_boot_services): Removed.
25399 (grub_machine_efiemu_init_tables): New prototype.
25400 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
25401 (grub_elf64_phdr_iterate): Likewise.
25402 * include/grub/i386/bsd.h: Include relocator.h.
25403 (freebsd_tag_header): New struct.
25404 (grub_openbsd_bios_mmap): Removed.
25405 (grub_unix_real_boot): Removed.
25406 (grub_freebsd_load_elfmodule32): Changed prototype.
25407 (grub_freebsd_load_elfmodule_obj64): Likewise.
25408 (grub_freebsd_load_elf_meta32): Likewise.
25409 (grub_freebsd_load_elf_meta64): Likewise.
25410 (grub_freebsd_add_meta): Removed.
25411 (grub_netbsd_load_elf_meta32): New prototype.
25412 (grub_netbsd_load_elf_meta64): Likewise.
25413 (grub_bsd_add_meta): Likewise.
25414 (grub_openbsd_ramdisk_descriptor): New struct.
25415 (grub_openbsd_find_ramdisk32): New prototype.
25416 (grub_openbsd_find_ramdisk64): Likewise.
25417 * include/grub/i386/coreboot/loader.h: Removed.
25418 * include/grub/i386/efi/loader.h: Likewise.
25419 * include/grub/i386/ieee1275/loader.h: Likewise.
25420 * include/grub/i386/linux.h (linux_kernel_header): Change void *
25422 * include/grub/i386/loader.h: Removed.
25423 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
25425 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
25426 (grub_phys_addr_t): New type.
25427 (grub_vtop): New inline function.
25428 (grub_map_memory): Likewise.
25429 (grub_unmap_memory): Likewise.
25430 * include/grub/i386/multiboot/loader.h: Removed.
25431 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
25432 (NETBSD_BTINFO_CONSOLE): New definition.
25433 (NETBSD_BTINFO_SYMTAB): Likewise.
25434 (NETBSD_BTINFO_MODULES): Likewise.
25435 (NETBSD_BTINFO_FRAMEBUF): Likewise.
25436 (grub_netbsd_bootinfo): New struct.
25437 (grub_netbsd_btinfo_common): Use explicit bitsize.
25438 (grub_netbsd_btinfo_mmap_entry): Removed.
25439 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
25440 (grub_netbsd_btinfo_bootdisk): New struct.
25441 (grub_netbsd_btinfo_symtab): Likewise.
25442 (grub_netbsd_btinfo_serial): Likewise.
25443 (grub_netbsd_btinfo_modules): Likewise.
25444 (grub_netbsd_btinfo_framebuf): Likewise.
25445 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
25446 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
25448 (grub_openbsd_bootargs): Use explicit bitsize.
25449 (grub_openbsd_bootarg_console): New struct.
25450 (GRUB_OPENBSD_COM_MAJOR): New definition.
25451 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
25452 * include/grub/i386/pc/efiemu.h: Removed.
25453 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
25454 * include/grub/i386/qemu/loader.h: Removed.
25455 * include/grub/i386/relocator.h: Rewritten.
25456 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
25457 * include/grub/mips/memory.h: New file.
25458 * include/grub/mips/multiboot.h: Rewritten.
25459 * include/grub/mips/relocator.h: Rewritten.
25460 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
25461 (grub_vtop): New function.
25462 (grub_map_memory): Likewise.
25463 (grub_unmap_memory): Likewise.
25464 * include/grub/misc.h (ALIGN_DOWN): New definition.
25465 * include/grub/mm.h (grub_mm_check_real): New proto.
25466 (GRUB_MM_CHECK): New definition.
25467 * include/grub/mm_private.h: New file.
25468 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
25469 (grub_multiboot_get_mbi_size): Removed.
25470 (grub_multiboot_make_mbi): Change prottype.
25471 (grub_multiboot_set_accepts_video): New proto.
25472 (grub_multiboot_add_elfsyms): Likewise.
25473 (grub_multiboot_payload_eip): New variable.
25474 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
25476 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
25478 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
25479 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
25480 * include/grub/powerpc/ieee1275/loader.h: Removed.
25481 * include/grub/powerpc/memory.h: New file.
25482 * include/grub/powerpc/relocator.h: Likewise.
25483 * include/grub/relocator.h: Likewise.
25484 * include/grub/relocator_private.h: Likewise.
25485 * include/grub/sparc64/ieee1275/loader.h: Removed.
25486 * include/grub/x86_64/memory.h: New file.
25487 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
25488 (grub_xnu_heap_malloc): Likewise.
25489 (grub_xnu_heap_real_start): Removed.
25490 (grub_xnu_heap_start): Likewise.
25491 (grub_xnu_relocator): New variable.
25492 (grub_xnu_heap_target_start): Likewise.
25493 * tests/util/grub-shell.in: Support non-pc.
25494 * util/grub-mkimage.c (image_targets): Fix multiboot target.
25496 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25498 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
25500 (grub_bidi_logical_to_visual): Check that malloc succeded.
25501 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
25503 (grub_xputs_normal): Likewise.
25505 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25507 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
25510 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25512 * grub-core/efiemu/runtime/efiemu.sh: Removed.
25514 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25516 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
25518 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25520 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
25523 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
25525 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
25527 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25529 * grub-core/normal/term.c (print_more): Fix a memory leak.
25530 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
25531 (grub_xputs_normal): Likewise.
25533 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25535 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
25536 the begining of the string
25538 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25540 * grub-core/script/script.c (grub_script_parse): Free parsed on
25543 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25545 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
25548 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25550 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
25553 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25555 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
25556 (scroll_up): Fix a memory leak.
25558 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25560 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
25563 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
25565 Handle USB pendrives exposed as floppies.
25567 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
25569 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25570 Check for partitions on all devices.
25572 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
25574 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
25575 (readkey): Likewise.
25577 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
25579 Multiple variable names support to "export" command.
25581 * normal/context.c (grub_cmd_export): "export" command supports
25582 multiple variable names.
25584 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
25586 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
25587 --target=drive output to Mach device name.
25589 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25591 New Automake based build system for GRUB.
25593 * ABOUT-NLS: New file.
25594 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
25595 in Makefile.util.def file.
25596 * Makefile.util.def: New file. Autogen build definitions file for
25598 * conf/Makefile.common: New file. Common variables for GRUB host
25599 utils and target modules.
25600 * conf/Makefile.extra-dist: New file. Extra files for make dist.
25601 * docs/Makefile.am: New file. Automake file for docs.
25602 * gentpl.py: New file. Python script to generate Autogen
25604 * grub-core/Makefile.am: New file. GRUB target modules' rules
25605 that doesn't fit in Makefile.core.def file.
25606 * grub-core/Makefile.core.def: New file. Autogen build
25607 definitions file for GRUB target modules.
25608 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
25609 specific setjmp.S file.
25610 * po/Makefile.am: New file.
25612 * .bzrignore: New ignores.
25613 * INSTALL: New requirements, without Ruby.
25614 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
25615 * autogen.sh: Updated to invoke autogen as necessary.
25616 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
25617 and defines for Automake conditionals.
25618 * geninit.sh: Refactoring.
25620 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
25622 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
25625 * include/grub/test.h: Fix functional test modules' naming.
25626 * grub-core/tests/example_functional_test.c: Fix test module name.
25628 * util/misc.c: Hosted versions' of grub functions for libgrub.a
25629 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
25630 * util/grub-editenv.c: Likewise.
25631 * util/grub-fstest.c: Likewise.
25632 * util/grub-mkdevicemap.c: Likewise.
25633 * util/grub-mkfont.c: Likewise.
25634 * util/grub-mkimage.c: Likewise.
25635 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25636 * util/grub-probe.c: Likewise.
25637 * util/grub-script-check.c: Likewise.
25638 * util/i386/pc/grub-setup.c: Likewise.
25639 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25641 * tests/util/grub-shell.in: Fix override directory path.
25642 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
25643 * util/import_gcry.py: Create Makefile.gcry.def file instead.
25645 * util/lvm.c: Update #includes.
25646 * util/raid.c: Likewise.
25647 * util/resolve.c: Likewise.
25648 * grub-core/bus/emu/pci.c: Likewise.
25649 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
25650 * grub-core/lib/posix_wrap/string.h: Likewise.
25651 * grub-core/kern/emu/main.c: Likewise.
25653 * grub-core/gensymlist.sh: New file. Script for generating kernel
25655 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
25657 * grub-core/gentrigtables.c: Fix unused variable warnings.
25659 * Makefile.in: Removed.
25660 * conf/any-emu.rmk: Removed.
25661 * conf/common.rmk: Removed.
25662 * conf/i386-coreboot.rmk: Removed.
25663 * conf/i386-efi.rmk: Removed.
25664 * conf/i386-ieee1275.rmk: Removed.
25665 * conf/i386-multiboot.rmk: Removed.
25666 * conf/i386-pc.rmk: Removed.
25667 * conf/i386-qemu.rmk: Removed.
25668 * conf/i386.rmk: Removed.
25669 * conf/mips-yeeloong.rmk: Removed.
25670 * conf/mips.rmk: Removed.
25671 * conf/powerpc-ieee1275.rmk: Removed.
25672 * conf/sparc64-ieee1275.rmk: Removed.
25673 * conf/tests.rmk: Removed.
25674 * conf/x86-efi.rmk: Removed.
25675 * conf/x86_64-efi.rmk: Removed.
25676 * gendistlist.sh: Removed.
25677 * geninitheader.sh: Removed.
25678 * genkernsyms.sh.in: Removed.
25679 * genmk.rb: Removed.
25680 * gensymlist.sh.in: Removed.
25681 * mkinstalldirs: Removed.
25683 * grub-core/boot: ... to here.
25685 * grub-core/bus: ... to here.
25686 * commands: Moved ...
25687 * grub-core/commands: ... to here.
25689 * grub-core/disk: ... to here.
25690 * efiemu: Moved ...
25691 * grub-core/efiemu: ... to here.
25693 * grub-core/font: ... to here.
25695 * grub-core/fs: ... to here.
25696 * gencmdlist.sh: Moved ...
25697 * grub-core/gencmdlist.sh: ... to here.
25698 * genemuinit.sh: Moved ...
25699 * grub-core/genemuinit.sh: ... to here.
25700 * genemuinitheader.sh: Moved ...
25701 * grub-core/genemuinitheader.sh: ... to here.
25702 * genfslist.sh: Moved ...
25703 * grub-core/genfslist.sh: ... to here.
25704 * genhandlerlist.sh: Moved ...
25705 * grub-core/genhandlerlist.sh: ... to here.
25706 * genmoddep.awk: Moved ...
25707 * grub-core/genmoddep.awk: ... to here.
25708 * genmodsrc.sh: Moved ...
25709 * grub-core/genmodsrc.sh: ... to here.
25710 * genpartmaplist.sh: Moved ...
25711 * grub-core/genpartmaplist.sh: ... to here.
25712 * genparttoollist.sh: Moved ...
25713 * grub-core/genparttoollist.sh: ... to here.
25714 * genterminallist.sh: Moved ...
25715 * grub-core/genterminallist.sh: ... to here.
25716 * gentrigtables.c: Moved ...
25717 * grub-core/gentrigtables.c: ... to here.
25718 * genvideolist.sh: Moved ...
25719 * grub-core/genvideolist.sh: ... to here.
25720 * gettext: Moved ...
25721 * grub-core/gettext: ... to here.
25722 * gfxmenu: Moved ...
25723 * grub-core/gfxmenu: ... to here.
25724 * gnulib: Moved ...
25725 * grub-core/gnulib: ... to here.
25727 * grub-core/hello: ... to here.
25729 * grub-core/hook: ... to here.
25731 * grub-core/io: ... to here.
25733 * grub-core/kern: ... to here.
25735 * grub-core/lib: ... to here.
25736 * loader: Moved ...
25737 * grub-core/loader: ... to here.
25739 * grub-core/mmap: ... to here.
25740 * normal: Moved ...
25741 * grub-core/normal: ... to here.
25742 * partmap: Moved ...
25743 * grub-core/partmap: ... to here.
25744 * parttool: Moved ...
25745 * grub-core/parttool: ... to here.
25746 * script: Moved ...
25747 * grub-core/script: ... to here.
25749 * grub-core/term: ... to here
25750 * tests/example_functional_test.c: Moved ...
25751 * grub-core/tests/example_functional_test.c: ... to here.
25752 * tests/lib/functional_test.c: Moved ...
25753 * grub-core/tests/lib/functional_test.c: ... to here.
25754 * tests/lib/test.c: Moved ...
25755 * grub-core/tests/lib/test.c: ... to here.
25757 * grub-core/video: ... to here.
25759 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25761 Replace --enable-grub-emu-modules with grub-emu-lite.
25763 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
25766 * include/grub/emu/misc.h (grub_emu_init): New prototype.
25767 * kern/emu/full.c: New file. For grub-emu specific initialization.
25768 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
25769 * kern/emu/main.c: Call initialization function grub_emu_init.
25771 * Makefile.in: Include grub-emu-lite in install.
25772 * commands/parttool.c: Use grub_no_autoload to differentiate
25773 between grub-emu and grub-emu-lite.
25774 * include/grub/misc.h: New variable grub_no_autoload.
25776 * conf/any-emu.rmk: New rules for grub-emu-lite.
25777 * configure.ac: Remove --enable-grub-emu-modules.
25778 * genmk.rb: Cleanup unnecessary rules.
25779 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
25781 * normal/main.c: Don't load list files on grub-emu-lite.
25782 * util/misc.c (grub_arch_sync_caches): Removed.
25784 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
25786 * kern/mips/startup.S (grub_prefix): Update comment to refer to
25787 grub-mkimage rather than grub-mkelfimage.
25788 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
25790 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
25792 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
25793 a key after CapsLock or NumLock. It's just a qemu bug.
25795 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25797 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
25798 needed by libusb wrapper.
25800 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25802 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
25804 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25806 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25807 --nounzip is passed.
25809 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25811 USB hotunplugging and USB serial support.
25813 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25814 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25815 (grub_uhci_transfer): Respect timeout and set *actual.
25816 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25817 non-standard length.
25818 (grub_usb_device_attach): Autoload modules.
25819 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25820 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25821 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25823 (grub_usb_add_hub): Fill nports and children.
25824 (attach_root_port): Receive hub instead of controller.
25825 All users updated. Fill hub->devices.
25826 (grub_usb_root_hub): Allocate hub->devices.
25827 (detach_device): New function.
25828 (poll_nonroot_hub): Fill children and detach devices.
25829 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25830 actual arguments. All users updated.
25831 (grub_usb_bulk_read_extended): New function.
25832 * bus/usb/serial/common.c: New file.
25833 * bus/usb/serial/ftdi.c: Likewise.
25834 * bus/usb/serial/pl2303.c: Likewise.
25835 * commands/terminal.c (handle_command): Support wildcard.
25836 * commands/usbtest.c: Output "Unknown" instead of empty string.
25837 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25838 (usbserial_common_mod_SOURCES): New variable.
25839 (usbserial_common_mod_CFLAGS): Likewise.
25840 (usbserial_common_mod_LDFLAGS): Likewise.
25841 (pkglib_MODULES): Add usbserial_pl2303.mod.
25842 (usbserial_pl2303_mod_SOURCES): New variable.
25843 (usbserial_pl2303_mod_CFLAGS): Likewise.
25844 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25845 (pkglib_MODULES): Add usbserial_ftdi.mod.
25846 (usbserial_ftdi_mod_SOURCES): New variable.
25847 (usbserial_ftdi_mod_CFLAGS): Likewise.
25848 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25849 (pkglib_MODULES): Add serial.mod.
25850 (serial_mod_SOURCES): New variable.
25851 (serial_mod_CFLAGS): Likewise.
25852 (serial_mod_LDFLAGS): Likewise.
25853 * conf/i386-pc.rmk: Likewise.
25854 * conf/mips-yeeloong.rmk: Likewise.
25855 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25856 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25857 * disk/usbms.c (first_available_slot): New variable.
25858 (grub_usbms_attach): Don't reuse free slots due to potential cache
25860 * include/grub/serial.h: Moved to ..
25861 * include/grub/ns8250.h: ...this.
25862 * include/grub/serial.h: New file.
25863 * include/grub/term.h (grub_term_poll_usb): New variable.
25864 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25865 readkey. All users updated.
25866 (grub_terminfo_output_state): Pass term to put.
25867 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25868 (grub_usb_controller_dev): Add timeout and actual arguments to
25869 transfer. All users updated.
25870 (grub_usb_interface): New field detach_data.
25871 (grub_usb_device): New fields children and nports.
25872 (grub_usb_ep_type_t): New type.
25873 (grub_usb_get_ep_type): New function.
25874 (grub_usb_bulk_read_extended): Likewise.
25875 * include/grub/usbdesc.h (grub_usb_desc): New type.
25876 * include/grub/usbserial.h: New file.
25877 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25878 * kern/term.c (grub_term_poll_usb): New variable.
25879 (grub_getkey): Call grub_term_poll_usb if set.
25880 (grub_checkkey): Likewise.
25881 (grub_getkeystatus): Likewise.
25882 * term/serial.c: Moved controller-specific parts to ...
25883 * term/ns8250.c: ... here.
25884 * term/serial.c: Mostly rewritten.
25885 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
25888 2010-08-20 Robert Millan <rmh@gnu.org>
25890 Make kFreeBSD code more generic to support ext2fs as root, ufs as
25891 a separate module and maybe other interesting combinations.
25893 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
25894 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
25895 (kfreebsd_entry): Add generic filesystem module load routine.
25896 Map GRUB `ext2' to kFreeBSD `ext2fs'.
25898 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25900 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
25901 "numcenter" (I misunderstood the purpose of this entry).
25902 * docs/grub.texi (sendkey): Likewise.
25904 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25906 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
25907 status flag options; simply omitting the option is equivalent and
25908 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
25909 (keysym_table): Rename "num5numlock" to "numlock".
25910 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
25911 can uniformly say that only the last of multiple `sendkey'
25912 invocations has any effect.
25913 * docs/grub.texi (sendkey): New section.
25915 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
25917 * commands/i386/pc/sendkey.c (options): Fix three typos.
25919 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
25921 Implement sendkey support.
25923 * commands/i386/pc/sendkey.c: New file.
25924 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
25925 (sendkey_mod_SOURCES): New variable.
25926 (sendkey_mod_CFLAGS): Likewise.
25927 (sendkey_mod_LDFLAGS): Likewise.
25929 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25931 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
25932 fix warnings from Autoconf.
25934 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25936 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
25937 to avoid false positives with some assemblers that output things
25938 like "someprefix_func" as part of their output.
25940 2010-08-15 Robert Millan <rmh@gnu.org>
25942 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
25944 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
25945 grub_get_libzfs_handle() errors.
25947 2010-08-14 Robert Millan <rmh@gnu.org>
25949 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
25950 filesystem is not ZFS.
25952 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25954 Fix for misspelled color names defaulting to black/black (bug
25955 reported by Doug Nazar)
25957 * include/grub/normal.h (grub_parse_color_name_pair): Add return
25958 status to prototype.
25959 * normal/color.c (grub_parse_color_name_pair): Return failure
25961 (grub_env_write_color_normal): Ignore bad color names.
25962 (grub_env_write_color_highlight): Likewise.
25963 * normal/main.c (GRUB_MOD_INIT): Set default color names.
25965 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25967 "shift" command support to GRUB script.
25969 * include/grub/script_sh.h (grub_script_shift): New prototype.
25970 * script/execute.c (grub_script_shift): New function.
25971 * script/main.c (grub_script_init): Register shift command.
25972 (grub_script_fini): Unregister shift command.
25973 * util/grub-script-check.c (grub_script_cmd_shift): New function.
25975 * tests/grub_script_shift.in: New testcase.
25976 * conf/tests.rmk: Rules for new testcase.
25978 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25980 "continue" command support to GRUB script.
25982 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
25983 (grub_script_break): Continue support.
25984 * script/main.c (grub_script_init): Register continue command.
25985 (grub_script_fini): Unregister continue command.
25987 * tests/grub_script_continue.in: New testcase.
25988 * conf/tests.rmk: Rules for new testcase.
25990 2010-08-12 BVK Chaitanya <bvk@dbook>
25992 "break" command support to GRUB script.
25994 * conf/common.rmk: Rule updates to grub-script-check.
25995 * include/grub/misc.h (grub_min): New function.
25996 * include/grub/script_sh.h (grub_script_init): New prototype.
25997 (grub_script_fini): New prototype.
25998 (grub_script_break): New prototype.
25999 * script/main.c (grub_script_init): New function.
26000 (grub_script_fini): New function.
26001 * script/execute.c (grub_script_break): New function.
26002 * normal/main.c: Calls to grub_script_{init,fini}.
26003 * util/grub-script-check.c (grub_script_break): New function.
26005 * tests/grub_script_break.in: New testcase.
26006 * conf/tests.rmk: Rules for new test case.
26008 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26010 Function parameters support to GRUB script.
26012 * script/yylex.l (VARIABLE): Regular expression update.
26013 * script/function.c (grub_script_function_call): Moved ...
26014 * script/execute.c (grub_script_function_call): ... to here.
26015 (grub_script_execute_arglist_to_argv): Removed.
26016 (grub_script_arglist_to_argv): New function.
26017 * script/argv.c: New file.
26018 (grub_script_argv_free): New function.
26019 (grub_script_argv_next): Likewise.
26020 (grub_script_argv_append): Likewise.
26021 (grub_script_argv_split_append): Likewise.
26022 * include/grub/script_sh.h (grub_script_argv): New struct.
26023 (grub_script_argv_free): New function.
26024 (grub_script_argv_next): Likewise.
26025 (grub_script_argv_append): Likewise.
26026 (grub_script_argv_split_append): Likewise.
26028 * conf/common.rmk (normal.mod): New source script/argv.c.
26030 * tests/grub_script_echo1.in: More tests.
26031 * tests/grub_script_vars1.in: Likewise.
26032 * tests/grub_script_functions.in: New test case.
26033 * conf/tests.rmk: Rules for new testcase.
26035 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26037 Remove grub_script_cmdblock struct.
26039 * include/grub/script_sh.h: Remove grub_script_cmdblock.
26040 * script/parser.y: Likewise.
26041 * script/execute.c: Rename cmdblock suffix to cmdlist.
26042 * script/script.c: Likewise.
26043 * util/grub-script-check.c: Likewise.
26045 2010-08-11 Yves Blusseau <blusseau@zetam.org>
26047 * .bzrignore: add grub-macho2img
26049 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
26051 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
26053 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
26055 Remove the dump of sm712 initialisation sequence.
26057 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
26058 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
26059 (GRUB_VGA_IO_MISC_WRITE): Likewise.
26060 (GRUB_VGA_CR_*): Added many registers.
26061 (GRUB_VGA_SR_*): Likewise.
26062 (GRUB_VGA_GR_*): Likewise.
26063 (grub_vga_write_arx): New function.
26064 (grub_video_hw_config): New struct.
26065 (grub_vga_set_geometry): New function.
26066 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
26067 GRUB_PCI_CLASS_SUBCLASS_VGA.
26068 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
26069 * video/sm712.c (grub_sm712_write_reg): New function
26070 (grub_sm712_read_reg): Likewise.
26071 (grub_sm712_sr_write): Likewise.
26072 (grub_sm712_gr_write): Likewise.
26073 (grub_sm712_cr_write): Likewise.
26074 (grub_sm712_write_arx): Likewise.
26075 (grub_sm712_cr_shadow_write): Likewise.
26076 (grub_sm712_write_dda_lookup): Likewise.
26077 (grub_video_sm712_setup): Initialise the video rather then
26078 blindly replay the dump.
26079 (main) [TEST]: Add a routine to be able to compile as standalone for
26081 * video/sm712_init.c (sm712_init): Removed.
26082 (sm712_sr_seq1): New array.
26083 (sm712_sr_seq2): Likewise.
26085 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26087 * include/grub/vga.h: Add missing grub/pci.h include.
26089 2010-08-10 Yves Blusseau <blusseau@zetam.org>
26091 * util/grub-macho2img.c (main): fix typo
26093 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26095 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
26096 (grub_vga_gr_read): Likewise.
26097 (grub_vga_cr_write): Likewise.
26098 (grub_vga_cr_read): Likewise.
26099 (grub_vga_sr_write): Likewise.
26100 (grub_vga_sr_read): Likewise.
26101 (grub_vga_palette_read): Likewise.
26102 (grub_vga_palette_write): Likewise.
26103 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
26104 (grub_sm712_sr_read): New function.
26105 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
26106 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
26108 2010-08-09 Robert Millan <rmh@gnu.org>
26110 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
26111 out unused variables on non-ZFS build.
26113 2010-08-08 Robert Millan <rmh@gnu.org>
26115 Fix path generation for sub-filesystems in ZFS.
26117 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
26120 2010-08-08 Robert Millan <rmh@gnu.org>
26122 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
26124 2010-08-08 Robert Millan <rmh@gnu.org>
26126 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
26127 exist, issue a proper error message (rely on `ls' for translated
26130 2010-08-08 Robert Millan <rmh@gnu.org>
26132 Fix grub-probe invocation.
26134 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
26136 2010-08-04 Robert Millan <rmh@gnu.org>
26138 * configure.ac: Remove checks for getfsstat() and getmntany().
26139 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
26140 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
26141 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
26142 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
26143 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
26145 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
26146 via find_mount_point_from_dir() and getfsstat() / getmntany().
26148 2010-08-04 Robert Millan <rmh@gnu.org>
26150 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26151 (grub_find_zpool_from_mount_point): Merge into ...
26152 (grub_find_zpool_from_dir): ... this.
26153 * kern/emu/misc.c: Likewise.
26156 (grub_make_system_path_relative_to_its_root): Replace
26157 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
26158 with grub_find_zpool_from_dir().
26159 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
26161 2010-08-04 Robert Millan <rmh@gnu.org>
26163 Support OpenSolaris in ZFS device resolution.
26165 * configure.ac: Check for getmntany().
26166 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
26167 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
26170 2010-08-03 Robert Millan <rmh@gnu.org>
26172 Fix grub-emu build.
26174 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
26175 * include/grub/emu/misc.h: ... here.
26177 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
26178 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
26180 * util/misc.c: Remove `<grub/util/libzfs.h>'.
26181 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
26182 (grub_get_libzfs_handle): Move to ...
26183 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
26184 (grub_get_libzfs_handle): ... here.
26186 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
26188 * script/execute.c (grub_script_execute_cmdline): Check for NULL
26189 as command name case.
26191 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
26193 * disk/raid.c (insert_array): Select unique numbers for named arrays
26194 as well, for use as keys in the disk cache.
26196 2010-08-01 Robert Millan <rmh@gnu.org>
26198 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
26199 kFreeBSD device name, except on ZFS where the filesystem label is
26201 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
26202 `/boot/zfs/zpool.cache'.
26203 Set mountfrom kernel variable using ${kfreebsd_device}.
26205 2010-08-01 Robert Millan <rmh@gnu.org>
26207 Make it even harder to use uninitialized `libzfs_handle' (and
26208 make the interface a bit simpler).
26210 * include/grub/util/misc.h (grub_util_init_libzfs)
26211 (libzfs_handle): Remove.
26212 (grub_get_libzfs_handle): New prototype.
26214 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
26216 (grub_util_init_libzfs): Remove.
26217 (grub_get_libzfs_handle): New function.
26219 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
26220 grub_get_libzfs_handle() to obtain a libzfs handle instead of
26221 accessing `libzfs_handle' directly.
26223 2010-08-01 Robert Millan <rmh@gnu.org>
26225 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26226 (grub_find_zpool_from_mount_point): New function prototypes.
26228 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26229 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26231 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26232 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26233 `static' attribute.
26235 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26236 finding zpool from mount point into ...
26237 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26239 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26240 requested path is part of a ZFS pool, use
26241 grub_find_zpool_from_mount_point() to detect its filesystem name,
26242 and generate a path with `/fsname@path' syntax.
26244 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26246 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
26247 (void) rather than () so that this is a proper prototype.
26249 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26251 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
26253 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26255 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
26256 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
26258 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26260 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
26262 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26264 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
26266 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26268 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
26269 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
26270 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
26271 disable gfxpayload.
26272 (Shell-like scripting): Add real content.
26273 (Serial terminal): Suggest `terminal_input serial; terminal_output
26274 serial' rather than putting the two commands on separate lines,
26275 since console input will be inoperative after the first command.
26276 (menuentry): Document --class, --users, and --hotkey options.
26277 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
26278 Vladimir Serbinenko).
26280 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26281 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26283 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
26285 2010-08-01 Robert Millan <rmh@gnu.org>
26287 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26288 (grub_find_zpool_from_mount_point): New function prototypes.
26290 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26291 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26293 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26294 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26295 `static' attribute.
26297 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26298 finding zpool from mount point into ...
26299 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26301 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26302 requested path is part of a ZFS pool, use
26303 grub_find_zpool_from_mount_point() to detect its filesystem name,
26304 and generate a path with `/fsname@path' syntax.
26306 2010-08-01 Robert Millan <rmh@gnu.org>
26308 Prevent accidental use of uninitialized libzfs_handle.
26310 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
26311 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
26312 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
26314 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26316 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
26317 util/grub.d/10_linux.in). Fixes Debian bug #591093.
26319 2010-08-01 Robert Millan <rmh@gnu.org>
26321 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
26323 2010-07-31 Robert Millan <rmh@gnu.org>
26325 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
26327 2010-07-31 Robert Millan <rmh@gnu.org>
26329 * kern/emu/misc.c: Add missing license header.
26331 2010-07-31 Robert Millan <rmh@gnu.org>
26333 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
26335 * include/grub/util/libnvpair.h: Include `<config.h>'.
26336 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
26337 declaring libnvpair prototypes ourselves.
26338 * include/grub/util/libzfs.h: Include `<config.h>'.
26339 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
26340 declaring libzfs prototypes ourselves.
26342 (libzfs_handle): Moved to ...
26343 * include/grub/util/misc.h (libzfs_handle): ... here.
26344 Include `<grub/util/libzfs.h>'.
26346 2010-07-30 Robert Millan <rmh@gnu.org>
26348 * include/grub/emu/misc.h: Add missing license header.
26350 2010-07-30 Robert Millan <rmh@gnu.org>
26352 Enable `grub-probe -t device' resolution on ZFS.
26354 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
26355 * include/grub/util/libnvpair.h: New file.
26356 * include/grub/util/libzfs.h: New file.
26358 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
26359 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
26360 `<grub/util/libnvpair.h>'.
26361 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
26363 (find_mount_point_from_dir): New static function.
26364 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
26366 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
26367 find_root_device_from_libzfs() before ressorting to find_root_device().
26369 * include/grub/util/misc.h (grub_util_init_libzfs): New function
26371 * util/misc.c: Include `<grub/util/libzfs.h>'.
26372 (grub_util_init_libzfs): New function.
26373 [HAVE_LIBZFS] (libzfs_handle): New global variable.
26374 [HAVE_LIBZFS] (fini_libzfs): New static function.
26375 (grub_util_init_libzfs): New function.
26376 * util/grub-probe.c (main): Call grub_util_init_libzfs().
26378 2010-07-30 Robert Millan <rmh@gnu.org>
26380 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
26381 (xmalloc, xrealloc, xstrdup, xasprintf): Add
26382 `warn_unused_result' attribute.
26383 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
26384 (grub_xasprintf, grub_xvasprintf): Likewise.
26385 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
26387 2010-07-29 Robert Millan <rmh@gnu.org>
26389 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
26390 (probe): Handle `PRINT_FS_LABEL'.
26391 (main): Handle `-t fs_label'.
26393 2010-07-29 Robert Millan <rmh@gnu.org>
26395 * configure.ac: Remove grub-mkisofs checks.
26397 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
26399 * util/ieee1275/grub-install.in: Don't use empty grub_device.
26400 Reported by: Lennart Sorensen.
26402 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26404 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
26405 prior to terminal_input/terminal_output separation. It's been over 1.5
26406 years and those versions weren't widely deployed.
26408 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
26410 * disk/raid.c (insert_array): Don't count named arrays when looking
26411 for unused array numbers.
26412 Reported and tested by: Michael Guntsche.
26414 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26416 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
26417 implementation of this so that grub-emu links again, with a note
26418 that this should support hotplugging in the future.
26420 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26422 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26424 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26426 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
26428 (grub_loopback_close): Remove empty function.
26429 (grub_loopback_dev): Remove close method.
26431 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26433 Disable EFI cursor when the EFI console becomes inactive.
26435 * term/efi/console.c (grub_efi_console_init): New function.
26436 (grub_efi_console_fini): New function.
26437 (grub_console_term_output): Register init and fini methods.
26439 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26441 * tests/util/grub-shell-tester.in: Remove bashism and declare as
26444 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26446 * disk/loopback.c (grub_loopback): Replace filename with file.
26447 (delete_loopback): Handle new semantics.
26448 (grub_cmd_loopback): Likewise.
26449 (grub_loopback_iterate): Likewise.
26450 (grub_loopback_close): Likewise.
26452 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26454 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
26456 Reported by: Tito Keitel.
26458 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26460 * docs/grub.texi (Naming convention): Document new naming convention.
26462 2010-07-20 Vadim Solomin <vadic052@gmail.com>
26463 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26465 Generate device.map in something closer to the old ordering.
26467 * util/deviceiter.c (struct device): New declaration.
26468 (compare_file_names): Rename to ...
26469 (compare_devices): ... this. Sort by kernel name in preference to
26470 the stable by-id name, but keep the latter as a fallback comparison.
26471 Update header comment.
26472 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
26473 of `struct device' rather than of plain file names.
26475 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
26477 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
26480 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26482 * commands/acpi.c (setup_common_tables): Use sizeof instead of
26484 (setv1table): Likewise.
26486 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26488 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
26489 removing the homehost if present.
26490 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
26491 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
26492 removing the homehost if present.
26493 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
26495 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
26497 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
26498 parameter. Set its pointer target to 0.
26499 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
26500 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
26501 `data_offset' value from the superblock for 1.x metadata.
26502 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
26503 data on the device.
26504 (insert_array): Record the start sector of data on the device.
26505 (grub_raid_register): Pass start_sector parameters to
26506 grub_raid_list->detect and insert_array.
26507 * include/grub/raid.h (struct grub_raid_array): Add start_sector
26509 (struct grub_raid): Add start_sector parameter to `detect'.
26511 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
26512 __attribute__ ((packed)), leaving a comment.
26513 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
26514 (grub_mdraid_detect_09): ... here and ...
26515 (grub_mdraid_detect_1x): ... here.
26517 2010-07-20 Peter Henn <peter.henn@web.de>
26519 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
26520 chunk size and disk size, which are already given as sector counts
26521 as distinct from the 0.90 units. Fetch the correct device number
26522 from the role table instead of using the table index.
26524 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
26526 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
26527 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
26528 (WriteMostly1): New macro.
26529 Set array->name to NULL for metadata format 0.90. Add support for
26530 metadata 1.x. Fix some comments.
26531 * disk/raid.c (): Add support for name based RAID arrays. Fix a
26533 * util/getroot.c (grub_util_get_grub_dev): Add support for
26534 /dev/md/name style devices.
26536 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26538 * .bzrignore: Ignore 20_linux_xen.
26540 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
26542 * util/import_unicode.py: Remove unnecessary imports.
26544 2010-07-17 Aleš Nesrsta <starous@volny.cz>
26546 Hotplugging and USB hub support.
26548 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
26549 (grub_ohci): Likewise.
26550 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
26551 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
26552 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
26553 (GRUB_OHCI_CTRL_EDS): Likewise.
26554 (GRUB_OHCI_BULK_EDS): Likewise.
26555 (GRUB_OHCI_TDS): Likewise.
26556 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
26557 (grub_ohci_ed_phys2virt): New function.
26558 (grub_ohci_virt_to_phys): Likewise.
26559 (grub_ohci_td_phys2virt): Likewise.
26560 (grub_ohci_td_virt2phys): Likewise.
26561 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
26563 (grub_ohci_find_ed): New function.
26564 (grub_ohci_alloc_td): Likewise.
26565 (grub_ohci_free_td): Likewise.
26566 (grub_ohci_free_tds): Likewise.
26567 (grub_ohci_transfer): Use previously allocated memory.
26568 (grub_ohci_portstatus): Reset status changed bit.
26569 (grub_ohci_detect_dev): Supply status changed.
26570 (grub_ohci_fini_hw): Free memory.
26571 (grub_ohci_restore_hw): Reallocate memory.
26572 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
26573 Reset status change.
26574 (grub_uhci_detect_dev): Supply status_change.
26575 * bus/usb/usb.c (attach_hooks): New var.
26576 (grub_usb_device_attach): New function.
26577 (grub_usb_register_attach_hook_class): Likewise.
26578 (grub_usb_unregister_attach_hook_class): Likewise.
26579 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
26580 (grub_usb_add_hub): Reset connection changed bit.
26581 (attach_root_port): New function.
26582 (grub_usb_root_hub): Likewise.
26583 (poll_nonroot_hub): Likewise.
26584 (grub_usb_poll_devices): Likewise.
26585 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
26586 * disk/usbms.c (grub_usbms_open): Use device hooks.
26587 (grub_usbms_iterate) :Poll devices.
26588 (grub_usbms_finddevs): Split into ...
26589 (grub_usbms_attach): ... this ...
26590 (grub_usbms_attach): ... and this.
26591 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
26593 (grub_usb_interface): New fields attached and detach_hook.
26594 (grub_usb_attach_hook_class): New type.
26595 (grub_usb_attach_desc): New struct.
26596 (grub_usb_register_attach_hook_class): New function.
26597 (grub_usb_unregister_attach_hook_class): Likewise.
26598 (grub_usb_poll_devices): Likewise.
26599 (grub_usb_device_attach): Likewise.
26600 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
26601 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
26603 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26605 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
26606 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
26607 delta determination style. Works with most NetBSD partitions too.
26609 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26611 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
26612 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
26614 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26616 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
26618 2010-07-14 Anton Blanchard <anton@samba.org>
26620 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
26623 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26625 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
26627 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26629 * kern/partition.c (grub_partition_check_containment): New function to
26630 check that a partition is physically contained in a parent. Since
26631 offsets are relative (and non-negative), this reduces to checking that
26632 the partition ends before its parent.
26633 (grub_partition_map_probe): Discard out-of-range sub-partitions.
26634 (grub_partition_iterate): Likewise.
26635 * include/grub/partition.h (grub_partition_map): Slightly more detailed
26637 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
26638 partitions that start before their parent, and add debug printfs.
26640 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26642 * Makefile.in (.SUFFIX): Spell correctly, as ...
26643 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
26644 bare module name without `.mod', e.g. `test') tried to invoke a
26647 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26649 * README: Point to the Info manual.
26651 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
26653 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
26654 2nd superblock position from partition size.
26656 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
26658 * Makefile.in (MAINTAINER_CLEANFILES): Remove
26659 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
26660 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
26663 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26665 Restructure SCSI .id handling.
26666 Reported and tested by: Aleš Nesrsta.
26668 * disk/ata.c (grub_atapi_close): Removed. All users updated.
26669 (grub_atapi_dev): Changed .name to "ata". New field .id.
26670 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
26671 (grub_usbms_dev): New field .id.
26672 * disk/scsi.c (grub_scsi_iterate): Generate name.
26673 (grub_scsi_open): Parse name.
26674 * include/grub/scsi.h (grub_make_scsi_id): New function.
26675 (grub_scsi_dev): Change iterate and open to number instead of naming
26676 busses. All users updated.
26677 (grub_scsi): Remove name. Add .bus.
26679 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26681 * commands/help.c (grub_cmd_help): Fix a typo.
26683 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26685 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
26686 Reported and tested by: Colin Watson.
26688 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26690 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
26693 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
26695 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
26697 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
26699 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
26702 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26704 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
26705 and disk/raid6_recover.c.
26706 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26707 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26709 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26711 * term/gfxterm.c (repaint_schedulded): Rename to ...
26712 (repaint_scheduled): ... this. Update all callers.
26713 (repaint_was_schedulded): Rename to ...
26714 (repaint_was_scheduled): ... this. Update all callers.
26716 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26718 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
26719 which we expect to be handled by upper layers.
26721 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
26723 * bus/usb/usbhub.c: #include time.h header.
26725 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26727 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
26728 entry_name also for entries without stat blocks (e.g. ".."); fixes
26729 corruption of the first entry in a directory.
26731 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26733 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
26734 after setting gfxterm as the active terminal. GRUB_BACKGROUND
26735 doesn't work otherwise.
26737 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26739 * docs/grub.texi (Features): Update list of supported file systems.
26740 (GNU/Linux): Update for GRUB 2.
26741 (Serial terminal): Remove mention of --disable-serial, which was a
26742 GRUB Legacy configure option. Update instructions to use
26743 `terminal_input' and `terminal_output' rather than `terminal'.
26744 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
26745 configuration' and `Installing GRUB using grub-install'.
26746 (Menu entry editor): Update for GRUB 2.
26747 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
26748 Document new -a, -u, and -v options.
26749 (initrd): New section.
26750 (initrd16): New section.
26751 (linux): New section.
26752 (linux16): New section.
26753 (search): The `var' argument to `--set' is optional.
26754 (GRUB only offers a rescue shell): Go into a little more detail on
26757 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26759 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
26761 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26763 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
26764 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
26766 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26768 * util/i386/pc/grub-setup.c (setup): Rename prefix to
26769 install_prefix, in line with install_dos_part and install_bsd_part.
26770 Add new prefix variable, which is copied to install_prefix after
26771 comparing core.img in memory with the one read from disk in the
26772 no-embedding case, and use that rather than overwriting
26773 install_prefix immediately when installing to a partition.
26774 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
26777 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26779 * configure.ac: Avoid == in test command, it's not portable.
26780 * util/grub.d/30_os-prober.in: Likewise.
26782 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
26784 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
26786 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26788 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
26789 multiple (top-level) partmaps.
26791 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26793 * util/i386/efi/grub-install.in: Don't use empty grub_device.
26794 Reported by: Tino Keitel.
26796 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26798 Bidi and diacritics support.
26800 * Makefile.in (widthspec.bin): New target.
26801 (widthspec.h): Likewise.
26802 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
26803 * autogen.sh: Generate unidata.c.
26804 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26805 * commands/ls.c (grub_ls_list_devices): Likewise.
26806 (grub_ls_list_files): Likewise.
26807 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26808 (grub_mini_cmd_lsmod): Likewise.
26809 * commands/read.c: Likewise.
26810 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26811 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26812 * lib/arg.c (grub_arg_show_help): Likewise.
26813 * lib/crypto.c (grub_password_get): Likewise.
26814 * normal/auth.c (grub_username_get): Likewise.
26815 * normal/misc.c (grub_normal_print_device_info): Likewise.
26816 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26817 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26818 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26819 (normal/charset.c_DEPENDENCIES): New variable.
26820 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26821 (pkglib_MODULES): Remove charset.mod.
26822 (charset_mod_SOURCES): Removed.
26823 (charset_mod_CFLAGS): Likewise.
26824 (charset_mod_LDFLAGS): Likewise.
26825 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26826 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26828 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26829 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26830 (kernel_img_HEADERS): Add terminfo.h.
26831 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26832 Fill ->font. Reverse ascii bitmaps.
26833 (grub_font_get_xheight): New function.
26834 * font/font.c (grub_font_get_string_width): Moved from here ...
26835 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26836 * font/font.c (grub_font_draw_string): Moved from here ...
26837 * gfxmenu/font.c (grub_font_draw_string): ... here.
26838 * font/font.c (grub_font_dup_glyph): New function.
26839 (grub_font_blit_glyph): Likewise.
26840 (grub_font_blit_glyph_mirror): Likewise.
26841 (blit_comb): Likewise.
26842 (grub_font_construct_dry_run): Likewise.
26843 (grub_font_get_constructed_device_width): Likewise.
26844 (grub_font_construct_glyph): Likewise.
26845 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26846 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26847 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26848 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26849 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26850 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26851 (grub_font_get_xheight): New proto.
26852 (grub_font_get_constructed_device_width): Likewise.
26853 (grub_font_construct_glyph): Likewise.
26854 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26855 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26856 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26857 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26858 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26859 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26860 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26861 (grub_console_getcharwidth): Likewise.
26862 * include/grub/misc.h (grub_xputs): New proto.
26863 (grub_puts): Inlined.
26864 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26865 (grub_normal_get_line_counter): Removed.
26866 (grub_install_newline_hook): Likewise.
26867 (grub_normal_get_char_counter): New proto.
26868 (grub_normal_reset_more): Likewise.
26869 (grub_xputs_normal): Likewise.
26870 * include/grub/powerpc/ieee1275/console.h: Removed.
26871 * include/grub/sparc64/ieee1275/console.h: Likewise.
26872 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26873 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26874 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26875 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26876 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26877 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26878 (grub_term_input): Pass reference to self. All users updated.
26879 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
26880 Pass reference to self. New fields normal_color, highlight_color and
26881 data. All users updated.
26882 (grub_putchar): Removed.
26883 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
26884 (grub_unicode_estimate_width): New function.
26885 (grub_term_getcharwidth): Add defaults.
26886 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
26887 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
26888 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
26889 (grub_cls): Remove EXPORT_FUNC.
26890 (grub_setcolorstate): Inline.
26891 (grub_newline_hook): Removed.
26892 * include/grub/terminfo.h: Rewritten. All users updated.
26893 * include/grub/unicode.h: New file.
26894 * include/grub/video.h (grub_video_signed_rect): New type.
26895 * kern/emu/console.c (grub_console_highlight_color): Removed.
26896 (grub_console_normal_color): Likewise.
26897 (grub_console_standard_color): Made static.
26898 (grub_ncurses_putchar): Remove mapping.
26899 (grub_ncurses_getcharwidth): Removed.
26900 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26901 (grub_ncurses_setcolor): Removed.
26902 (grub_ncurses_getcolor): Likewise.
26903 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
26904 (grub_console_putchar): ... this.
26905 (grub_console_putchar): Handle argument difference.
26906 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
26907 console_init_early and console_init_lately.
26908 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
26909 * kern/misc.c (grub_puts): Removed.
26910 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
26911 (grub_vsnprintf_real): Remove str = NULL support.
26912 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
26913 * normal/charset.c (grub_utf8_to_ucs4): ... here.
26914 * kern/term.c (grub_putcode): Renamed to ...
26915 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
26916 (grub_putchar): Removed.
26917 (grub_xputs_dumb): New function.
26918 (grub_xputs): New variable.
26919 * lib/charset.c: Move from here ...
26920 * normal/charset.c: ... to here.
26921 (grub_ucs4_to_utf8): New function.
26922 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
26923 (join_types): New variable.
26924 (unpack_join): New function.
26925 (bidi_types): New variable.
26926 (unpack_bidi): New function.
26927 (get_bidi_type): Likewise.
26928 (get_join_type): Likewise.
26929 (is_mirrored): Likewise.
26930 (grub_unicode_get_comb_type): Likewise.
26931 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
26932 (is_type_after): Likewise.
26933 (grub_unicode_aglomerate_comb): Likewise.
26934 (bidi_line_wrap): Likewise.
26935 (grub_bidi_line_logical_to_visual): Likewise.
26936 (grub_bidi_logical_to_visual): Likewise.
26937 (grub_unicode_mirror_code): Likewise.
26938 (grub_unicode_shape_code): Likewise.
26939 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
26940 Don't use grub_putchar.
26941 * normal/main.c (grub_normal_init_page): Use grub_putcode.
26942 (grub_normal_reader_init): Likewise.
26943 (grub_xputs_saved): New variable.
26944 (GRUB_MOD_INIT): Set grub_xputs.
26945 (GRUB_MOD_FINI): Restore grub_xputs.
26946 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
26947 (menu_init): Avoid printing gfxmenu error.
26948 (show_menu): Use grub_normal_get_char_counter.
26949 * normal/menu_entry.c (update_screen): Fix out-of-array.
26950 (complete): Avoid NULL dereferencing.
26951 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
26952 * normal/menu_text.c (print_spaces): Removed.
26953 (grub_print_ucs4): Likewise.
26954 (grub_print_message_indented): Use grub_print_ucs4.
26955 (print_message): Use grub_putcode.
26956 (print_entry): Hanlde diacritics.
26957 * normal/term.c (term_state): New type.
26958 (grub_more_lines): Removed.
26959 (term_states): New variable.
26960 (grub_normal_line_counter): Renamed to ..
26961 (grub_normal_char_counter): ...this. All users updated.
26962 (grub_normal_get_line_counter): Renamed to ...
26963 (grub_normal_get_char_counter): ... this.
26964 (grub_normal_reset_more): New function.
26965 (process_newline): Removed.
26966 (print_more): New function.
26967 (grub_install_newline_hook): Removed.
26968 (map_code): New function.
26969 (grub_puts_terminal): Use grub_print_ucs4.
26970 (putglyph): New function.
26971 (putcode_real): Likewise.
26972 (grub_putcode): Use putcode_real.
26973 (get_maxwidth): New function.
26974 (get_startwidth): Likewise.
26975 (print_ucs4_terminal): Likewise.
26976 (find_term_state): Likewise.
26977 (put_glyphs_terminal): Likewise.
26978 (print_backlog): Likewise.
26979 (print_ucs4_real): Likewise.
26980 (grub_print_ucs4): Likewise.
26981 (grub_xputs_normal): Likewise.
26982 * term/efi/console.c (grub_console_putchar): Output diacritics.
26983 (grub_console_getcharwidth): Removed.
26984 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26985 * term/gfxterm.c (clear_char): Free chars.
26986 (scroll_up): Avoid leaking memory.
26987 (grub_gfxterm_putchar): Support diacritics.
26988 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26989 * term/i386/pc/console.c (grub_console_term_output): Declare as
26990 GRUB_TERM_CODE_TYPE_VGA.
26991 * term/i386/pc/vga.c (grub_vga_term): Declare as
26992 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
26993 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
26994 GRUB_TERM_CODE_TYPE_VGA.
26995 * term/i386/vga_common.c (map_char): Removed.
26996 (grub_console_putchar): Likewise.
26997 (grub_console_getcharwidth): Likewise.
26998 * term/ieee1275/ofconsole.c: Simplify using terminfo.
26999 (colors): Reordered to match terminfo.
27000 (grub_ofconsole_normal_color): Removed.
27001 (grub_ofconsole_writeesc): Likewise.
27002 (grub_ofconsole_highlight_color): Likewise.
27003 (grub_ofconsole_getcharwidth): Likewise.
27004 (grub_ofconsole_setcolorstate): Likewise.
27005 (grub_ofconsole_setcolor): Likewise.
27006 (grub_ofconsole_getcolor): Likewise.
27007 (grub_ofconsole_readkey): Renamed to ...
27008 (readkey): ... this. Remove escape sequence handling. Return -1 on no
27010 (grub_ofconsole_checkkey): Removed.
27011 (grub_ofconsole_getkey): Likewise.
27012 (grub_ofconsole_getxy): Likewise.
27013 (grub_ofconsole_gotoxy): Likewise.
27014 (grub_ofconsole_cls): Likewise.
27015 (grub_ofconsole_refresh): Likewise.
27016 (grub_ofconsole_terminfo_input): New struct.
27017 (grub_ofconsole_terminfo_output): Likewise.
27018 (grub_ofconsole_term_input): Use terminfo.
27019 (grub_ofconsole_term_output): Likewise.
27020 (grub_console_init): Split into ...
27021 (grub_console_init_early): ...this and ...
27022 (grub_console_init_lately): ...this. Use terminfo.
27023 (grub_ofconsole_putchar): Renamed to ...
27024 (put): ... this. Remove mapping.
27025 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
27026 * term/serial.c: Simplify using terminfo.
27029 (keep_track): Likewise.
27030 (registered): Likewise.
27031 (input_buf): Likewise.
27032 (npending): Likewise.
27033 (serial_translate_key_sequence): Likewise.
27034 (fill_input_buf): Likewise.
27035 (grub_serial_checkkey): Likewise.
27036 (grub_serial_getkey): Likewise.
27037 (grub_serial_getxy): Likewise.
27038 (grub_serial_gotoxy): Likewise.
27039 (grub_serial_putchar): Likewise.
27040 (grub_serial_cls): Likewise.
27041 (grub_serial_setcolorstate): Likewise.
27042 (grub_serial_setcursor): Likewise.
27043 (serial_hw_init): Use serial_hw_fetch.
27044 (grub_serial_terminfo_input): New variable.
27045 (grub_serial_terminfo_output): Likewise.
27046 (grub_serial_term_input): Use terminfo.
27047 (grub_serial_term_output): Likewise.
27048 * term/terminfo.c (putstr): Use put.
27049 (grub_terminfo_all_free): New function
27050 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
27051 (grub_terminfo_output_register): New function.
27052 (grub_terminfo_output_unregister): Likewise.
27053 (grub_terminfo_getxy): Likewise.
27054 (grub_terminfo_readkey): Likewise.
27055 (grub_terminfo_checkkey): Likewise.
27056 (grub_terminfo_getkey): Likewise.
27057 (grub_terminfo_input_init): Likewise.
27058 (print_terminfo): Likewise.
27059 (grub_cmd_terminfo): Handle encoding.
27060 (grub_terminfo_gotoxy): Track position.
27061 (grub_terminfo_cls): Likewise.
27062 (grub_terminfo_putchar): Likewise.
27063 (grub_terminfo_setcolorstate): Handle colors
27064 (grub_terminfo_cursor_on): This ...
27065 (grub_terminfo_cursor_off): ... and this merged into ...
27066 (grub_terminfo_setcursor): ... this.
27067 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
27068 * unicode/ArabicShaping.txt: New file (imported from Unicode).
27069 * unicode/BidiMirroring.txt: Likewise.
27070 * unicode/UnicodeData.txt: Likewise.
27071 * unicode/COPYING: Likewise.
27072 * util/grub-editenv.c (grub_putchar): Removed.
27073 (grub_xputs_real): New function.
27074 (grub_xputs): New variable.
27075 * util/grub-fstest.c (grub_putchar): Removed.
27076 (grub_xputs_real): New function.
27077 (grub_xputs): New variable.
27078 * util/grub-mkdevicemap.c (grub_putchar): Removed.
27079 (grub_xputs_real): New function.
27080 (grub_xputs): New variable.
27081 * util/grub-probe.c (grub_putchar): Removed.
27082 (grub_xputs_real): New function.
27083 (grub_xputs): New variable.
27084 * util/grub-script-check.c (grub_putchar): Removed.
27085 (grub_xputs_real): New function.
27086 (grub_xputs): New variable.
27087 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
27088 (grub_xputs_real): New function.
27089 (grub_xputs): New variable.
27090 * util/import_unicode.py: New file.
27091 * util/grub-mkfont.c (ft_errmsgs): New array.
27092 (grub_glyph_info): Make bitmap a pointer.
27093 (file_formats): New type WIDTH_SPEC.
27094 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
27095 (options): Add width-spec.
27097 (add_char): Renamed to ...
27098 (add_glyph): ... this.
27099 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
27100 (glyph_replace): New type.
27101 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
27102 (add_char): New function.
27103 (add_subst): Likewise.
27104 (process_cursive): Likewise.
27105 (add_font): Handle GSUB.
27106 (write_font_width_spec): New function.
27107 (main): Sort glyphs.
27108 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
27109 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
27110 * kern/term.c (grub_cls): Moved from here...
27111 * normal/term.c (grub_cls): ... here.
27113 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27115 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
27116 suitable for using within the format argument of printf when
27117 converting grub_size_t.
27118 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
27119 "x" to convert grub_size_t arguments.
27121 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27123 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
27125 (list_get_minimal_size): Take selection box into account.
27127 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27129 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
27132 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27134 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
27135 devices when iterating over /dev/disk/by-id; they will be handled
27136 later if appropriate, which they aren't always (e.g. LVM).
27138 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27140 * include/grub/misc.h (grub_reboot): Declare as noreturn.
27141 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
27143 (grub_halt): Likewise.
27144 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
27146 (grub_halt): Don't return, even if all of shut-down, power-off, and
27149 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27151 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
27152 arguments, not three.
27154 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27156 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
27157 * util/grub.d/10_linux.in: Use it to check for LVM, so that
27158 LVM-on-RAID is handled correctly.
27160 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27162 * docs/grub.texi (Changes from GRUB Legacy): New section.
27163 (Future): Fix typo.
27165 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27167 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
27168 grub.d/README accidentally ends up executable for one reason or
27169 another. Ignore it.
27171 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27173 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
27174 (gpt_partition_map_iterate): Support non-512B sectors.
27176 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27178 * kern/efi/init.c (grub_efi_init): Disable watchdog.
27179 Tested by: Seth Goldberg.
27181 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27183 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
27184 Properly align mbi.
27185 Reported by: Seth Goldberg.
27187 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27189 * util/grub-mkrescue.in: Avoid module duplication.
27191 2010-07-01 Sean Finney <seanius@seanius.net>
27193 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
27195 2010-07-01 Sean Finney <seanius@seanius.net>
27197 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
27199 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27201 * disk/lvm.c (grub_lvm_checkvalue): New function.
27202 (grub_lvm_check_flag): Likewise.
27204 2010-07-01 Robert Millan <rmh@gnu.org>
27206 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
27207 Support 'p' as partition separator on kernel of FreeBSD (used
27209 (grub_util_biosdisk_get_grub_dev): Likewise.
27211 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27213 Yeeloong firmware port.
27215 * boot/mips/yeeloong/fwstart.S: New file.
27216 * bus/cs5536.c (gpiodump): New const.
27217 (set_io_space): New function.
27218 (set_iod): Likewise.
27219 (set_p2d): Likewise.
27220 (grub_cs5536_init_geode): Likewise.
27221 * commands/mips/yeeloong/lsspd.c: New file.
27222 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
27223 (serial_mod_SOURCES): New variable.
27224 (serial_mod_CFLAGS): Likewise.
27225 (serial_mod_LDFLAGS): Likewise.
27226 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
27227 term/terminfo.c and term/tparm.c.
27228 (pkglib_IMAGES): Add fwstart.img.
27229 (fwstart_img_SOURCES): New variable.
27230 (fwstart_img_CFLAGS): Likewise.
27231 (fwstart_img_ASFLAGS): Likewise.
27232 (fwstart_img_LDFLAGS): Likewise.
27233 (fwstart_img_FORMAT): Likewise.
27234 (pkglib_MODULES): Add lsspd.mod.
27235 (lsspd_mod_SOURCES): New variable.
27236 (lsspd_mod_CFLAGS): Likewise.
27237 (lsspd_mod_LDFLAGS): Likewise.
27238 (pkglib_MODULES): Add halt.mod.
27239 (halt_mod_SOURCES): New variable.
27240 (halt_mod_CFLAGS): Likewise.
27241 (halt_mod_LDFLAGS): Likewise.
27242 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
27243 (serial_mod_SOURCES): Removed.
27244 (serial_mod_CFLAGS): Likewise.
27245 (serial_mod_LDFLAGS): Likewise.
27246 * disk/ata.c (check_device): New function.
27247 (grub_ata_device_initialize): Use check_device.
27248 (grub_ata_iterate): Recheck devices.
27249 (grub_ata_open): Likewise.
27250 (grub_atapi_iterate): Likewise.
27251 (grub_atapi_open): Likewise.
27252 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
27253 (GRUB_ATA_CH1_PORT1): Likewise.
27254 (GRUB_ATA_CH0_PORT2): Likewise.
27255 (GRUB_ATA_CH1_PORT2): Likewise.
27256 * include/grub/mips/loongson.h: New file.
27257 * include/grub/mips/yeeloong/ec.h: Likewise.
27258 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
27259 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
27260 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
27261 * include/grub/misc.h (grub_halt): Declare as noreturn.
27262 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
27263 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
27264 (UART_ENABLE_FIFO_TRIGGER1): New definition.
27265 (UART_ENABLE_DTRRTS): Likewise.
27266 (UART_ENABLE_MODEM): Removed.
27267 (UART_ENABLE_OUT2): New const.
27268 * include/grub/term.h (grub_term_register_input_active): New function.
27269 (grub_term_register_output_active): Likewise.
27270 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
27272 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
27273 (init_pci): New function.
27274 (grub_machine_init): Execute platform init when firmware. Init serial.
27275 (grub_halt): Implement.
27276 (grub_exit): Likewise.
27277 (grub_reboot): Likewise.
27278 * term/serial.c (serial_hw_init): Update macros.
27279 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
27280 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
27281 (image_targets): New target mipsel-yeeloong-flash.
27282 (generate_image): Support IMAGE_YEELOONG_FLASH.
27283 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
27284 (grub_video_sm712_setup): Init card.
27285 (grub_video_sm712_set_palette): Removed.
27286 * video/sm712_init.c: New file.
27288 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
27290 * Makefile.in (install-local): Temporarily prepend $(builddir) to
27291 PATH when running help2man and then run it on the unadorned
27292 executable names, rather than passing $(builddir)/* paths to
27293 help2man. This avoids the build directory ending up in generated
27296 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27298 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
27299 to avoid accidents when debugging with 'sh -x'.
27300 * util/grub-mkrescue.in: Likewise.
27301 * util/grub.d/00_header.in: Likewise.
27302 * util/grub.d/10_hurd.in: Likewise.
27303 * util/grub.d/10_kfreebsd.in: Likewise.
27304 * util/grub.d/10_linux.in: Likewise.
27305 * util/grub.d/10_netbsd.in: Likewise.
27306 * util/grub.d/10_windows.in: Likewise.
27307 * util/grub.d/20_linux_xen.in: Likewise.
27308 * util/grub.d/30_os-prober.in: Likewise.
27309 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27311 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27313 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
27314 last character in the buffer.
27315 Reported by: Vladimir Serbinenko.
27317 2010-06-29 Robert Millan <rmh@gnu.org>
27319 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
27320 (Command-line and menu entry commands): Document `badram' command.
27322 2010-06-28 Robert Millan <rmh@gnu.org>
27324 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
27325 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
27326 command using ${GRUB_BADRAM} as parameter.
27328 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27330 * docs/grub.texi (Device map): New section.
27331 (Themes): New section (stub).
27332 * Makefile.in (docs/grub.info): The info documentation now builds
27333 without errors. Make sure it stays that way.
27335 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27337 Use normal parser for menu entries.
27338 Reported by: Thomas Frauendorfer
27340 * include/grub/parser.h (grub_parser_execute): Don't export.
27341 * normal/menu.c (grub_menu_execute_entry_real): New function.
27342 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
27344 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27346 * docs/grub.texi (Embedded configuration): New section (replacing
27347 old "Preset Menu" stub).
27348 (Images): New section.
27349 (configfile): Note that any menu entries defined in `file' are shown
27352 2010-06-28 Josh Triplett <josh@joshtriplett.org>
27354 * mmap/i386/pc/mmap_helper.S: Set CF on return.
27356 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27358 * util/grub-install.in: Add --debug-image= option.
27360 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27362 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
27365 * util/deviceiter.c (check_device): Rename to ...
27366 (check_device_readable_unique): ... this. Update all callers.
27367 Maintain and check a list of which devices (by canonicalized name)
27368 have already been seen.
27369 (clear_seen_devices): New function.
27370 (compare_file_names) [__linux__]: New function.
27371 (grub_util_iterate_devices): Clear the list of seen devices on exit
27372 and (just in case) on entry.
27373 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
27374 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
27375 seen-devices list, superseded by general code in check_device.
27377 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27379 * commands/cat.c (options): New variable.
27380 (grub_cmd_cat): Parse options. If the --dos option is given, print
27381 DOS-style "\r\n" line endings as simple newlines (Debian bug
27383 (GRUB_MOD_INIT): Use extcmd.
27384 (GRUB_MOD_FINI): Likewise.
27385 * docs/grub.texi (cat): Document --dos.
27387 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27389 XEN with Linux grub-mkconfig support.
27391 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
27392 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
27393 GRUB_CMDLINE_XEN_DEFAULT.
27394 * util/grub.d/20_linux_xen.in: New file.
27396 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27398 Initialise VGA video on qemu ourselves.
27400 * boot/i386/qemu/boot.S: Don't call 0xc000.
27401 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
27402 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
27403 (kernel_img_HEADERS): Add pci.h.
27404 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
27405 * configure.ac: Force unifont on qemu and yeeloong.
27406 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
27407 (grub_vga_palette_write): Use correct register.
27408 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
27409 Call grub_qemu_init_cirrus.
27410 * kern/i386/qemu/init.c: New file.
27411 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
27413 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
27415 2010-06-26 Pavel Roskin <proski@gnu.org>
27417 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
27420 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27422 * docs/grub.texi (Simple configuration): Explain that
27423 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
27424 set to `true' to disable their respective recovery entries, not
27427 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27429 Make the `source' command slightly faster.
27431 * normal/main.c (grub_normal_execute): Don't re-read list files when
27434 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27436 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
27437 field position and mask size to red fields from mode_info, not
27439 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
27440 Remove redundant tag->common.framebuffer_type assignment.
27441 Reported by: Seth Goldberg.
27443 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27445 Sync up other versions of the Linux loader with Robert Millan's
27446 change of 2010-01-09, "Make loader output a bit more user-friendly".
27448 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
27450 (grub_cmd_linux): Likewise.
27451 (grub_cmd_initrd): Likewise.
27452 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
27453 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
27455 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
27457 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
27458 larger than MEMORY_MAP_SIZE.
27460 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
27462 Fix parallel build.
27464 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
27466 * script/parser.y: #include grub_script.tab.h header.
27468 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27470 Support >3GiB and <16MiB RAM in i386-qemu.
27472 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
27473 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
27474 (grub_lower_mem): Removed.
27475 (grub_upper_mem): Likewise.
27476 (mem_size): Made static.
27477 (above_4g): New variable.
27478 (grub_machine_mmap_init): Detect small mem_size and above_4g.
27479 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
27482 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27484 Cirrus 5446 and Bochs video cards support.
27486 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
27488 (video_cirrus_mod_SOURCES): New variable.
27489 (video_cirrus_mod_CFLAGS): Likewise.
27490 (video_cirrus_mod_LDFLAGS): Likewise.
27491 (video_bochs_mod_SOURCES): Likewise.
27492 (video_bochs_mod_CFLAGS): Likewise.
27493 (video_bochs_mod_LDFLAGS): Likewise.
27494 * include/grub/vga.h: New file.
27495 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
27496 (grub_video_fb_set_page_t): New type.
27497 (grub_video_fb_setup): New prototype.
27498 (grub_video_fb_swap_buffers): Likewise.
27499 (grub_video_fb_get_info_and_fini): Likewise.
27500 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
27501 (CRTC_DATA_PORT): Likewise.
27502 (CRTC_CURSOR): Likewise.
27503 (CRTC_CURSOR_ADDR_HIGH): Likewise.
27504 (CRTC_CURSOR_ADDR_LOW): Likewise.
27505 (CRTC_CURSOR_DISABLE): Likewise.
27506 (update_cursor): Use grub_vga_cr_write.
27507 (grub_vga_text_setcursor): Likewise.
27508 * video/bochs.c: New file.
27509 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
27510 (palette): Likewise.
27511 (palette_size): Likewise.
27512 (framebuffer): New variable.
27513 (grub_video_fb_init): Use 'framebuffer'.
27514 (grub_video_fb_fini): Likewise.
27515 (grub_video_fb_get_info): Likewise.
27516 (grub_video_fb_get_palette): Likewise.
27517 (grub_video_fb_set_palette): Likewise.
27518 (grub_video_fb_set_viewport): Likewise.
27519 (grub_video_fb_get_viewport): Likewise.
27520 (grub_video_fb_map_color): Likewise.
27521 (grub_video_fb_map_rgb): Likewise.
27522 (grub_video_fb_map_rgba): Likewise.
27523 (grub_video_fb_unmap_color): Likewise.
27524 (grub_video_fb_unmap_color_int): Likewise.
27525 (grub_video_fb_fill_rect): Likewise.
27526 (grub_video_fb_blit_bitmap): Likewise.
27527 (grub_video_fb_blit_render_target): Likewise.
27528 (grub_video_fb_scroll): Likewise.
27529 (grub_video_fb_create_render_target): Likewise.
27530 (grub_video_fb_doublebuf_blit_init): Likewise.
27531 (grub_video_fb_set_active_render_target): Handle doublebuffering.
27532 (doublebuf_pageflipping_update_screen): New function.
27533 (doublebuf_pageflipping_init): Likewise.
27534 (grub_video_fb_setup): Likewise.
27535 (grub_video_fb_swap_buffers): Likewise.
27536 (grub_video_fb_get_info_and_fini): Likewise.
27537 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
27539 (doublebuf_pageflipping_commit): Restructured into ...
27540 (doublebuf_pageflipping_set_page): ... this.
27541 (doublebuf_pageflipping_update_screen): Removed.
27542 (doublebuf_pageflipping_init): Likewise.
27543 (double_buffering_init): Likewise.
27544 (grub_video_vbe_setup): Use grub_video_fb_setup.
27545 (grub_video_vbe_swap_buffers): Removed.
27546 (grub_video_vbe_set_active_render_target): Likewise.
27547 (grub_video_vbe_get_active_render_target): Likewise.
27548 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
27549 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
27550 grub_video_fb_set_active_render_target and
27551 grub_video_fb_get_active_render_target.
27552 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
27553 (SEQUENCER_DATA_PORT): Likewise.
27554 (MAP_MASK_REGISTER): Likewise.
27555 (CRTC_ADDR_PORT): Likewise.
27556 (CRTC_DATA_PORT): Likewise.
27557 (START_ADDR_HIGH_REGISTER): Likewise.
27558 (START_ADDR_LOW_REGISTER): Likewise.
27559 (GRAPHICS_ADDR_PORT): Likewise.
27560 (GRAPHICS_DATA_PORT): Likewise.
27561 (READ_MAP_REGISTER): Likewise.
27562 (INPUT_STATUS1_REGISTER): Likewise.
27563 (INPUT_STATUS1_VERTR_BIT): Likewise.
27564 (get_map_mask): Use grub_vga_sr_read.
27565 (set_map_mask): Use grub_vga_sr_write.
27566 (set_read_map): Use grub_vga_gr_write.
27567 (set_start_address): Use grub_vga_cr_write.
27568 * video/sm712.c (framebuffer): Remove leftover fields.
27570 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
27572 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
27573 setting GRUB_VIDEO_BACKEND. Make it available as a user override
27574 instead. Replace the gfxterm backend check with a check that
27575 ${GRUB_PREFIX}/video.lst is non-empty.
27576 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
27578 (load_video): New generated function. Call it before loading
27579 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
27580 * util/grub.d/10_linux.in (linux_entry): Call load_video.
27581 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
27582 * docs/grub.texi (Simple configuration): Document
27583 GRUB_VIDEO_BACKEND.
27585 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27587 Use video functions in linux and xnu loaders.
27589 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
27590 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
27591 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
27592 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
27593 loader/i386/pc/linux.c.
27594 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
27595 (find_line_len): Removed.
27596 (find_framebuf): Likewise.
27597 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
27598 * loader/i386/efi/xnu.c: Removed.
27599 * loader/i386/pc/xnu.c: Moved from here...
27600 * loader/i386/xnu.c: ...here.
27602 Enable priorities in video drivers.
27604 * include/grub/video.h (grub_video_adapter_prio_t): New type.
27605 (grub_video_adapter): New field prio.
27606 (grub_video_register): Respect prio when inserting.
27607 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
27608 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
27609 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
27610 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
27611 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
27612 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
27613 * video/sm712.c (grub_video_sm712_adapter): Likewise.
27617 * include/grub/video.h (grub_video_driver_id_t): New value
27618 GRUB_VIDEO_DRIVER_SDL.
27619 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
27621 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27623 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
27624 argument to printf.
27625 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27627 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27629 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
27630 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27632 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27634 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
27635 directly, and recommend grub-install instead.
27636 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27638 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27640 Fix i386-pc prefix handling with nested partitions (Debian bug
27641 #585068). Note that the case where the core image is booted using
27642 multiboot and relocated from its original location still requires
27645 * kern/i386/pc/init.c (make_install_device): If the prefix starts
27646 with "(,", fill the boot drive in between those two characters, but
27647 expect that a full partition specification including partition map
27649 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
27650 specified, write a prefix without the drive name but including a
27651 full partition specification.
27653 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
27655 * util/grub-mkconfig.in: Ignore non-option arguments, for
27656 compatibility with older versions (before 2010-06-12) which did the
27657 same. In particular, this makes it easier to ship an update-grub
27658 wrapper which is compatible with that used with GRUB Legacy (Debian
27661 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27663 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
27664 for manual page generation.
27666 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27668 * po/POTFILES: Remove leftover commands/handler.c.
27670 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27672 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
27673 left this script non-functional.
27675 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27677 * docs/man/grub-emu.h2m: New file.
27679 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
27681 * docs/grub.texi (Commands): Document reduced command set in rescue
27683 (cpuid): New section.
27685 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
27687 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
27688 new partition naming style.
27689 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
27691 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
27693 Add "-o grub.iso" like cmdline options support.
27695 * util/grub-install.in: Improve cmdline option parsing.
27696 * util/grub-mkconfig.in: Likewise.
27697 * util/grub-mkrescue.in: Likewise.
27698 * util/grub-reboot.in: Likewise.
27699 * util/grub-set-default.in: Likewise.
27700 * util/i386/efi/grub-install.in: Likewise.
27701 * util/ieee1275/grub-install.in: Likewise.
27702 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27704 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27706 * .bzrignore: Ignore 41_custom.
27708 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27710 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
27712 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27714 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
27715 prototype declarations.
27717 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
27718 generating fs, partmap, and video lists.
27719 * include/grub/fs.h (grub_fs_register): Omit prototype if
27720 GRUB_LST_GENERATOR is defined.
27721 * include/grub/partition.h (grub_partition_map_register): Likewise.
27722 * include/grub/video.h (grub_video_register): Likewise.
27724 2010-06-12 Javier Martín <lordhabbit@gmail.com>
27726 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
27728 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27730 * util/grub-mkrescue.in: Support --xorriso argument.
27732 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27734 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
27735 Suggested by: Thomas Schmitt.
27737 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27739 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
27740 Suggested by: Thomas Schmitt.
27742 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27744 custom.cfg support.
27746 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
27747 * util/grub.d/41_custom.in: New file.
27749 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27751 * util/grub-mkrescue.in (make_image): Remove sh module, which has
27752 been merged back into normal.
27754 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27756 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
27757 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
27759 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27761 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
27762 when generating manual pages.
27763 * docs/man/grub-bin2h.h2m: New file.
27764 * docs/man/grub-editenv.h2m: New file.
27765 * docs/man/grub-fstest.h2m: New file.
27766 * docs/man/grub-install.h2m: New file.
27767 * docs/man/grub-macho2img.h2m: New file.
27768 * docs/man/grub-mkconfig.h2m: New file.
27769 * docs/man/grub-mkdevicemap.h2m: New file.
27770 * docs/man/grub-mkfont.h2m: New file.
27771 * docs/man/grub-mkimage.h2m: New file.
27772 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
27773 * docs/man/grub-mkrelpath.h2m: New file.
27774 * docs/man/grub-mkrescue.h2m: New file.
27775 * docs/man/grub-ofpathname.h2m: New file.
27776 * docs/man/grub-pe2elf.h2m: New file.
27777 * docs/man/grub-probe.h2m: New file.
27778 * docs/man/grub-reboot.h2m: New file.
27779 * docs/man/grub-script-check.h2m: New file.
27780 * docs/man/grub-set-default.h2m: New file.
27781 * docs/man/grub-setup.h2m: New file.
27783 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
27785 Use FOR_* macros instead of *_iterate whenever possible.
27787 * commands/handler.c: Removed.
27788 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
27789 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
27790 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27791 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
27792 (grub_probe_SOURCES): Remove kern/parser.c.
27793 (util/grub-script-check.c_DEPENDENCIES): Removed.
27794 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
27795 and grub_script_check_init.c.
27796 (grub_script_check_init.lst): Removed.
27797 (grub_script_check_init.h): Likewise.
27798 (grub_script_check_init.c): Likewise.
27799 (pkglib_MODULES): Remove handler.mod and sh.mod.
27800 (handler_mod_SOURCES): Removed.
27801 (handler_mod_CFLAGS): Likewise.
27802 (handler_mod_LDFLAGS): Likewise.
27803 (normal_mod_SOURCES): Remove normal/handler.c.
27804 Add script/main.c, script/script.c, script/execute.c,
27805 script/function.c, script/lexer.c, grub_script.tab.c
27806 and grub_script.yy.c.
27807 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27808 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27809 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27810 (grub_setup_SOURCES): Remove kern/parser.c.
27811 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27812 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27813 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27814 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27815 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27816 (grub_setup_SOURCES): Remove kern/parser.c.
27817 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27818 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27819 * include/grub/command.h (grub_command_iterate): Removed.
27820 (FOR_COMMANDS): New macro.
27821 * include/grub/dl.h (grub_dl): New member next.
27822 (grub_dl_iterate): Removed.
27823 (grub_dl_head): New variable declaration.
27824 (FOR_DL_MODULES): New macro.
27825 * include/grub/fs.h: Include list.h.
27826 (grub_fs): Make next first element.
27827 (grub_fs_list): New variable declaration.
27828 (grub_fs_register): Make inline.
27829 (grub_fs_unregister): Likewise.
27830 (grub_fs_iterate): Removed.
27831 (FOR_FILESYSTEMS): New macro.
27832 * include/grub/handler.h: Removed.
27833 * include/grub/list.h (grub_list_hook_t): Removed.
27834 (grub_list_test_t): Likewise.
27835 (grub_list_pop): Likewise.
27836 (grub_list_iterate): Likewise.
27837 (grub_list_insert): Likewise.
27838 (FOR_LIST_ELEMENTS): New macro.
27839 * include/grub/parser.h (grub_parser_class): Removed.
27840 (grub_parser_register): Likewise.
27841 (grub_parser_unregister): Likewise.
27842 (grub_parser_get_current): Likewise.
27843 (grub_parser_set_current): Likewise.
27844 (grub_register_rescue_parser): Likewise.
27845 (grub_rescue_parse_line): New function.
27846 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27847 * include/grub/script_sh.h (grub_script_function_list): New variable
27849 (FOR_SCRIPT_FUNCTIONS): New macro.
27850 (grub_script_function_iterate): Removed.
27851 (grub_normal_parse_line): New prototype.
27852 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27853 (FOR_DISABLED_TERM_INPUTS): Likewise.
27854 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27855 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27856 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27858 (grub_video_register): Inline.
27859 (grub_video_unregister): Likewise.
27860 (grub_video_adapter_list): New variable declaration.
27861 (grub_video_iterate): Removed.
27862 (FOR_VIDEO_ADAPTERS): New macro.
27863 * kern/dl.c (grub_dl_list): Removed. All users updated.
27864 (grub_dl_iterate): Removed.
27865 * kern/fs.c (grub_fs_list): Make global.
27866 (grub_fs_register): Removed.
27867 (grub_fs_unregister): Likewise.
27868 (grub_fs_iterate): Likewise.
27869 * kern/handler.c: Removed.
27870 * kern/list.c (grub_list_pop): Removed.
27871 (grub_list_iterate): Likewise.
27872 (grub_list_insert): Likewise.
27873 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27874 (grub_prio_list_insert): Don't use grub_list_insert.
27875 * kern/main.c (grub_register_rescue_parser): Don't call
27876 grub_register_rescue_parser.
27877 * kern/parser.c (grub_parser_class): Removed.
27878 (grub_parser_execute): Use grub_rescue_parse_line.
27879 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
27880 (grub_rescue_parser): Removed.
27881 (grub_register_rescue_parser): Likewise.
27882 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
27883 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
27884 (grub_auth_check_authentication): Likewise.
27885 * normal/completion.c (iterate_command): Removed.
27886 (grub_normal_do_completion): Use FOR_COMMANDS.
27887 * normal/handler.c: Removed.
27888 * normal/main.c (read_config_file): Remove parser changing.
27889 (grub_normal_execute): Don't call read_handler_list.
27890 (grub_normal_read_line_real): Statically allocate prompt.
27891 (grub_cmdline_run): Use grub_normal_parse_line.
27892 (GRUB_MOD_FINI): Don't call free_handler_list.
27893 * normal/menu_entry.c (run): Likewise.
27894 * script/function.c (grub_script_function_list): Make global.
27895 (grub_script_function_iterate): Removed.
27896 * script/main.c (grub_normal_parse_line): Make global.
27897 (grub_sh_parser): Removed.
27898 (GRUB_MOD_INIT): Likewise.
27899 (GRUB_MOD_FINI): Likewise.
27900 * tests/lib/functional_test.c (grub_functional_test): Use
27902 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
27903 (grub_test_run): Use FOR_LIST_ELEMENTS.
27904 * tests/lib/unit_test.c (main): Likewise.
27905 * util/deviceiter.c (grub_util_iterate_devices): Don't use
27907 * util/grub-fstest.c (grub_term_input_class): Removed.
27908 (grub_term_output_class): Likewise.
27909 * util/grub-probe.c: Likewise.
27910 * util/i386/pc/grub-setup.c: Likewise.
27911 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27912 * util/grub-script-check.c (main): Don't call grub_init_all and
27914 * video/video.c (grub_video_adapter_list): Make global.
27915 (grub_video_register): Removed.
27916 (grub_video_unregister): Likewise.
27917 (grub_video_iterate): Likewise.
27919 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
27921 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
27922 reported by Henrique Ferreiro.
27924 2010-06-09 Robert Millan <rmh@gnu.org>
27926 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
27927 ones, when both are available.
27929 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27931 Make --version uniform and avoid hard-coded program name.
27933 * util/grub-mkimage.c (main): Use `program_name' instead of
27935 * util/i386/pc/grub-setup.c (main): Likewise.
27936 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
27937 * util/grub-install.in: Save the basename of $0 in $self, and use the
27938 latter in informational messages. Use the same format for --version
27939 as the binary programs.
27940 * util/grub-mkconfig.in: Likewise.
27941 * util/grub-mkrescue.in: Likewise.
27942 * util/grub-reboot.in: Likewise.
27943 * util/grub-set-default.in: Likewise.
27944 * util/i386/efi/grub-install.in: Likewise.
27945 * util/ieee1275/grub-install.in: Likewise.
27946 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27948 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27950 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
27951 embedding area. Use <= instead of == when checking for non-emptiness.
27953 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27955 * configure.ac: Add `.' to the directories searched for unifont.
27957 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27959 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
27962 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27964 * docs/grub.texi (History): Expand to cover GRUB 2.
27965 (Serial terminal): Refer to `terminal_input' and `terminal_output'
27966 commands, not `terminal'.
27967 (serial): Likewise.
27968 (terminal_input): New section.
27969 (terminal_output): New section.
27970 (uppermem): New section (stub).
27971 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
27973 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27975 * docs/grub.texi (Security): Menu entries are unrestricted by
27976 default, not restricted to superusers as I had previously thought.
27977 Reword to account for this.
27979 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27981 * kern/emu/misc.c (device_mapper_null_log): New function.
27982 (grub_device_mapper_supported): New function.
27983 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
27985 * kern/emu/hostdisk.c (find_partition_start): Check whether
27986 device-mapper is supported before trying to use it.
27987 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
27989 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27991 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
27992 (File name syntax): Likewise.
27993 (help): --all is no longer supported in GRUB 2. Be more precise
27994 about pattern matching.
27996 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27998 * normal/completion.c (grub_normal_do_completion): When completing
27999 arguments to "set" and the current word contains an equals sign,
28000 skip to after the equals sign before starting completion.
28002 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28004 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
28006 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28008 * docs/grub.texi (Network): New section.
28009 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
28010 `(nd)' as in GRUB Legacy.
28011 (pxe_unload): New section.
28013 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28015 * docs/grub.texi (Troubleshooting): `echo' is not usually available
28016 in the rescue shell, so recommend using `set' instead. Thanks,
28019 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28021 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
28022 (password): New section.
28023 (password_pbkdf2): New section.
28024 (search): New section.
28025 (Security): New section.
28026 (Troubleshooting): New section, currently very incomplete.
28027 (Invoking grub-mkpasswd-pbkdf2): New section.
28028 (Internals): New section, currently very incomplete.
28030 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28032 * util/grub.d/00_header.in: Add some more quoting (of
28033 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
28035 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
28037 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28039 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
28040 to `count', fixing variable shadowing that broke the -c option.
28042 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
28044 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
28045 in case they contain spaces.
28047 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
28049 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
28050 "part_" to partmap module names, in line with grub-install.
28051 Reported by: Jindřich Makovička (Debian bug #584426).
28053 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
28055 * util/grub-mkimage.c: Make target-related error messages slightly
28056 more helpful; -O talks about "format". Explicitly point to the use
28057 of -O if no target is specified.
28058 Reported by: Didier Raboud (Debian bug #584415).
28060 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
28062 * INSTALL: Document several build requirements for optional features
28063 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
28065 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
28067 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
28068 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
28069 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
28071 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28073 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
28074 Thanks to Jordan Uggla for spotting this.
28076 2010-06-02 Aleš Nesrsta <starous@volny.cz>
28078 Finally make USB usable.
28080 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
28081 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
28082 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
28083 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
28084 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
28085 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
28086 (GRUB_OHCI_FSMPS): Likewise.
28087 (GRUB_OHCI_PERIODIC_START): Likewise.
28088 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
28089 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
28090 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
28091 (GRUB_OHCI_SET_PORT_RESET): Likewise.
28092 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
28093 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
28094 (grub_ohci_transaction): Likewise.
28095 (grub_ohci_transfer): Improve condition detection algorithms.
28096 Handle toggle property. Program the transactions correctly.
28097 Improve error handling. Various important fixups.
28098 (grub_ohci_portstatus): Put register writes in right order.
28099 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
28100 (grub_uhci_transfer): Don't show "failed" message on success.
28101 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
28103 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
28104 determine its size.
28105 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
28106 before initialization is completed. Use IN direction for empty
28107 transfers. Use last_trans and compute toggle.
28108 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
28109 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
28110 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
28111 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
28112 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
28113 (grub_usb_device): Increase toggle to 256.
28114 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
28115 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
28116 GRUB_USBMS_SUBCLASS_SFF8070.
28117 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
28118 (grub_scsi_inquiry): New member page and alloc_length.
28119 (grub_scsi_request_sense): New structure.
28120 (grub_scsi_request_sense_data): Likewise.
28121 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
28123 * disk/scsi.c (grub_scsi_request_sense): New function.
28124 (grub_scsi_test_unit_ready): Likewise.
28125 (grub_scsi_inquiry): Fill new fields.
28126 (grub_scsi_read_capacity): Likewise.
28127 (grub_scsi_read10): Add request sense at the end.
28128 (grub_scsi_read12): Likewise.
28129 (grub_scsi_write10): Likewise.
28130 (grub_scsi_write12): Likewise.
28131 (grub_scsi_open): Add Test Unit Ready.
28132 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
28133 Support additional subclasses. Con't clear halt yet. Activate the
28134 proper config. Calculate LUNs correctly.
28135 (grub_usbms_transfer): Various important fixups.
28137 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28139 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
28140 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
28141 (grub_ohci_fini_hw): New function.
28142 (grub_ohci_restore_hw): Likewise.
28143 (GRUB_MOD_INIT(ohci)): Register preboot hook.
28144 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
28145 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
28147 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28149 Dedicated DMA allocations.
28151 * bus/pci.c (grub_memalign_dma32): New function
28152 (grub_dma_free): Likewise.
28153 (grub_dma_get_virt): Likewise.
28154 (grub_dma_get_phys): Likewise.
28155 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
28156 (grub_ohci_pci_iter): Use dma32_alloc.
28157 (grub_ohci_transfer): Likewise.
28158 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
28159 (grub_usb_bulk_readwrite): Likewise.
28160 * include/grub/pci.h: Add declarations.
28162 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28166 * bus/cs5536.c: New file.
28167 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
28168 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
28169 (cs5536_mod_SOURCES): New variable.
28170 (cs5536_mod_CFLAGS): Likewise.
28171 (cs5536_mod_LDFLAGS): Likewise.
28172 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
28174 (kernel_img_SOURCES): Add bus/cs5536.c.
28175 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
28177 (usb_mod_SOURCES): New variable.
28178 (usb_mod_CFLAGS): New variable.
28179 (usb_mod_LDFLAGS): New variable.
28180 (usbtest_mod_SOURCES): New variable.
28181 (usbtest_mod_CFLAGS): New variable.
28182 (usbtest_mod_LDFLAGS): New variable.
28183 (ohci_mod_SOURCES): New variable.
28184 (ohci_mod_CFLAGS): New variable.
28185 (ohci_mod_LDFLAGS): New variable.
28186 (usbms_mod_SOURCES): New variable.
28187 (usbms_mod_CFLAGS): New variable.
28188 (usbms_mod_LDFLAGS): New variable.
28189 (usb_keyboard_mod_SOURCES): New variable.
28190 (usb_keyboard_mod_CFLAGS): New variable.
28191 (usb_keyboard_mod_LDFLAGS): New variable.
28192 * include/grub/smbus.h: New file.
28193 * include/grub/cs5536.h: New file.
28195 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28197 * util/grub.d/00_header.in: Add safety check to make sure that
28198 ${locale_dir} exists before trying to probe it.
28200 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28202 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
28203 per the GNU Coding Standards; this is now too obscure to be worth
28206 (chainloader): Remove cross-reference to `SCO UnixWare'.
28208 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28210 * docs/grub.texi (Chain-loading): New section.
28211 (DOS/Windows): New section, borrowed from GRUB Legacy with details
28212 adjusted for GRUB 2.
28213 (SCO UnixWare): Likewise.
28215 (chainloader): Add reference to `Block list syntax'.
28216 (drivemap): New section.
28217 (parttool): New section.
28219 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28221 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
28223 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
28224 (Installing GRUB using grub-install): Remove reference to the grub
28225 shell; mention `grub-mkimage' and `grub-setup' instead.
28226 (Invoking grub-install): Likewise.
28227 (Interface): Add reference to `Menu entry editor'.
28228 (serial): Remove `--device' option.
28230 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28232 * docs/grub.texi (Configuration): New section, documenting
28233 configuration file generation using grub-mkconfig. I've left a slot
28234 for documenting the full shell scripting format but have not yet
28235 started on writing that up.
28236 (Invoking grub-mkconfig): New section.
28238 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28240 * docs/grub.texi (direntry): Remove grub-terminfo reference.
28241 (GNU GRUB manual): Likewise.
28242 (General commands): Update description of `terminfo' for GRUB 2.
28244 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28246 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
28247 (GRUB_MOD_INIT): Fix capitalisation.
28248 * docs/grub.texi (Command-line and menu entry commands): Document
28249 gettext and gptsync commands.
28251 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28253 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
28254 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
28256 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
28258 Add btrfs probing support, currently only in the single-device case.
28260 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
28262 (grub_guess_root_device): Call find_root_device_from_mountinfo
28263 before looking in /dev.
28265 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28267 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
28268 GRUB_DISK_SIZE_UNKNOWN.
28269 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
28271 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
28273 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
28274 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
28275 corrupted or not synced properly.
28277 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28279 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
28280 Reported by: Seth Goldberg.
28282 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28284 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
28286 Reported by: Seth Goldberg.
28288 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28290 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
28291 Reported by: Seth Goldberg.
28293 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28295 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
28296 64-bit address as signed on MIPS.
28298 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28300 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
28301 to the empty string.
28303 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
28305 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
28307 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
28308 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
28309 * kern/misc.c (__enable_execute_stack): Disable on
28312 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28314 Make grub-probe work with symbolic links under /dev/mapper as well
28315 as with real block devices. The Linux world seems to be (at best)
28316 in transition here, and GRUB shouldn't get caught in the middle.
28318 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
28321 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28323 * util/grub-script-check.c (main): Ensure defined behaviour on empty
28324 input files (in which case exit zero).
28326 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28328 * kern/emu/misc.c (canonicalize_file_name): realpath can still
28329 return NULL for various reasons even if it has a maximum-length
28330 buffer: for example, there might be a symlink loop, or the path
28331 might exceed PATH_MAX. If this happens, return NULL.
28333 2010-05-27 Robert Millan <rmh@gnu.org>
28335 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
28336 partmap module to handle cross-partmap setups.
28337 Reported by Orestes Mas. Gràcies!
28339 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28341 * util/grub-mkrescue.in: Initialise override_dir rather than
28342 assuming that it's unset or empty in the environment.
28344 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
28346 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
28347 variable index into p_index to suppress a warning with -Wshadow.
28349 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
28351 * INSTALL: Added flex >= 2.5.35 requirement.
28353 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28355 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
28357 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28361 * commands/i386/cmostest.c: New file.
28362 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
28363 (cmostest_mod_SOURCES): New variable.
28364 (cmostest_mod_CFLAGS): Likewise.
28365 (cmostest_mod_LDFLAGS): Likewise.
28366 * conf/i386-pc.rmk: Likewise.
28367 * docs/grub.texi (Vendor power-on keys): New section.
28368 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
28369 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
28370 and GRUB_BUTTON_CMOS_ADDRESS.
28371 * util/grub.d/00_header.in: Handle powering-on by separate button.
28373 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28375 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
28376 Removed drawing_scrollbar argument. All users updated
28378 Reported by Jo Shields
28380 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28382 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
28383 buffer since gfxterm handles double repaint.
28385 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28387 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
28388 * term/gfxterm.c (real_scroll): Likewise.
28390 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28392 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
28393 before calling BIOS.
28395 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28397 * include/grub/i18n.h: Always enable grub_gettext.
28399 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28401 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
28402 partition naming style.
28404 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
28406 * util/grub-mkconfig.in: Fix handling of -o so that it works when
28407 not the first option.
28409 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28411 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
28413 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28415 * util/misc.c: Move inclusion of <limits.h> to ...
28416 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
28418 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
28420 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
28421 Fix merge error in NetBSD code.
28422 (find_partition_start) [__NetBSD__]: Likewise.
28424 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
28426 Fix grub-mkrescue usage unit testing.
28428 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
28430 2010-05-18 Christian Franke <franke@computer.org>
28432 * util/grub.d/10_windows.in: Use path names instead of
28433 drive letters to prevent warning from Cygwin 1.7.
28434 Add drivemap command to menuentry if needed.
28436 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
28438 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
28439 gnumach and gnumach.gz.
28441 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28443 * include/grub/i18n.h (gettext): Inline instead of using #define.
28444 (grub_gettext): Likewise.
28447 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28449 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
28450 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
28451 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
28452 (main): Add a slash after pkglibdirroot.
28454 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28456 * util/grub-install.in: Add missing "in" keyword.
28458 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28460 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
28461 Reported by: Seth Goldberg.
28463 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28465 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
28467 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28469 * configure.ac: Check for Linux device-mapper support.
28471 * util/hostdisk.c (device_is_mapped): New function.
28472 (find_partition_start): New function, partly broken out from
28473 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
28474 device-mapper support added.
28475 (linux_find_partition): Use find_partition_start.
28476 (convert_system_partition_to_system_disk): Add `st' argument.
28477 Support Linux /dev/mapper/* devices if device-mapper support is
28478 available; only DM-RAID devices are understood at present.
28479 (find_system_device): Add `st' argument. Pass it to
28480 convert_system_partition_to_system_disk.
28481 (grub_util_biosdisk_get_grub_dev): Pass stat result to
28482 find_system_device and convert_system_partition_to_system_disk. Use
28483 find_partition_start.
28485 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
28486 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
28487 * util/deviceiter.c [__linux__]: Define MINOR.
28488 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
28489 * util/mkdevicemap.c (grub_putchar): New function.
28490 (grub_getkey): New function.
28491 (grub_refresh): New function.
28492 (main): Set debug=all if -v -v is used.
28494 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28496 Fix build with non-GNU libcs.
28498 * util/misc.c (canonicalize_file_name): Move to ...
28499 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
28500 grub_make_system_path_relative_to_its_root.
28502 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28504 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
28505 we handle finding grub-mkimage. Default to finding grub-mkimage in
28506 ${bindir} with program_transform_name applied, and provide a
28507 --grub-mkimage option to override this.
28509 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28511 Remove grub-mkisofs.
28513 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
28514 (grub_mkisofs_SOURCES): Removed.
28515 (grub_mkisofs_CFLAGS): Removed.
28516 * util/mkisofs/defaults.h: Removed.
28517 * util/mkisofs/eltorito.c: Likewise.
28518 * util/mkisofs/exclude.h: Likewise.
28519 * util/mkisofs/hash.c: Likewise.
28520 * util/mkisofs/include/: Likewise.
28521 * util/mkisofs/include/fctldefs.h: Likewise.
28522 * util/mkisofs/include/mconfig.h: Likewise.
28523 * util/mkisofs/include/prototyp.h: Likewise.
28524 * util/mkisofs/include/statdefs.h: Likewise.
28525 * util/mkisofs/iso9660.h: Likewise.
28526 * util/mkisofs/joliet.c: Likewise.
28527 * util/mkisofs/match.c: Likewise.
28528 * util/mkisofs/match.h: Likewise.
28529 * util/mkisofs/mkisofs.c: Likewise.
28530 * util/mkisofs/mkisofs.h: Likewise.
28531 * util/mkisofs/msdos_partition.h: Likewise.
28532 * util/mkisofs/multi.c: Likewise.
28533 * util/mkisofs/name.c: Likewise.
28534 * util/mkisofs/rock.c: Likewise.
28535 * util/mkisofs/tree.c: Likewise.
28536 * util/mkisofs/write.c: Likewise.
28538 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28540 Unify grub-mkimage accross platforms.
28542 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
28543 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
28544 (grub_mkelfimage_SOURCES): Removed.
28545 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
28546 (util/grub-mkimage.c_DEPENDENCIES): .. this.
28547 (bin_UTILITIES): Add grub-mkimage.
28548 (grub_mkimage_SOURCES): New variable.
28549 (kernel_img_HEADERS): Remove machine/kernel.h.
28550 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
28551 (pkglib_PROGRAMS): Add kernel.img.
28552 (kernel_img_HEADERS): Add machine/kernel.h.
28553 (kernel_img_FORMAT): Removed.
28554 (bin_UTILITIES): Remove grub-mkimage.
28555 (grub_mkimage_SOURCES): Removed.
28556 (grub_mkimage_CFLAGS): Likewise.
28557 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28558 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
28559 (pkglib_PROGRAMS): Add kernel.img.
28560 (bin_UTILITIES): Remove grub-mkimage.
28561 (grub_mkimage_SOURCES): Removed.
28562 (grub_mkimage_CFLAGS): Likewise.
28563 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28564 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
28565 (pkglib_PROGRAMS): Add kernel.img.
28566 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
28567 (pkglib_PROGRAMS): Add kernel.img.
28568 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
28569 (grub_mkimage_SOURCES): Removed.
28570 (grub_mkimage_CFLAGS): Likewise.
28571 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28572 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
28573 (pkglib_PROGRAMS): Add kernel.img.
28574 (bin_UTILITIES): Remove grub-mkimage.
28575 (grub_mkimage_SOURCES): Removed.
28576 (grub_mkimage_CFLAGS): Likewise.
28577 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28578 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
28579 (grub_mkimage_SOURCES): Removed.
28580 (grub_mkimage_CFLAGS): Likewise.
28581 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28582 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
28583 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
28584 (grub_pe32_optional_header): ... this.
28585 (grub_pe64_optional_header): ... and this. All users updated.
28586 (GRUB_PE32_PE32_MAGIC): Split into ..
28587 (GRUB_PE32_PE32_MAGIC): .. this.
28588 (GRUB_PE32_PE64_MAGIC): .. and this.
28589 (GRUB_PE32_SIGNATURE_SIZE): New definition.
28590 * include/grub/elf.h (PT_GNU_STACK): New definition.
28591 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
28592 * include/grub/i386/efi/kernel.h: Likewise.
28593 * include/grub/i386/kernel.h: Likewise.
28594 * include/grub/i386/pc/kernel.h: Likewise.
28595 * include/grub/i386/qemu/boot.h: Likewise.
28596 * include/grub/mips/kernel.h: Likewise.
28597 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28598 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28599 * include/grub/powerpc/kernel.h: Likewise.
28600 * include/grub/sparc64/ieee1275/boot.h: Likewise.
28601 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28602 * include/grub/sparc64/kernel.h: Likewise.
28603 * include/grub/x86_64/efi/kernel.h: Likewise.
28604 * include/grub/x86_64/kernel.h: Likewise.
28605 * include/grub/offsets.h: New file.
28606 * include/grub/kernel.h (grub_module_info): Split into ...
28607 (grub_module_info32): ... this.
28608 (grub_module_info64): ... and this.
28609 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
28610 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
28611 (grub_boot_blocklist): Moved from here ...
28612 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
28613 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
28614 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
28615 * include/grub/types.h (grub_target_to_host16): Removed.
28616 (grub_target_to_host32): Likewise.
28617 (grub_target_to_host64): Likewise.
28618 (grub_host_to_target16): Likewise.
28619 (grub_host_to_target32): Likewise.
28620 (grub_host_to_target64): Likewise.
28621 (grub_host_to_target_addr): Likewise.
28623 Support grub-mkrescue for efi, coreboot and qemu.
28625 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
28626 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
28627 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
28628 * util/grub-mkrawimage.c: Moved from here ...
28629 * util/grub-mkimage.c: ... here. All users updated.
28630 (ALIGN_ADDR): Use image_target.
28631 (TARGET_NO_FIELD): New const.
28632 (image_target_desc): New type.
28633 (image_targets): New array.
28634 (grub_target_to_host64): Use image_target.
28635 (grub_target_to_host32): Likewise.
28636 (grub_target_to_host16): Likewise.
28637 (grub_host_to_target64): Likewise.
28638 (grub_host_to_target32): Likewise.
28639 (grub_host_to_target16): Likewise.
28640 (grub_host_to_target_addr): Likewise.
28641 (generate_image): Handle multiimage.
28642 (main): Require -O parameter. All users updated.
28643 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
28644 util/efi/grub-mkimage.c
28645 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
28646 New option --rom-directory.
28648 * util/i386/efi/grub-mkimage.c: Removed.
28649 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
28650 (grub_target_to_host32): Likewise.
28651 (grub_target_to_host64): Likewise.
28652 (grub_host_to_target16): Likewise.
28653 (grub_host_to_target32): Likewise.
28654 (grub_host_to_target64): Likewise.
28655 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
28656 (grub_target_to_host32): Likewise.
28657 (grub_target_to_host64): Likewise.
28658 (grub_host_to_target16): Likewise.
28659 (grub_host_to_target32): Likewise.
28660 (grub_host_to_target64): Likewise.
28662 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
28664 Source tree is reorganized for emu build.
28666 * include/grub/util/console.h: Move from here...
28667 * include/grub/emu/console.h: ...to here.
28668 * include/grub/util/getroot.h: Move from here...
28669 * include/grub/emu/getroot.h: ...to here.
28670 * include/grub/util/hostdisk.h: Move from here...
28671 * include/grub/emu/hostdisk.h: ...to here.
28672 * util/console.c: Move from here...
28673 * kern/emu/console.c: ...to here.
28674 * util/getroot.c: Move from here...
28675 * kern/emu/getroot.c: ...to here.
28676 * util/grub-emu.c: Move from here...
28677 * kern/emu/main.c: ...to here.
28678 * util/hostdisk.c: Move from here...
28679 * kern/emu/hostdisk.c: ...to here.
28680 * util/hostfs.c: Move from here...
28681 * kern/emu/hostfs.c: ...to here.
28682 * util/mm.c: Move from here...
28683 * kern/emu/mm.c: ...to here.
28684 * util/pci.c: Move from here...
28685 * bus/emu/pci.c: ...to here.
28686 * util/sdl.c: Move from here...
28687 * video/emu/sdl.c: ...to here.
28688 * util/time.c: Move from here...
28689 * kern/emu/time.c: ...to here.
28690 * util/usb.c: Move from here...
28691 * bus/usb/emu/usb.c: ...to here.
28693 * include/grub/emu/misc.h: New header for grub-emu functions.
28694 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
28696 * conf/any-emu.rmk: Rule updates for above renames.
28697 * conf/common.rmk: Likewise.
28698 * conf/i386-pc.rmk: Likewise.
28699 * conf/i386-qemu.rmk: Likewise.
28700 * conf/mips.rmk: Likewise.
28701 * conf/sparc64-ieee1275.rmk: Likewise.
28702 * conf/x86-efi.rmk: Likewise.
28704 * disk/lvm.h: #include updates for above renames.
28705 * util/grub-mkrelpath.c: Likewise.
28706 * util/grub-probe.c: Likewise.
28707 * util/i386/pc/grub-setup.c: Likewise.
28708 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28709 * kern/emu/console.c: Likewise.
28710 * kern/emu/getroot.c: Likewise.
28711 * kern/emu/hostdisk.c: Likewise.
28712 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
28714 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
28715 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
28716 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
28717 * util/misc.c: Remove grub-emu functions.
28719 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
28722 Reported by: Thorsten Grützmacher.
28724 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
28726 (circprog_set_property): Register and unregister timeout hook.
28727 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
28728 (label_destroy): Free template. and unregister hook.
28729 (label_set_state): New function.
28730 (label_set_property): Handle templates and hooks.
28731 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
28733 (progress_bar_set_property): Register and unregister timeout hook.
28734 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
28735 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
28736 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
28737 (update_timeout_visit): Removed.
28738 (update_timeouts): New function.
28739 (redraw_timeouts): Likewise.
28740 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
28741 (grub_gfxmenu_clear_timeout): Likewise.
28742 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
28743 (grub_gfxmenu_timeout_notify): Likewise.
28744 (grub_gfxmenu_timeout_notifications): New external variable.
28745 (grub_gfxmenu_timeout_register): New function.
28746 (grub_gfxmenu_timeout_unregister): Likewise.
28748 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
28750 Transform (broken) vga terminal into (working) vga video driver.
28752 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
28753 video/i386/pc/vga.c.
28754 * include/grub/video.h (grub_video_driver_id):
28755 Add GRUB_VIDEO_DRIVER_VGA.
28756 * term/i386/pc/vga.c: Renamed to ...
28757 * video/i386/pc/vga.c: ...this
28758 (DEBUG_VGA): Removed.
28759 (CHAR_WIDTH): Likewise.
28760 (CHAR_HEIGHT): Likewise.
28761 (TEXT_WIDTH): Likewise.
28762 (TEXT_HEIGHT): Likewise.
28763 (DEFAULT_FG_COLOR): Likewise.
28764 (DEFAULT_BG_COLOR): Likewise.
28765 (colored_char): Likewise.
28768 (cursor_state): Likewise.
28769 (fg_color): Likewise.
28770 (bg_color): Likewise.
28771 (text_buf): Likewise.
28774 (framebuffer): New variable.
28775 (set_read_map): Disabled.
28776 (setup): New variable.
28777 (is_target): Likewise.
28778 (grub_vga_mod_init): Likewise.
28779 (grub_vga_mod_fini): Likewise.
28780 (check_vga_mem): Likewise.
28781 (write_char): Likewise.
28782 (write_cursor): Likewise.
28783 (scroll_up): Likewise.
28784 (grub_vga_putchar): Likewise.
28785 (grub_vga_getcharwidth): Likewise.
28786 (grub_vga_getwh): Likewise.
28787 (grub_vga_getxy): Likewise.
28788 (grub_vga_gotoxy): Likewise.
28789 (grub_vga_cls): Likewise.
28790 (grub_vga_setcolorstate): Likewise.
28791 (grub_vga_setcursor): Likewise.
28792 (grub_video_vga_init): New function.
28793 (grub_video_vga_setup): Likewise.
28794 (grub_video_vga_fini): Likewise.
28795 (update_target): Likewise.
28796 (grub_video_vga_blit_bitmap): Likewise.
28797 (grub_video_vga_blit_render_target): Likewise.
28798 (grub_video_vga_set_active_render_target): Likewise.
28799 (grub_video_vga_get_active_render_target): Likewise.
28800 (grub_video_vga_swap_buffers): Likewise.
28801 (grub_video_vga_set_palette): Likewise.
28802 (grub_video_vga_get_info_and_fini): Likewise.
28803 (grub_vga_term): Removed.
28804 (grub_video_vga_adapter): New variable.
28805 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28806 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28808 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28810 * video/readers/jpeg.c: Indented.
28812 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28814 Various jpeg cleanups.
28816 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28817 (grub_jpeg_decode_quan_table): Use sizeof.
28818 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28820 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
28822 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28823 tables. Ignore non-last ac bit.
28824 (grub_jpeg_decode_quan_table): Likewise.
28826 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28828 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28829 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28830 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28831 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28832 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28833 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28835 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28837 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28840 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28842 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28844 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28846 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28849 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28851 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28854 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28856 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28859 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28861 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28863 2010-05-01 Christian Franke <franke@computer.org>
28865 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28866 Remove broken Cygwin path conversion.
28867 * util/misc.c: [__CYGWIN__] Add include and define.
28868 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28870 (make_system_path_relative_to_its_root): Simplify loop, replace early
28872 [__CYGWIN__] Add conversion to win32 path.
28873 Include "/" case in trailing slash removal.
28875 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28877 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28878 Reported by: Seth Goldberg
28880 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28882 * commands/help.c (grub_cmd_help): Fix a typo.
28883 Reported by: Seth Goldberg
28885 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28887 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
28889 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
28890 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
28891 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
28892 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
28893 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
28894 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
28895 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28896 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28897 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28898 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28899 * normal/context.c (GRUB_MOD_INIT): Likewise.
28900 * normal/main.c (GRUB_MOD_INIT): Likewise.
28901 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28902 * term/serial.c (GRUB_MOD_INIT): Likewise.
28903 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28905 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28907 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
28910 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28912 * commands/iorw.c: New file.
28913 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
28914 (iorw_mod_SOURCES): New variable.
28915 (iorw_mod_CFLAGS): Likewise.
28916 (iorw_mod_LDFLAGS): Likewise.
28918 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28922 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
28923 * normal/main.c (hotkey_aliases): New variable.
28924 (grub_normal_add_menu_entry): Parse "--hotkey".
28925 * normal/menu_text.c (run_menu): Handle hotkeys.
28927 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28929 * kern/i386/coreboot/init.c (grub_machine_init): Call
28930 grub_machine_mmap_init on qemu.
28932 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28934 * boot/i386/qemu/boot.S: Add a missing .code16.
28936 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28938 Use LBIO on coreboot.
28940 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
28941 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
28942 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
28944 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
28945 grub_machine_mmap_init on coreboot.
28946 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
28947 GRUB_LINUXBIOS_MEMBER_LINK.
28948 (grub_machine_mmap_iterate): Fix declaration.
28949 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
28951 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28953 Split coreboot and multiboot ports.
28955 * conf/i386-multiboot.rmk: New file.
28956 * configure.ac: Add multiboot port.
28957 * include/grub/i386/multiboot/boot.h: New file.
28958 * include/grub/i386/multiboot/console.h: Likewise.
28959 * include/grub/i386/multiboot/init.h: Likewise.
28960 * include/grub/i386/multiboot/kernel.h: Likewise.
28961 * include/grub/i386/multiboot/loader.h: Likewise.
28962 * include/grub/i386/multiboot/memory.h: Likewise.
28963 * include/grub/i386/multiboot/serial.h: Likewise.
28964 * include/grub/i386/multiboot/time.h: Likewise.
28965 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
28966 * loader/multiboot.c: Likewise.
28967 * loader/multiboot_mbi2.c: Likewise.
28968 * util/grub-mkrescue.in: Generate multiboot rescue.
28970 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28972 * kern/parser.c (grub_parser_execute): Cope with read-only config.
28974 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28976 Merge handling of input and output terminals. Fix a hang.
28978 * commands/terminal.c (abstract_terminal): New struct.
28979 (handle_command): New function. Based on grub_cmd_terminal_input.
28980 (grub_cmd_terminal_input): Use handle_command.
28981 (grub_cmd_terminal_output): Use handle_command.
28983 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
28985 Fix comment handling.
28987 * tests/grub_script_comments.in: New testcase.
28988 * conf/tests.rmk: Rules for new testcase.
28989 * script/yylex.l: Updated flex rules.
28991 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
28993 * docs/grub.texi (play): Document that zero pitches produce rests.
28994 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
28997 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
28999 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
29002 2010-04-26 Christian Franke <franke@computer.org>
29004 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
29005 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
29006 (grub_get_prefix): Remove function.
29007 * util/grub-emu.c (main): Replace grub_get_prefix () call by
29008 make_system_path_relative_to_its_root ().
29009 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
29011 2010-04-24 Christian Franke <franke@computer.org>
29013 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
29014 (kernel_img_LDFLAGS): Remove -static-libgcc.
29016 2010-04-24 Christian Franke <franke@computer.org>
29018 * configure.ac: Do not CHECK_BSS_START_SYMBOL
29019 and CHECK_END_SYMBOL if grub-emu is built.
29020 Unset TARGET_OBJ2ELF if grub-emu is built
29021 without module support.
29023 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
29027 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
29028 (grub_fstest_SOURCES): Likewise.
29029 (pkglib_MODULES): Add nilfs2.mod.
29030 (nilfs2_mod_SOURCES): New variable.
29031 (nilfs2_mod_CFLAGS): Likewise.
29032 (nilfs2_mod_LDFLAGS): Likewise.
29033 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
29034 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
29035 * fs/nilfs2.c: New file.
29037 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
29039 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
29042 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
29044 Add grub-mkconfig support for NetBSD.
29046 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
29047 * util/grub-mkconfig.in: export new NetBSD specific variables.
29048 * po/POTFILES-shell: added 10_netbsd.in.
29049 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
29051 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
29053 Fix emu build with grub-emu-pci and grub-emu-modules.
29055 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
29057 * include/grub/libpciaccess.h: New file.
29058 * conf/any-emu.rmk: Update kernel headers for emu build.
29060 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
29062 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
29064 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
29066 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
29068 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29070 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
29071 Retrieve chosen/bootpath if bootpath isn't hardcoded.
29072 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
29073 util/ieee1275/ofpath.c.
29074 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
29075 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
29076 * include/grub/sparc64/ieee1275/boot.h
29077 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
29078 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
29079 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
29080 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
29082 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
29083 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
29084 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
29087 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
29089 * util/grub-mkconfig.in: Corrected two == equality tests.
29090 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
29091 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
29092 expect a number appended to it.
29093 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
29094 expects a number appended to it.
29096 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29098 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
29100 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29102 * util/hostdisk.c (make_device_name): Change to new partition naming.
29104 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
29106 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
29108 2010-04-17 Christian Franke <franke@computer.org>
29110 * Makefile.in: Add missing localedir setting.
29112 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
29114 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
29115 mistake in r2156. Noticed by Anthony Fok.
29117 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
29119 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
29121 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
29123 Fix a spurious, uninitialized variable warning.
29125 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
29126 Initialize variable, shdr.
29127 (grub_freebsd_load_elfmodule): Likewise.
29128 (grub_freebsd_load_elf_meta): Likewise.
29130 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
29132 Fix for escaped dollar in double quoted strings.
29134 * script/yylex.l: Updated flex rules.
29135 * conf/tests.rmk: Rule for new testcase.
29136 * tests/grub_script_dollar.in: New testcase.
29138 2010-04-13 Carles Pina i Estany <carles@pina.cat>
29139 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
29141 Enclose all translated strings in grub.cfg in single quotes, and
29142 escape them appropriately (Ubuntu bug #552921).
29144 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
29145 * util/grub.d/10_hurd.in: Use it.
29146 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
29147 * util/grub.d/10_linux.in (linux_entry): Likewise.
29149 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29151 Fix cygwin compilation.
29153 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
29154 * include/grub/misc.h (__register_frame_info)
29155 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
29156 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29157 * kern/misc.c (__register_frame_info)
29158 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
29159 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29161 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29163 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
29165 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29167 Unify libgcc processing.
29169 * Makefile.in (kernel_img_LDFLAGS): New variable.
29170 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
29171 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
29173 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
29174 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
29175 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
29176 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
29177 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
29178 overwriting. Remove -lgcc and -static-libgcc
29179 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
29180 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29181 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29182 (kernel_img_LDFLAGS): Append instead of overwriting.
29183 Remove -lgcc and -static-libgcc
29184 * conf/sparc64-ieee1275.rmk: Likewise.
29185 * include/grub/powerpc/libgcc.h: Move to ...
29186 * include/grub/libgcc.h: .. this.
29187 * include/grub/libgcc.h: Don't export most of the function on x86.
29188 (__bswapsi2): New export.
29189 (__bswapdi2): Likewise.
29190 * include/grub/mips/libgcc.h: Removed.
29191 * include/grub/sparc64/libgcc.h: Likewise.
29193 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29195 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
29196 disk_info_msg (conflicts with gettexting into languages with cases).
29198 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
29200 Add grub-probe support for NetBSD.
29202 * util/getroot.c (find_root_device): Convert block device to
29203 character device on NetBSD.
29204 * util/probe.c (probe): Require character device on NetBSD.
29205 * util/hostdisk.c: NetBSD specific headers.
29206 (configure_device_driver): new function to tune device driver
29207 parameters (currently only for NetBSD floppy driver).
29208 (grub_util_biosdisk_open): NetBSD specific code (get disk size
29209 via disklabel ioctl).
29210 (open_device): call configure_device_driver on NetBSD.
29211 (convert_system_partition_to_system_disk): NetBSD specific code.
29212 (device_is_wholedisk): Likewise.
29213 (grub_util_biosdisk_get_grub_dev): Likewise.
29214 (make_device_name): Fixed a typo in bsd_part_str.
29215 * configure.ac: check for opendisk() and getrawpartition() on
29216 NetBSD and set LIBUTIL.
29217 * Makefile.in: add LIBUTIL to LIBS.
29219 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29223 * util/grub-script-check.c: Better help message.
29225 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29229 * configure.ac: Flex version check.
29230 * conf/common.rmk: Add -Wno-error to sh.mod.
29231 * script/yylex.l: Remove all #pragma.
29233 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29235 * include/grub/util/misc.h (canonicalise_file_name): Add missing
29237 Reported by: Seth Goldberg.
29239 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29241 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
29242 Rename "module" to "module2".
29243 Reported by: Seth Goldberg.
29245 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29247 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
29249 Reported by: Seth Goldberg.
29251 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29253 * lib/posix_wrap/locale.h: Add missing file.
29254 Reported by: Seth Goldberg.
29256 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29258 grub-emu module load support.
29260 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
29261 NO_DYNAMIC_MODULES switched to this.
29262 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
29263 (CFLAGS): Likewise.
29264 * conf/any-emu.rmk: Generate symlist.
29265 (kernel_img_HEADERS): Add util/datetime.h.
29266 (kernel_img_HEADERS) [sdl]: Add sdl.h.
29267 (kernel_img_HEADERS) [libusb]: Add libusb.h.
29268 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
29269 kern/$(target_cpu)/cache.S.
29270 * configure.ac (grub-emu-modules): New option.
29271 * genmk.rb: Handle multiple source lists.
29272 * include/grub/sdl.h: New file.
29273 * include/grub/libusb.h: Likewise.
29274 * util/grub-emu.c (main): Hanle (host) root.
29275 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
29276 GRUB_ERR_UNKNOWN_DEVICE.
29277 * util/misc.c: Move mm functions to ...
29278 * util/mm.c: ... here. All users updated.
29280 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29282 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
29283 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
29285 (maintainer-clean): Remove libgcrypt-grub.
29287 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29289 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
29291 2010-04-09 EFI Coder <eficoder@hotmail.com>
29293 * normal/menu_text.c (print_message): Clean up the message and show
29294 the Fn information when on EFI
29295 * term/efi/console.c (grub_console_checkkey): Add F4 support.
29297 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29299 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
29301 * normal/crypto.c (read_crypto_list): Likewise.
29302 * normal/dyncmd.c (read_command_list): Likewise.
29303 * normal/term.c (read_terminal_list): Likewise.
29304 * normal/main.c (read_lists): Use explicit prefix.
29305 (read_lists_hook): Use read_lists.
29306 (grub_normal_execute): Likewise.
29308 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29310 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
29311 Reported by: Thomas Schmitt.
29312 Add -no-emul-boot to grub-mkisofs parameters.
29314 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29316 * font/font.c: Indented.
29318 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29320 Elif support to GRUB script (by Deepak Vankadaru).
29322 * tests/grub_script_if.in: New testcase.
29323 * conf/tests.rmk: Rule for new testcase.
29324 * script/parser.y: Grammar rules for elif.
29326 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29328 While and until loops support to GRUB script.
29330 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
29331 (grub_script_create_cmdwhile): New function prototype.
29332 (grub_script_execute_cmdwhile): New function prototype.
29333 * script/execute.c (grub_script_execute_cmdwhile): New function.
29334 * script/parser.y (command): New commands.
29335 (whilecmd): New grammar rule.
29336 (untilcmd): New grammar rule.
29337 * script/script.c (grub_script_create_cmdwhile): New function.
29338 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
29341 * tests/grub_script_while1.in: New testcase.
29342 * conf/tests.rmk: Rule for new testcase.
29344 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29346 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
29349 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
29351 GRUB_BACKGROUND support.
29353 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
29354 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
29356 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29358 Load fonts and modules for gfxmenu in grub-mkconfig.
29359 Idea by: Mario Vazquez
29361 * util/grub.d/00_header.in: Load pf2 and image modules.
29363 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29365 grub-mkconfig multiple terminal support.
29367 * util/grub-mkconfig.in: Handle multiple terminals correctly.
29368 * util/grub.d/00_header.in: Likewise.
29370 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29372 * Makefile.in: Specify files explicitly instead of using $< and $@ since
29373 we use cd $(srcdir).
29375 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
29377 * util/grub.d/10_linux.in: Only use the first word of
29378 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
29379 spaces in GRUB_DISTRIBUTOR.
29380 * util/grub.d/10_kfreebsd.in: Likewise.
29381 * util/grub.d/10_hurd.in: Likewise.
29383 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
29385 Fix unit testing framework for Qemu 0.12.
29387 * tests/util/grub-shell.in: Remove -serial stdio option.
29389 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
29391 POSIX header file wrappers.
29393 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
29395 * lib/posix_wrap/ctype.h: Likewise.
29396 * lib/posix_wrap/errno.h: Likewise.
29397 * lib/posix_wrap/langinfo.h: Likewise.
29398 * lib/posix_wrap/limits.h: Likewise.
29399 * lib/posix_wrap/localcharset.h: Likewise.
29400 * lib/posix_wrap/stdint.h: Likewise.
29401 * lib/posix_wrap/stdio.h: Likewise.
29402 * lib/posix_wrap/stdlib.h: Likewise.
29403 * lib/posix_wrap/string.h: Likewise.
29404 * lib/posix_wrap/sys/types.h: Likewise.
29405 * lib/posix_wrap/unistd.h: Likewise.
29406 * lib/posix_wrap/wchar.h: Likewise.
29407 * lib/posix_wrap/wctype.h: Likewise.
29408 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
29409 (grub_script.yy.h): Likewise.
29410 * script/yylex.l: Remove POSIX emulation #defines.
29411 * Makefile.in (POSIX_CFLAGS): New variable.
29412 (GNULIB_UTIL_CFLAGS): Likewise.
29416 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
29417 (regexp_mod_SOURCES): New variable.
29418 (regexp_mod_CFLAGS): Likewise.
29419 (regexp_mod_LDFLAGS): Likewise.
29420 * commands/regexp.c: New file.
29421 * gnulib/regcomp.c: New file. Imported from gnulib.
29422 * gnulib/regex.c: Likewise.
29423 * gnulib/regex_internal.c: Likewise.
29424 * gnulib/regex_internal.h: Likewise.
29425 * gnulib/regexec.c: Likewise.
29426 * gnulib/regex.h: Likewise.
29428 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29430 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
29431 unsupported video mode types.
29433 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29435 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
29437 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29439 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
29440 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
29442 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
29444 Remove unused grub_vga_get_font.
29446 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
29447 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
29449 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29451 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
29452 * include/grub/misc.h: Likewise.
29454 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29456 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
29457 for which failure is fatal.
29459 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29461 * util/grub-install.in: Use mkdir -p to create grub directory.
29462 * util/i386/efi/grub-install.in: Likewise.
29463 * util/ieee1275/grub-install.in: Likewise.
29465 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29467 * Makefile.in (LEX): new variable.
29469 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29471 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
29472 `=' and added double quotes on operands of this equality test.
29474 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29476 * Makefile.in (uninstall): Remove a leftover debug echo.
29477 Reported by: Grégoire Sutre
29479 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29481 MIPS multiboot2 support.
29483 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
29484 (multiboot2_mod_SOURCES): New variable.
29485 (multiboot2_mod_CFLAGS): Likewise.
29486 (multiboot2_mod_LDFLAGS): Likewise.
29487 (multiboot2_mod_ASFLAGS): Likewise.
29488 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
29490 (MULTIBOOT_ENTRY_REGISTER): Likewise.
29491 (MULTIBOOT_MBI_REGISTER): Likewise.
29492 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
29493 (MULTIBOOT_ELF32_MACHINE): Likewise.
29494 (MULTIBOOT_ELF64_MACHINE): Likewise.
29495 * include/grub/mips/multiboot.h: New file.
29496 * include/grub/video.h (grub_video_driver_id): New type
29497 GRUB_VIDEO_DRIVER_SM712.
29498 (grub_video_get_info_and_fini): Export.
29499 (grub_video_get_palette): Likewise.
29500 (grub_video_get_driver_id): Likewise.
29501 * include/multiboot2.h: Resynced with spec.
29502 * loader/i386/multiboot.c: Moved from here ...
29503 * loader/multiboot.c: ... here. All users updated.
29504 (grub_multiboot_boot): Use platform-specific macros.
29505 * loader/i386/multiboot_elfxx.c: Moved from here ...
29506 * loader/multiboot_elfxx.c: ... here. All users updated.
29507 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
29508 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
29509 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
29511 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
29513 Import gnulib argp module.
29515 * gnulib/argp-ba.c: New file.
29516 * gnulib/argp-eexst.c: Likewise.
29517 * gnulib/argp-fmtstream.c: Likewise.
29518 * gnulib/argp-fmtstream.h: Likewise.
29519 * gnulib/argp-fs-xinl.c: Likewise.
29520 * gnulib/argp-help.c: Likewise.
29521 * gnulib/argp-namefrob.h: Likewise.
29522 * gnulib/argp-parse.c: Likewise.
29523 * gnulib/argp-pin.c: Likewise.
29524 * gnulib/argp-pv.c: Likewise.
29525 * gnulib/argp-pvh.c: Likewise.
29526 * gnulib/argp-version-etc.c: Likewise.
29527 * gnulib/argp-version-etc.h: Likewise.
29528 * gnulib/argp-xinl.c: Likewise.
29529 * gnulib/argp.h: Likewise.
29531 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29533 * kern/device.c (grub_device_iterate): Clear errors after failed
29536 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29538 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
29539 returned by firmware.
29541 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
29543 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
29544 compilation on coreboot and qemu
29546 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29548 * include/multiboot2.h: Resync with spec.
29550 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29552 Multiboot2 tag support
29554 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
29555 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
29556 Remove loader/multiboot_loader.c.
29557 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
29558 (grub_multiboot2_real_boot): Likewise.
29559 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
29560 (grub_get_multiboot_mmap_count): New proto.
29561 (grub_fill_multiboot_mmap): Likewise.
29562 (grub_multiboot_set_video_mode): Likewise.
29563 (grub_multiboot_set_console): Likewise.
29564 (grub_multiboot_load): Likewise.
29565 (grub_multiboot_load_elf): Likewise.
29566 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
29567 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
29568 * include/multiboot.h: Resynced with specification.
29569 * include/multiboot2.h: Resynced with specification.
29570 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
29571 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
29572 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
29573 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
29575 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
29576 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
29577 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
29579 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
29581 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
29582 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
29584 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
29585 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
29586 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
29588 * loader/i386/multiboot_mbi2.c: New file.
29590 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29592 Resync with gnulib.
29594 * Makefile.in (GNULIB_CFLAGS): New variable.
29595 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
29596 (grub_script_check_CFLAGS): New variable.
29597 * gnulib/alloca.h: Resync with gnulib.
29598 * gnulib/error.c: Likewise.
29599 * gnulib/error.h: Likewise.
29600 * gnulib/fnmatch.c: Likewise.
29601 * gnulib/fnmatch_loop.c: Likewise.
29602 * gnulib/getdelim.c: Likewise.
29603 * gnulib/getline.c: Likewise.
29604 * gnulib/getopt.c: Likewise.
29605 * gnulib/getopt1.c: Likewise.
29606 * gnulib/getopt_int.h: Likewise.
29607 * gnulib/gettext.h: Likewise.
29608 * gnulib/progname.c: Likewise.
29609 * gnulib/progname.h: Likewise.
29611 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
29613 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
29614 which is the case with --disabled-nls.
29616 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
29617 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
29618 * util/misc.c: Likewise.
29619 * util/mkisofs/mkisofs.c: Likewise.
29620 * util/mkisofs/mkisofs.h: Likewise.
29622 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29624 Simplify Apple CC support.
29626 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
29627 Add 0 byte at the end not to have a symbol with empty target.
29628 * mmap/i386/pc/mmap_helper.S: Likewise.
29629 * genmk.rb: Ignore errors 2030 and 2050.
29630 * kern/i386/pc/startup.S: Use LOCAL when possible.
29632 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
29634 Testcase and the fix for final semicolon on cmdline.
29636 * tests/grub_script_final_semicolon.in: New testcase.
29637 * conf/tests.rmk: Rules for the new testcase.
29638 * script/parser.y: Grammar fix.
29640 2010-03-26 BVK Chaitanya <bvk@localhost>
29642 Blank lines testcase for GRUB script.
29644 * tests/grub_script_blanklines.in: New testcase.
29645 * conf/tests.rmk: Rules for the new testcase.
29647 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29649 Don't use __FILE__.
29651 * genmk.rb: Add -DGRUB_FILE to all C targets.
29652 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
29653 * include/grub/list.h: Likewise.
29654 * include/grub/misc.h: Likewise.
29655 * include/grub/mm.h: Likewise.
29656 * include/grub/test.h: Likewise.
29657 * kern/mm.c: Likewise.
29658 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29660 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29662 Sunpc partitions support.
29664 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
29665 (grub_fstest_SOURCES): Likewise.
29666 (pkglib_MODULES): Add part_sunpc.mod.
29667 (part_sunpc_mod_SOURCES): New variable.
29668 (part_sunpc_mod_CFLAGS): Likewise.
29669 (part_sunpc_mod_LDFLAGS): Likewise.
29670 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
29671 * partmap/sunpc.c: New file.
29673 2010-03-26 BVK Chaitanya <bvk@localhost>
29675 For loop support to GRUB script.
29677 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
29678 (grub_script_create_cmdfor): New function prototype.
29679 (grub_script_execute_cmdfor): New function prototype.
29680 * script/execute.c (grub_script_execute_cmdfor): New function.
29681 * script/parser.y (command): New for command.
29682 (forcmd): New grammar rule.
29683 * script/script.c (grub_script_create_cmdfor): New function.
29684 * util/grub-script-check.c (grub_script_execute_cmdfor): New
29686 * tests/grub_script_for1.in: New testcase.
29687 * conf/tests.rmk: Rules for new testcase.
29689 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29693 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
29694 'partition' is NULL, grub_partition_get_start already does that.
29695 * commands/loadenv.c (check_blocklists): Likewise.
29696 (write_blocklists): Likewise.
29697 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
29698 (grub_fstest_SOURCES): Likewise.
29699 (pkglib_MODULES): Add part_bsd.mod.
29700 (part_bsd_mod_SOURCES): New variable.
29701 (part_bsd_mod_CFLAGS): Likewise.
29702 (part_bsd_mod_LDFLAGS): Likewise.
29703 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
29704 (grub_emu_SOURCES): Likewise.
29705 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29706 * include/grub/bsdlabel.h: New file.
29707 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
29709 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
29710 (grub_partition_map_list): New variable.
29711 (grub_partition_map_register): Inline.
29712 (grub_partition_map_unregister): Likewise.
29713 (FOR_PARTITION_MAPS): New macro.
29714 (grub_partition_map_iterate): Removed.
29715 (grub_partition_get_start): Handle nested partitions.
29716 * include/grub/msdos_partition.h: Remove bsd-related entries.
29717 (grub_pc_partition): Remove.
29718 * kern/disk.c (grub_disk_close): Free partition data.
29719 (grub_disk_adjust_range): Handle nested partitions.
29720 * kern/partition.c (grub_partition_map_probe): New function.
29721 (grub_partition_probe): Parse name to number, handle subpartitions.
29722 (get_partmap): New function.
29723 (grub_partition_iterate): Handle subpartitions.
29724 (grub_partition_get_name): Likewise.
29725 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
29726 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
29727 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
29728 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
29730 (acorn_partition_map_probe): Remove.
29731 (acorn_partition_map_get_name): Likewise.
29732 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
29734 Set 'index' to 0 since there can be only one partition entry per sector.
29735 (amiga_partition_map_probe): Remove.
29736 (amiga_partition_map_get_name): Likewise.
29737 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
29739 Set 'offset' and 'index' to real positions of partitions.
29740 (apple_partition_map_probe): Remove.
29741 (apple_partition_map_get_name): Likewise.
29742 * partmap/bsdlabel.c: New file.
29743 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
29745 Allocate 'data' so it can be correctly freed.
29746 Set 'index' to offset inside sector.
29747 (gpt_partition_map_probe): Remove.
29748 (gpt_partition_map_get_name): Likewise.
29749 * partmap/msdos.c (grub_partition_parse): Remove.
29750 (pc_partition_map_iterate): Don't force raw access.
29752 Make 'ext_offset' a local variable.
29753 (pc_partition_map_probe): Remove.
29754 (pc_partition_map_get_name): Remove.
29755 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
29757 (sun_partition_map_probe): Remove.
29758 (sun_partition_map_get_name): Likewise.
29759 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
29760 (grub_pcpart_type): Likewise.
29761 * util/hostdisk.c (open_device): Handle new numbering scheme.
29762 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
29763 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
29764 * util/grub-probe.c (probe_partmap): Handle nested paritions.
29765 * util/grub-install.in: Insert all subpartition modules.
29766 * util/ieee1275/grub-install.in: Likewise.
29768 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
29770 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
29773 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
29775 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
29777 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
29779 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
29780 match where 'make install' puts them.
29781 * util/i386/efi/grub-install.in: Likewise.
29783 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
29785 * .bzrignore: Add gentrigtables, grub-script-check,
29786 grub_script_check_init.c, grub_script_check_init.h, and
29789 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
29791 * kern/parser.c: Indented.
29793 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29795 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
29797 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29799 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
29800 alpha_mask_size == 0 case.
29802 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
29804 GRUB shell lexer and parser improvements.
29806 * conf/any-emu.rmk: Build rule updates.
29807 * conf/common.rmk: Likewise.
29808 * conf/i386-coreboot.rmk: Likewise.
29809 * conf/i386-efi.rmk: Likewise.
29810 * conf/i386-ieee1275.rmk: Likewise.
29811 * conf/i386-pc.rmk: Likewise.
29812 * conf/powerpc-ieee1275.rmk: Likewise.
29813 * conf/x86_64-efi.rmk: Likewise.
29815 * configure.ac: Configure check for flex.
29817 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29819 (grub_lexer_param): Struct member updates.
29820 (grub_parser_param): Likewise.
29821 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29822 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29823 (grub_script_lexer_init): Prototype update.
29824 (grub_script_lexer_record_start): Likewise.
29825 (grub_script_lexer_record_stop): Likewise.
29826 (grub_script_lexer_yywrap): New function prototype.
29827 (grub_script_lexer_fini): Likewise.
29828 (grub_script_execute_argument_to_string): Removed by...
29829 (grub_script_execute_argument_to_argv): ...better version.
29831 * script/execute.c (ROUND_UPTO): New macro.
29832 (grub_script_execute_cmdline): Out of memory fixes.
29833 (grub_script_execute_menuentry): Likewise.
29834 (grub_script_execute_argument_to_string): Removed. Update all
29836 (grub_script_execute_argument_to_argv): ...better version.
29837 * script/function.c (grub_script_function_create): Use
29838 grub_script_execute_argument_to_argv instead of
29839 grub_script_execute_argument_to_string.
29841 * script/lexer.c (check_varstate): Removed.
29842 (check_textstate): Removed.
29843 (grub_script_lexer_record_start): Likewise.
29844 (grub_script_lexer_record_stop): Likewise.
29845 (recordchar): Replaced with...
29846 (grub_script_lexer_record): ...new function.
29847 (nextchar): Removed.
29848 (grub_script_lexer_init): Rewritten.
29849 (grub_script_yylex): Rewritten.
29850 (append_newline): New function.
29851 (grub_script_lexer_yywrap): New function.
29852 (grub_script_lexer_fini): New function.
29853 (grub_script_yyerror): Sets error flag.
29855 * script/yylex.l: New file.
29856 (grub_lexer_yyfree): Wrapper for flex yyffre.
29857 (grub_lexer_yyalloc): Likewise.
29858 (grub_lexer_yyrealloc): Likewise.
29859 * script/parser.y: Refactored.
29861 * script/script.c (grub_script_arg_add): Out of memory fixes.
29862 (grub_script_add_arglist): Likewise.
29863 (grub_script_create_cmdline): Likewise.
29864 (grub_script_create_cmdmenu): Likewise.
29865 (grub_script_add_cmd): Likewise.
29866 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29867 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29870 * tests/grub_script_echo1.in: New testcase.
29871 * tests/grub_script_vars1.in: New testcase.
29872 * tests/grub_script_echo_keywords.in: New testcase.
29874 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29876 Remove some redundancy in build system.
29878 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
29879 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
29880 (TARGET_LDFLAGS): Add -nostdlib.
29881 (TARGET_IMG_LDFLAGS): Likewise.
29882 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
29883 anything since mmap isn't available.
29884 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
29886 (pkglib_MODULES): Remove reboot.mod.
29887 (reboot_mod_SOURCES): Removed.
29888 (reboot_mod_CFLAGS): Likewise.
29889 (reboot_mod_LDFLAGS): Likewise.
29890 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
29891 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
29892 (DEFSYMFILES): Add kernel_syms.lst.
29893 (kernel_img_HEADERS): Add common headers.
29894 (symlist.c): New target.
29895 (kernel_syms.lst): Likewise.
29896 (pkglib_MODULES): Add memdisk.mod.
29897 (memdisk_mod_SOURCES): New variable.
29898 (memdisk_mod_CFLAGS): Likewise.
29899 (memdisk_mod_LDFLAGS): Likewise.
29900 (pkglib_MODULES): Add reboot.mod.
29901 (reboot_mod_SOURCES): New variable.
29902 (reboot_mod_CFLAGS): Likewise.
29903 (reboot_mod_LDFLAGS): Likewise.
29904 (pkglib_MODULES): Add date.mod.
29905 (date_mod_SOURCES): New variable.
29906 (date_mod_CFLAGS): Likewise.
29907 (date_mod_LDFLAGS): Likewise.
29908 (pkglib_MODULES): Add datehook.mod.
29909 (datehook_mod_SOURCES): New variable.
29910 (datehook_mod_CFLAGS): Likewise.
29911 (datehook_mod_LDFLAGS): Likewise.
29912 (pkglib_MODULES): Add lsmmap.mod.
29913 (lsmmap_mod_SOURCES): New variable.
29914 (lsmmap_mod_CFLAGS): Likewise.
29915 (lsmmap_mod_LDFLAGS): Likewise.
29916 (pkglib_MODULES): Add boot.mod.
29917 (boot_mod_SOURCES): New variable.
29918 (boot_mod_CFLAGS): Likewise.
29919 (boot_mod_LDFLAGS): Likewise.
29920 * conf/i386-coreboot.rmk: Removed redundant parts.
29921 * conf/i386-ieee1275.rmk: Likewise.
29922 * conf/i386-pc.rmk: Likewise.
29923 * conf/mips-yeeloong.rmk: Likewise.
29924 * conf/mips.rmk: Likewise.
29925 * conf/powerpc-ieee1275.rmk: Likewise.
29926 * conf/sparc64-ieee1275.rmk: Likewise.
29927 * conf/x86_64-efi.rmk: Likewise.
29928 * conf/i386-coreboot.rmk: Moved qemu parts ..
29929 * conf/i386-qemu.rmk: ... here
29930 * conf/i386-efi.rmk: Moved common parts to...
29931 * conf/x86-efi.rmk: ... here.
29932 * conf/i386.rmk: Added modules common to all x86 variants.
29933 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
29934 * disk/memdisk.c: Remove grub/machine/kernel.h.
29935 * gensymlist.sh.in: Include symbol.h.
29936 * hook/datehook.c: Correct module name.
29937 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
29938 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
29939 * include/grub/i386/efi/serial.h: New file.
29940 * include/grub/x86_64/efi/serial.h: Likewise.
29941 * util/time.c: Likewise.
29942 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
29944 2010-03-14 Colin King <colin.king@ubuntu.com>
29945 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29947 Shrink the pre-partition-table part of boot.img by eight bytes.
29949 * boot/i386/pc/boot.S (ERR): New macro.
29950 (chs_mode): Use ERR.
29951 (geometry_error): Likewise.
29952 (hd_probe_error): Remove. This is only used once, so we wrwite
29954 (read_error): Instead of printing read_error_string, just set up
29955 %si and fall through to ...
29956 (error_message): ... this new function, also used by ERR.
29958 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29960 Speed up consecutive hostdisk operations on the same device.
29962 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
29963 (grub_util_biosdisk_open): Initialise disk->data.
29964 (struct linux_partition_cache): New structure.
29965 (linux_find_partition): Cache partition start positions; these are
29966 expensive to compute on every read and write.
29967 (open_device): Cache open file descriptor in disk->data, so that we
29968 don't have to reopen it and flush the buffer cache for consecutive
29969 operations on the same device.
29970 (grub_util_biosdisk_close): New function.
29971 (grub_util_biosdisk_dev): Set `close' member.
29973 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
29974 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
29975 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
29976 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
29977 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
29979 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29981 Compile parts of grub-emu as modules.
29983 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
29984 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
29985 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
29986 (all-local): Add $(GRUB_EMU).
29987 (install-local): Install $(GRUB_EMU).
29988 (uninstall): Uninstall $(GRUB_EMU).
29989 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
29990 * kern/dl.c: Likewise.
29991 * commands/sleep.c: Not include machine/time.h.
29992 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
29993 (COMMON_CFLAGS): Likewise.
29994 (sbin_UTILITIES): Remove grub-emu.
29995 (grub_emu_SOURCES): Removed.
29996 (kernel_img_RELOCATABLE): New variable.
29997 (pkglib_PROGRAMS): Add kernel.img.
29998 (kernel_img_SOURCES): New variable
29999 (kernel_img_CFLAGS): Likewise.
30000 (kernel_img_LDFLAGS): Likewise.
30001 (TARGET_NO_STRIP): Likewise.
30002 (TARGET_NO_DYNAMIC_MODULES): Likewise.
30003 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
30004 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
30005 (grub-emu): New target.
30006 (GRUB_EMU): New variable.
30007 * configure.ac: Whitelist -emu as possible x86_64 architecture.
30008 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
30009 * loader/xnu.c: Likewise.
30010 * include/grub/pci.h: Likewise.
30011 * genemuinit.sh: New file.
30012 * genemuinitheader.sh: Likewise.
30013 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
30014 Support TARGET_NO_DYNAMIC_MODULES.
30015 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
30016 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
30017 * disk/loopback.c: Likewise.
30018 * font/font_cmd.c: Likewise.
30019 * partmap/acorn.c: Likewise.
30020 * partmap/amiga.c: Likewise.
30021 * partmap/apple.c: Likewise.
30022 * partmap/gpt.c: Likewise.
30023 * partmap/msdos.c: Likewise.
30024 * partmap/sun.c: Likewise.
30025 * parttool/msdospart.c: Likewise.
30026 * term/gfxterm.c: Likewise.
30027 * video/bitmap.c: Likewise.
30028 * video/readers/jpeg.c: Likewise.
30029 * video/readers/png.c: Likewise.
30030 * video/readers/tga.c: Likewise.
30031 * video/video.c: Likewise.
30032 * util/grub-emu.c (read_command_list): Removed.
30033 (main): Don't call util_init_nls.
30034 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
30035 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
30037 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30039 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
30040 date.mod, datehook.mod.
30041 (datetime_mod_SOURCES): New variable.
30042 (datetime_mod_CFLAGS): Likewise.
30043 (datetime_mod_LDFLAGS): Likewise.
30044 (date_mod_SOURCES): Likewise.
30045 (date_mod_CFLAGS): Likewise.
30046 (date_mod_LDFLAGS): Likewise.
30047 (datehook_mod_SOURCES): Likewise.
30048 (datehook_mod_CFLAGS): Likewise.
30049 (datehook_mod_LDFLAGS): Likewise.
30050 * conf/sparc64-ieee1275.rmk: Likewise.
30051 * lib/ieee1275/datetime.c: New file.
30053 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30055 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
30056 (ieee1275_fb_mod_SOURCES): New variable.
30057 (ieee1275_fb_mod_CFLAGS): Likewise.
30058 (ieee1275_fb_mod_LDFLAGS): Likewise.
30059 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
30061 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
30062 (HEAP_MAX_ADDR): Likewise.
30063 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
30065 Correct stop condition.
30066 (grub_ieee1275_devices_iterate): New function.
30067 * video/ieee1275.c: New file.
30069 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30071 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
30073 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
30075 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
30076 SCRATCH_PAD_DISKBOOT as scratch.
30077 (bootit): Pass Openfirmware pointer in %o4.
30078 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
30080 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
30081 with util/grub-mkrawimage.c.
30082 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
30083 * include/grub/aout.h (AOUT_MID_SUN): New definition.
30084 (grub_aout_get_type) [GRUB_UTIL]: Removed.
30085 (grub_aout_load) [GRUB_UTIL]: Likewise.
30086 * include/grub/kernel.h (grub_modules_get_end): New proto.
30087 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
30088 (SCRATCH_PAD_BOOT): New definition.
30089 (SCRATCH_PAD_DISKBOOT): Likewise.
30090 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
30091 * include/grub/sparc64/ieee1275/ieee1275.h
30092 (grub_ieee1275_original_stack): New variable
30093 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
30095 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
30096 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
30097 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
30098 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
30099 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
30100 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
30101 (grub_platform_image_format_t): New type.
30102 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
30103 * kern/main.c (grub_modules_get_end)
30104 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
30105 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
30106 (codestart): Switch stacks.
30107 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
30109 (grub_heap_init): Use grub_modules_get_end.
30110 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
30112 * util/grub-mkrawimage.c (generate_image): Support sparc64.
30114 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
30116 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
30118 * util/grub-mkrescue.in: Base ISO UUID on UTC.
30120 2010-03-08 Matt Kraai <kraai@ftbfs.org>
30122 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
30125 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
30127 * genmoddep.awk: Output all missing symbols and not only first.
30129 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30131 * NEWS: Put the date of 1.98 release.
30133 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30135 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
30138 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30140 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
30141 completition in the middle of string.
30143 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30145 * util/grub-mkrescue.in: Use mktemp with explicit template.
30147 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30149 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
30151 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30153 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
30156 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30158 Fix FreeBSD compilation.
30160 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
30161 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
30163 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30165 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
30167 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30169 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
30171 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30173 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
30175 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
30177 Support relative image path in theme file.
30179 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
30180 (image_set_property): Handle theme_dir and relative path.
30182 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30184 * configure.ac: Alias amd64 to x86_64.
30186 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30188 * NEWS: mention multiboot on EFI.
30190 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30192 * kern/main.c (grub_load_modules): Handle errors from init functions of
30195 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30197 * normal/autofs.c (autoload_fs_module): Handle errors.
30199 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30201 Disable linux.mod on qemu-mips since it's not functional and leads
30202 to compilation failure.
30204 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
30205 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
30206 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
30207 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
30208 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
30209 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
30210 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
30211 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
30212 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
30213 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
30214 Reported by: BVK Chaitanya
30216 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
30218 * INSTALL: Add gettext as a dependency and add qemu to a new section
30219 "Prerequisites for make-check".
30221 2010-03-04 Christian Franke <franke@computer.org>
30223 * util/grub-pe2elf.c: Add missing include "progname.h".
30225 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30227 * normal/crypto.c (read_crypto_list): Fix a typo.
30228 Reported by: Seth Goldberg.
30230 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30232 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
30233 Reported by: Seth Goldberg.
30235 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30237 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
30240 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30242 * genmk.rb: Remove terminal*.lst in make clean.
30243 Reported by: Seth Goldberg.
30245 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30247 * util/i386/efi/grub-install.in: Copy gettext files.
30249 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30251 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
30253 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30255 Wait for user entry basing on presence of output rather than on errors.
30257 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
30258 (grub_install_newline_hook): Likewise.
30259 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
30260 * normal/menu.c (show_menu): Check line_counter to determine presence
30262 * normal/term.c (grub_normal_line_counter): New variable.
30263 (grub_normal_get_line_counter): New function.
30264 (grub_install_newline_hook): Likewise.
30266 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30268 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
30270 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30272 * configure.ac: Update version to 1.98.
30274 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
30276 * util/grub.d/10_linux.in (linux_entry): Don't default to
30277 gfxpayload=keep if Linux doesn't support video handover.
30279 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
30281 Don't compile video modules on yeeloong since video subsystem is part
30284 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
30285 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
30286 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
30287 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
30288 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
30289 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
30290 * include/grub/bitmap_scale.h: Likewise.
30291 * include/grub/bufio.h: Likewise.
30292 * include/grub/font.h: Likewise.
30293 * include/grub/gfxterm.h: Likewise.
30294 * include/grub/video.h: Likewise.
30295 * include/grub/vbe.h: Don't include video_fb.h.
30296 * video/i386/pc/vbe.c: Include video_fb.h.
30297 * commands/i386/pc/vbetest.c: Include video.h.
30299 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
30301 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
30302 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
30303 default entry if GRUB_SAVEDEFAULT=true. This allows using
30304 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
30305 saving a new default on every boot.
30307 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30309 * normal/crypto.c (read_crypto_list): Fix a memory leak.
30310 * normal/term.c (read_terminal_list): Likewise.
30311 * normal/main.c (grub_normal_init_page): Likewise.
30312 (grub_normal_read_line_real): Likewise.
30314 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30316 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
30318 Reported by: Seth Goldberg.
30320 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
30322 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
30323 duplicate declaration of `start'.
30325 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30327 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
30329 Reported by: Georgy Buranov
30331 2010-02-20 Carles Pina i Estany <carles@pina.cat>
30333 * util/grub-mkrawimage.c (usage): Change string formatting to
30336 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
30338 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
30341 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30343 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
30344 Reported by: Michael Suchanek.
30346 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
30348 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
30349 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
30351 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
30353 Remove any reference to non-free fonts.
30355 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
30356 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
30357 uses non-free components.
30358 * font/font.c (grub_font_get_name): Remove example name.
30359 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
30360 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
30361 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
30362 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
30364 2010-02-16 Georgy Buranov <gburanov@gmail.com>
30366 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
30368 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30370 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
30372 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
30374 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
30376 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30378 * gensymlist.sh.in: Use TARGET_CC instead of CC.
30380 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30382 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
30383 * docs/grub.texi (Command-line and menu entry commands): Document play
30386 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30388 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
30389 parse arguments as inline tempo and notes. Move code for playing notes
30391 (play): ... new function.
30393 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30395 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
30396 grub_uint16_t instead of short.
30397 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
30398 disk from little endian to cpu endianness.
30400 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30402 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
30403 GRUB_TICKS_PER_SECOND instead of 120.
30405 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30407 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
30408 escape sequence after \e.
30410 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30412 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
30413 non-ASCII characters.
30415 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30417 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
30418 set root in single quotes to prevent \, from being unescaped.
30420 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30422 Prevent unknown commands from stopping menuentry execution.
30424 * script/execute.c (grub_script_execute_cmdline): Print error after
30427 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30429 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
30430 Reported by: Pavel Pisa.
30432 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30434 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
30436 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30438 Merge grub_ieee1275_map_physical into grub_map and rename to
30441 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
30442 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
30444 * kern/ieee1275/openfw.c (grub_map): Rename to ...
30445 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
30447 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
30449 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30451 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
30452 opening and not after.
30454 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30456 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
30459 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30461 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
30462 (alloc_phys): Use ALIGN_UP instead of align_addr.
30464 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30466 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
30468 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30470 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
30472 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30474 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
30477 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30479 Fix over-4GiB seek on sparc64.
30481 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
30482 Replace pos_i and pos_lo with pos. All users updated.
30483 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30485 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30487 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
30490 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30492 * util/grub-mkrawimage.c (main): Call set_program_name.
30494 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30496 Properly align 64-bit targets.
30498 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
30499 (generate_image): Use ALIGN_ADDR.
30501 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30503 Properly create cross-endian images.
30505 * include/grub/types.h (grub_host_to_target_addr): New macro
30506 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
30508 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30510 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
30512 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30514 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
30516 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
30517 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
30518 (grub_linux_boot): Divide by 64K when on VESA.
30520 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30522 Support GRUB_GFXPAYLOAD_LINUX.
30524 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
30525 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
30527 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30529 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
30530 to show messages instead of discarding them.
30531 Process errors after executing command and not before. Keep old method
30534 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
30536 * configure.ac: Check for ft2build.h.
30538 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30540 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
30542 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30544 * genkernsyms.sh.in: Use TARGET_CC.
30546 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
30550 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30552 * include/grub/multiboot2.h: Remove leftover file.
30553 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
30554 * include/grub/partition.h [GRUB_UTIL]: Likewise.
30556 2010-02-07 Yves Blusseau <blusseau@zetam.org>
30558 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
30560 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30562 Fix warnings in grub-emu when compiling with maximum warning options.
30564 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
30565 (grub_arch_modules_addr): Return 0 and not NULL.
30566 * util/misc.c (ENABLE_RELOCATABLE): New definition.
30567 (xstrdup): Use newstr instead of dup.
30568 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
30569 of disk to dsk to avoid shadowing.
30570 (find_free_slot): Fix prototype.
30571 * util/getroot.c (grub_util_is_dmraid): Make static.
30572 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
30573 Add missing prototype.
30574 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
30576 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30578 * loader/i386/linux.c (grub_linux_setup_video): Handle error
30581 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30583 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
30586 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30588 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
30589 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
30590 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
30591 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
30592 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
30593 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
30595 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30597 * include/grub/err.h (grub_err_printf): Don't export.
30599 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30601 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
30603 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30605 * include/grub/i18n.h (grub_gettext_dummy): Removed.
30606 * kern/misc.c (grub_gettext_dummy): Make static.
30608 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30610 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
30612 * kern/term.c (grub_putchar): Likewise.
30614 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30616 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
30617 buggy hook call and memory leak.
30619 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30621 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
30623 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30625 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
30627 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30629 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
30631 Return grub_errno on allocation error.
30633 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30635 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
30637 2010-02-06 Yves Blusseau <blusseau@zetam.org>
30639 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
30640 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
30642 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30644 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
30646 (grub_pxefs_open): Likewise.
30648 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30650 * util/grub.d/10_hurd.in: Add --class information to menuentries.
30651 * util/grub.d/10_kfreebsd.in: Likewise.
30652 * util/grub.d/10_linux.in: Likewise.
30654 2010-02-06 Colin D Bennett <colin@gibibit.com>
30656 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
30657 (gfxmenu_mod_SOURCES): New variable.
30658 (gfxmenu_mod_CFLAGS): Likewise.
30659 (gfxmenu_mod_LDFLAGS): Likewise.
30660 * include/grub/term.h (grub_term_set_current_output): Declare
30662 * docs/gfxmenu-theme-example.txt: New file.
30663 * gfxmenu/gfxmenu.c: Likewise.
30664 * gfxmenu/gui_box.c: Likewise.
30665 * gfxmenu/gui_canvas.c: Likewise.
30666 * gfxmenu/gui_circular_progress.c: Likewise.
30667 * gfxmenu/gui_image.c: Likewise.
30668 * gfxmenu/gui_label.c: Likewise.
30669 * gfxmenu/gui_list.c: Likewise.
30670 * gfxmenu/gui_progress_bar.c: Likewise.
30671 * gfxmenu/gui_string_util.c: Likewise.
30672 * gfxmenu/gui_util.c: Likewise.
30673 * gfxmenu/icon_manager.c: Likewise.
30674 * gfxmenu/model.c: Likewise.
30675 * gfxmenu/named_colors.c: Likewise.
30676 * gfxmenu/theme_loader.c: Likewise.
30677 * gfxmenu/view.c: Likewise.
30678 * gfxmenu/widget-box.c: Likewise.
30679 * include/grub/gfxmenu_model.h: Likewise.
30680 * include/grub/gfxmenu_view.h: Likewise.
30681 * include/grub/gfxwidgets.h: Likewise.
30682 * include/grub/gui.h: Likewise.
30683 * include/grub/gui_string_util.h: Likewise.
30684 * include/grub/icon_manager.h: Likewise.
30686 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30688 Agglomerate scrolling in gfxterm.
30690 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
30691 (grub_virtual_screen_setup): Initialise 'total_screen'.
30692 (write_char): Split to ...
30693 (paint_char): ... this ...
30694 (write_char): ... and this.
30695 (paint_char): Handle delayed scrolling.
30696 (draw_cursor): Likewise.
30697 (scroll_up): Split to ...
30698 (real_scroll): ... this ...
30699 (scroll_up): ... and this.
30700 (real_scroll): Handle multi-line scroll and draw below-the-bottom
30702 (grub_gfxterm_refresh): Call real_scroll.
30704 2010-02-06 Colin D Bennett <colin@gibibit.com>
30706 * include/grub/misc.h (grub_iscntrl): New inline function.
30707 (grub_isalnum): Likewise.
30708 (grub_strtol): Likewise.
30710 2010-02-06 Colin D Bennett <colin@gibibit.com>
30712 * normal/menu_text.c (get_entry_number): Move from here ...
30713 * normal/menu.c (get_entry_number): ... moved here.
30714 * include/grub/menu.h (grub_menu_get_default_entry_index):
30716 * normal/menu.c (grub_menu_get_default_entry_index): New function.
30717 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
30718 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
30719 (grub_menu_viewer_should_return): Likewise.
30720 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
30721 * normal/menu_text.c (run_menu): Enable menu switching.
30722 * normal/menu_viewer.c (should_return): New variable.
30723 (menu_viewer_changed): Likewise.
30724 (grub_menu_viewer_show_menu): Handle menu viewer changes.
30725 (grub_menu_viewer_should_return): New function.
30726 (menuviewer_write_hook): Likewise.
30727 (grub_menu_viewer_init): Likewise.
30729 2010-02-06 Colin D Bennet <colin@gibibit.com>
30730 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30732 Support for gfxterm in a window.
30734 * include/grub/gfxterm.h: New file.
30735 * include/grub/video.h (struct grub_video_rect): New declaration.
30736 (grub_video_rect_t): Likewise.
30737 * term/gfxterm.c (struct grub_gfxterm_window): New type.
30738 (refcount): New variable.
30739 (render_target): Likewise.
30740 (window): Likewise.
30741 (repaint_callback): Likewise.
30742 (grub_virtual_screen_setup): Use 'render_target'.
30743 (init_window): New function.
30744 (grub_gfxterm_init_window): Likewise.
30745 (grub_gfxterm_init): Check reference counter.
30747 (destroy_window): New function.
30748 (grub_gfxterm_destroy_window): Likewise.
30749 (grub_gfxterm_fini): Check reference counter.
30750 Use destroy_window.
30751 (redraw_screen_rect): Restore viewport.
30752 Use 'render_target' and 'window'.
30753 Call 'repaint_callback'.
30754 (write_char): Use 'render_target'.
30755 (draw_cursor): Likewise.
30756 (scroll_up): Restore viewport.
30757 Use 'render_target' and 'window'.
30758 Call 'repaint_callback'.
30759 (grub_gfxterm_cls): Likewise.
30760 (grub_gfxterm_refresh): Use 'window'.
30761 (grub_gfxterm_set_repaint_callback): New function.
30762 (grub_gfxterm_background_image_cmd): Use 'window'.
30763 (grub_gfxterm_get_term): New function.
30764 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
30766 2010-02-06 Colin D Bennett <colin@gibibit.com>
30768 Bitmap scaling support.
30770 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
30771 (bitmap_scale_mod_SOURCES): New variable.
30772 (bitmap_scale_mod_CFLAGS): Likewise.
30773 (bitmap_scale_mod_LDFLAGS): Likewise.
30774 * include/grub/bitmap_scale.h: New file.
30775 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
30776 (background_image_cmd_options): New variable.
30777 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
30778 (cmd): Rename and change type to ...
30779 (background_image_cmd_handle): ... this. All users updated.
30780 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
30781 * video/bitmap_scale.c: New file.
30783 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30787 * Makefile.in (LIBSDL): New variable.
30788 (enable_grub_emu_sdl): Likewise.
30789 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
30790 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
30791 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
30792 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
30793 * util/sdl.c: New file.
30795 2010-02-06 Colin D Bennett <colin@gibibit.com>
30796 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30798 Double buffering support.
30800 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
30801 * include/grub/video.h: Update comment.
30802 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
30804 (grub_video_fb_doublebuf_blit_init): New prototype.
30805 * term/gfxterm.c (scroll_up): Support double buffering.
30806 (grub_gfxterm_refresh): Likewise.
30807 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30808 (grub_video_fb_doublebuf_blit_init): Likewise.
30809 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30810 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30811 'displayed_page', 'render_page' and 'update_screen'.
30812 (grub_video_vbe_fini): Free offscreen buffer.
30813 (doublebuf_pageflipping_commit): New function.
30814 (doublebuf_pageflipping_update_screen): Likewise.
30815 (doublebuf_pageflipping_init): Likewise.
30816 (double_buffering_init): Likewise.
30817 (grub_video_vbe_setup): Enable doublebuffering.
30818 (grub_video_vbe_swap_buffers): Implement.
30819 (grub_video_vbe_set_active_render_target): Handle double buffering.
30820 (grub_video_vbe_get_active_render_target): Likewise.
30821 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30822 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30823 (grub_video_vbe_enable_double_buffering): Likewise.
30824 (grub_video_vbe_swap_buffers): Use update_screen.
30825 (grub_video_set_mode): Use double buffering.
30827 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30829 * maintainance/gentrigtables.py: Remove.
30830 * lib/trig.c: Likewise.
30832 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30834 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30836 (trigtables.c): New rule.
30837 (gentrigtables): Likewise.
30838 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30840 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30842 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30845 2010-02-06 Colin D Bennet <colin@gibibit.com>
30847 Trigonometry support.
30849 * include/grub/trig.h: New file.
30850 * lib/trig.c: Likewise.
30851 * maintainance/gentrigtables.py: Likewise.
30852 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30853 (trig_mod_SOURCES): New variable.
30854 (trig_mod_CFLAGS): Likewise.
30855 (trig_mod_LDFLAGS): Likewise.
30857 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30859 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30862 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30864 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30867 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30869 * util/hostdisk.c (open_device): Don't use partition device when reading
30870 before the partition.
30871 (grub_util_biosdisk_read): Don't read from partition and before the
30872 partition in single operation.
30873 (grub_util_biosdisk_write): Don't write to partition and before the
30874 partition in single operation.
30876 2010-02-03 Torsten Landschoff <torsten@debian.org>
30878 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30881 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30883 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
30885 (grub_biosdisk_write): Refuse to write to CDROM.
30887 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30889 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
30891 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30893 * font/font.c (find_glyph): Check that bmp_idx is available before
30895 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
30896 with (font == NULL).
30898 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
30900 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
30902 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
30904 * include/grub/script_sh.h (sourcecode): Add const qualifier.
30905 * util/grub-script-check.c (getline): Fix empty lines case.
30907 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
30909 * Makefile.in (check): Exit with fail status when one of the tests
30911 * tests/example_functional_test.c (example_test): Fix reversed assert.
30912 * tests/example_unit_test.c (example_test): Likewise.
30914 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
30916 * util/grub.d/10_linux.in: This script does not use any of the
30917 contents of gettext.sh, only the external command `gettext', so stop
30918 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
30919 the same prefix as GRUB.)
30920 * util/grub.d/10_kfreebsd.in: Likewise.
30922 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30924 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
30927 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30929 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30932 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30934 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
30935 having a 4KiB and not 32KiB buffer size.
30937 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30939 * util/hostfs.c: Include `<errno.h>'.
30940 (grub_hostfs_read): Handle errors from fseeko() and fread().
30942 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30944 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
30945 loop when using read hooks on files whose size isn't sector-aligned.
30947 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30949 Remove unused parameter.
30951 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
30952 (grub_iso9660_open): Remove initialization of `data->length'.
30954 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30956 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
30957 memleak conditions.
30959 2010-01-27 Carles Pina i Estany <carles@pina.cat>
30961 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
30962 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
30964 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30966 * util/bin2h.c (usage): Fix warning (space after backslash).
30968 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30970 * font/font.c: Include `grub/fontformat.h.
30971 Remove font file format constants.
30972 (grub_font_load): Use the new macros.
30973 * include/grub/fontformat.h: New file.
30974 * util/grub-mkfont.c: Include `grub/fontformat.c'.
30975 (write_font_pf2): Use the new macros.
30977 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30979 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
30982 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30984 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
30986 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
30987 (_start): Macroify `0x7F'.
30989 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
30990 (make_install_device): Use "(pxe)" as fallback prefix when booting
30993 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
30995 * configure.ac: Reset LIBS after check for libgcc symbols.
30997 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
30999 * util/hostdisk.c (open_device): Add trailing newline to debug
31002 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
31004 * configure.ac: Check for `limits.h'.
31005 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
31007 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
31009 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
31010 capitalize error strings.
31012 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
31014 * util/grub.d/10_hurd.in: Add a recovery mode.
31016 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
31018 * configure.ac: Check for libgcc symbols with -nostdlib.
31020 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
31022 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
31024 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31026 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
31027 stack since heap may be unavailable at that point.
31028 (grub_ofconsole_gotoxy): Likewise.
31030 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31032 * configure.ac: Check for _restgpr_14_x.
31033 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
31034 and _savegpr_* prototypes.
31036 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
31038 Use generic grub_reboot() for i386-efi.
31040 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
31041 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
31042 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
31044 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31046 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
31047 presence of "prefix" variable as it breaks when normal.mod is
31050 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31052 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
31053 stack since heap is unavailable at that point.
31055 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31057 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
31058 (grub_freebsd_bootinfo): Rewritten.
31059 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
31061 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31063 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
31065 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
31067 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
31070 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
31072 * util/misc.c (make_system_path_relative_to_its_root): Change the work
31073 around for handling "/" to the correct fix. Fix a memory leak. Use
31074 xstrdup instead of strdup.
31076 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31078 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
31080 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31082 Optimise glyph lookup by Basic Multilingual Plane lookup array.
31084 * font/font.c (struct grub_font): New member 'bmp_idx'.
31085 (font_init): Initialise 'bmp_idx'.
31086 (load_font_index): Fill 'bmp_idx'.
31087 (find_glyph): Make inline. Use bmp_idx for BMP characters.
31089 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31091 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
31094 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31096 Move context handling out of the kernel.
31098 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
31099 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
31100 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
31101 * conf/i386-efi.rmk: Likewise.
31102 * conf/i386-ieee1275.rmk: Likewise.
31103 * conf/i386-pc.rmk: Likewise.
31104 * conf/powerpc-ieee1275.rmk: Likewise.
31105 * conf/sparc64-ieee1275.rmk: Likewise.
31106 * conf/x86_64-efi.rmk: Likewise.
31107 * include/grub/env.h: Include grub/menu.h.
31108 (grub_env_var_type): Removed.
31109 (grub_env_var): Replaced field 'type' with 'global'.
31110 (grub_env_find): New prototype.
31111 (grub_env_context_open): Remove EXPORT_FUNC.
31112 (grub_env_context_close): Likewise.
31113 (grub_env_export): Likewise.
31114 (grub_env_set_data_slot): Removed.
31115 (grub_env_get_data_slot): Likewise.
31116 (grub_env_unset_data_slot): Likewise.
31117 (grub_env_unset_menu): New prototype.
31118 (grub_env_set_menu): Likewise.
31119 (grub_env_get_menu): Likewise.
31120 * include/grub/env_private.h: New file.
31121 * include/grub/normal.h (grub_context_init): New prototype.
31122 (grub_context_fini): Likewise.
31123 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
31124 * normal/context.c (grub_cmd_export): ... to here.
31125 * kern/env.c: Include env_private.h.
31126 (HASHSZ): Moved to include/grub/env_private.h.
31127 (grub_env_context): Likewise.
31128 (grub_env_sorted_var): Likewise.
31129 (current_context): Renamed from this ...
31130 (grub_current_context): ...to this. 'static' removed. All users updated.
31131 (grub_env_find): Removed 'static'.
31132 (grub_env_context_open): Moved to normal/context.c.
31133 (grub_env_context_close): Likewise.
31134 (grub_env_export): Likewise.
31135 (mangle_data_slot_name): Removed.
31136 (grub_env_set_data_slot): Likewise.
31137 (grub_env_get_data_slot): Likewise.
31138 (grub_env_unset_data_slot): Likewise.
31139 * kern/main.c (grub_set_root_dev): Don't export root.
31140 It will be done later.
31141 (grub_main): Don't export prefix.
31142 It will be done later.
31143 * normal/context.c: New file.
31144 * normal/main.c (free_menu): Use grub_env_unset_menu.
31145 (grub_normal_add_menu_entry): Use grub_env_get_menu.
31146 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
31147 (GRUB_MOD_INIT(normal)): Call grub_context_init.
31148 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
31150 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31154 * commands/setpci.c: New file.
31155 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
31156 (setpci_mod_SOURCES): New variable.
31157 (setpci_mod_CFLAGS): Likewise.
31158 (setpci_mod_LDFLAGS): Likewise.
31160 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31162 Byte-addressable PCI configuration space.
31164 * bus/pci.c (grub_pci_make_address): Use byte address instead of
31166 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
31167 GRUB_PCI_REG_CACHELINE.
31168 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
31169 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
31170 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
31171 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
31172 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
31173 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
31174 grub_pci_make_address.
31175 (lock_rom_area): Likewise.
31176 * commands/lspci.c (grub_lspci_iter): Use macroses
31177 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
31178 of grub_pci_make_address.
31179 * disk/ata.c (grub_ata_pciinit): Likewise.
31180 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
31181 (GRUB_PCI_REG_VENDOR): Likewise.
31182 (GRUB_PCI_REG_DEVICE): Likewise.
31183 (GRUB_PCI_REG_COMMAND): Likewise.
31184 (GRUB_PCI_REG_STATUS): Likewise.
31185 (GRUB_PCI_REG_REVISION): Likewise.
31186 (GRUB_PCI_REG_CLASS): Likewise.
31187 (GRUB_PCI_REG_CACHELINE): Likewise.
31188 (GRUB_PCI_REG_LAT_TIMER): Likewise.
31189 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
31190 (GRUB_PCI_REG_BIST): Likewise.
31191 (GRUB_PCI_REG_ADDRESSES): Likewise.
31192 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31193 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31194 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31195 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31196 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31197 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31198 (GRUB_PCI_REG_CIS_POINTER): Likewise.
31199 (GRUB_PCI_REG_SUBVENDOR): Likewise.
31200 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
31201 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
31202 (GRUB_PCI_REG_CAP_POINTER): Likewise.
31203 (GRUB_PCI_REG_IRQ_LINE): Likewise.
31204 (GRUB_PCI_REG_IRQ_PIN): Likewise.
31205 (GRUB_PCI_REG_MIN_GNT): Likewise.
31206 (GRUB_PCI_REG_MAX_LAT): Likewise.
31207 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
31208 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
31209 * video/efi_uga.c (find_framebuf): Likewise.
31210 * video/sm712.c (grub_video_sm712_setup): Likewise.
31211 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
31214 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31216 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
31217 can be reliably determined to be supported.
31219 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31221 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
31222 that VESA is supported.
31223 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
31226 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31228 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
31230 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31232 * util/misc.c (make_system_path_relative_to_its_root): Work around
31233 special-casing of "/", as previous incarnation of this routine did.
31235 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31237 Fix any-emu compilation.
31239 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
31240 * grub_bin2h_SOURCES: New variable.
31242 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31244 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
31246 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31248 * util/grub.d/00_header.in: Fix handling of locale_dir.
31250 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31252 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
31253 as possible unifont location (Gentoo).
31254 Reported by: Alexander Brüning
31256 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31258 Don't try to generate lists for kernel.img.
31260 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
31261 (pkglib_MODULES): Remove kernel.img.
31262 (kernel_img_EXPORTS): Removed.
31263 (kernel_img_RELOCATABLE): New variable.
31264 * conf/x86_64-efi.rmk: Likewise.
31265 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
31267 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31269 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
31270 grub_xasprintf or grub_snprintf.
31271 (grub_vsprintf): Likewise.
31272 (grub_snprintf): New proto.
31273 (grub_vsnprintf): Likewise.
31274 (grub_xasprintf): Likewise.
31275 (grub_xvasprintf): Likewise.
31276 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
31277 (grub_sprintf): Removed.
31278 (grub_vsnprintf): New function.
31279 (grub_snprintf): Likewise.
31280 (grub_xvasprintf): Likewise.
31281 (grub_xasprintf): Likewise.
31282 (grub_vsprintf): Renamed to ...
31283 (grub_vsnprintf_real): ...this. New argument max_len.
31285 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
31287 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
31288 fix grub-script-check warning.
31290 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31292 * include/grub/font.h (grub_font_load): Fix prototype.
31294 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31296 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
31298 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31300 * include/grub/x86_64/at_keyboard.h: New file.
31302 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31304 * loader/mips/linux.c: Include missing grub/i18n.h.
31306 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31308 * normal/menu.c (notify_execution_failure): Clarify error message.
31310 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31312 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
31313 return value (and revert all return statements). Update users.
31315 2010-01-20 Dan Merillat <debian@dan.merillat.org>
31317 * kern/device.c (grub_device_iterate): Allocate new part_ent
31318 structure based on sizeof (*p) rather than sizeof (p->next), to
31319 account for structure padding.
31321 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
31322 disk is NULL, which might happen for LVM physical volumes with no
31325 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31327 * loader/mips/linux.c (grub_cmd_initrd)
31328 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
31330 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31332 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
31333 (grub_video_video_init, grub_video_bitmap_init)
31334 (grub_font_manager_init, grub_term_gfxterm_init)
31335 (grub_at_keyboard_init): New extern declarations.
31336 (grub_machine_init): Initialize gfxterm and at_keyboard.
31338 * kern/main.c (grub_main): Revert grub_printf delay kludge.
31340 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
31341 `gfxterm.mod' into core image.
31343 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31344 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31345 (kernel_img_FORMAT): Copy to ...
31347 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31348 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31349 (kernel_img_FORMAT): ... here, and ...
31351 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31352 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31353 (kernel_img_FORMAT): ... here.
31355 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
31356 and input (at_keyboard) terminals in kernel.
31357 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
31359 (pkglib_MODULES): Remove `pci.mod'.
31360 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
31361 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
31362 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
31363 (at_keyboard_mod_LDFLAGS): Remove variables.
31365 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
31367 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
31369 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
31371 * include/grub/mips/libgcc.h: Only export symbols for functions
31372 that libgcc provides.
31374 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
31378 * bus/bonito.c: New file.
31379 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
31380 GRUB_PCI_NUM_DEVICES.
31381 * term/i386/pc/serial.c: Move to ...
31382 * term/serial.c: ... here. All users updated.
31383 * util/i386/pc/grub-mkimage.c: Move to ...
31384 * util/grub-mkrawimage.c: ... here. All users updated.
31385 * term/i386/pc/at_keyboard.c: Move to ...
31386 * term/at_keyboard.c: ... here. All users updated.
31387 * conf/mips-qemu-mips.rmk: New file.
31388 * conf/mips-yeeloong.rmk: Likewise.
31389 * conf/mips.rmk: Likewise.
31390 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
31392 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
31394 (grub_ata_pciinit): Support CS5536.
31395 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
31396 * font/font_cmd.c (loadfont_command): Open file before passing it to
31398 (pseudo_file_read): New function.
31399 (pseudo_file_close): Likewise.
31400 (pseudo_fs): New structure.
31401 (load_font_module): New function.
31402 (GRUB_MOD_INIT(font_manager)): Load embedded font.
31403 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
31404 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
31405 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
31406 * include/grub/i386/at_keyboard.h: Split into ...
31407 * include/grub/at_keyboard.h: ... this ...
31408 * include/grub/i386/at_keyboard.h: ... and this.
31409 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
31411 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
31413 (grub_elf64_size): Likewise.
31414 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
31416 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
31417 * include/grub/i386/coreboot/serial.h: Rewritten.
31418 * include/grub/i386/ieee1275/serial.h: Include
31419 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
31420 * include/grub/i386/pc/serial.h: Moved from here ...
31421 * include/grub/serial.h: ... to here. All users updated.
31422 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
31423 (GRUB_PCI_NUM_BUS): Likewise.
31424 (GRUB_PCI_NUM_DEVICES): Likewise.
31425 (grub_pci_device_map_range): Add missing volatile keyword.
31426 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
31427 * include/grub/mips/at_keyboard.h: New file.
31428 * include/grub/mips/cache.h: Likewise.
31429 * include/grub/mips/io.h: Likewise.
31430 * include/grub/mips/kernel.h: Likewise.
31431 * include/grub/mips/libgcc.h: Likewise.
31432 * include/grub/mips/pci.h: Likewise.
31433 * include/grub/mips/qemu-mips/boot.h: Likewise.
31434 * include/grub/mips/qemu-mips/kernel.h: Likewise.
31435 * include/grub/mips/qemu-mips/loader.h: Likewise.
31436 * include/grub/mips/qemu-mips/memory.h: Likewise.
31437 * include/grub/mips/qemu-mips/serial.h: Likewise.
31438 * include/grub/mips/qemu-mips/time.h: Likewise.
31439 * include/grub/mips/relocator.h: Likewise.
31440 * include/grub/mips/time.h: Likewise.
31441 * include/grub/mips/types.h: Likewise.
31442 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
31443 * include/grub/mips/yeeloong/boot.h: Likewise.
31444 * include/grub/mips/yeeloong/kernel.h: Likewise.
31445 * include/grub/mips/yeeloong/loader.h: Likewise.
31446 * include/grub/mips/yeeloong/memory.h: Likewise.
31447 * include/grub/mips/yeeloong/pci.h: Likewise.
31448 * include/grub/mips/yeeloong/serial.h: Likewise.
31449 * include/grub/mips/yeeloong/time.h: Likewise.
31450 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
31451 * kern/elf.c (grub_elf32_size): New parameter. All users
31453 (grub_elf64_size): Likewise.
31454 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
31455 Load modules before saying "Welcome to GRUB!".
31456 Call grub_refresh after saying "Welcome to GRUB!".
31457 * kern/mips/cache.S: New file.
31458 * kern/mips/cache_flush.S: Likewise.
31459 * kern/mips/dl.c: Likewise.
31460 * kern/mips/init.c: Likewise.
31461 * kern/mips/qemu-mips/init.c: Likewise.
31462 * kern/mips/startup.S: Likewise.
31463 * kern/mips/yeeloong/init.c: Likewise.
31464 * kern/term.c (grub_putcode): Handle NULL terminal.
31465 (grub_getcharwidth): Likewise.
31466 (grub_getkey): Likewise.
31467 (grub_checkkey): Likewise.
31468 (grub_getkeystatus): Likewise.
31469 (grub_getxy): Likewise.
31470 (grub_getwh): Likewise.
31471 (grub_gotoxy): Likewise.
31472 (grub_cls): Likewise.
31473 (grub_setcolorstate): Likewise.
31474 (grub_setcolor): Likewise.
31475 (grub_getcolor): Likewise.
31476 (grub_refresh): Likewise.
31477 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
31478 (write_jump): Add hatch nop.
31479 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
31480 * lib/mips/setjmp.S: New file.
31481 * loader/mips/linux.c: Likewise.
31482 * term/i386/pc/at_keyboard.c: Move from here ...
31483 * term/at_keyboard.c: ... to here.
31484 * term/i386/pc/serial.c: Moved from here ...
31485 * term/serial.c: ... to here. All users updated.
31486 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
31487 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
31488 (serial_translate_key_sequence): Avoid deadlock.
31489 (grub_serial_getkey): Handle backspace.
31490 (grub_serial_putchar): Fix newline handling.
31491 * util/i386/pc/grub-mkimage.c: Move from here ...
31492 * util/grub-mkrawimage.c: ... to here. All users updated.
31493 (generate_image): New parameters 'font_path' and 'format'.
31494 Support embedding font.
31495 Use grub_host_to_target* instead of grub_cpu_to_le*.
31496 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
31497 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
31498 (options): New option "--font".
31500 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
31501 (main): Handle "--font".
31502 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
31503 (grub_virtual_screen_setup): Set bg_color_display.
31504 (redraw_screen_rect): Use bg_color_display instead of incorrect
31506 (grub_gfxterm_cls): Likewise.
31507 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
31508 Support embedding config file.
31509 (add_segments): Likewise.
31510 (options): New option "--config".
31511 (main): Handle "--config".
31512 * video/sm712.c: New file.
31514 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31516 Fix parallel builds.
31518 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
31519 font.c depend on ascii.h).
31521 2010-01-12 Carles Pina i Estany <carles@pina.cat>
31523 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
31525 2010-01-11 Carles Pina i Estany <carles@pina.cat>
31527 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
31528 By default: disabled.
31529 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
31532 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31534 * font/font.c: Update copyright years.
31535 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
31537 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31539 * font/font.c: Include `ascii.h'.
31540 (ASCII_BITMAP_SIZE): New macro.
31541 (ascii_font_glyph): Define.
31542 (ascii_glyph_lookup): New function.
31543 (grub_font_get_string_width): Change comment. If glyph not found, use
31544 ascii_glyph_lookup.
31545 (grub_font_get_glyph_with_fallback): If glyph not available returns
31546 ascii_glyph_lookup.
31547 * util/grub-mkfont.c (file_formats): New enum.
31548 (options): Add `ascii-bitmaps' new option.
31549 (usage): Add `asii-bitmaps' new option.
31550 (write_font_ascii_bitmap): New function.
31551 (write_font): Rename to ...
31552 (write_font_p2): ... this. Remove print_glyphs call.
31553 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
31554 used. Call print_glyphs.
31555 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
31557 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31559 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
31560 (grub_bin2h_SOURCES): New variable.
31561 * util/bin2h.c: New file.
31563 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31565 * include/multiboot.h: Resynced with spec.
31566 * include/multiboot2.h: Likewise.
31567 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
31568 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
31570 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31572 * include/grub/term.h (grub_term_register_input,
31573 grub_term_register_output): Check return of terminal init()
31574 routines, and abort if errors are raised.
31576 * commands/terminal.c: Update copyright year.
31578 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31580 * commands/terminal.c (grub_cmd_terminal_input)
31581 (grub_cmd_terminal_output): Check return of terminal init()
31582 routines, and abort if errors are raised.
31584 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31586 * include/grub/i386/bsd.h: Fix include pathes.
31588 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31590 Add missing *BSD copyright headers.
31592 * include/grub/aout.h: Add BSD licence.
31593 * include/grub/i386/bsd.h: Parts under different licences moved to ...
31594 * include/grub/i386/freebsd_linker.h: ... here,
31595 * include/grub/i386/freebsd_reboot.h: ... here,
31596 * include/grub/i386/netbsd_bootinfo.h: ... here,
31597 * include/grub/i386/netbsd_reboot.h: ... here,
31598 * include/grub/i386/openbsd_bootarg.h: ... here,
31599 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
31600 licence to each file.
31602 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31604 * acinclude.m4: Remove `nop' assembly instruction; it's not
31605 implemented by all architectures.
31607 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31609 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
31610 ELILO. This is no longer necessary.
31612 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
31614 Added new tool, grub-scrit-check to verify grub.cfg syntax.
31616 * util/grub-script-check.c: grub-script-check tool.
31617 * conf/common.rmk: Make rules for grub-script-check.
31619 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31621 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
31622 spotting it back in 2008. Shame on me for forgetting he did.
31624 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
31626 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31628 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
31629 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
31630 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
31631 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
31632 (GRUB_VIDEO_TYPE_EFI): Rename to ...
31633 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
31635 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
31637 * include/grub/test.h: Add license header.
31638 * tests/example_functional_test.c: Likewise.
31639 * tests/example_unit_test.c: Likewise.
31640 * tests/lib/functional_test.c: Likewise.
31641 * tests/lib/test.c: Likewise.
31642 * tests/lib/unit_test.c: Likewise.
31644 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
31646 Use flag-based instead of hook-based video mode selection and "auto"
31649 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
31650 (grub_video_set_mode): Changed prototype. All users updated.
31651 (grub_video_check_mode_flag): New inline function.
31652 * video/video.c (parse_modespec): New function.
31653 (grub_video_set_mode): Parse flags and keywords.
31655 2010-01-17 Carles Pina i Estany <carles@pina.cat>
31657 * util/misc.c (grub_util_info): Fix the order of the parameters in a
31660 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
31662 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
31664 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31666 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
31668 * util/grub-emu.c (usage): Likewise.
31669 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
31670 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31671 * util/i386/pc/grub-mkimage.c (usage): Likewise.
31672 * util/i386/pc/grub-setup.c (usage): Likewise.
31674 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31676 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
31678 (grub_util_info): Likewise.
31679 (grub_util_error): Likewise.
31680 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
31681 and/or new lines in `grub_util_warna', `grub_util_info',
31682 `grub_util_error' calls.
31683 * util/getroot.c: Likewise.
31684 * util/grub-editenv.c: Likewise.
31685 * util/grub-emu.c: Likewise.
31686 * util/grub-fstest.c: Likewise.
31687 * util/grub-mkdevicemap.c: Likewise.
31688 * util/grub-mkfont.c: Likewise.
31689 * util/grub-mkpasswd-pbkdf2.c: Likewise.
31690 * util/grub-mkrelpath.c: Likewise.
31691 * util/grub-pe2elf.c: Likewise.
31692 * util/grub-probe.c: Likewise.
31693 * util/hostdisk.c: Likewise.
31694 * util/i386/efi/grub-mkimage.c: Likewise.
31695 * util/i386/pc/grub-mkimage.c: Likewise.
31696 * util/i386/pc/grub-setup.c: Likewise.
31697 * util/ieee1275/ofpath.c: Likewise.
31698 * util/mkisofs/eltorito.c: Likewise.
31699 * util/mkisofs/rock.c: Likewise.
31700 * util/mkisofs/write.c: Likewise.
31701 * util/raid.c: Likewise.
31702 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31703 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31705 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31707 Enable multiboot on non-pc.
31709 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
31710 multiboot.mod and multiboot2.mod to ...
31711 * conf/i386.rmk (pkglib_MODULES): ... here.
31712 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
31714 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
31715 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
31717 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
31718 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
31720 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
31721 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
31723 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
31724 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
31726 (ata_mod_SOURCES): Removed.
31727 (ata_mod_CFLAGS): Likewise.
31728 (ata_mod_LDFLAGS): Likewise.
31729 (relocator_mod_SOURCES): Removed.
31730 (relocator_mod_CFLAGS): Likewise.
31731 (relocator_mod_ASFLAGS): Likewise.
31732 (relocator_mod_LDFLAGS): Likewise.
31734 * include/grub/x86_64/multiboot.h: New file.
31735 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
31738 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31740 Video multiboot support.
31742 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
31744 * include/multiboot.h: Resynced with multiboot specification.
31745 * include/multiboot2.h: Likewise.
31746 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
31747 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
31748 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
31749 (HAS_VGA_TEXT): Likewise.
31750 (accepts_video): New variable.
31751 (grub_multiboot_set_accepts_video): New function.
31752 (grub_multiboot_get_mbi_size): Account for video structures.
31753 (set_video_mode): New function.
31754 (retrieve_video_parameters): Likewise.
31755 (grub_multiboot_make_mbi): Fill video fields.
31757 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31761 * include/grub/video.h (grub_video_driver_id): New type.
31762 (grub_video_adapter): New member 'id'. All users updated.
31763 (grub_video_get_driver_id): New proto.
31764 * video/video.c (grub_video_get_driver_id): New function.
31766 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31768 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
31771 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31773 * normal/cmdline.c (print_completion): Gettextizze.
31775 2001-01-14 Carles Pina i Estany <carles@pina.cat>
31777 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
31779 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31781 * gettext/gettext.c (grub_gettext_translate): Push and pop
31783 (grub_gettext_delete_list): Change comment style.
31784 * kern/err.c (grub_error): Gettextizze.
31785 (grub_fatal): Gettextizze.
31787 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31789 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
31790 (grub_linux16_real_boot): ... this.
31791 * kern/i386/loader.S: Likewise.
31792 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
31793 (grub_linux16_boot): New function. Switches to text mode and calls
31794 grub_linux16_real_boot().
31796 * loader/i386/bsd.c: Include `<grub/video.h>'.
31797 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
31798 text mode before calling grub_unix_real_boot().
31800 * loader/i386/multiboot.c: Include `<grub/video.h>'.
31801 (grub_multiboot_boot): Switch to text mode before calling
31802 grub_relocator32_boot().
31804 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31805 (grub_chainloader_boot): Switch to text mode before calling
31806 grub_chainloader_real_boot().
31808 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31809 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31811 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31814 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31815 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31817 * util/grub.d/00_header.in: Define a "savedefault" function for use
31819 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31821 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31822 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31824 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31825 saved_entry if boot_once is unset.
31826 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31827 previous saved entry (i.e. grub-reboot).
31829 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31831 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31833 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31835 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31837 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31839 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31841 * util/grub-reboot.in: Fix --version output.
31842 * util/grub-set-default.in: Likewise.
31844 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31846 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31849 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31851 * util/grub.d/00_header.in: Quote the value assigned to `default',
31852 in case it contains spaces.
31854 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31856 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31857 `save_default_entry' call from the macosx case to the linux case.
31859 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
31860 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
31862 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31863 in `chosen' environment variable.
31864 * normal/menu_text.c (get_entry_number): Check if the variable
31865 matches the title of a menu entry.
31866 (run_menu): Pass menu to get_entry_number.
31868 * util/grub-reboot.in: New file.
31869 * util/grub-set-default.in: New file.
31870 * conf/common.rmk (grub-reboot): New utility.
31871 (grub-set-default): New utility.
31873 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31874 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31875 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31876 move it to `saved_entry' for the next boot. Load environment on
31878 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
31879 * util/grub.d/10_hurd.in: Likewise.
31880 * util/grub.d/10_linux.in (linux_entry): Likewise.
31881 * util/grub.d/10_windows.in: Likewise.
31882 * util/grub.d/30_os-prober.in: Likewise.
31884 * util/grub-install.in: Create environment block.
31885 * util/i386/efi/grub-install.in: Likewise.
31886 * util/ieee1275/grub-install.in: Likewise.
31887 * util/sparc64/ieee1275/grub-install.in: Likewise.
31889 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
31891 Unit testing framework for GRUB.
31893 * Makefile.in: Test framework build rules for 'make check'.
31894 * conf/tests.rmk: Build rules for individual tests and framework.
31896 * include/grub/test.h: Header file for whitebox tests.
31897 * tests/lib/functional_test.c: Framework support for whitebox
31899 * tests/lib/test.c: Common whitebox testing code for unit and
31901 * tests/lib/unit_test.c: Framework support for whitebox unit
31904 * tests/util/grub-shell-tester.in: Support utility for grub-script
31906 * tests/util/grub-shell.in: Utility to execute grub-script
31907 commands in a Qemu instance.
31909 * tests/example_functional_test.c: Example whitebox functional
31911 * tests/example_grub_script_test.in: Example grub-script test.
31912 * tests/example_scripted_test.in: Example scripted test.
31913 * tests/example_unit_test.c: Example whitebox unit test.
31915 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
31917 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
31918 Add loader/i386/multiboot_mbi.c.
31919 (multiboot2_mod_SOURCES): Likewise.
31920 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
31921 (multiboot2_mod_SOURCES): Likewise.
31922 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
31923 (grub_multiboot_make_mbi): Likewise.
31924 (grub_multiboot_free_mbi): Likewise.
31925 (grub_multiboot_init_mbi): Likewise.
31926 (grub_multiboot_add_module): Likewise.
31927 (grub_multiboot_set_bootdev): Likewise.
31928 * loader/i386/multiboot.c (mbi): Removed.
31929 (mbi_dest): Likewise.
31930 (alloc_mbi): New variable.
31931 (grub_multiboot_payload_size): Removed. All users updated.
31932 (grub_multiboot_pure_size): New variable.
31933 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
31934 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
31935 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
31936 (grub_fill_multiboot_mmap): Likewise.
31937 (grub_multiboot_get_bootdev): Likewise.
31938 (grub_multiboot): Use multiboot_mbi functions.
31939 * loader/i386/multiboot_mbi.c: New file.
31941 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31943 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
31944 it would result in module crash.
31946 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31948 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
31949 (grub_ofconsole_getwh): Split to ...
31950 (grub_ofconsole_getwh): ... this.
31951 (grub_ofconsole_dimensions): ...and this.
31952 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
31954 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
31956 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
31958 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31960 * loader/i386/pc/multiboot2.c: Removed stalled file.
31962 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31964 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
31965 Reported by: Grégoire Sutre
31967 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
31969 * util/misc.c (canonicalize_file_name): New function.
31970 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
31971 instead of realpath().
31973 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
31975 * util/grub-install.in (usage): Clarify meaning of --root-directory,
31976 and make it clearer that it's optional. Based on confusion
31979 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31981 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
31982 in premature implicit newline.
31984 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31986 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
31987 which resulted in garbled command line at the end of screen.
31989 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31991 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
31992 initialization with similar approach as with other Linux loaders.
31994 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31996 Fix i386-ieee1275 build.
31998 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
31999 and grub_term_height() for video_{width,height} initialization.
32001 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
32003 Fix grub-emu build.
32005 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
32007 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32008 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
32010 Support for multiple terminals.
32012 * Makefile.in (pkglib_DATA): terminal.lst.
32013 (terminal.lst): New target.
32014 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
32015 (GRUB_MOD_INIT(handler)): Likewise.
32016 (GRUB_MOD_FINI(handler)): Likewise.
32017 * commands/help.c (grub_cmd_help): Handle multiple terminals.
32018 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
32019 * commands/sleep.c (do_print): Use grub_term_restore_pos.
32020 (grub_cmd_sleep): Use grub_term_save_pos.
32021 * commands/terminal.c: New file.
32022 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
32023 commands/terminal.c and lib/charset.c.
32024 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
32025 (pkglib_MODULES): Add terminal.mod.
32026 (terminal_mod_SOURCES): New variable.
32027 (terminal_mod_CFLAGS): Likewise.
32028 (terminal_mod_LDFLAGS): Likewise.
32029 * genhandlerlist.sh: Don't handle terminals.
32030 * genmk.rb: Generate terminal-*.lst.
32031 * genterminallist.sh: New file.
32032 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
32033 (grub_is_valid_utf8): Likewise.
32034 (grub_utf8_to_ucs4_alloc): Likewise.
32035 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
32036 (grub_menu_register_viewer): Changed argument.
32037 (grub_menu_try_text): New proto.
32038 (grub_gfxmenu_try_hook): New declaration.
32039 * include/grub/normal.h (grub_normal_exit_level): New declaration.
32040 (grub_menu_init_page): Additional argument term.
32041 (grub_normal_init_page): Likewise.
32042 (grub_cmdline_get): Arguments simplified.
32043 (grub_utf8_to_ucs4_alloc): Removed.
32044 (grub_print_ucs4): Additional argument term.
32045 (grub_getstringwidth): Likewise.
32046 (grub_print_message_indented): Likewise.
32047 (grub_menu_text_register_instances): New proto.
32048 (grub_show_menu): Likewise.
32049 (read_terminal_list): Likewise.
32050 (grub_set_more): Likewise.
32051 * include/grub/parser.h: Include handler.h.
32052 * include/grub/reader.h: Rewritten.
32053 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
32054 (GRUB_TERM_WIDTH): Changed to function.
32055 (GRUB_TERM_HEIGHT): Likewise.
32056 (GRUB_TERM_BORDER_WIDTH): Likewise.
32057 (GRUB_TERM_BORDER_HEIGHT): Likewise.
32058 (GRUB_TERM_NUM_ENTRIES): Likewise.
32059 (GRUB_TERM_ENTRY_WIDTH): Likewise.
32060 (GRUB_TERM_CURSOR_X): Likewise.
32061 (grub_term_input_class): Likewise.
32062 (grub_term_output_class): Likewise.
32063 (grub_term_outputs_disabled): New declaration.
32064 (grub_term_inputs_disabled): Likewise.
32065 (grub_term_outputs): Likewise.
32066 (grub_term_inputs): Likewise.
32067 (grub_term_register_input): Rewritten.
32068 (grub_term_register_output): Likewise.
32069 (grub_term_unregister_input): Likewise.
32070 (grub_term_unregister_output): Likewise.
32071 (FOR_ACTIVE_TERM_INPUTS): New macro.
32072 (FOR_DISABLED_TERM_INPUTS): Likewise.
32073 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
32074 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
32075 * include/grub/terminfo.h: Add oterm argument to all protypes.
32076 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
32077 Use grub_rescue_run.
32078 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
32080 * kern/reader.c: Removed. All users updated.
32081 * kern/rescue_reader.c (grub_rescue_init): Removed.
32082 (grub_rescue_reader): Likewise.
32083 (grub_register_rescue_reader): Likewise.
32084 (grub_rescue_run): New function based on kern/reader.c.
32085 * kern/term.c: Adapted for multiterm.
32086 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
32087 (grub_is_valid_utf8): Likewise.
32088 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
32089 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
32091 * loader/i386/linux.c (grub_linux_boot): Likewise.
32092 * normal/auth.c (grub_username_get): New function.
32093 (grub_auth_check_authentication): Use grub_username_get.
32094 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
32095 * normal/color.c: Adapt for multiterm.
32096 * normal/main.c (read_config_file): Don't use grub_reader_loop.
32097 (grub_normal_init_page): Additional argument term.
32098 (read_lists): Call read_terminal_lists.
32099 (grub_enter_normal_mode): Call grub_cmdline_run.
32100 Handle grub_normal_exit_level.
32101 (grub_cmd_normal): Make reentrant.
32102 (grub_cmd_normal_exit): New function.
32103 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
32104 * normal/menu.c: Adapt for multiterm.
32105 * normal/menu_entry.c: Likewise.
32106 * normal/menu_text.c: Likewise.
32107 * normal/menu_viewer.c: Removed. All users updated.
32108 * normal/term.c: New file.
32109 * util/console.c: Change order of includes to workaround a bug in
32111 * term/terminfo.c: New argument oterm on all exported functions.
32113 * util/grub-editenv.c (grub_term_input_class): Removed.
32114 (grub_term_output_class): Likewise.
32116 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
32118 Make loader output a bit more user-friendly.
32120 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
32121 is being loaded. Likewise for the Hurd.
32123 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
32124 that kernel of FreeBSD ${version} is being loaded.
32126 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
32128 (grub_cmd_initrd): Likewise.
32129 * util/grub.d/10_linux.in (linux_entry): Print message indicating
32130 that Linux ${version} is being loaded. Likewise for initrd.
32132 2010-01-09 Carles Pina i Estany <carles@pina.cat>
32134 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
32136 2010-01-08 Carles Pina i Estany <carles@pina.cat>
32138 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
32139 (GRUB_MOD_INIT): Gettextizze.
32140 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
32141 (GRUB_MOD_INIT): Gettextizze.
32142 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
32143 (grub_cmd_linux): Capitalise Linux.
32144 (GRUB_MOD_INIT): Gettextizze.
32145 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
32146 (grub_cmd_linux): Capitalise Linux.
32147 (GRUB_MOD_INIT): Gettextizze.
32148 * loader/i386/linux.c: Include `<grub/i18n.h>'.
32149 (grub_cmd_linux): Capitalise Linux.
32150 (GRUB_MOD_INIT): Gettextizze.
32151 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
32152 (GRUB_MOD_INIT): Gettextizze.
32153 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
32154 (grub_cmd_linux): Capitalise Linux.
32155 (GRUB_MOD_INIT): Gettextizze.
32156 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
32157 (grub_cpu_xnu_init): Gettextizze.
32158 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
32159 (GRUB_MOD_INIT): Gettextizze.
32160 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
32161 (GRUB_MOD_INIT): Gettextizze.
32162 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
32163 (grub_linux_load64): Capitalise Linux.
32164 (GRUB_MOD_INIT): Gettextizze.
32165 * loader/xnu.c: Include `<grub/i18n.h>'.
32166 (GRUB_MOD_INIT): Gettextizze.
32167 * po/POTFILES: Add `loader/efi/appleloader.c',
32168 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
32169 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
32170 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
32171 `loader/i386/xnu.c', `loader/multiboot_loader.c',
32172 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
32173 and `loader/xnu.c'.
32175 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32177 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
32179 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32181 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
32182 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
32183 * util/mkisofs/mkisofs.c (main): Readjust --version output.
32185 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32187 Reset Multiboot 2 support. New loader implements the draft in
32188 /branches/multiboot2 and shares as much code as possible with the
32189 production Multiboot 1 implementation.
32191 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
32192 * loader/multiboot2.c: Likewise.
32193 * loader/i386/multiboot_helper.S: Likewise.
32194 * include/multiboot2.h: Replace with latest version from the draft
32195 in /branches/multiboot2.
32197 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
32198 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
32199 and `loader/multiboot2.c'.
32200 (pkglib_MODULES): Add `multiboot2.mod'.
32201 (multiboot2_mod_SOURCES): New variable.
32202 (multiboot2_mod_LDFLAGS): Likewise.
32203 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
32205 * conf/i386-pc.rmk: Likewise.
32207 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
32208 (multiboot_mod_SOURCES): Remove variable.
32209 (multiboot_mod_LDFLAGS): Likewise.
32210 (multiboot_mod_CFLAGS): Likewise.
32212 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
32213 `<multiboot2.h>' instead of `<multiboot.h>'.
32214 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
32215 (MULTIBOOT_HEADER_MAGIC): New macros.
32217 * loader/multiboot_loader.c (module_version_status): Remove variable.
32218 (find_multi_boot2_header): Remove function.
32219 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
32220 logic. Always check for the Multiboot version we're compiling for.
32221 (grub_cmd_module_loader): Likewise.
32222 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
32223 command instead of `multiboot'.
32225 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32227 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
32228 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
32231 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32232 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32234 Fix breakage introduced with previous commit.
32236 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
32238 * normal/handler.c (read_handler_list): Revert part of previous commit
32239 affecting this file.
32240 * normal/main.c (read_lists): Move read_handler_list() call back to ...
32241 (grub_normal_execute): ... here.
32243 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32245 Merge prefix-redefinition-fix branch.
32247 * normal/autofs.c (read_fs_list): Make function capable of being
32248 run multiple times, gracefuly replacing the previous data
32250 * normal/dyncmd.c (read_command_list): Likewise.
32251 * normal/handler.c (read_handler_list): Likewise.
32252 * normal/main.c (read_lists): New function. Calls all the
32253 list reading functions.
32254 (grub_normal_execute): Use read_lists() instead of calling all
32255 list reading functions explicitly. Register read_lists() as a
32256 variable hook attached to ${prefix}.
32258 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32260 Merge crypto branch.
32262 * Makefile.in (pkglib_DATA): Add crypto.lst.
32263 (crypto.lst): New target.
32264 * commands/hashsum.c: New file.
32265 * commands/password.c (check_password): Use grub_crypto_memcmp.
32266 * commands/password_pbkdf2.c: New file.
32267 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
32268 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
32269 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
32270 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
32271 -I$(srcdir)/lib/libgcrypt_wrap.
32272 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
32273 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
32274 password_pbkdf2.mod.
32275 (crypto_mod_SOURCES): New variable.
32276 (crypto_mod_CFLAGS): Likewise.
32277 (crypto_mod_LDFLAGS): Likewise.
32278 (hashsum_mod_SOURCES): New variable.
32279 (hashsum_mod_CFLAGS): Likewise.
32280 (hashsum_mod_LDFLAGS): Likewise.
32281 (pbkdf2_mod_SOURCES): New variable.
32282 (pbkdf2_mod_CFLAGS): Likewise.
32283 (pbkdf2_mod_LDFLAGS): Likewise.
32284 (password_pbkdf2_mod_SOURCES): New variable.
32285 (password_pbkdf2_mod_CFLAGS): Likewise.
32286 (password_pbkdf2_mod_LDFLAGS): Likewise.
32287 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
32288 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
32289 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
32290 Include conf/gcry.rmk.
32291 * include/grub/auth.h: Rewritten.
32292 * include/grub/crypto.h: New file.
32293 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
32294 * include/grub/normal.h (read_crypto_list): New prototype.
32295 * lib/crypto.c: New file.
32296 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
32297 * lib/pbkdf2.c: Likewise.
32298 * normal/auth.c (grub_auth_strcmp): Removed.
32299 (grub_iswordseparator): Likewise.
32300 (grub_auth_strword): Likewise.
32301 (is_authenticated): Use grub_strword.
32302 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
32303 and grub_strword. Pass entered password to authentication callback.
32304 * normal/crypto.c: New file.
32305 * normal/main.c: Call read_crypto_list.
32306 * util/grub-mkpasswd-pbkdf2.c: New file.
32307 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
32309 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
32311 Fix descent and ascent calculation.
32313 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
32314 (options): New option "asce".
32316 (add_char): Ignore invalid glyphs for descent calculation.
32317 Calculate ascent from actual content.
32318 (print_glyphs): Use 'asce'.
32319 (write_font): Likewise. Allow ascent override.
32320 (main): Handle "asce" option.
32322 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32324 * kern/err.c: Include `<grub/i18n.h>'.
32325 (grub_print_error): Add full stop. Gettextizze.
32326 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
32327 (grub_bsd_load_elf): Capitalise ELF.
32328 (grub_cmd_freebsd_loadenv): Add `s' in error string.
32329 (grub_cmd_freebsd_module): Likewise.
32330 (grub_cmd_freebsd_module_elf): Likewise.
32331 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
32333 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32335 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
32336 * commands/search_file.c (HELP_MESSAGE): New macro.
32337 * commands/search_label.c (HELP_MESSAGE): Likewise.
32338 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
32339 * po/POTFILES: Add `commands/search_file.c',
32340 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
32341 `commands/search.c'.
32343 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32345 * config.rpath: Update from Gnulib.
32347 2010-01-05 Yves Blusseau <blusseau@zetam.org>
32349 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
32351 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
32353 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
32355 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32357 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
32358 arguments to fread so that we get a return value in bytes, rather
32359 than something that will normally be rounded down to 0.
32360 Adjust error handling to avoid producing garbage when size_t is not
32361 the same size as long long.
32363 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32365 * util/mkisofs/write.c (padblock_write): Check return value of
32368 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32370 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
32373 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
32375 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32377 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
32378 instead of manual alignment.
32379 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
32380 verbose). Avoid attempts to read past end of the device
32381 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
32382 but GRUB_DISK_CACHE_SIZE may exceed that).
32384 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32386 * commands/crc.c (grub_cmd_crc): Abort on read errors.
32387 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
32390 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32392 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
32394 (grub_efi_piwg_device_path): New structure
32395 (grub_efi_piwg_device_path_t): New type.
32396 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
32397 (devpath_1): Transform to a structure. All users updated.
32398 (devpath_2): Likewise.
32399 (devpath_3): Likewise.
32400 (devpath_4): Likewise.
32401 (devpath_5): Likewise.
32403 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32405 * loader/efi/appleloader.c: Restored. Update all users.
32407 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32409 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
32411 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
32412 (struct boot_blocklist): Move from here ...
32413 * include/grub/i386/pc/boot.h [ASM_FILE]
32414 (struct grub_boot_blocklist): ... to here. Update all users.
32415 (setup): Only initialize `start' member of `first_block'
32416 structure. Add assert() calls to verify the other members.
32418 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
32419 (generate_image): Fix broken blocklist length initialization.
32420 Add assert() call to verify blocklist `segment' field.
32422 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32424 * loader/efi/appleloader.c: Remove. Update all users.
32426 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32428 * boot/i386/pc/boot.S: Update copyright year.
32429 * boot/i386/pc/cdboot.S: Likewise.
32430 * boot/i386/pc/diskboot.S: Likewise.
32431 * boot/i386/pc/lnxboot.S: Likewise.
32432 * boot/i386/pc/pxeboot.S: Likewise.
32433 * bus/pci.c: Likewise.
32434 * commands/cmp.c: Likewise.
32435 * commands/help.c: Likewise.
32436 * commands/hexdump.c: Likewise.
32437 * commands/i386/pc/halt.c: Likewise.
32438 * commands/i386/pc/play.c: Likewise.
32439 * commands/i386/pc/vbeinfo.c: Likewise.
32440 * commands/ls.c: Likewise.
32441 * commands/test.c: Likewise.
32442 * disk/dmraid_nvidia.c: Likewise.
32443 * disk/i386/pc/biosdisk.c: Likewise.
32444 * disk/ieee1275/nand.c: Likewise.
32445 * disk/ieee1275/ofdisk.c: Likewise.
32446 * disk/lvm.c: Likewise.
32447 * disk/raid.c: Likewise.
32448 * disk/raid6_recover.c: Likewise.
32449 * disk/scsi.c: Likewise.
32450 * fs/affs.c: Likewise.
32451 * fs/cpio.c: Likewise.
32452 * fs/ext2.c: Likewise.
32453 * fs/hfs.c: Likewise.
32454 * fs/iso9660.c: Likewise.
32455 * fs/ntfs.c: Likewise.
32456 * fs/sfs.c: Likewise.
32457 * fs/udf.c: Likewise.
32458 * fs/ufs.c: Likewise.
32459 * fs/xfs.c: Likewise.
32460 * gencmdlist.sh: Likewise.
32461 * genmk.rb: Likewise.
32462 * include/grub/disk.h: Likewise.
32463 * include/grub/efi/api.h: Likewise.
32464 * include/grub/efi/efi.h: Likewise.
32465 * include/grub/efi/pe32.h: Likewise.
32466 * include/grub/elf.h: Likewise.
32467 * include/grub/fs.h: Likewise.
32468 * include/grub/i386/at_keyboard.h: Likewise.
32469 * include/grub/i386/pc/memory.h: Likewise.
32470 * include/grub/i386/pc/vbe.h: Likewise.
32471 * include/grub/i386/pci.h: Likewise.
32472 * include/grub/i386/tsc.h: Likewise.
32473 * include/grub/ieee1275/ieee1275.h: Likewise.
32474 * include/grub/ntfs.h: Likewise.
32475 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32476 * include/grub/sparc64/libgcc.h: Likewise.
32477 * include/grub/symbol.h: Likewise.
32478 * include/grub/types.h: Likewise.
32479 * include/multiboot2.h: Likewise.
32480 * io/gzio.c: Likewise.
32481 * kern/device.c: Likewise.
32482 * kern/disk.c: Likewise.
32483 * kern/efi/efi.c: Likewise.
32484 * kern/efi/mm.c: Likewise.
32485 * kern/elf.c: Likewise.
32486 * kern/file.c: Likewise.
32487 * kern/i386/dl.c: Likewise.
32488 * kern/i386/pc/init.c: Likewise.
32489 * kern/i386/pc/startup.S: Likewise.
32490 * kern/ieee1275/ieee1275.c: Likewise.
32491 * kern/ieee1275/init.c: Likewise.
32492 * kern/main.c: Likewise.
32493 * kern/mm.c: Likewise.
32494 * kern/powerpc/dl.c: Likewise.
32495 * kern/sparc64/dl.c: Likewise.
32496 * kern/x86_64/dl.c: Likewise.
32497 * lib/hexdump.c: Likewise.
32498 * loader/efi/appleloader.c: Likewise.
32499 * loader/i386/ieee1275/linux.c: Likewise.
32500 * loader/i386/pc/chainloader.c: Likewise.
32501 * loader/i386/pc/linux.c: Likewise.
32502 * loader/i386/pc/multiboot2.c: Likewise.
32503 * loader/ieee1275/multiboot2.c: Likewise.
32504 * loader/multiboot2.c: Likewise.
32505 * loader/multiboot_loader.c: Likewise.
32506 * loader/powerpc/ieee1275/linux.c: Likewise.
32507 * normal/completion.c: Likewise.
32508 * normal/menu_entry.c: Likewise.
32509 * partmap/apple.c: Likewise.
32510 * util/grub.d/10_hurd.in: Likewise.
32511 * util/hostfs.c: Likewise.
32512 * video/readers/png.c: Likewise.
32514 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
32516 * include/grub/misc.h (GNUC_PREREQ): New macro.
32517 (ATTRIBUTE_ERROR): New macro.
32518 * include/grub/list.h (grub_bad_type_cast_real): Use
32521 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32523 * normal/menu_text.c (print_message): Change messages.
32525 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32527 * normal/menu_entry.c (store_completion): Gettextizze.
32529 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32531 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
32533 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32535 * po/POTFILES: Sort correctly.
32537 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32539 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
32540 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
32541 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
32543 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
32544 summary. Gettextizze the strings.
32545 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
32546 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
32547 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
32549 (GRUB_MOD_INIT): Remove command name from summary.
32550 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
32552 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
32553 * term/i386/pc/serial.c (options): Add full stops.
32554 (GRUB_MOD_INIT): Remove command name from the summary.
32556 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32558 * commands/acpi.c: Gettextizze help strings and/or options. Include
32559 `grub/i18n.h' if needed.
32560 * commands/blocklist.c: Likewise.
32561 * commands/boot.c: Likewise.
32562 * commands/cat.c: Likewise.
32563 * commands/cmp.c: Likewise.
32564 * commands/configfile.c: Likewise.
32565 * commands/crc.c: Likewise.
32566 * commands/date.c: Likewise.
32567 * commands/echo.c: Likewise.
32568 * commands/efi/fixvideo.c: Likewise.
32569 * commands/efi/loadbios.c: Likewise.
32570 * commands/gptsync.c: Likewise.
32571 * commands/halt.c: Likewise.
32572 * commands/handler.c: Likewise.
32573 * commands/hdparm.c: Likewise.
32574 * commands/hexdump.c: Likewise.
32575 * commands/i386/cpuid.c: Likewise.
32576 * commands/i386/pc/drivemap.c: Likewise.
32577 * commands/i386/pc/halt.c: Likewise.
32578 * commands/i386/pc/pxecmd.c: Likewise.
32579 * commands/i386/pc/vbeinfo.c: Likewise.
32580 * commands/i386/pc/vbetest.c: Likewise.
32581 * commands/ieee1275/suspend.c: Likewise.
32582 * commands/keystatus.c: Likewise.
32583 * commands/loadenv.c: Likewise.
32584 * commands/ls.c: Likewise.
32585 * commands/lsmmap.c: Likewise.
32586 * commands/lspci.c: Likewise.
32587 * commands/memrw.c: Likewise.
32588 * commands/minicmd.c: Likewise.
32589 * commands/parttool.c: Likewise.
32590 * commands/password.c: Likewise.
32591 * commands/probe.c: Likewise.
32592 * commands/read.c: Likewise.
32593 * commands/reboot.c: Likewise.
32594 * commands/search.c: Likewise.
32595 * commands/sleep.c: Likewise.
32596 * commands/test.c: Likewise.
32597 * commands/true.c: Likewise.
32598 * commands/usbtest.c: Likewise.
32599 * commands/videotest.c: Likewise.
32600 * commands/xnu_uuid.c: Likewise.
32601 * disk/loopback.c: Likewise.
32602 * hello/hello.c: Likewise.
32603 * loader/i386/bsd.c: Likewise.
32604 * term/i386/pc/serial.c: Likewise.
32605 * po/POTFILES: Add new files.
32607 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
32609 * term/i386/pc/at_keyboard.c
32610 (keyboard_controller_wait_untill_ready): Rename to ...
32611 (keyboard_controller_wait_until_ready): ... this. Update all users.
32613 2010-01-01 Carles Pina i Estany <carles@pina.cat>
32615 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
32616 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
32617 string using string width.
32618 * normal/menu_text.c (grub_print_message_indented): Use
32619 grub_print_spaces and not print_spaces.
32620 (print_timeout): Likewise.
32621 (print_spaces): Move to...
32622 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
32624 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
32626 Import from Gnulib.
32628 * gnulib/getdelim.c: New file.
32629 * gnulib/getline.c: Likewise.
32631 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
32633 * include/grub/list.h (grub_assert_fail): Removed.
32634 (grub_bad_type_cast_real): New function.
32635 (grub_bad_type_cast): New macro.
32636 (GRUB_AS_LIST): Use grub_bad_type_cast.
32637 (GRUB_AS_LIST_P): Likewise.
32638 (GRUB_AS_NAMED_LIST): Likewise.
32639 (GRUB_AS_NAMED_LIST_P): Likewise.
32640 (GRUB_AS_PRIO_LIST): Likewise.
32641 (GRUB_AS_PRIO_LIST_P): Likewise.
32642 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
32644 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
32646 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
32649 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
32651 * configure.ac: Check for TARGET_CFLAGS initialization before we
32652 initialize it ourselves (sigh).
32653 Move a few modifications to TARGET_CFLAGS to be unconditional
32654 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
32657 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
32658 * term/i386/pc/at_keyboard.c
32659 (keyboard_controller_wait_untill_ready): Likewise.
32660 (keyboard_controller_led): Rename `led_status' paramter to avoid
32663 2009-12-28 Carles Pina i Estany <carles@pina.cat>
32665 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
32668 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32670 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
32672 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32674 * normal/menu_text.c (grub_print_message_indented): Prevent
32675 past-the-end-of-array dereference.
32677 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32679 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
32680 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
32682 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32684 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
32685 * normal/main.c (grub_normal_read_line): Remove a space from the
32688 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32690 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
32691 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32692 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32693 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32694 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32695 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32696 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32698 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32700 * video/readers/jpeg.c (cmd): Declare.
32701 (grub_cmd_jpegtest): Use `grub_command_t' type.
32702 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32704 (GRUB_MOD_FINI): Use `cmd' to unregister.
32705 * video/readers/png.c (cmd): Declare.
32706 (grub_cmd_pngtest): Use `grub_command_t' type.
32707 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32709 (GRUB_MOD_FINI): Use `cmd' to unregister.
32710 * video/readers/tga.c (cmd): Declare.
32711 (grub_cmd_tgatest): Use `grub_command_t' type.
32712 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32714 (GRUB_MOD_FINI): Use `cmd' to unregister.
32716 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32718 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
32720 * kern/corecmd.c (grub_register_core_commands): Likewise.
32721 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
32722 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32723 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
32724 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32725 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32726 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
32727 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32728 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
32729 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32730 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32731 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32732 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32733 * normal/handler.c (insert_handler): Likewise.
32734 * normal/main.c (GRUB_MOD_INIT): Likewise.
32735 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
32737 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32739 * commands/help.c (grub_cmd_help): Print the command name before the
32741 (GRUB_MOD_INIT): Remove command name from the summary.
32742 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
32744 * lib/arg.c (find_long): Print the command name before the summary.
32745 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
32747 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
32748 * commands/cat.c (GRUB_MOD_INIT): Likewise.
32749 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
32750 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32751 * commands/crc.c (GRUB_MOD_INIT): Likewise.
32752 * commands/date.c (GRUB_MOD_INIT): Likewise.
32753 * commands/echo.c (GRUB_MOD_INIT): Likewise.
32754 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
32755 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32756 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32757 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
32758 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
32759 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
32760 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
32761 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32762 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
32763 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
32764 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
32765 * commands/ls.c (GRUB_MOD_INIT): Likewise.
32766 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32767 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32768 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32769 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
32770 * commands/password.c (GRUB_MOD_INIT): Likewise.
32771 * commands/probe.c (GRUB_MOD_INIT): Likewise.
32772 * commands/read.c (GRUB_MOD_INIT): Likewise.
32773 * commands/search.c (GRUB_MOD_INIT): Likewise.
32774 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
32775 * commands/test.c (GRUB_MOD_INIT): Likewise.
32776 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
32777 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
32778 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
32779 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
32780 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
32781 * lib/arg.c (GRUB_MOD_INIT): Likewise.
32782 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
32783 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32784 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32785 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32786 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
32787 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
32788 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
32789 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
32791 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32793 Use search command for preliminar UUID search.
32795 * commands/search.c: Split into ...
32796 * commands/search_wrap.c: ...this
32797 * commands/search.c: ...and this.
32798 * commands/search_file.c: New file.
32799 * commands/search_label.c: New file.
32800 * commands/search_uuid.c: New file.
32801 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
32802 Add commands/search_wrap.c, commands/search_file.c,
32803 commands/search_label.c and commands/search_uuid.c.
32804 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32805 (search_mod_SOURCES): Set to commands/search_wrap.c.
32806 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32808 (search_fs_file_mod_SOURCES): New variable.
32809 (search_fs_file_mod_CFLAGS): Likewise.
32810 (search_fs_file_mod_LDFLAGS): Likewise.
32811 (search_label_mod_SOURCES): Likewise.
32812 (search_label_mod_CFLAGS): Likewise.
32813 (search_label_mod_LDFLAGS): Likewise.
32814 (search_fs_uuid_mod_SOURCES): New variable.
32815 (search_fs_uuid_mod_CFLAGS): Likewise.
32816 (search_fs_uuid_mod_LDFLAGS): Likewise.
32817 (fs_file_mod_SOURCES): Removed.
32818 (fs_file_mod_CFLAGS): Likewise.
32819 (fs_file_mod_LDFLAGS): Likewise.
32820 (fs_uuid_mod_SOURCES): Removed.
32821 (fs_uuid_mod_CFLAGS): Likewise.
32822 (fs_uuid_mod_LDFLAGS): Likewise.
32823 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32824 Set to util/grub-install.in.
32825 * disk/fs_file.c: Removed.
32826 * disk/fs_uuid.c: Likewise.
32827 * include/grub/search.h: New file.
32828 * util/grub-install.in: Handle sparc64.
32829 Create and use load.cfg.
32830 * util/sparc64/ieee1275/grub-install.in: Removed.
32832 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32834 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32835 Ignore return status if CF is cleared.
32836 (grub_biosdisk_get_diskinfo_standard): Likewise.
32838 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32840 * term/i386/pc/at_keyboard.c
32841 (keyboard_controller_wait_untill_ready): New function.
32842 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32843 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32844 for keyboard polling, rather than duplicate the same loop. This
32845 saves a few bytes in code size.
32847 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32849 Support for (pxe[:server[:gateway]]) syntax and
32850 use environment variable for PXE.
32852 * commands/i386/pc/pxecmd.c (options): Removed.
32853 (print_ip): Removed.
32854 (grub_cmd_pxe): Removed
32855 (grub_cmd_pxe_unload): New function.
32856 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32857 (grub_pxe_your_ip): Made static.
32858 (grub_pxe_default_server_ip): Likewise.
32859 (grub_pxe_default_gateway_ip): Likewise.
32860 (grub_pxe_blksize): Likewise.
32861 (parse_ip): New function.
32862 (grub_pxe_open): Support server and gateway specification.
32863 (grub_pxe_close): Free disk->data.
32864 (grub_pxefs_open): Use disk->data.
32865 (grub_pxefs_read): Likewise.
32866 (grub_env_write_readonly): New function.
32867 (set_mac_env): Likewise.
32868 (set_env_limn_ro): Likewise.
32869 (parse_dhcp_vendor): Likewise.
32870 (grub_pxe_detect): Set the environment variables.
32871 (set_ip_env): New function.
32872 (write_ip_env): Likewise.
32873 (grub_env_write_pxe_default_server): Likewise.
32874 (grub_env_write_pxe_default_gateway): Likewise.
32875 (grub_env_write_pxe_blocksize): Likewise.
32876 (GRUB_MOD_INIT(pxe)): Set environment variables.
32877 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32878 (grub_pxe_mac_addr_t): ... this. All users updated.
32879 (grub_pxe_your_ip): Removed.
32880 (grub_pxe_server_ip): Likewise.
32881 (grub_pxe_gateway_ip): Likewise.
32882 (grub_pxe_blksize): Likewise.
32884 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32886 * commands/help.c: Include `<grub/i18n.h>'.
32887 (grub_cmd_help): Gettextizze.
32888 (GRUB_MOD_INIT): Likewise.
32889 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
32890 (GRUB_MOD_INIT): Gettextizze.
32891 * commands/search.c: Include `<grub/i18n.h>'.
32892 (options): Gettextizze.
32893 (GRUB_MOD_INIT): Gettextizze.
32894 * lib/arg.c: Include `<grub/i18n.h>'.
32895 (help_options): Gettextizze.
32896 (find_long): Likewise.
32897 (grub_arg_show_help): Likewise.
32898 * normal/dyncmd.c: Include `<grub/i18n.h>'.
32899 (read_command_list): Gettextizze.
32900 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
32901 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
32903 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32905 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
32906 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
32907 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
32908 (led_status): New variable.
32909 (keyboard_controller_led): New function.
32910 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
32911 update led status for caps lock, num lock and scroll lock.
32913 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
32915 * util/hostdisk.c (open_device): Fix a comment.
32917 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32919 * util/grub-install.in (host_os): New variable.
32920 * util/i386/efi/grub-install.in (host_os): Likewise.
32922 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32924 * util/mkisofs/write.c (padblock_write): Abort when given an
32925 excedingly large embed image, instead of silently truncating it.
32927 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32929 * include/multiboot.h: Indentation fixes.
32931 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32933 * include/multiboot.h (struct multiboot_aout_symbol_table)
32934 (struct multiboot_elf_section_header_table): New structure
32935 declarations (stolen from GRUB Legacy).
32936 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
32939 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
32940 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
32943 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32945 * include/multiboot.h: Make comments src2texi-friendly.
32947 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32949 For consistency with [multiboot]/docs/boot.S.
32951 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
32952 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
32953 (MULTIBOOT_MAGIC2): Rename from this ...
32954 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
32956 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32958 * include/multiboot.h: Remove `<grub/types.h>'.
32959 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
32960 types. Update all users.
32962 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32964 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
32965 `couldn't' and `can not' by `cannot'.
32966 * commands/i386/pc/drivemap.c: Likewise.
32967 * disk/ata.c: Likewise.
32968 * disk/ieee1275/nand.c: Likewise.
32969 * fs/affs.c: Likewise.
32970 * fs/fat.c: Likewise.
32971 * fs/hfs.c: Likewise.
32972 * fs/hfsplus.c: Likewise.
32973 * fs/iso9660.c: Likewise.
32974 * fs/jfs.c: Likewise.
32975 * fs/minix.c: Likewise.
32976 * fs/reiserfs.c: Likewise.
32977 * fs/sfs.c: Likewise.
32978 * fs/udf.c: Likewise.
32979 * fs/ufs.c: Likewise.
32980 * fs/xfs.c: Likewise.
32981 * loader/powerpc/ieee1275/linux.c: Likewise.
32982 * loader/sparc64/ieee1275/linux.c: Likewise.
32983 * util/grub-probe.c: Likewise.
32984 * util/misc.c: Likewise.
32986 2009-12-24 Carles Pina i Estany <carles@pina.cat>
32988 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
32990 * commands/acpi.c: Likewise.
32991 * commands/blocklist.c: Likewise.
32992 * commands/efi/loadbios.c: Likewise.
32993 * commands/i386/pc/drivemap.c: Likewise.
32994 * commands/loadenv.c: Likewise.
32995 * commands/memrw.c: Likewise.
32996 * commands/password.c: Likewise.
32997 * commands/videotest.c: Likewise.
32998 * disk/ata.c: Likewise.
32999 * disk/ata_pthru.c: Likewise.
33000 * disk/dmraid_nvidia.c: Likewise.
33001 * disk/ieee1275/nand.c: Likewise.
33002 * disk/ieee1275/ofdisk.c: Likewise.
33003 * disk/loopback.c: Likewise.
33004 * disk/lvm.c: Likewise.
33005 * disk/mdraid_linux.c: Likewise.
33006 * disk/raid.c: Likewise.
33007 * disk/raid6_recover.c: Likewise.
33008 * disk/scsi.c: Likewise.
33009 * efiemu/main.c: Likewise.
33010 * efiemu/mm.c: Likewise.
33011 * efiemu/pnvram.c: Likewise.
33012 * efiemu/symbols.c: Likewise.
33013 * font/font.c: Likewise.
33014 * fs/cpio.c: Likewise.
33015 * fs/hfsplus.c: Likewise.
33016 * fs/iso9660.c: Likewise.
33017 * fs/jfs.c: Likewise.
33018 * fs/minix.c: Likewise.
33019 * fs/ntfs.c: Likewise.
33020 * fs/ntfscomp.c: Likewise.
33021 * fs/reiserfs.c: Likewise.
33022 * fs/ufs.c: Likewise.
33023 * fs/xfs.c: Likewise.
33024 * gettext/gettext.c: Likewise.
33025 * include/grub/auth.h: Likewise.
33026 * kern/elf.c: Likewise.
33027 * kern/file.c: Likewise.
33028 * kern/ieee1275/init.c: Likewise.
33029 * kern/ieee1275/mmap.c: Likewise.
33030 * kern/ieee1275/openfw.c: Likewise.
33031 * kern/powerpc/dl.c: Likewise.
33032 * kern/sparc64/dl.c: Likewise.
33033 * lib/arg.c: Likewise.
33034 * loader/i386/bsd.c: Likewise.
33035 * loader/i386/bsdXX.c: Likewise.
33036 * loader/i386/efi/linux.c: Likewise.
33037 * loader/i386/efi/xnu.c: Likewise.
33038 * loader/i386/ieee1275/linux.c: Likewise.
33039 * loader/i386/linux.c: Likewise.
33040 * loader/i386/multiboot.c: Likewise.
33041 * loader/i386/pc/linux.c: Likewise.
33042 * loader/i386/pc/multiboot2.c: Likewise.
33043 * loader/i386/xnu.c: Likewise.
33044 * loader/ieee1275/multiboot2.c: Likewise.
33045 * loader/macho.c: Likewise.
33046 * loader/machoXX.c: Likewise.
33047 * loader/multiboot2.c: Likewise.
33048 * loader/multiboot_loader.c: Likewise.
33049 * loader/powerpc/ieee1275/linux.c: Likewise.
33050 * loader/sparc64/ieee1275/linux.c: Likewise.
33051 * loader/xnu.c: Likewise.
33052 * loader/xnu_resume.c: Likewise.
33053 * mmap/i386/pc/mmap.c: Likewise.
33054 * normal/menu_viewer.c: Likewise.
33055 * partmap/acorn.c: Likewise.
33056 * partmap/amiga.c: Likewise.
33057 * partmap/apple.c: Likewise.
33058 * script/lexer.c: Likewise.
33059 * term/gfxterm.c: Likewise.
33060 * term/i386/pc/serial.c: Likewise.
33061 * term/i386/pc/vga.c: Likewise.
33062 * term/ieee1275/ofconsole.c: Likewise.
33063 * term/terminfo.c: Likewise.
33064 * video/bitmap.c: Likewise.
33065 * video/efi_gop.c: Likewise.
33066 * video/efi_uga.c: Likewise.
33067 * video/fb/video_fb.c: Likewise.
33068 * video/i386/pc/vbe.c: Likewise.
33069 * video/readers/tga.c: Likewise.
33070 * video/video.c: Likewise.
33072 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
33074 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
33075 * commands/lspci.c: Likewise.
33076 * commands/probe.c: Likewise.
33077 * commands/xnu_uuid.c: Likewise.
33078 * conf/i386-coreboot.rmk: Likewise.
33079 * conf/i386-efi.rmk: Likewise.
33080 * conf/i386-ieee1275.rmk: Likewise.
33081 * conf/i386-pc.rmk: Likewise.
33082 * conf/powerpc-ieee1275.rmk: Likewise.
33083 * conf/sparc64-ieee1275.rmk: Likewise.
33084 * conf/x86_64-efi.rmk: Likewise.
33085 * fs/i386/pc/pxe.c: Likewise.
33086 * gettext/gettext.c: Likewise.
33087 * include/grub/efi/graphics_output.h: Likewise.
33088 * include/grub/i386/pc/memory.h: Likewise.
33089 * kern/env.c: Likewise.
33090 * kern/i386/qemu/startup.S: Likewise.
33091 * lib/i386/pc/biosnum.c: Likewise.
33092 * lib/i386/relocator.c: Likewise.
33093 * lib/i386/relocator_asm.S: Likewise.
33094 * lib/relocator.c: Likewise.
33095 * loader/i386/bsd.c: Likewise.
33096 * loader/i386/multiboot.c: Likewise.
33097 * loader/i386/pc/chainloader.c: Likewise.
33098 * loader/i386/xnu.c: Likewise.
33099 * loader/xnu.c: Likewise.
33100 * normal/main.c: Likewise.
33101 * normal/menu_text.c: Likewise.
33102 * util/getroot.c: Likewise.
33103 * util/grub-mkconfig_lib.in: Likewise.
33104 * util/grub.d/00_header.in: Likewise.
33105 * util/i386/pc/grub-mkimage.c: Likewise.
33106 * util/mkisofs/eltorito.c: Likewise.
33107 * util/mkisofs/exclude.h: Likewise.
33108 * util/mkisofs/hash.c: Likewise.
33109 * util/mkisofs/iso9660.h: Likewise.
33110 * util/mkisofs/joliet.c: Likewise.
33111 * util/mkisofs/mkisofs.c: Likewise.
33112 * util/mkisofs/mkisofs.h: Likewise.
33113 * util/mkisofs/multi.c: Likewise.
33114 * util/mkisofs/name.c: Likewise.
33115 * util/mkisofs/rock.c: Likewise.
33116 * util/mkisofs/tree.c: Likewise.
33117 * util/mkisofs/write.c: Likewise.
33118 * video/efi_gop.c: Likewise.
33120 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
33122 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
33125 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33127 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
33128 * genmk.rb (class SCRIPT): Modify the target file instead of source.
33130 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33132 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
33133 (GRUB_MOD_INIT(memrw)): Update help line.
33135 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33137 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
33138 Use grub_extcmd_t. All users updated.
33139 (options): New variable.
33140 (grub_cmd_read): Restructure for readability. Support "-v" option.
33141 (grub_cmd_write): Restructure for readability.
33143 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33145 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
33147 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33149 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
33150 with the actual contents of the correspondending make variable.
33151 * util/grub-mkrescue.in (pkglib_DATA): New variable.
33152 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
33153 specifying `*.lst' and `efiemu??.o'
33155 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33157 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
33158 after function name.
33159 Noticed by Rene Engelhard <rene@debian.org>.
33161 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33163 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
33164 (options): New variable.
33165 (iospace): Likewise.
33166 (grub_lspci_iter): List IO spaces if "-i" was given.
33167 (grub_cmd_lspci): Parse options.
33168 (GRUB_MOD_INIT(lspci)): Use extcmd.
33169 (GRUB_MOD_FINI(lspci)): Likewise.
33171 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33173 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
33174 `function' keyword.
33175 Patch by Tony Mancill <tmancill@debian.org>.
33177 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33179 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
33180 (grub_uhci_portstatus): Likewise.
33181 (grub_uhci_portstatus): Add necessary delay.
33182 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
33184 2009-12-21 Carles Pina i Estany <carles@pina.cat>
33186 * commands/acpi.c (options): Fix capitalizations and/or full stops.
33187 (GRUB_MOD_INIT): Likewise.
33188 * commands/boot.c (GRUB_MOD_INIT): Likewise.
33189 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
33190 * commands/echo.c (options): Fix capitalizations and/or full stops.
33191 * commands/efi/loadbios.c (enable_rom_area): Likewise.
33192 (enable_rom_area): Likewise.
33193 (GRUB_MOD_INIT): Likewise.
33194 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
33195 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
33196 * commands/handler.c (GRUB_MOD_INIT): Likewise.
33197 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
33198 * commands/hexdump.c (options): Likewise.
33199 * commands/i386/cpuid.c (options): Likewise.
33200 (GRUB_MOD_INIT): Likewise.
33201 * commands/i386/pc/drivemap.c (options): Likewise.
33202 (GRUB_MOD_INIT): Likewise.
33203 * commands/i386/pc/halt (options): Likewise.
33204 (GRUB_MOD_INIT): Likewise.
33205 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
33206 * commands/i386/pc/pxecmd.c (options): Likewise.
33207 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
33208 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
33209 * commands/keystatus.c (options): Likewise.
33210 (GRUB_MOD_INIT): Likewise.
33211 * commands/loadenv.c (options): Likewise.
33212 * commands/ls.c (options): Likewise.
33213 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
33214 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
33215 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
33216 * commands/parttool.c (helpmsg): Likewise.
33217 * commands/probe.c (options): Likewise.
33218 * commands/read.c (GRUB_MOD_INIT): Likewise.
33219 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
33220 * commands/search.c (options): Likewise.
33221 * commands/sleep.c (options): Likewise.
33222 * commands/test.c (GRUB_MOD_INIT): Likewise.
33223 * commands/true.c (GRUB_MOD_INIT): Likewise.
33224 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
33225 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
33226 * lib/arg.c (help_options): Likewise.
33227 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
33229 * po/POTFILES: Add `commands/loadenv.c'.
33231 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
33233 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
33234 instead of specifying them explicit.
33236 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33238 * NEWS: Add grub-probe support for GNU/Hurd.
33240 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33242 * NEWS: gettext was added after 1.97.
33244 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33246 * util/mkisofs/msdos_partition.h: New file (based on
33247 include/grub/msdos_partition.h).
33248 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
33249 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
33250 (ld_options, main): Recognize --protective-msdos-label.
33251 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
33252 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
33253 (padblock_write): If `use_protective_msdos_label' is set, patch a
33254 protective DOS-style label in the output image.
33256 * util/grub-mkrescue.in: Use --protective-msdos-label.
33258 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33260 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
33263 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33265 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
33267 (ld_options, main): Recognize `--embedded-boot'.
33268 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
33270 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
33271 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
33272 (padblock_write): Likewise. Rewrite to support embedded boot image.
33274 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
33275 for BIOS-based disk boot instead of only ElTorito.
33277 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33279 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
33280 build (not needed for bootstrap).
33282 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33284 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
33285 from i386-pc build (not needed for bootstrap).
33286 Rewrite a pair of strings.
33288 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33290 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
33292 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
33294 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
33296 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33298 * kern/env.c (grub_env_context_open): Mark exported variable for
33301 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33303 * kern/env.c (grub_env_export): Create nonexistent variables before
33306 2009-12-20 Carles Pina i Estany <carles@pina.cat>
33308 * include/grub/auth.h: Include `<grub/i18n.h>'.
33309 (GRUB_GET_PASSWORD): Gettextizze string.
33310 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
33312 (grub_utf8_to_ucs4_alloc): Fix indentation.
33313 (grub_print_ucs4): Likewise.
33314 (grub_getstringwidth): Likewise.
33315 (print_message_indented): New declaration.
33316 * normal/auth.c: Include `<grub/i18n.h>'.
33317 (grub_auth_check_authentication): Gettexttize string.
33318 * normal/cmdline.c: Include `<grub/i18n.h>'.
33319 (grub_cmdline_get): Gettextizze.
33320 * normal/color.c: Include `<grub/i18n.h>'.
33321 (grub_parse_color_name_pair): Gettexttize strings.
33322 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
33323 string (use `print_message_indented').
33324 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
33325 `include/grub/normal.h'.
33326 (print_message_indented): Renamed to ...
33327 (grub_print_message_indented): ... this. Remove `static' qualifer (now
33328 used in normal/main.c).
33329 (print_message): Use `grub_print_message_indented' instead of
33330 `print_message_indented'.
33331 (print_timeout): Likewise.
33332 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
33333 (grub_normal_print_device_info): Gettexttize strings.
33334 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
33336 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33338 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
33339 of arguments. Return number of tokens and not arguments. All users
33342 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33344 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
33345 non-MSDOS paritions.
33347 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
33349 * include/grub/types.h (UNUSED): Removed since it conflicts with
33350 NetBSD headers. All users changed to direct __attribute__ ((unused)).
33351 Reported by Grégoire Sutre.
33353 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33355 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
33356 (grub_print_ucs4_alloc): Likewise.
33357 (grub_getstringwidth): Likewise.
33358 * normal/main.c (grub_normal_init_page): Gettextize version string.
33359 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
33360 (getstringwidth): Renamed to ...
33361 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
33362 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
33363 (grub_print_ucs4): Remove `static' qualifer (now used in
33365 * po/POTFILES: Add normal/main.c.
33367 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33369 * normal/menu_text.c (STANDARD_MARGIN): New macro.
33370 (print_message_indented): Add `margin_left' and `margin_right'
33372 (print_message): Update `print_message_indented' calls. Adds '\n' to the
33374 (print_timeout): Use `print_message_indented' to print the message.
33375 Deletes `second_stage' parameter.
33376 (run_menu): Update `print_timeout' calls.
33378 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33380 Fix console palette on OpenFirmware.
33382 * term/ieee1275/ofconsole.c (MAX): Removed.
33383 (colors): Redone based on VGA palette.
33384 (grub_ofconsole_setcolor): Discard brightness bit since only 8
33385 colors are supported.
33386 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
33388 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33390 Fix potential EfiEmu double prepare.
33392 * efiemu/main.c (prepared): New variable
33393 (grub_efiemu_unload): Set prepare to '0'.
33394 (grub_efiemu_prepare): Return if already prepared. Set prepared.
33396 set_virtual_address_map support.
33398 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
33400 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
33402 (grub_efiemu_crc32): Likewise.
33403 (grub_efiemu_crc64): Likewise.
33404 (grub_efiemu_set_virtual_address_map): Likewise.
33405 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
33407 (grub_autoefi_set_virtual_address_map): Likewise.
33408 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
33409 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
33410 Restructure flow to accomodate it.
33411 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
33412 (grub_efiemu_crc): Recompute CRC32.
33413 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
33414 (efiemu_ptv_relocated): ... this. Made global. All users updated.
33415 * efiemu/symbols.c (relocated_handle): New variable.
33416 (grub_efiemu_free_syms): Free relocated_handle.
33417 (grub_efiemu_alloc_syms): Allocate relocated_handle.
33418 (grub_efiemu_write_sym_markers): New function.
33419 (grub_efiemu_set_virtual_address_map): Likewise.
33421 Newer XNU parameters.
33423 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
33424 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
33425 (grub_xnu_fill_devicetree): New prototype.
33426 (grub_xnu_heap_real_start): New variable.
33427 * loader/xnu.c (get_name_ptr): New function.
33428 (grub_xnu_load_driver): Fill namelen and name.
33430 64-bit xnu support.
33432 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
33433 and 'loader/macho64.c'.
33434 * conf/i386-pc.rmk: Likewise.
33435 * conf/x86_64-efi.rmk: Likewise.
33436 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
33437 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
33438 * include/grub/macho.h (grub_macho_segment64): New structure.
33439 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
33440 (grub_macho_size32): ... to this.
33441 (grub_macho32_get_entry_point): Renamed from ...
33442 (grub_macho_get_entry_point32): ... to this.
33443 (grub_macho_contains_macho64): New prototype.
33444 (grub_macho_size64): Likewise.
33445 (grub_macho_get_entry_point64): Likewise.
33446 (grub_macho32_load): Renamed from ...
33447 (grub_macho_load32): ... to this.
33448 (grub_macho32_filesize): Renamed from ...
33449 (grub_macho_filesize32): ... to this.
33450 (grub_macho32_readfile): Renamed from ...
33451 (grub_macho_readfile32): ... to this.
33452 (grub_macho_filesize64): New prototype.
33453 (grub_macho_readfile64): Likewise.
33454 (grub_macho_parse32): Likewise.
33455 (grub_macho_parse64): Likewise.
33456 * loader/macho.c: Split into ...
33457 * loader/machoXX.c: ... and this. Replace 32 with XX.
33458 * loader/macho32.c: New file.
33459 * loader/macho64.c: Likewise.
33460 * loader/xnu.c (grub_xnu_is_64bit): New variable.
33461 (grub_cmd_xnu_kernel): Make 32-bit only.
33462 (grub_cmd_xnu_kernel64): New function.
33463 (grub_xnu_load_driver): Support Mach-O 64.
33464 (grub_cmd_xnu_mkext): Likewise.
33465 * util/grub.d/30_os-prober.in (osx_entry): New function.
33466 Generate entries for 64-bit boot too.
33468 Eliminate ad-hoc tree format in XNU and EfiEmu.
33470 * efiemu/main.c (grub_efiemu_prepare): Update comment.
33471 * efiemu/pnvram.c: Rewritten to use environment variables.
33474 Inline utf16_to_utf8.
33476 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
33477 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
33479 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
33481 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
33482 * commands/usbtest.c (grub_usb_get_string): ... move here.
33483 (usb_print_str): Fix error handling.
33484 * include/grub/usb.h (grub_usb_get_string): Remove.
33486 UTF-8 to UTF-16 transformation.
33488 * conf/common.rmk (pkglib_MODULES): Add charset.mod
33489 (charset_mod_SOURCES): New variable.
33490 (charset_mod_CFLAGS): Likewise.
33491 (charset_mod_LDFLAGS): Likewise.
33492 * include/grub/utf.h: New file.
33493 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
33495 Support for device properties.
33497 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
33498 (grub_xnu_devprop_device_header): Likewise.
33499 (grub_xnu_devprop_device_descriptor): Likewise.
33500 (grub_xnu_devprop_add_device): New prototype.
33501 (grub_xnu_devprop_remove_device): Likewise.
33502 (grub_xnu_devprop_remove_property): Likewise.
33503 (grub_xnu_devprop_add_property_utf8): Likewise.
33504 (grub_xnu_devprop_add_property_utf16): Likewise.
33505 (grub_cpu_xnu_init): Likewise.
33506 (grub_cpu_xnu_fini): Likewise.
33507 (grub_cpu_xnu_unload): Likewise.
33508 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
33509 (property_descriptor): Likewise.
33510 (devices): New variable.
33511 (grub_xnu_devprop_remove_property): New function.
33512 (grub_xnu_devprop_add_device): Likewise.
33513 (grub_xnu_devprop_remove_device): Likewise.
33514 (grub_xnu_devprop_add_property): Likewise.
33515 (grub_xnu_devprop_add_property_utf8): Likewise.
33516 (grub_xnu_devprop_add_property_utf16): Likewise.
33517 (hextoval): Likewise.
33518 (grub_cpu_xnu_fill_devprop): Likewise.
33519 (grub_cmd_devprop_load): Likewise.
33520 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
33521 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
33522 (cmd_devprop_load): New variable.
33523 (grub_cpu_xnu_init): New function.
33524 (grub_cpu_xnu_fini): Likewise.
33525 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
33526 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
33527 (grub_cmd_xnu_devtree): Likewise.
33528 (hextoval): New function.
33529 (unescape): Likewise.
33530 (grub_xnu_fill_devicetree): Likewise.
33532 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
33533 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
33535 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33537 Workaround for broken ATI VBE.
33539 * video/i386/pc/vbe.c (last_set_mode): New variable.
33540 (grub_vbe_set_video_mode): Set 'last_set_mode'.
33541 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
33542 (grub_video_vbe_setup): Don't check for reserved flag.
33544 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
33546 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
33547 the `find' command.
33549 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
33551 UUID support for HFS.
33553 * fs/hfs.c (grub_hfs_uuid): New function.
33554 (grub_hfs_fs): New value .uuid.
33555 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
33557 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
33559 Fix a segfault with parsing unknown long options.
33561 * util/grub-mkrelpath.c (options): Zero terminate it.
33563 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33565 * include/grub/misc.h (grub_puts): New declaration.
33566 (grub_puts_): Likewise.
33567 * kern/misc.c (grub_puts): New definition.
33568 (grub_puts_): Likewise.
33570 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33572 * util/grub-probe.c (probe): Improve error message.
33574 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33576 * loader/i386/multiboot_elfxx.c
33577 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
33580 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33582 Relocator framework
33584 * loader/i386/xnu_helper.S: Removed. All users updated.
33585 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
33586 (relocator_mod_SOURCES): New variable.
33587 (relocator_mod_CFLAGS): Likewise.
33588 (relocator_mod_LDFLAGS): Likewise.
33589 (relocator_mod_ASFLAGS): Likewise.
33590 * conf/x86_64.rmk: Likewise.
33591 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
33592 (grub_multiboot_payload_entry_offset): Likewise.
33593 (grub_multiboot_forward_relocator): Likewise.
33594 (grub_multiboot_forward_relocator_end): Likewise.
33595 (grub_multiboot_backward_relocator): Likewise.
33596 (grub_multiboot_backward_relocator_end): Likewise.
33597 (grub_multiboot_payload_eip): New variable.
33598 (grub_multiboot_payload_orig): Likewise.
33599 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
33600 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
33601 * include/grub/i386/memory.h
33602 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
33603 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
33604 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
33605 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
33606 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
33607 * include/grub/i386/relocator.h: New file.
33608 * include/grub/x86_64/relocator.h: Likewise.
33609 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
33610 (XNU_RELOCATOR): New macro.
33611 (grub_xnu_launcher_start): Remove.
33612 (grub_xnu_launcher_end): Likewise.
33613 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
33614 (grub_xnu_heap_real_start): Remove.
33615 (grub_xnu_heap_start): Change to void *. All users updated.
33616 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
33617 * lib/i386/relocator.c: New file.
33618 * lib/i386/relocator_asm.S: Likewise.
33619 * lib/i386/relocator_backward.S: Likewise.
33620 * lib/mips/relocator.c: Likewise.
33621 * lib/mips/relocator_asm.S: Likewise.
33622 * lib/relocator.c: Likewise.
33623 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
33625 (playground): Likewise.
33626 (grub_multiboot_payload_orig): New variable.
33627 (grub_multiboot_payload_dest): Likewise.
33628 (grub_multiboot_payload_size): Likewise.
33629 (grub_multiboot_payload_eip): Likewise.
33630 (grub_multiboot_payload_esp): Likewise.
33631 (grub_multiboot_boot): Use grub_relocator32_boot.
33632 (grub_multiboot_unload): Free relocators.
33633 (grub_multiboot): Setup stack. Use relocators.
33634 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
33635 (grub_multiboot_load_elfXX): Use relocators.
33636 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
33637 (grub_multiboot_payload_size): Likewise.
33638 (grub_multiboot_payload_dest): Likewise.
33639 (grub_multiboot_payload_entry_offset): Likewise.
33640 (grub_multiboot_forward_relocator): Likewise.
33641 (grub_multiboot_backward_relocator): Likewise.
33642 (grub_multiboot_real_boot): Likewise.
33643 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
33644 (grub_xnu_entry_point): Likewise.
33645 (grub_xnu_arg1): Likewise.
33646 (grub_xnu_stack): Likewise.
33647 (grub_xnu_launch): Removed.
33648 (grub_xnu_boot_resume): New function.
33649 (grub_xnu_boot): Use relocators.
33650 * loader/i386/xnu_helper.S: Removed.
33651 * loader/xnu.c (grub_xnu_heap_start): New variable.
33652 (grub_xnu_heap_size): Likewise.
33653 (grub_xnu_heap_malloc): Use relocators.
33654 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
33656 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33658 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
33661 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33663 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
33664 GRUB_ERR_NONE before calling grub_env_set.
33666 2009-12-12 Robert Millan <rmh@aybabtu.com>
33668 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
33669 * genmk.rb (video): New variable.
33670 (CLEANFILES, VIDEOFILES): Add #{video}.
33671 (#{video}): New target rule.
33672 * genvideolist.sh: New file.
33673 * Makefile.in (pkglib_DATA): Add video.lst.
33674 (video.lst): New target rule.
33675 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
33677 * util/grub.d/30_os-prober.in: Replace `vbe' with
33678 ${GRUB_VIDEO_BACKEND}.
33680 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
33682 * THANKS: Add David Miller.
33684 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
33686 libpciaccess support.
33688 * Makefile.in (LIBPCIACCESS): New variable.
33689 (enable_grub_emu_pci): Likewise.
33690 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
33691 util/pci.c and commands/lspci.c.
33692 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
33693 * configure.ac (grub-emu-pci): New option.
33694 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
33695 (grub_pci_device_unmap_range): Likewise.
33696 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
33697 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
33698 (grub_pci_address_t) [!GRUB_UTIL]: New type.
33699 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
33700 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
33701 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
33702 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
33703 * include/grub/pciutils.h: New file.
33704 * util/pci.c: Likewise.
33706 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
33708 * util/misc.c: Don't include <errno.h> twice.
33710 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
33712 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
33713 name in an error message.
33714 (grub_biosdisk_rw): Likewise.
33716 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33718 Eliminate NTFS 4Gib barrier.
33720 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
33721 (read_run_data): Likewise.
33722 (grub_ntfs_read_run_list): Likewise.
33723 (grub_ntfs_read_block): Likewise.
33724 (grub_ntfs_iterate_dir): Likewise.
33725 (read_mft): Likewise.
33726 (read_data): Likewise.
33728 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
33729 to avoid 64-bit division
33730 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
33731 (grub_ntfs_rlst): Use grub_disk_addr_t.
33733 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33735 Eliminate grub-fstest 4Gib barrier.
33737 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
33738 (read_file): Fix error reporting.
33740 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33742 Eliminate hexdump 4Gib barrier.
33744 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
33745 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
33747 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33749 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
33752 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
33754 Remove miscellaneous files in distclean target.
33756 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
33758 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
33760 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
33761 if they're already set. This resolves the conflict between my
33762 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
33763 fixing the --grub-probe option again.
33764 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
33765 change on 2009-10-06, so that we now once again source
33766 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33768 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
33770 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
33771 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
33772 `util/devicemap.c'.
33774 2009-12-08 Carles Pina i Estany <carles@pina.cat>
33776 * include/grub/misc.h (grub_printf_): New declaration.
33777 * kern/misc.c (grub_printf_): New definition.
33778 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
33779 instead of `grub_printf' and `_'.
33780 * normal/menu_entry.c (store_completion): Likewise.
33782 (grub_menu_entry_run): Likewise.
33783 * normal/menu_text.c (grub_wait_after_message): Likewise.
33784 (notify_booting): Likewise.
33785 (notify_fallback): Likewise.
33786 (notify_execution_failure): Likewise.
33788 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
33790 * configure.ac: Check for vasprintf.
33791 * util/misc.c (asprintf): Move allocation from here ...
33792 (vasprintf): ... to here. New function.
33793 (xasprintf): New function.
33794 * include/grub/util/misc.h (vasprintf, xasprintf): Add
33796 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
33797 * util/grub-mkfont.c (write_font): Likewise.
33798 * util/grub-probe.c (probe): Likewise.
33799 * util/hostdisk.c (make_device_name): Likewise.
33801 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
33803 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
33804 anything even prefixed with 'cdrom' as a cdrom.
33806 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
33808 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33811 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33813 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33814 grub_gettext_msg_list.
33815 (grub_gettext_gettranslation_from_position): Return const char *
33817 (grub_gettext_translate): Add the translated strings into a list,
33818 returns from the list if existing there.
33819 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33820 (grub_gettext_delete_list): Delete the list.
33821 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33822 lang environment variable is changed.
33823 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33825 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33827 Rename kernel.mod to kernel.img.
33829 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33830 (kernel_mod_EXPORTS): Rename to ...
33831 (kernel_img_EXPORTS): ... this.
33832 (kernel_mod_SOURCES): Rename to ...
33833 (kernel_img_SOURCES): ... this.
33834 (kernel_mod_HEADERS): Rename to ...
33835 (kernel_img_HEADERS): ... this. All users updated.
33836 (kernel_mod_CFLAGS): Rename to ...
33837 (kernel_img_CFLAGS): ... this.
33838 (kernel_mod_ASFLAGS): Rename to ...
33839 (kernel_img_ASFLAGS): ... this.
33840 (kernel_mod_LDFLAGS): Rename to ...
33841 (kernel_img_LDFLAGS): ... this.
33842 * conf/x86_64-efi.rmk: Likewise.
33843 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33844 (read_kernel_image): ... this. All users updated.
33845 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33847 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33849 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33850 (print_spaces): New function.
33851 (grub_print_ucs4): New function.
33852 (getstringwidth): New function.
33853 (print_message_indented): New function.
33854 (print_message): Gettexttize strings using print_message_indented.
33855 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33857 (get_entry_number): Gettextize and uses dynamic terminal width.
33858 (notify_booting, notify_fallback, notify_execution_failure):
33860 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33863 (grub_menu_entry_run): Likewise.
33864 * PO/POTFILES: Add normal/menu_entry.c.
33866 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33868 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33870 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33872 * util/grub-install.in: Install gettext .mo files.
33873 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33875 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33877 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
33880 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
33882 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
33883 non-firmware-dependant one in realmode.S takes precedence.
33885 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
33887 * commands/halt.c: Replace misc arch-specific headers with
33889 * commands/reboot.c: Likewise.
33890 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
33892 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
33893 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
33894 (kernel_img_SOURCES): ... to here.
33896 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
33897 * include/grub/i386/pc/init.h: Likewise.
33898 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33899 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33901 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
33903 * include/grub/i386/halt.h: Remove.
33904 * include/grub/i386/reboot.h: Likewise.
33906 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
33908 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
33910 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
33911 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
33912 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
33914 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33915 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33916 (usage): Add missing comma in printf.
33918 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
33920 Use the same reboot approach on i386 coreboot and qemu as we do on
33923 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
33924 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
33925 * kern/i386/reboot.c: Remove.
33926 * include/grub/i386/reboot.h (grub_reboot): Export function.
33927 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
33928 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
33929 0xf000:0xfff0 instead of 0xffff:0x0000.
33930 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
33931 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
33933 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
33935 Fix $srcdir != $objdir build.
33937 * Makefile.in (po/%.po): Rewrite as ...
33938 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
33940 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
33942 Fix GNU/Hurd grub-install crash.
33943 * util/grub-probe.c (probe): Try to access `path' only when it is not
33946 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33948 Correct module naming.
33950 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33951 (GRUB_MOD_INIT(efi_uga)): ... to this
33952 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33953 (GRUB_MOD_FINI(efi_uga)): ... to this
33954 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33955 (GRUB_MOD_INIT(efi_gop)): ... to this
33956 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33957 (GRUB_MOD_FINI(efi_gop)): ... to this
33959 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
33961 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
33963 (usage): Translate `arg' strings using gettext().
33964 Thanks to Jordi Mallach for the suggestion.
33966 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33968 GOP support. Based on patch from Bean
33969 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
33971 * video/efi_gop.c: New file.
33972 * include/grub/efi/graphics_output.h: Likewise.
33973 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
33974 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
33976 * conf/x86_64-efi.rmk: Likewise.
33978 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33980 Rename efi_fb to efi_uga.
33982 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33984 (efi_fb_mod_SOURCES): Rename this ...
33985 (efi_uga_mod_SOURCES): ... to this.
33986 (efi_fb_mod_CFLAGS): Rename this ...
33987 (efi_uga_mod_CFLAGS): ... to this.
33988 (efi_fb_mod_LDFLAGS): Rename this ...
33989 (efi_uga_mod_LDFLAGS): ... to this.
33990 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33992 (efi_fb_mod_SOURCES): Rename this ...
33993 (efi_uga_mod_SOURCES): ... to this.
33994 (efi_fb_mod_CFLAGS): Rename this ...
33995 (efi_uga_mod_CFLAGS): ... to this.
33996 (efi_fb_mod_LDFLAGS): Rename this ...
33997 (efi_uga_mod_LDFLAGS): ... to this.
33998 * video/efi_fb.c: Move this ...
33999 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
34001 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
34003 * po/README: New file. Explain our PO file workflow.
34005 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
34007 * po/ChangeLog: Remove. Move relevant entries back to ...
34008 * ChangeLog: ... here.
34009 * po/ca.po: Remove (now handled by TLP).
34010 * po/id.po: Likewise.
34011 * po/zh_CN.po: Likewise.
34012 * Makefile.in (LINGUAS): Initialize in a way that supports
34015 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
34017 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
34018 reliing on po/LINGUAS.
34019 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
34020 (po/%.po): ... this.
34022 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34024 * util/i386/efi/grub-mkimage.c: Include "progname.h".
34025 (main): Use `program_name' instead of nonexistent `progname'.
34027 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34029 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34030 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
34032 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
34034 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
34036 * conf/i386-efi.rmk: Likewise.
34037 * conf/i386-ieee1275.rmk: Likewise.
34038 * conf/powerpc-ieee1275.rmk: Likewise.
34039 * conf/sparc64-ieee1275.rmk: Likewise.
34040 * conf/x86_64-efi.rmk: Likewise.
34042 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34044 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
34046 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34048 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
34050 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
34052 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
34053 (grub_mkdevicemap_SOURCES): New variable.
34054 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
34055 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
34056 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
34057 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
34058 (grub_mkdevicemap_SOURCES): Remove.
34059 * conf/i386-efi.rmk: Likewise.
34060 * conf/i386-ieee1275.rmk: Likewise.
34061 * conf/i386-pc.rmk: Likewise.
34062 * conf/powerpc-ieee1275.rmk: Likewise.
34063 * conf/sparc64-ieee1275.rmk: Likewise.
34064 * conf/x86_64-efi.rmk: Likewise.
34065 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
34066 (usage): Fix strings to use `program_name'.
34067 (main): Initialize gettext.
34068 * util/grub-editenv.c: Likewise.
34069 * util/grub-emu.c: Likewise.
34070 * util/grub-fstest.c: Likewise.
34071 * util/grub-mkdevicemap.c: Likewise.
34072 * util/grub-mkfont.c: Likewise.
34073 * util/grub-mkrelpath.c: Likewise.
34074 * util/grub-pe2elf.c: Likewise.
34075 * util/grub-probe.c: Likewise.
34076 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
34077 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
34078 * util/sparc64/ieee1275/grub-setup.c: Likewise.
34080 * util/misc.c: Include `"progname.h"'.
34081 (progname): Remove variable.
34082 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
34084 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
34086 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
34087 printf and print a newline after the menuentry header line.
34088 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34090 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
34092 autoconf >= 2.60 support $(localedir).
34094 * INSTALL: Note that autoconf 2.60 is required.
34095 * configure.ac (AC_PREREQ): Bump to 2.60.
34096 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
34097 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
34099 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
34101 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
34104 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34106 * normal/main.c (grub_normal_read_line): Fix off-by-one
34109 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34111 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
34112 "parser.grub" in grub_command_execute() call.
34114 2009-11-24 Carles Pina i Estany <carles@pina.cat>
34116 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
34117 * conf/i386-efi.rmk: Likewise.
34118 * conf/i386-ieee1275.rmk: Likewise.
34119 * conf/i386-pc.rmk: Likewise.
34120 * conf/powerpc-ieee1275.rmk: Likewise.
34121 * conf/sparc64-ieee1275.rmk: Likewise.
34122 * conf/x86_64-efi.rmk: Likewise.
34123 * gettext/gettex.c: Include <grub/i18n.h>.
34124 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
34126 * include/grub/i18n.h: ... to here
34127 * include/grub/i18n.h: ... to here.
34128 * kern/misc.c: Include <grub/i18n.h>
34129 (grub_gettext_dummy): Move above user.
34131 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34133 * util/Makefile.in (install-local): Convert a `for' into a normal
34136 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
34138 * autogen.sh: Add automake call.
34139 * config.guess: Remove.
34140 * config.sub: Likewise.
34141 * install-sh: Likewise.
34143 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34145 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
34147 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34149 * util/Makefile.in (install-local): Convert a make `$(foreach)'
34150 function to a normal shell `for'.
34152 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34154 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34156 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34158 * util/grub-mkrelpath.c: New file.
34159 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
34160 (grub_mkrelpath_SOURCES): New variable.
34161 * include/grub/util/misc.h: New function prototype.
34162 * util/misc.c (make_system_path_relative_to_its_root): New function.
34164 * util/grub-mkconfig_lib.in (bindir): New variable.
34165 (grub_mkrelpath): Likewise.
34166 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
34168 * util/probe.c (probe): Make the file path relative to its root.
34169 Change a info message to use the GRUB path. Enable again the
34170 check if we can read the file with GRUB facilities.
34172 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
34175 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34177 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
34180 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34182 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
34185 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34187 * util/getroot.c (grub_util_is_dmraid): New function.
34188 (grub_util_get_dev_abstraction): Treat dmraid and multipath
34189 devices as normal ones, not as LVM.
34191 2009-11-23 Carles Pina i Estany <carles@pina.cat>
34193 * conf/common.rmk: Add grub-gettext_lib target and updates
34194 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
34196 * gettext/gettext.c: New file. (Reads mo files).
34197 * include/grub/file.h (grub_file_pread): New prototype.
34198 * include/grub/i18n.h (_): New prototype.
34199 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
34201 * kern/misc.c (grub_gettext_dummy): New function.
34202 * normal/menu_text.c: Include <grub/i18n.h>.
34203 * normal/menu_text.c (print_timeout): Gettexttize string.
34204 * normal/menu_text.c (print_message): Gettexttize string.
34205 * po/POTFILES: Add `normal/menu_text.c'.
34206 * po/ca.po: Add new translations.
34207 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
34208 gettext module and defines locale_dir and lang in grub.cfg.
34209 * NEWS: Add gettext support.
34211 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34213 * util/hostdisk.c: Include `<grub/i18n.h>'.
34214 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
34215 (make_device_name): Rewrite using asprintf.
34216 (convert_system_partition_to_system_disk): Replace 0 with NULL.
34217 (find_system_device): If a device is not found, generate one just
34218 by reusing the OS path name.
34219 (read_device_map): Make it permissible for device.map not to exist.
34221 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34223 * script/sh/execute.c: Move from here ...
34224 * script/execute.c: ... to here. Update all users.
34225 * script/sh/function.c: Move from here ...
34226 * script/function.c: ... to here. Update all users.
34227 * script/sh/lexer.c: Move from here ...
34228 * script/lexer.c: ... to here. Update all users.
34229 * script/sh/main.c: Move from here ...
34230 * script/main.c: ... to here. Update all users.
34231 * script/sh/parser.y: Move from here ...
34232 * script/parser.y: ... to here. Update all users.
34233 * script/sh/script.c: Move from here ...
34234 * script/script.c: ... to here. Update all users.
34236 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34238 * configure.ac: Detect all `emu' platforms. Define
34239 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
34240 --enable-grub-emu logic. Disable include/grub/machine
34241 symlink on `emu' platforms.
34243 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
34244 * gensymlist.sh.in: Likewise.
34246 * include/grub/i386/coreboot/machine.h: Remove file.
34247 * include/grub/i386/efi/machine.h: Likewise.
34248 * include/grub/i386/ieee1275/machine.h: Likewise.
34249 * include/grub/i386/pc/machine.h: Likewise.
34250 * include/grub/i386/qemu/machine.h: Likewise.
34251 * include/grub/powerpc/ieee1275/machine.h: Likewise.
34252 * include/grub/sparc64/ieee1275/machine.h: Likewise.
34253 * include/grub/x86_64/efi/machine.h: Likewise.
34255 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
34256 * commands/halt.c: Likewise.
34257 * commands/reboot.c: Likewise.
34258 * include/grub/autoefi.h: Likewise.
34259 * include/grub/i386/at_keyboard.h: Likewise.
34260 * include/grub/i386/kernel.h: Likewise.
34261 * include/grub/i386/loader.h: Likewise.
34262 * include/grub/i386/pc/memory.h: Likewise.
34263 * kern/dl.c: Likewise.
34264 * kern/i386/coreboot/init.c: Likewise.
34265 * loader/i386/bsd.c: Likewise.
34266 * loader/i386/linux.c: Likewise.
34267 * loader/multiboot_loader.c: Likewise.
34268 * term/i386/pc/serial.c: Likewise.
34269 * term/usb_keyboard.c: Likewise.
34271 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
34272 `<grub/machine/machine.h>'
34273 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
34274 * util/misc.c: Remove `<grub/machine/machine.h>' and
34275 `<grub/machine/time.h>'.
34277 * Makefile.in (enable_grub_emu): Remove variable.
34278 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
34280 * conf/any-emu.rmk: New file.
34281 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
34282 (grub_emu_init.c): Move from here ...
34283 * conf/any-emu.rmk: ... to here.
34285 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
34286 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
34287 * conf/any-emu.rmk: ... to here.
34289 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34291 * include/grub/parser.h (grub_parser_register): Document need
34292 of `name' parameter.
34293 * normal/main.c (grub_normal_read_line): Simplify prompt string.
34294 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
34297 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34299 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
34301 * include/grub/i18n.h (N_): New macro.
34302 * util/mkisofs/mkisofs.h: Likewise.
34303 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
34305 (usage): Use gettext() to translate help strings when printing them.
34307 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34309 Based on patch from Bean
34310 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34312 * video/efi_fb.c: New file.
34313 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
34314 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34316 * conf/x86_64-efi.rmk: Likewise.
34318 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
34320 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
34321 * util/i386/pc/grub-setup.c: Likewise.
34323 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
34325 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
34327 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
34328 file_get_storage_info to implement grub_guess_root_device.
34330 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34332 * Makefile.in (target): Use make's builtin $(shell) function
34333 instead of calling directly $(SHELL) to create the locale directories,
34334 inside the $(foreach) function.
34336 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34338 * util/grub-mkrescue.in: Print an error and usage if output option
34339 has not been given.
34341 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34343 Patch from Loïc Minier <loic.minier@ubuntu.com>.
34344 * util/grub.d/30_os-prober.in: Cope with Linux entries where
34345 root and /boot are on different devices.
34347 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34349 Fix build for srcdir != objdir.
34351 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
34352 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
34354 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
34355 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
34356 reference for input.
34358 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34360 * util/grub-mkrescue.in: Use source directory direcly (without copiing
34361 or hardlinking it). Remove -J option, Joliet is not compatible with
34362 multiple source directories.
34364 2009-11-21 Carles Pina i Estany <carles@pina.cat>
34365 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34367 * util/grub-mkrescue.in: Recognize `--override-directory' option.
34368 (process_input_dir): New function. Process an arbitrary input
34370 Misc adjustments to support both "override mode" and system-wide mode.
34372 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34374 * configure.ac (UNIFONT_BDF): Rename to ...
34375 (FONT_SOURCE): ... this. Update all users.
34377 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34379 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
34380 to the list of unifont files to look for.
34382 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34384 Patch from Joe Auricchio <jauricchio@gmail.com>
34385 * commands/minicmd.c (grub_mini_cmd_clear): New function.
34386 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
34387 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
34389 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34391 * Makefile.in (install-local): Add a missing backslash.
34393 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34395 * include/grub/x86_64/io.h: New file.
34397 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34399 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
34400 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
34401 Include `"progname.h"'.
34402 (main): Initialize gettext.
34403 * util/i386/pc/grub-setup.c: Gettexttize.
34404 * util/i386/pc/grub-mkimage.c: Likewise.
34406 * Makefile.in (po/*.po): Redefine as ...
34407 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
34409 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
34411 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34413 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
34414 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
34415 (program_name): Remove.
34416 (main): Initialize gettext support.
34417 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
34418 Include `<libintl.h>'.
34421 * util/mkisofs/eltorito.c: Gettexttize.
34422 * util/mkisofs/joliet.c: Likewise.
34423 * util/mkisofs/mkisofs.c: Likewise.
34424 * util/mkisofs/multi.c: Likewise.
34425 * util/mkisofs/rock.c: Likewise.
34426 * util/mkisofs/tree.c: Likewise.
34427 * util/mkisofs/write.c: Likewise.
34429 * po/POTFILES: Update with new files.
34431 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34433 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
34434 * util/mkisofs/iso9660.h: Likewise.
34435 * util/mkisofs/joliet.c: Likewise.
34436 * util/mkisofs/mkisofs.c: Likewise.
34437 * util/mkisofs/mkisofs.h: Likewise.
34438 * util/mkisofs/rock.c: Likewise.
34439 * util/mkisofs/tree.c: Likewise.
34440 * util/mkisofs/write.c: Likewise.
34442 * util/mkisofs/eltorito.c (rcsid): Remove.
34443 * util/mkisofs/hash.c: Likewise.
34444 * util/mkisofs/joliet.c: Likewise.
34445 * util/mkisofs/name.c: Likewise.
34446 * util/mkisofs/rock.c: Likewise.
34447 * util/mkisofs/tree.c: Likewise.
34448 * util/mkisofs/write.c: Likewise.
34450 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34452 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
34453 instead of static allocation.
34454 * util/mkisofs/match.h: Likewise.
34456 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34458 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
34459 and `util/grub.d/10_linux.in'.
34460 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
34461 translatable Shell files.
34463 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34465 * Makefile.in ($(srcdir)/aclocal.m4): New target.
34467 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34469 * INSTALL: Document Automake is needed for bootstrap.
34470 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
34471 * util/grub.d/10_kfreebsd.in (bindir): New variable.
34472 Add gettext initialization.
34473 (kfreebsd_entry): Make menuentry output translatable.
34475 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34477 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
34478 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
34479 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
34480 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
34481 (LINGUAS): Auto-generate using `po/LINGUAS'.
34482 * po/LINGUAS: New file.
34484 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34486 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
34488 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
34489 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
34490 bindtextdomain() calls for gettext initialization.
34492 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34494 * gnulib/progname.c: New file (imported from Gnulib).
34495 * gnulib/progname.h: Likewise.
34496 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34497 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
34498 (usage): Replace `progname' with `program_name'.
34499 (main): Use set_program_name() for program name initialization.
34501 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34503 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
34505 * Makefile.in (CPPFLAGS): ... to here.
34507 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34509 * aclocal.m4: Move from here ...
34510 * acinclude.m4: ... to here.
34511 * autogen.sh: Add call to `aclocal'.
34512 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
34514 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34516 * Makefile.in (CLEANFILES): Add `po/*.mo'.
34517 (LINGUAS): New variable.
34518 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
34519 (install-local): Install MO files.
34520 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
34521 * include/grub/i18n.h: New file.
34522 * po/POTFILES: New file.
34523 * po/ca.po: New file.
34524 * util/grub.d/10_linux.in (bindir): New variable.
34525 Add gettext initialization.
34526 (linux_entry): Make menuentry output translatable.
34527 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
34528 (usage): Make --help output translatable.
34529 (main): Initialize gettext.
34531 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34533 * import_gcry.py: New file (written by Vladimir with minor
34535 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
34537 * INSTALL: Document that Python is required for bootstrap.
34539 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34541 Import ciphers from libgcrypt 1.4.4.
34543 * lib/libgcrypt/cipher/ChangeLog
34544 * lib/libgcrypt/cipher/ac.c
34545 * lib/libgcrypt/cipher/arcfour.c
34546 * lib/libgcrypt/cipher/bithelp.h
34547 * lib/libgcrypt/cipher/blowfish.c
34548 * lib/libgcrypt/cipher/camellia-glue.c
34549 * lib/libgcrypt/cipher/camellia.c
34550 * lib/libgcrypt/cipher/camellia.h
34551 * lib/libgcrypt/cipher/cast5.c
34552 * lib/libgcrypt/cipher/cipher.c
34553 * lib/libgcrypt/cipher/crc.c
34554 * lib/libgcrypt/cipher/des.c
34555 * lib/libgcrypt/cipher/dsa.c
34556 * lib/libgcrypt/cipher/ecc.c
34557 * lib/libgcrypt/cipher/elgamal.c
34558 * lib/libgcrypt/cipher/hash-common.c
34559 * lib/libgcrypt/cipher/hash-common.h
34560 * lib/libgcrypt/cipher/hmac-tests.c
34561 * lib/libgcrypt/cipher/md.c
34562 * lib/libgcrypt/cipher/md4.c
34563 * lib/libgcrypt/cipher/md5.c
34564 * lib/libgcrypt/cipher/primegen.c
34565 * lib/libgcrypt/cipher/pubkey.c
34566 * lib/libgcrypt/cipher/rfc2268.c
34567 * lib/libgcrypt/cipher/rijndael-tables.h
34568 * lib/libgcrypt/cipher/rijndael.c
34569 * lib/libgcrypt/cipher/rmd.h
34570 * lib/libgcrypt/cipher/rmd160.c
34571 * lib/libgcrypt/cipher/rsa.c
34572 * lib/libgcrypt/cipher/seed.c
34573 * lib/libgcrypt/cipher/serpent.c
34574 * lib/libgcrypt/cipher/sha1.c
34575 * lib/libgcrypt/cipher/sha256.c
34576 * lib/libgcrypt/cipher/sha512.c
34577 * lib/libgcrypt/cipher/tiger.c
34578 * lib/libgcrypt/cipher/twofish.c
34579 * lib/libgcrypt/cipher/whirlpool.c
34581 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34583 Fix build for systems without error().
34585 * gnulib/error.c: New file (imported from Gnulib).
34586 * gnulib/error.h: Likewise.
34587 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
34588 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
34589 (this variable is now used by error()).
34591 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34593 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
34594 instead of relying that char is signed.
34596 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
34598 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
34599 blocksize different from specified.
34600 (grub_pxefs_read): Likewise.
34602 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34604 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
34606 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
34607 (grub_ata_readwrite): Likewise. Update 2 format strings.
34608 (grub_atapi_read): Likewise.
34610 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
34611 * conf/i386.rmk (pkglib_MODULES): ... to here ...
34612 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
34613 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
34614 (ata_mod_LDFLAGS): Move from here ...
34615 * conf/i386.rmk: ... to here ...
34616 * conf/x86_64-efi.rmk: ... and here.
34617 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
34618 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
34620 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34622 Relicense multiboot.h, with RMS' blessing.
34624 * include/multiboot.h: Change to X11 license.
34626 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
34628 Support --version in grub-mkisofs.
34630 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
34631 (OPTION_VERSION): New macro.
34632 (ld_options): Recognize --version.
34633 (usage): Move `program_name' from here ...
34634 (program_name): ... to here. Add `static' qualifier.
34635 (main): Recognize `OPTION_VERSION'.
34637 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
34639 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
34640 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
34642 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34644 Fix help2man generation for mkisofs.
34646 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
34647 (usage): Send output to stdout (rather than stderr).
34649 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34651 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
34652 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34653 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
34654 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34655 (bin_SCRIPTS): Add `grub-mkfloppy'.
34656 (grub_mkfloppy_SOURCES): New variable.
34658 * util/grub-mkrescue.in: New file.
34659 * util/i386/pc/grub-mkfloppy.in: New file.
34661 * util/i386/coreboot/grub-mkrescue.in: Remove.
34662 * util/i386/pc/grub-mkrescue.in: Remove.
34664 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34666 * include/grub/multiboot.h (struct grub_multiboot_header): Move
34668 * include/multiboot.h (struct multiboot_header): ... to here. Update
34670 * include/grub/multiboot.h (struct grub_multiboot_info): Move
34672 * include/multiboot.h (struct multiboot_info): ... to here. Update
34674 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
34676 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
34678 * include/grub/multiboot.h (struct grub_mod_list): Move
34680 * include/multiboot.h (struct multiboot_mod_list): ... to here.
34683 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34685 * include/multiboot2.h (multiboot_word): Rename from this ...
34686 (multiboot2_word): ... to this. Update all users.
34687 (multiboot_header): Rename from this ...
34688 (multiboot2_header): ... to this. Update all users.
34689 (multiboot_tag_header): Rename from this ...
34690 (multiboot2_tag_header): ... to this. Update all users.
34691 (multiboot_tag_start): Rename from this ...
34692 (multiboot2_tag_start): ... to this. Update all users.
34693 (multiboot_tag_name): Rename from this ...
34694 (multiboot2_tag_name): ... to this. Update all users.
34695 (multiboot_tag_module): Rename from this ...
34696 (multiboot2_tag_module): ... to this. Update all users.
34697 (multiboot_tag_memory): Rename from this ...
34698 (multiboot2_tag_memory): ... to this. Update all users.
34699 (multiboot_tag_unused): Rename from this ...
34700 (multiboot2_tag_unused): ... to this. Update all users.
34701 (multiboot_tag_end): Rename from this ...
34702 (multiboot2_tag_end): ... to this. Update all users.
34704 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34706 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
34707 this platform we should support Multiboot1 first.
34709 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
34710 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
34711 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
34713 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34715 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
34716 of write calls (converting them to fwrite() if they aren't already).
34717 (get_torito_desc): Likewise.
34718 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
34720 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34722 * util/i386/pc/grub-install.in: Move from here ...
34723 * util/grub-install.in: ... to here. Update all users.
34725 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
34727 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
34729 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34731 Support for El Torito without floppy emulation.
34733 * util/mkisofs/eltorito.c: Include `<errno.h>'.
34734 (init_boot_catalog): Improve error handling.
34735 (get_torito_desc): Don't use floppy emulation unless requested by
34736 user. Patch boot information table when requested via
34737 `-boot-info-table'.
34738 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
34739 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
34740 (use_boot_info_table): New variables.
34741 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
34742 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
34743 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
34744 `--eltorito-emul-floppy'.
34745 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
34746 and `OPTION_ELTORITO_EMUL_FLOPPY'.
34747 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
34748 (use_boot_info_table, get_731): New prototypes.
34749 * util/mkisofs/write.c (get_731): New function.
34751 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
34753 Fix the generation of the man page.
34755 * util/pc/i386/grub-install.in: Source
34756 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
34758 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34760 Large file support for grub-mkisofs.
34762 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
34763 * util/mkisofs/mkisofs.c (next_extent, last_extent)
34764 (session_start): Upgrade type to `uint64_t'. Update all users.
34765 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
34766 (struct directory_entry): Upgrade type of `starting_block' and
34767 `size' to `uint64_t'. Update all users.
34768 (struct deferred): Remove unused structure.
34769 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
34771 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
34772 file is larger than `UINT32_MAX'.
34773 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
34774 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
34776 (struct deferred_write): Upgrade type of `extent' and `size' to
34777 `uint64_t'. Update all users.
34778 (last_extent_written): Upgrade type to `uint64_t'. Update all
34780 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
34781 Update all users. Upgrade type of `remain' to `int64_t' and
34782 `use' to `size_t'. Use error() to handle fread() errors.
34783 (write_files): Rely on write_one_file() rather than calling
34784 xfwrite() directly.
34786 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
34788 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
34790 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34792 * util/mkisofs/fnmatch.c: Remove.
34793 * util/mkisofs/getopt1.c: Likewise.
34794 * util/mkisofs/getopt.c: Likewise.
34795 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
34796 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
34797 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
34798 `gnulib/getopt1.c' and `gnulib/getopt.c'.
34799 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
34801 * configure.ac: Detect `mingw32msvc' host_os.
34802 Check for lstat(), getuid() and getgid().
34804 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34805 instances of `u_char' with `uint8_t'.
34807 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34808 [!HAVE_GETUID] (getuid): New function (stub).
34809 [!HAVE_GETGID] (getgid): Likewise.
34810 [!HAVE_LSTAT] (lstat): Likewise.
34811 [!S_IROTH] (S_IROTH): New macro (dummy).
34812 [!S_IRGRP] (S_IRGRP): Likewise.
34814 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34816 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34817 conditional expression).
34819 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34821 Import from Gnulib.
34823 * gnulib/fnmatch.c: New file.
34824 * gnulib/fnmatch.h: Likewise.
34825 * gnulib/fnmatch_loop.c: Likewise.
34826 * gnulib/getopt.c: Likewise.
34827 * gnulib/getopt.h: Likewise.
34828 * gnulib/getopt1.c: Likewise.
34829 * gnulib/getopt_int.h: Likewise.
34830 * gnulib/gettext.h: Likewise.
34832 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34834 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34835 * normal/handler.c (read_handler_list): Likewise.
34837 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34841 * kern/command.c (grub_register_command_prio): Use
34842 grub_zalloc() instead of explicitly zeroing data.
34843 * kern/list.c: Include `<grub/mm.h>'.
34844 (grub_named_list_find): Replace `0' with `NULL'.
34845 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34846 (fs_module_list): Change type to `grub_named_list_t'. Update all
34848 * normal/dyncmd.c (read_command_list): Add space between function
34849 call and parenthesis.
34850 * normal/handler.c (read_handler_list): Likewise.
34852 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34854 * normal/auth.c (punishment_delay): Moved from here ...
34855 (grub_auth_strcmp): ... to here (inside function).
34857 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34859 * include/grub/list.h (struct grub_named_list): Remove `const'
34860 qualifier from `name'.
34861 (struct grub_prio_list): Likewise.
34863 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34865 * normal/auth.c: Include `<grub/time.h>'.
34866 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34868 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34870 * normal/auth.c (punishment_delay): New variable.
34871 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34872 (grub_auth_check_authentication): Punish failed login attempts with
34873 an incremental (2^N) delay.
34875 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34877 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34878 path with $(srcdir).
34880 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34882 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
34884 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34886 * util/i386/coreboot/grub-mkrescue.in: New file.
34887 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
34890 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
34891 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
34892 * configure.ac: Add header and function checks to satisfy grub-mkisofs
34894 * util/mkisofs/defaults.h: New file.
34895 * util/mkisofs/eltorito.c: Likewise.
34896 * util/mkisofs/exclude.h: Likewise.
34897 * util/mkisofs/fnmatch.c: Likewise.
34898 * util/mkisofs/getopt.c: Likewise.
34899 * util/mkisofs/getopt1.c: Likewise.
34900 * util/mkisofs/hash.c: Likewise.
34901 * util/mkisofs/include/fctldefs.h: Likewise.
34902 * util/mkisofs/include/mconfig.h: Likewise.
34903 * util/mkisofs/include/prototyp.h: Likewise.
34904 * util/mkisofs/include/statdefs.h: Likewise.
34905 * util/mkisofs/iso9660.h: Likewise.
34906 * util/mkisofs/joliet.c: Likewise.
34907 * util/mkisofs/match.c: Likewise.
34908 * util/mkisofs/match.h: Likewise.
34909 * util/mkisofs/mkisofs.c: Likewise.
34910 * util/mkisofs/mkisofs.h: Likewise.
34911 * util/mkisofs/multi.c: Likewise.
34912 * util/mkisofs/name.c: Likewise.
34913 * util/mkisofs/rock.c: Likewise.
34914 * util/mkisofs/tree.c: Likewise.
34915 * util/mkisofs/write.c: Likewise.
34917 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34919 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
34922 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34924 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
34925 `grub-mkimage' (and use $0 when possible).
34927 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34929 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
34930 error message for excessively large memory map.
34932 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34934 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
34937 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34939 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
34940 message for coreboot users.
34942 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
34944 Fix build with GNU gold.
34946 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
34947 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
34948 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
34950 * aclocal.m4: Likewise.
34952 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
34954 * configure.ac (AC_PREREQ): Bump to 2.59d.
34955 * INSTALL: Make it more clear when Autoconf and Ruby are
34956 needed and when to run `./autogen.sh'.
34958 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34960 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
34963 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34965 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
34967 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34969 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
34970 giving it to GNU Mach.
34972 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34974 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
34975 GNU partition number to get internal GRUB partition number.
34977 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34979 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
34980 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
34982 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
34984 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
34985 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
34988 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
34990 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
34992 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34996 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
34997 `-isystem=$(srcdir)/include'.
34999 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
35001 * util/i386/pc/grub-install.in: Remove hint that device.map should be
35002 checked (grub-install doesn't currently rely on it).
35004 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
35008 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
35009 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
35010 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
35011 * conf/i386-ieee1275.rmk: Likewise.
35012 * conf/i386-pc.rmk: Likewise.
35013 * conf/powerpc-ieee1275.rmk: Likewise.
35014 * conf/sparc64-ieee1275.rmk: Likewise.
35015 * conf/x86_64-efi.rmk: Likewise.
35017 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
35019 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
35021 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
35023 * include/grub/misc.h: Stop checking for APPLE_CC.
35025 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
35027 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
35028 doesn't cause an infinite call loop.
35030 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
35032 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
35035 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35037 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
35039 * Makefile.in: Likewise.
35041 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35043 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
35045 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35047 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
35049 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35051 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
35053 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35055 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
35057 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
35059 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35061 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
35062 in $(MAKEINFO) invocation. This makes it clear in output that
35063 errors are being ignored.
35065 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35067 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
35069 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
35070 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
35071 * conf/i386-ieee1275.rmk: Likewise.
35072 * conf/i386-pc.rmk: Likewise.
35073 * conf/powerpc-ieee1275.rmk: Likewise.
35074 * conf/sparc64-ieee1275.rmk: Likewise.
35075 * conf/x86_64-efi.rmk: Likewise.
35077 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
35079 * util/grub-editenv.c (main): If only a command is given, use
35080 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
35081 (usage): FILENAME is now optional and has a default.
35083 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
35085 Improve grub-mkconfig performance when there are several menu
35086 entries on a single filesystem.
35088 * util/grub.d/10_linux.in (linux_entry): Cache the output of
35089 prepare_grub_to_access_device.
35090 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
35091 * util/grub.d/30_os-prober.in: Likewise.
35093 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35095 * util/grub.d/10_freebsd.in: Remove.
35096 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
35097 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
35099 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35101 * docs/grub.cfg: Fix example usage of *BSD loaders.
35103 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35105 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
35106 grub_util_error() call.
35108 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35110 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
35111 `reserved_first_sector' member.
35112 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
35113 `reserved_first_sector' to 1.
35114 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
35115 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
35116 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
35117 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
35118 filesystems which begin at first sector.
35119 (options): New option --skip-fs-probe.
35120 (main): Handle --skip-fs-probe and pass it to setup().
35122 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35124 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
35125 (memset): Fix function prototype.
35127 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35128 2009-10-25 Vasily Averin <vvs@parallels.com>
35130 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
35131 `dirent.direntlen == 0'.
35133 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35135 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
35137 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
35139 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35141 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
35142 `__trampoline_setup' and `__ucmpdi2'.
35143 * include/grub/powerpc/libgcc.h: Only export symbols for functions
35144 that libgcc provides.
35146 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35148 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
35149 * include/grub/sparc64/libgcc.h (memset): Likewise.
35150 * include/grub/misc.h (memset, memcmp): New function prototypes.
35152 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35154 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
35156 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
35158 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35160 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
35161 * docs/grub.cfg: Compensate for recent change in multiboot
35162 loader (since 2009-08-14 it won't pass filename to payload).
35163 * util/grub.d/10_hurd.in: Likewise.
35165 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
35167 * config.guess: Update to latest version from config git
35169 * config.sub: Likewise.
35171 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
35173 Fix build on sparc64.
35175 * configure.ac: Perform checks for libgcc symbols before
35176 adding `-nostdlib' to LDFLAGS.
35178 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35180 Let user specify OpenBSD root device.
35182 * loader/i386/bsd.c (openbsd_root): New variable.
35183 (openbsd_opts): New option 'root'.
35184 (OPENBSD_ROOT_ARG): New macro.
35185 (grub_openbsd_boot): Use 'openbsd_root'.
35186 (grub_cmd_openbsd): Fill 'openbsd_root'.
35188 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35190 * NEWS: Misc adjustments.
35192 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35194 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
35196 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35198 * configure.ac: Bump version to 1.97.
35200 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
35202 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
35203 -mno-3dnow on x86 architectures. Some toolchains enable these
35204 features by default, but they rely on registers that aren't enabled
35205 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
35207 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
35209 Make entry text a bit more readable.
35211 * util/grub.d/10_linux.in: Add `with' before `Linux'.
35213 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35215 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
35217 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35219 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
35222 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35224 * configure.ac: Add missing dollar.
35226 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35228 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
35230 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
35231 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
35233 * include/grub/sparc64/libgcc.h: Likewise. Use
35234 preprocessor conditionals.
35236 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35238 * conf/common.rmk (grub-dumpbios): Remove rule.
35239 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
35240 * util/grub-dumpbios.in: Remove file.
35242 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35244 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
35245 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
35247 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
35248 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
35251 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
35252 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
35253 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
35254 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
35257 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
35259 * term/tparm.c: Switch to GPLv3.
35261 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35263 * include/grub/i386/cpuid.h: Add header protection.
35265 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35267 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
35269 * include/grub/i386/cpuid.h: New file.
35270 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
35271 (has_longmode): Rename to ...
35272 (grub_cpuid_has_longmode): ... this. Update all users. Remove
35273 `static' attribute.
35274 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
35275 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
35276 on a CPU that doesn't implement AMD64 instruction set.
35278 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35280 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
35281 that version.texi is rebuilt on version number changes.
35283 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35285 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
35288 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35290 * util/i386/pc/grub-install.in: Source
35291 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
35292 that the --grub-probe option will work.
35293 * util/sparc64/ieee1275/grub-install.in: Likewise.
35295 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
35297 * configure.ac: Bump version to 1.97~beta4.
35299 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
35301 Resync grub-mkdevicemap in x86_64-efi.
35303 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
35304 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
35305 `util/devicemap.c'.
35307 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
35309 * util/grub-editenv.c (create_envblk_file): Write new block with a
35310 .new suffix and then rename it into place, to ensure atomic
35313 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
35315 Do not automatically install headers.
35317 * Makefile.in (include_DATA): Remove. Update all users.
35319 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
35321 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
35322 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
35324 * util/osdetect.lua: Remove.
35325 * script/lua/lauxlib.c: Likewise.
35326 * script/lua/ldebug.c: Likewise.
35327 * script/lua/grub_main.c: Likewise.
35328 * script/lua/lauxlib.h: Likewise.
35329 * script/lua/ldebug.h: Likewise.
35330 * script/lua/ltablib.c: Likewise.
35331 * script/lua/liolib.c: Likewise.
35332 * script/lua/lstrlib.c: Likewise.
35333 * script/lua/lualib.h: Likewise.
35334 * script/lua/ldo.c: Likewise.
35335 * script/lua/ldump.c: Likewise.
35336 * script/lua/ldo.h: Likewise.
35337 * script/lua/loslib.c: Likewise.
35338 * script/lua/lundump.c: Likewise.
35339 * script/lua/grub_lib.c: Likewise.
35340 * script/lua/ldblib.c: Likewise.
35341 * script/lua/lundump.h: Likewise.
35342 * script/lua/lmem.c: Likewise.
35343 * script/lua/grub_lib.h: Likewise.
35344 * script/lua/lmathlib.c: Likewise.
35345 * script/lua/lstate.c: Likewise.
35346 * script/lua/ltm.c: Likewise.
35347 * script/lua/lvm.c: Likewise.
35348 * script/lua/lmem.h: Likewise.
35349 * script/lua/lstate.h: Likewise.
35350 * script/lua/ltm.h: Likewise.
35351 * script/lua/ltable.c: Likewise.
35352 * script/lua/lvm.h: Likewise.
35353 * script/lua/llex.c: Likewise.
35354 * script/lua/lgc.c: Likewise.
35355 * script/lua/grub_lua.h: Likewise.
35356 * script/lua/loadlib.c: Likewise.
35357 * script/lua/lfunc.c: Likewise.
35358 * script/lua/lopcodes.c: Likewise.
35359 * script/lua/lparser.c: Likewise.
35360 * script/lua/ltable.h: Likewise.
35361 * script/lua/llex.h: Likewise.
35362 * script/lua/lgc.h: Likewise.
35363 * script/lua/lfunc.h: Likewise.
35364 * script/lua/lbaselib.c: Likewise.
35365 * script/lua/lopcodes.h: Likewise.
35366 * script/lua/lparser.h: Likewise.
35367 * script/lua/lzio.c: Likewise.
35368 * script/lua/linit.c: Likewise.
35369 * script/lua/lobject.c: Likewise.
35370 * script/lua/llimits.h: Likewise.
35371 * script/lua/lstring.c: Likewise.
35372 * script/lua/lzio.h: Likewise.
35373 * script/lua/lapi.c: Likewise.
35374 * script/lua/lcode.c: Likewise.
35375 * script/lua/lua.h: Likewise.
35376 * script/lua/lobject.h: Likewise.
35377 * script/lua/lstring.h: Likewise.
35378 * script/lua/lapi.h: Likewise.
35379 * script/lua/lcode.h: Likewise.
35380 * script/lua/luaconf.h: Likewise.
35382 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
35384 * docs/grub.texi (Command-line and menu entry commands): Document
35385 date and echo commands.
35387 2009-09-24 Pavel Roskin <proski@gnu.org>
35389 * include/grub/kernel.h (struct grub_module_header): Remove
35390 `grub_module_header_types'. Make `type' unsigned. Make `size'
35391 32-bit on all platforms.
35392 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
35393 8-bit field. Use grub_host_to_target32() for `size'.
35394 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
35395 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
35396 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
35398 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35400 Fix "lost keypress" bug in at_keyboard.
35402 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
35403 Checks for readyness of input buffer (without flushing it).
35404 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
35405 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
35407 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35409 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
35410 size check within GRUB_MACHINE_PCBIOS section.
35412 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35414 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
35416 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
35417 KEYBOARD_ISREADY check.
35418 (grub_at_keyboard_checkkey): Rename to ...
35419 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
35420 Remove gratuitous cast.
35422 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
35424 * configure.ac: Call AC_PROG_MKDIR_P.
35425 * Makefile.in (docs/stamp-vti): Create docs directory. Create
35426 version.texi in $(builddir) rather than $(srcdir).
35427 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
35428 to makeinfo's @include search path.
35430 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35432 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
35434 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35436 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
35439 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
35441 Build info documentation. Some code borrowed from Automake.
35443 * configure.ac: Check for makeinfo.
35444 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
35445 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
35447 (MOSTLYCLEANFILES): Add vti.tmp.
35448 (docs/version.texi, docs/stamp-vti): Update automatically.
35449 (docs/grub.info): Build info documentation. Use --force and ignore
35451 (all-local): Add $(INFOS).
35452 (install-local): Install info files.
35453 (uninstall): Uninstall info files.
35454 * docs/version.texi: Remove from revision control. This file is
35455 automatically generated on build now.
35456 * gendistlist.sh: Add `*.info'.
35458 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35460 * kern/term.c: Fix indentation.
35462 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35464 * util/hostdisk.c: Fix a comment.
35466 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
35468 Fix regression introduced in r2539.
35470 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
35473 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
35475 * util/grub.d/30_os-prober.in: Don't throw away stderr from
35476 os-prober. Under normal operation, it does not print anything to
35477 stderr; if it does, we need to debug it, and throwing away stderr
35478 makes that excessively difficult.
35480 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
35482 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
35484 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35486 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
35487 AC_LANG_PROGRAM from autoconf.
35488 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
35489 prototypes (fixes warning).
35491 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
35492 `--disable-werror' was used.
35494 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35496 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
35497 uninitialized `lastaddr'.
35499 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
35501 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
35503 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35505 * commands/test.c (get_fileinfo): Return immediately if
35506 grub_fs_probe fails.
35508 2009-09-14 José Martínez <xosemp@gmail.com>
35510 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
35512 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35514 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
35517 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
35519 * configure.ac: Remove --enable-grub-pe2elf. Only build
35520 grub-pe2elf when needed by the build system itself.
35521 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
35523 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35525 * configure.ac: Bump version to 1.97~beta3.
35526 * docs/version.texi: Likewise.
35528 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35530 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
35531 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
35533 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
35534 (grub_linux_setup_video): ... to here (with some adjustments).
35536 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35538 Fix memory corruption issue (spotted by Colin Watson).
35540 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
35541 causing returned size to be stored in an incorrect memory location.
35542 Fix use of uninitialized value when storing the returned size.
35544 2009-09-12 Yves Blusseau <blusseau@zetam.org>
35546 Change clean rules to properly remove files
35548 * genmk.rb: add new clean rules
35549 * Makefile.in (clean): add the new targets
35550 (mostlyclean): likewise
35552 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35554 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
35556 * fs/ntfs.c (init_file): Understand 64-bit sizes for
35557 non-resident files.
35559 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35561 * configure.ac: Don't look for help2man when cross-compiling. Fixes
35562 part of bug #27349.
35564 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35566 * util/grub-mkconfig.in: Make the created config mode 400 and
35567 print a warning if it fails.
35569 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
35571 * util/grub.d/40_custom.in: Ask user to type custom entries below
35572 comment, rather than below 'exec tail' line.
35574 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35576 * util/grub.d/40_custom.in: Make sure that the explanatory text is
35577 visible in grub.cfg.
35579 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35581 * util/grub.d/40_custom.in: Make it a little clearer how to use this
35584 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35586 * docs/grub.cfg: Add an example menu entry for memtest86+.
35588 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
35590 * config.guess: Update to latest version from config git.
35591 * config.sub: Likewise.
35593 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
35595 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
35596 unknown-command case. Fixes bug #27320.
35598 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
35600 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
35601 `help' if the command exists.
35603 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
35605 * INSTALL: Require GCC 4.1.3 or later.
35607 2009-09-06 Yves Blusseau <blusseau@zetam.org>
35609 * Makefile.in (RMKFILES): add i386-qemu.rmk
35610 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
35611 $(srcdir)/stamp-h.in
35613 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
35615 * util/grub-probe.c (probe): Comment out buggy codepath, which
35616 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
35617 should be re-enabled after 1.97.
35619 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
35621 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
35624 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
35626 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
35627 unnecessary calls to grub_error.
35629 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
35631 * NEWS: Mention `keystatus' and Unicode fonts.
35633 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
35635 * configure.ac: Bump version to 1.97~beta2.
35636 * docs/version.texi: Likewise.
35638 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35640 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
35641 containing unwind information in some cases where it previously did
35642 not. Use -fno-dwarf2-cfi-asm if available to restore the old
35643 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
35646 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
35648 Embedding loadenv module into grub-emu
35650 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
35652 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
35653 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
35654 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
35655 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
35656 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
35657 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
35659 2009-09-03 Magnus Granberg <zorry@ume.nu>
35661 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
35662 include -fPIE in the default specs.
35663 * configure.ac: Check if pie_possible is yes and add -fno-PIE
35666 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
35668 * INSTALL: Note that GNU Bison 2.3 or later is required.
35670 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35672 * kern/i386/pc/startup.S: Fix typo.
35674 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
35676 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
35679 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35681 * docs/grub.texi (Naming convention): Describe one-based partition
35683 (Device syntax): Likewise.
35684 (File name syntax): Likewise.
35685 (Block list syntax): Likewise.
35686 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
35688 (File name syntax): Likewise.
35689 (Command-line and menu entry commands): Document acpi, blocklist,
35690 crc, export, insmod, keystatus, ls, set, and unset commands.
35692 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35694 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
35695 to avoid implying that only one of --shift, --ctrl, or --alt may be
35698 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35700 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
35701 rather than comparing against S_IFREG, which will almost never work.
35703 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
35705 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
35706 (write_blocklists): Likewise.
35708 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
35710 * script/lua/grub_lua.h (fputs): Supply a format string as the first
35711 argument to grub_printf.
35713 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
35715 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
35718 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35720 * kern/file.c (grub_file_read): Spelling fix
35722 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35724 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
35725 loading of headers in some cases.
35727 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
35729 * configure.ac: Bump version to 1.97~beta1.
35730 * docs/version.texi: Likewise.
35732 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
35734 * include/grub/i386/xnu.h: Add license header.
35735 include grub/err.h explicitly.
35737 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35739 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
35740 to `ufs' in the vfs.root.mountfrom kernel parameter.
35742 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35744 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
35746 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
35747 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
35749 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
35750 `ARRAY_SIZE' macro.
35752 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35754 * kern/file.c (grub_file_read): Check offset.
35755 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
35756 * fs/jfs.c (grub_jfs_read_file): Likewise.
35757 * fs/ntfs.c (grub_ntfs_read): Likewise.
35758 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
35759 * fs/minix.c (grub_minix_read_file): Correct offset check.
35760 * fs/ufs.c (grub_ufs_read_file): Likewise.
35762 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35764 * term/i386/pc/console.c (bios_data_area): Cast
35765 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
35767 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35769 1-bit optimised blitters.
35771 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
35773 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35774 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35775 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35776 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35777 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35778 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35779 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
35781 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35782 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35783 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35784 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35785 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35786 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35787 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
35789 * video/video.c (grub_video_get_blit_format): Return
35790 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
35792 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35794 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
35795 the first argument to grub_printf.
35797 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35798 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
35800 Add `getkeystatus' terminal method. Add a new `keystatus' command
35803 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
35804 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35805 modifier key bitmasks.
35806 (struct grub_term_input): Add `getkeystatus' member.
35807 (grub_getkeystatus): Add prototype.
35808 * kern/term.c (grub_getkeystatus): New function.
35810 * include/grub/i386/pc/memory.h
35811 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35812 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35814 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35815 (grub_console_term_input): Set `getkeystatus' member.
35816 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35818 (grub_usb_keyboard_getreport): Likewise.
35819 (grub_usb_keyboard_checkkey): Likewise.
35820 (grub_usb_keyboard_getkeystatus): New function.
35821 (grub_usb_keyboard_term): Set `getkeystatus' member.
35823 * commands/keystatus.c: New file.
35824 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35825 (keystatus_mod_SOURCES): New variable.
35826 (keystatus_mod_CFLAGS): Likewise.
35827 (keystatus_mod_LDFLAGS): Likewise.
35828 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35829 commands/keystatus.c.
35830 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35831 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35832 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35833 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35834 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35835 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35837 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35839 Split befs.mod and afs.mod into *_be.mod and *.mod
35841 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35842 (grub_fstest_SOURCES): Likewise.
35843 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35844 (afs_be_mod_SOURCES): New variable.
35845 (afs_be_mod_CFLAGS): Likewise.
35846 (afs_be_mod_LDFLAGS): Likewise.
35847 (befs_be_mod_SOURCES): Likewise.
35848 (befs_be_mod_CFLAGS): Likewise.
35849 (befs_be_mod_LDFLAGS): Likewise.
35850 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35851 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35852 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35853 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35854 (grub_emu_SOURCES): Likewise.
35855 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35856 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35857 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35858 * fs/afs_be.c: New file.
35859 * fs/befs_be.c: New file.
35860 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35861 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35862 (U16): Replaced with ...
35863 (grub_afs_to_cpu16): ...this. All users updated.
35864 (U32): Replaced with ...
35865 (grub_afs_to_cpu32): ...this. All users updated.
35866 (U64): Replaced with ...
35867 (grub_afs_to_cpu64): ...this. All users updated.
35868 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35869 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
35870 (grub_afs_validate_sblock): Check only one endianness.
35871 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35872 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35873 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35874 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35875 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35876 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35877 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35878 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35880 2009-08-26 Bean <bean123ch@gmail.com>
35882 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
35884 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
35885 (grub_xfs_inode_block): Change return type to grub_uint64_t.
35886 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
35888 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35890 NetBSD memory map support.
35892 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
35893 (grub_netbsd_btinfo_mmap_header): New structure.
35894 (grub_netbsd_btinfo_mmap_entry): Likewise.
35895 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
35897 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35899 Enable bsd.mod on coreboot.
35901 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
35902 (bsd_mod_SOURCES): New variable.
35903 (bsd_mod_CFLAGS): Likewise.
35904 (bsd_mod_LDFLAGS): Likewise.
35905 (bsd_mod_ASFLAGS): Likewise.
35906 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
35907 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
35909 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35911 Cleanup NetBSD root support.
35913 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
35914 grub_bsd_get_device.
35917 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
35919 * util/grub.d/00_header.in: Move check for the video backend of
35920 gfxterm from here ...
35921 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
35922 a suitable video backend.
35924 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35926 Fix breakage in grub-setup.
35928 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
35929 "msdos_partition_map".
35931 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35933 Fix breakage in normal/auth.c.
35935 * normal/auth.c (grub_iswordseparator): New function.
35937 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35939 Authentication support.
35941 * commands/password.c: New file.
35942 * conf/common.rmk (pkglib_MODULES): Add password.mod.
35943 (password_mod_SOURCES): New variable.
35944 (password_mod_CFLAGS): Likewise.
35945 (password_mod_LDFLAGS): Likewise.
35946 (normal_mod_SOURCES): Add normal/auth.c.
35947 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
35949 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35950 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35951 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35952 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35953 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35954 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35955 * include/grub/auth.h: New file.
35956 * include/grub/err.h (grub_err_t): New enum value
35957 GRUB_ERR_ACCESS_DENIED.
35958 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
35960 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
35961 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
35963 * normal/auth.c: New file.
35964 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
35965 (grub_cmdline_run): Don't allow to go to command line without
35967 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
35968 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
35969 menuentry without superuser rights.
35970 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
35971 user isn't a superuser.
35973 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35975 Save space by inlining misc.c functions.
35977 * kern/misc.c (grub_iswordseparator): Made static.
35978 * kern/misc.c (grub_strcat): Moved from here ...
35979 * include/grub/misc.h (grub_strcat): ... here. Inlined.
35980 * kern/misc.c (grub_strncat): Moved from here ...
35981 * include/grub/misc.h (grub_strncat): ... here. Inlined.
35982 * kern/misc.c (grub_strcasecmp): Moved from here ...
35983 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
35984 * kern/misc.c (grub_strncasecmp): Moved from here ...
35985 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
35986 * kern/misc.c (grub_isalpha): Moved from here ...
35987 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
35988 * kern/misc.c (grub_isdigit): Moved from here ...
35989 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
35990 * kern/misc.c (grub_isgraph): Moved from here ...
35991 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
35992 * kern/misc.c (grub_tolower): Moved from here ...
35993 * include/grub/misc.h (grub_tolower): ... here. Inlined.
35995 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35997 * script/sh/function.c (grub_script_function_find): Cut error message
35998 not to flood terminal.
35999 * script/sh/lexer.c (grub_script_yylex): Remove command line length
36001 * script/sh/script.c (grub_script_arg_add): Duplicate string.
36003 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
36005 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
36006 `report' grub_uint8_t *.
36007 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
36008 Use a 50-millisecond timeout rather than just repeating
36009 grub_usb_keyboard_getreport 50 times.
36010 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
36012 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36014 Rename *_partition_map to part_*
36016 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
36017 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
36018 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
36019 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
36021 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
36023 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
36024 * util/grub-probe.c (probe_partmap): Don't transform partition name
36025 to get module name.
36027 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36029 Fix OpenBSD and NetBSD support.
36031 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
36032 memory address conflict.
36033 (OPENBSD_MMAP_ACPI): New definition.
36034 (OPENBSD_MMAP_NVS): Likewise.
36035 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
36036 and OPENBSD_MMAP_NVS.
36037 Add memory map terminator
36038 Explicit cast when calling grub_unix_real_boot.
36039 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
36041 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36043 Let user specify NetBSD root device.
36045 * loader/i386/bsd.c (netbsd_root): New variable.
36046 (netbsd_opts): New option 'root'.
36047 (NETBSD_ROOT_ARG): New macro.
36048 (grub_netbsd_boot): Use 'netbsd_root'.
36049 (grub_bsd_unload): Free 'netbsd_root'.
36050 (grub_cmd_netbsd): Fill 'netbsd_root'.
36052 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36054 Support for 64-bit NetBSD.
36056 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
36057 point when booting non-FreeBSD.
36059 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36061 Support --no-smp and --no-acpi for NetBSD.
36063 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
36064 (NETBSD_AB_NOACPI): Likewise.
36065 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
36066 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
36068 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36070 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
36072 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
36073 errors. Call grub_error when needed.
36075 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36077 * commands/search.c (search_fs): Try searching without autoload first.
36078 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
36079 filesystem module explicitly for faster booting.
36081 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
36083 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
36085 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
36087 * util/grub.d/30_os-prober.in: Disable os-prober if
36088 `GRUB_DISABLE_OS_PROBER' was set to true.
36090 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
36092 * partmap/pc.c: Rename to ...
36093 * partmap/msdos.c: ... this. Update all users.
36094 (grub_pc_partition_map): Rename to ...
36095 (grub_msdos_partition_map): ... this. Update all users.
36097 * parttool/pcpart.c: Rename to ...
36098 * parttool/msdospart.c: ... this. Update all users.
36100 * include/grub/pc_partition.h: Rename to ...
36101 * include/grub/msdos_partition.h: ... this. Update all users.
36102 (grub_pc_partition_bsd_entry): Rename to ...
36103 (grub_msdos_partition_bsd_entry): ... this. Update all users.
36104 (grub_pc_partition_disk_label): Rename to ...
36105 (grub_msdos_partition_disk_label): ... this. Update all users.
36106 (grub_pc_partition_entry): Rename to ...
36107 (grub_msdos_partition_entry): ... this. Update all users.
36108 (grub_pc_partition_mbr): Rename to ...
36109 (grub_msdos_partition_mbr): ... this. Update all users.
36110 (grub_pc_partition): Rename to ...
36111 (grub_msdos_partition): ... this. Update all users.
36112 (grub_pc_partition_is_empty): Rename to ...
36113 (grub_msdos_partition_is_empty): ... this. Update all users.
36114 (grub_pc_partition_is_extended): Rename to ...
36115 (grub_msdos_partition_is_extended): ... this. Update all users.
36116 (grub_pc_partition_is_bsd): Rename to ...
36117 (grub_msdos_partition_is_bsd): ... this. Update all users.
36119 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
36120 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
36121 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
36122 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
36123 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
36124 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
36125 (gpt_mod_LDFLAGS): Rename to ...
36126 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
36127 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
36128 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
36129 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
36130 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
36131 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
36132 (part_gpt_mod_LDFLAGS): ... this.
36133 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
36134 `pcpart.mod' to `msdospart.mod'.
36135 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
36137 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
36138 (msdospart_mod_LDFLAGS): ... this.
36140 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36142 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
36143 (openbsd_opts): Likewise.
36144 (netbsd_opts): Likewise.
36145 (freebsd_flags): Added 0 terminator.
36146 (openbsd_flags): Likewise.
36147 (netbsd_flags): Likewise.
36148 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
36149 (grub_cmd_freebsd): Transformed into extended command.
36150 (grub_cmd_openbsd): Likewise.
36151 (grub_cmd_netbsd): Likewise.
36152 (cmd_freebsd): Changed type to grub_extcmd_t.
36153 (cmd_openbsd): Likewise.
36154 (cmd_netbsd): Likewise.
36155 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
36156 grub_cmd_openbsd as extended commands.
36157 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
36158 cmd_netbsd and cmd_openbsd
36160 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
36162 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
36164 2009-08-21 Pavel Roskin <proski@gnu.org>
36166 * Makefile.in (install-local): When checking if a file is in the
36167 build directory, use "test -e" to detect symlinks.
36169 * Makefile.in (install-local): Remove all files in
36170 $(DESTDIR)$(pkglibdir) before installing new files there.
36172 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36174 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
36177 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36179 * util/grub-mkconfig.in: Don't use gfxterm by default if not
36180 explicitly specified by the user.
36182 2009-08-18 Pavel Roskin <proski@gnu.org>
36184 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
36185 grub_uint8_t pointer for data.
36186 * include/grub/fbutil.h (struct grub_video_fbblit_info):
36188 * video/fb/fbutil.c: Remove unnecessary casts.
36190 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36194 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
36195 (grub_vbe_set_video_mode): Save active mode info
36196 only after setting the mode.
36197 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
36200 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36202 Rename variables for clarity.
36204 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
36205 (active_vbe_mode_info): ... this. All users updated.
36206 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
36208 (initial_mode): Rename to ...
36209 (initial_vbe_mode): ... this. All users updated.
36210 (mode_in_use): Rename to ..
36211 (vbe_mode_in_use): ... this. All users updated.
36212 (mode_list): Rename to ..
36213 (vbe_mode_list): ... this. All users updated.
36214 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
36215 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
36216 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
36217 'mode_list_size' to 'vbe_mode_list_size'.
36218 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
36219 'best_mode_info' to 'best_vbe_mode_info' and
36220 'best_mode' to 'best_vbe_mode'
36222 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36224 Remove duplicate grub_video_fb_get_video_ptr.
36226 * include/grub/fbutil.h (get_data_ptr): Rename to ...
36227 (grub_video_fb_get_video_ptr): ... this.
36228 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
36229 * video/fb/fbutil.c: Add comment about addressing.
36230 (get_data_ptr): Rename to ...
36231 (grub_video_fb_get_video_ptr): ... this. All users updated.
36232 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
36234 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36236 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
36237 grub_dprintf() that was just added.
36239 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36241 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
36242 (DEFAULT_VIDEO_MODE): Remove macros.
36243 (grub_linux_boot): Remove assumption that Linux has FB support,
36244 and use "text" as default video mode.
36246 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
36248 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
36250 * fs/fat.c (grub_fat_read_data): Likewise.
36252 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36254 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
36256 (grub_module): Likewise.
36258 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36260 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
36261 mbi->cmdline but free playground.
36263 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36265 Handle group offset on UFS1.
36267 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
36268 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
36270 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36272 Split ufs.mod into ufs1.mod and ufs2.mod.
36274 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
36275 (grub_fstest_SOURCES): Likewise.
36276 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
36277 (ufs_mod_SOURCES): Remove.
36278 (ufs_mod_CFLAGS): Likewise.
36279 (ufs_mod_LDFLAGS): Likewise.
36280 (ufs1_mod_SOURCES): New variable.
36281 (ufs1_mod_CFLAGS): Likewise.
36282 (ufs1_mod_LDFLAGS): Likewise.
36283 (ufs2_mod_SOURCES): New variable.
36284 (ufs2_mod_CFLAGS): Likewise.
36285 (ufs2_mod_LDFLAGS): Likewise.
36286 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
36287 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36289 (grub_emu_SOURCES): Likewise.
36290 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36291 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36292 (grub_setup_SOURCES): Likewise.
36293 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36294 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
36295 (grub_setup_SOURCES): Likewise.
36296 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36298 * fs/ufs2.c: New file.
36299 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
36301 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36305 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
36306 subsystem at the end.
36307 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
36308 (video_fb_mod_SOURCES): New variable.
36309 (video_fb_mod_CFLAGS): Likewise.
36310 (video_fb_mod_LDFLAGS): Likewise.
36311 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
36312 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
36313 * video/i386/pc/vbeblit.c: Moved from here ...
36314 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
36315 * video/i386/pc/vbefill.c: Moved from here ...
36316 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
36317 * video/i386/pc/vbeutil.c: Moved from here ...
36318 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
36319 * include/grub/i386/pc/vbeblit.h: Moved from here ...
36320 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
36321 * include/grub/i386/pc/vbefill.h: Moved from here ...
36322 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
36323 * include/grub/i386/pc/vbeutil.h: Moved from here ...
36324 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
36325 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
36326 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
36327 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
36328 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
36329 (grub_video_adapter): Added 'get_info_and_fini'.
36330 (grub_video_get_info_and_fini): New prototype.
36331 (grub_video_set_mode): make modestring const char *.
36332 * loader/i386/linux.c (grub_linux_setup_video): Use
36333 grub_video_get_info_and_fini.
36334 (grub_linux_boot): Move modesetting just before booting.
36335 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
36336 grub_video_get_info_and_fini.
36337 * video/i386/pc/vbe.c: Moved framebuffer part ...
36338 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
36339 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
36340 grub_video_fbstd_colors and grub_video_fb_set_palette.
36341 (grub_video_vbe_init): Clear 'framebuffer' variable and use
36342 grub_video_fb_init.
36343 (grub_video_vbe_fini): Use grub_video_fb_fini.
36344 (grub_video_vbe_setup): Use framebuffer.render_target instead of
36345 render_target and use grub_video_fb_set_active_render_target and
36346 grub_video_fb_set_palette.
36347 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
36348 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
36349 (grub_video_vbe_adapter): Use framebuffer.
36350 * video/video.c (grub_video_get_info_and_fini): New function.
36351 (grub_video_set_mode): Make modestring const char *.
36352 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
36353 values are already initialised.
36355 2009-08-14 Pavel Roskin <proski@gnu.org>
36357 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
36359 * boot/i386/pc/diskboot.S: Likewise.
36360 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
36361 sectors allow compilation on MacOSX.
36362 * conf/i386-pc.rmk: Enable unconditional compilation of
36365 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
36367 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
36368 * util/grub.d/00_header.in: Enter interruptible sleep if
36369 GRUB_HIDDEN_TIMEOUT is set.
36371 2009-08-13 Yves Blusseau <blusseau@zetam.org>
36373 * include/grub/symbol.h: Add the LOCAL macro.
36374 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
36375 starting with "L_".
36377 2009-08-13 Pavel Roskin <proski@gnu.org>
36379 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
36380 any modern compilers we support.
36382 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
36383 Use local labels starting with "L_" so that Apple assembler
36384 knows they are local.
36386 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
36388 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
36389 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
36390 (bsd_kernel_types): ... this enum.
36392 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
36393 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
36394 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
36396 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
36397 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
36398 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
36401 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36403 * util/grub-dumpdevtree: Moved from here ...
36404 * util/i386/efi/grub-dumpdevtree: ... to here.
36405 (hexify): New function. Converts a string to its hex version.
36406 Generate hex versions of "efi" and "device-properties" by calling
36407 hexify() on the ASCII strings rather than by hardcoding numbers.
36409 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36411 * fs/jfs.c: Update copyright year.
36413 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36415 * util/grub.d/00_header.in: Fix a comment.
36416 * util/grub.d/10_linux.in: Likewise.
36417 * util/grub.d/10_windows.in: Likewise.
36418 * util/grub.d/10_hurd.in: Likewise.
36420 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36422 * util/grub-mkconfig.in: Allow the user to specify the used font
36425 2009-08-08 Pavel Roskin <proski@gnu.org>
36427 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
36428 available, xfs.mod needs it now.
36430 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
36431 the "g" modifier in sed when the intention is to strip something
36432 once. This fixes comparison of kernels with multiple dashes.
36434 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
36435 on it. Add missing space before closing bracket. Fix
36436 misleading formatting.
36438 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36440 * docs/grub.texi: Major overhaul. Remove all sections that are
36441 specific to GRUB Legacy, or mostly composed of Legacy-specific
36444 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36446 * docs/version.texi: New file. Provides version information for
36449 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36451 * docs/grub.texi: Update CVS information to SVN.
36452 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
36454 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36456 * util/grub-mkconfig.in: Remove a wrong `fi'.
36458 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36460 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
36461 (grub_jfs_uuid): New function.
36462 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
36464 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36466 * util/grub-mkconfig_lib.in (font_path): Move the functionality
36468 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
36469 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
36471 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36473 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
36474 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
36477 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
36478 not just "vmlinu[zx]".
36479 Moved from here ...
36480 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
36483 * util/grub.d/10_linux.in (find_latest): Moved from here ...
36484 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
36487 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36489 * util/grub.d/10_freebsd.in: Use an absolute device path for
36490 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
36492 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
36494 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
36495 handling of multiple abstraction modules.
36497 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
36499 Fix a bug resulting in black screen when loading Linux using a
36502 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
36505 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
36506 (grub_vbe_bios_getset_dac_palette_width): New function.
36507 (grub_vbe_bios_get_dac_palette_width)
36508 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
36509 grub_vbe_bios_getset_dac_palette_width()).
36511 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
36512 check for return status.
36513 (grub_vbe_get_video_mode_info): When getting information for a packed
36514 mode (<= 8 bpp), obtain DAC palette width using
36515 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
36516 {red,green,blue}_mark_size.
36518 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
36520 * commands/search.c (options): Fix help output to match actual code.
36522 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
36524 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
36527 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36529 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
36530 on XFS or ReiserFS.
36532 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36534 Support Apple partition map with sector size different from 512 bytes.
36536 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
36537 (apple_partition_map_iterate): Respect 'aheader.blocksize'
36538 and 'apart.partmap_size'.
36540 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36541 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
36545 * commands/i386/cpuid.c (options): New variable.
36546 (grub_cmd_cpuid): Return real error.
36547 (GRUB_MOD_INIT(cpuid)): Declare options.
36549 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
36551 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
36554 2009-07-31 Bean <bean123ch@gmail.com>
36556 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
36558 (grub_fshelp_node): Move inode field to the end.
36559 (grub_xfs_data): Remove inode field.
36560 (grub_xfs_inode_block): Calculate inode size using sblock.
36561 (grub_xfs_inode_offset): Likewise.
36562 (grub_xfs_read_inode): Calculate inode size using sblock.
36563 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
36564 (grub_xfs_iterate_dir): Calculate inode size using sblock.
36565 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
36566 to match inode size.
36567 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
36568 not accessible when data is null.
36569 (grub_xfs_open): Likewise.
36571 2009-07-31 Bean <bean123ch@gmail.com>
36573 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
36574 Don't change pv->disk if it's already set.
36576 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
36577 (grub_raid_register): ... here.
36578 (grub_raid_rescan): Removed.
36580 * include/grub/raid.h (grub_raid_rescan): Removed.
36582 * util/grub-fstest.c: Remove include file <grub/raid.h>.
36583 (fstest): Replace grub_raid_rescan with module fini function followed
36586 * util/grub-probe.c: Add include file <grub/raid.h>.
36587 (probe_raid_level): New function.
36588 (probe): Detect abstraction by walking the disk device, support two
36589 level of abstraction (LVM on RAID) when detecting partition map.
36591 2009-07-31 Pavel Roskin <proski@gnu.org>
36593 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
36594 to grub_zalloc(), it was erroneous.
36595 Reported by Bean <bean123ch@gmail.com>
36597 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
36599 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
36600 embedding zone, not only the first one.
36602 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
36604 * term/gfxterm.c (clear_char): New function.
36605 (grub_virtual_screen_setup): Use clear_char.
36606 (scroll_up): Likewise.
36607 (grub_virtual_screen_cls): Likewise.
36609 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
36611 * util/deviceiter.c (get_acceleraid_disk_name): New static
36613 (grub_util_iterate_devices): Handle Accelraid devices.
36614 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
36616 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
36618 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
36619 separator for the suggested gfxpayload string (';' collides with the
36620 parser and needs escaping).
36622 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
36624 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
36625 Clear direction flag before jumping to OS.
36626 (grub_multiboot2_real_boot): Likewise.
36628 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36630 * util/i386/pc/grub-install: Fix parsing of --disk-module
36633 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36635 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
36638 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
36640 * util/grub-mkconfig.in (package_version): New variable.
36641 Use it do display the version.
36643 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36645 * kern/file.c (grub_file_open): Revert to previous check with
36648 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36650 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
36651 from help line. It's out of sync with code.
36653 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36655 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
36656 entries on failed boot.
36658 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36660 * kern/file.c (grub_file_open): Fix an error check.
36662 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
36664 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
36665 partition map couldn't be identified.
36667 2009-07-23 Pavel Roskin <proski@gnu.org>
36669 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
36670 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
36671 case of little endian words becomes just an optimization.
36672 Respect const modifier.
36673 (md5_final): Use code that doesn't depend on endianness.
36675 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
36676 to avoid loss of upper bits if align is unsigned and shorter
36679 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36681 UUID support for UFS
36683 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
36684 (grub_ufs_uuid): New function.
36685 (grub_ufs_fs): add .uuid
36687 2009-07-21 Pavel Roskin <proski@gnu.org>
36689 * kern/dl.c (grub_dl_check_header): Make static.
36691 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
36693 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
36694 add drivemap for Vista. It breaks Windows 7.
36696 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36698 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
36701 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36705 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
36706 (grub_fstest_SOURCES): Likewise.
36707 (pkglib_MODULES): Add befs.mod.
36708 (befs_mod_SOURCES): New variable.
36709 (befs_mod_CFLAGS): Likewise.
36710 (befs_mod_LDFLAGS): Likewise.
36711 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36712 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36713 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36714 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36715 (grub_setup_SOURCES): Likewise.
36716 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36717 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36718 (grub_setup_SOURCES): Likewise.
36719 * fs/befs.c: New file.
36720 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
36721 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
36722 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
36723 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
36724 (B_KEY_INDEX_ALIGN): New declaration.
36725 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
36726 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
36727 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
36728 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
36729 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
36730 (grub_afs_mount) [MODE_BFS]: Likewise.
36731 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
36732 (grub_afs_fs): Use GRUB_AFS_FSNAME
36733 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
36734 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
36735 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
36736 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
36738 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
36740 * util/getroot.c (find_root_device): Add support for MacOSX.
36741 * util/hostdisk.c: Likewise.
36743 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36745 * font/font.c (find_glyph): Check whether a font is present to avoid
36746 segmentation fault.
36748 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
36750 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
36752 2009-07-20 Pavel Roskin <proski@gnu.org>
36754 * configure.ac: Trim excessively wordy excuses.
36756 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36758 Add symlink, mtime and label support to AtheFS.
36760 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
36761 (grub_afs_iterate_dir): Handle symlinks.
36762 (grub_afs_open): Use grub_afs_read_symlink.
36763 (grub_afs_dir): Likewise.
36765 (grub_afs_label): New function.
36766 (grub_afs_fs): Add grub_afs_label.
36767 (grub_afs_read_symlink): New function.
36769 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36771 Fix AtheFS support.
36773 * fs/afs.c: Fix comments style.
36774 (grub_afs_blockrun): Declare as packed.
36775 (grub_afs_datastream): Likewise.
36776 (grub_afs_bnode): Likewise.
36777 (grub_afs_btree): Likewise.
36778 (grub_afs_sblock): Likewise.
36779 Declare `name' as char.
36780 (grub_afs_inode): Declare as packed.
36781 Change void *vnode to grub_uint32_t unused.
36782 (grub_afs_iterate_dir): Check that key_size is positive.
36783 (grub_afs_mount): Don't read superblock twice.
36784 (grub_afs_dir): Don't free node in case of error,
36785 grub_fshelp_find_file already handles this.
36786 (grub_afs_open): Likewise.
36788 2009-07-19 Pavel Roskin <proski@gnu.org>
36790 * Makefile.in: Remove LIBLZO and enable_lzo.
36791 * conf/i386-pc.rmk: Remove lzo support.
36792 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
36793 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
36795 * kern/i386/pc/lzo1x.S: Remove.
36796 * kern/i386/pc/startup.S: Remove lzo support.
36797 * util/i386/pc/grub-mkimage.c: Likewise.
36799 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
36801 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
36802 * fs/xfs.c (grub_xfs_dir): Likewise.
36803 * fs/afs.c (grub_afs_dir): Likewise.
36804 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36805 (grub_iso9660_open): Likewise.
36806 * fs/jfs.c (grub_jfs_open): Likewise.
36807 * fs/ext2.c (grub_ext2_dir): Likewise.
36808 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36809 * script/sh/lexer.c (grub_script_yylex): Likewise.
36811 2009-07-16 Pavel Roskin <proski@gnu.org>
36813 * configure.ac: Never add "-c" to CFLAGS.
36815 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36817 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36818 grub_cv_cc_efiemu should be used.
36820 * configure.ac: Typo fixes.
36822 * kern/mm.c (grub_zalloc): New function.
36823 (grub_debug_zalloc): Likewise.
36824 * include/grub/mm.h: Declare grub_zalloc() and
36825 grub_debug_zalloc().
36826 * util/misc.c (grub_zalloc): New function.
36827 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36828 instead of grub_malloc(), remove unneeded initializations.
36829 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36830 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36831 * commands/parttool.c (grub_cmd_parttool): Likewise.
36832 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36833 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36834 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36835 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36836 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36837 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36838 (grub_cmd_efiemu_pnvram): Likewise.
36839 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36840 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36841 (grub_iso9660_iterate_dir): Likewise.
36842 * fs/jfs.c (grub_jfs_opendir): Likewise.
36843 * fs/ntfs.c (list_file): Likewise.
36844 (grub_ntfs_mount): Likewise.
36845 * kern/disk.c (grub_disk_open): Likewise.
36846 * kern/dl.c (grub_dl_load_core): Likewise.
36847 * kern/elf.c (grub_elf_file): Likewise.
36848 * kern/env.c (grub_env_context_open): Likewise.
36849 (grub_env_set): Likewise.
36850 (grub_env_set_data_slot): Likewise.
36851 * kern/file.c (grub_file_open): Likewise.
36852 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36853 * loader/i386/multiboot.c (grub_module): Likewise.
36854 * loader/xnu.c (grub_xnu_create_key): Likewise.
36855 (grub_xnu_create_value): Likewise.
36856 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36857 (read_config_file): Likewise.
36858 * normal/menu_entry.c (make_screen): Likewise.
36859 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36860 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36861 * script/sh/script.c (grub_script_parse): Likewise.
36862 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36863 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36864 * video/readers/png.c (grub_png_output_byte): Likewise.
36865 (grub_video_reader_png): Likewise.
36867 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36869 Enable all targets that can be built by default
36871 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
36872 grub-mkfont and grub-fstest if they can be built
36874 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36876 Fix hang and segmentation fault in grub-emu-usb
36878 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
36879 * util/usb.c (grub_libusb_devices): likewise
36880 (grub_libusb_init): rename to ...
36881 (GRUB_MOD_INIT (libusb)):...this
36882 (grub_libusb_fini): rename to ..
36883 (GRUB_MOD_FINI (libusb)):...this
36884 * disk/usbms.c (grub_usbms_transfer): fix retry logic
36885 * include/grub/disk.h (grub_raid_init): removed, it's useless
36886 (grub_raid_fini): likewise
36887 (grub_lvm_init): likewise
36888 (grub_lvm_fini): likewise
36889 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
36892 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36896 * Makefile.in (LIBUSB): new macro
36897 * genmk.rb (Utility/print_tail): new method
36898 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
36899 (top level): call util.print_tail at the end.
36901 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36903 Make FreeBSD accept zpool.cache
36905 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
36906 type is /boot/zfs/zpool.cache
36908 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36912 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
36913 correct wrong typedef
36914 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
36916 2009-07-15 Pavel Roskin <proski@gnu.org>
36918 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
36919 * kern/disk.c (struct grub_disk_cache): Likewise.
36921 * commands/probe.c (options): Typo fix.
36923 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
36924 Increase to 0x5a to accommodate FAT32. Adjust other offsets
36926 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
36928 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
36929 the end of "Error" to make the message more readable.
36931 * boot/i386/pc/boot.S (kernel_segment): Remove.
36932 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
36935 * boot/i386/pc/boot.S (boot_version): Remove.
36936 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
36939 * include/grub/i386/pc/boot.h: Sort all offsets.
36940 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
36941 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
36942 * boot/i386/pc/boot.S: Assert location of every offset listed in
36943 include/grub/i386/pc/boot.h.
36945 2009-07-13 Pavel Roskin <proski@gnu.org>
36947 * include/grub/i386/coreboot/machine.h: Rename
36948 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
36949 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
36950 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
36952 * kern/dl.c: Force native word size to suppress warnings when
36953 compiling grub-emu.
36955 * kern/device.c (grub_device_iterate): Change struct part_ent to
36956 hold the name, not a pointer to it. Use one grub_malloc() per
36957 partition, not two. Free partition_name if grub_malloc() fails.
36958 Set ents to NULL only before grub_partition_iterate() is called.
36960 2009-07-11 Bean <bean123ch@gmail.com>
36962 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
36965 2009-07-10 Bean <bean123ch@gmail.com>
36966 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
36968 * kern/ieee1275/openfw.c (grub_children_iterate)
36969 (grub_devalias_iterate): Fix size evaluation for property or path
36970 strings, which was broken since r2132.
36972 2009-07-07 Pavel Roskin <proski@gnu.org>
36974 * commands/search.c (search_file): Merge into ...
36975 (search_fs): ... this. Accept search type as argument.
36976 (grub_cmd_search): Pass search type to search_fs().
36978 * include/grub/util/console.h: New file.
36979 * util/console.c: Use it instead of grub/machine/console.h.
36980 * util/grub-emu.c: Likewise.
36982 * lib/arg.c (find_long_option): Remove.
36983 (find_long): Add `len' argument, make `s' const char *.
36984 (grub_arg_parse): Parse long options in place, not in a
36987 2009-07-06 Pavel Roskin <proski@gnu.org>
36989 * commands/search.c (search_fs): Fix potential NULL pointer
36992 * commands/search.c (search_fs): Replace QUID macro with quid_fn
36995 2009-07-06 Daniel Mierswa <impulze@impulze.org>
36997 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
37000 2009-07-05 Pavel Roskin <proski@gnu.org>
37002 * include/grub/i386/linux.h (struct linux_kernel_params):
37003 Restore padding3, it's still needed.
37005 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
37007 * util/osdetect.lua: Likewise.
37009 2009-07-05 Bean <bean123ch@gmail.com>
37011 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
37013 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
37014 (grub_lua_getenv): Likewise.
37015 (grub_lua_setenv): Likewise.
37016 (save_errno): New function.
37017 (push_result): Likewise.
37018 (grub_lua_enum_device): Likewise.
37019 (grub_lua_enum_file): Likewise.
37020 (grub_lua_file_open): Likewise.
37021 (grub_lua_file_close): Likewise.
37022 (grub_lua_file_seek): Likewise.
37023 (grub_lua_file_read): Likewise.
37024 (grub_lua_file_getline): Likewise.
37025 (grub_lua_file_getsize): Likewise.
37026 (grub_lua_file_getpos): Likewise.
37027 (grub_lua_file_eof): Likewise.
37028 (grub_lua_file_exist): Likewise.
37029 (grub_lua_add_menu): Likewise.
37031 * script/lua/grub_lua.h (isupper): New inline function.
37032 (islower): Likewise.
37033 (ispunct): Likewise.
37034 (isxdigit): Likewise.
37035 (strcspn): Change to normal function.
37036 (strpbkr): New function declaration.
37037 (memchr): Likewise.
37039 * script/lua/grub_main.c (scan_str): New function.
37040 (strcspn): Likewise.
37041 (strpbrk): Likewise.
37042 (memchr): Likewise.
37044 * script/lua/linit.c (lualibs): Enable the string library.
37046 * util/osdetect.lua: New file.
37048 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
37050 * include/grub/i386/linux.h (struct linux_kernel_params): Add
37051 `capabilities' member.
37053 2009-07-02 Pavel Roskin <proski@gnu.org>
37055 * genparttoollist.sh: Add missing newline at the end.
37057 2009-07-01 Pavel Roskin <proski@gnu.org>
37059 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
37061 * util/hostdisk.c (open_device): Remove `const' from
37062 `sysctl_size', as sysctlbyname() can change it (in this case it
37063 doesn't actually happen).
37065 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
37066 using signed long int constants.
37068 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
37069 constant to avoid a warning on FreeBSD.
37071 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
37074 * Makefile.in: Install include/grub/machine symlink.
37076 * Makefile.in: When installing symlinks, use "cp -fR", which
37077 works on FreeBSD and MacOSX.
37078 From Yves Blusseau <cl7m42e02@sneakemail.com>
37080 * kern/dl.c (grub_dl_resolve_symbol): Make static.
37081 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
37083 * util/misc.c: Move grub_reboot() and grub_halt() ...
37084 * util/grub-emu.c: ... here. Make main_env static.
37085 * include/grub/util/misc.h: Remove main_env.
37087 * kern/mm.c: Use correct format to print size_t.
37089 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
37090 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
37091 * kern/powerpc/dl.c: Likewise.
37092 * kern/sparc64/dl.c: Likewise.
37093 * kern/x86_64/dl.c: Likewise.
37095 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37097 Fix grub-emu build on sparc64-ieee1275.
37099 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
37100 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
37102 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37104 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
37105 (grub_reboot, grub_halt): New functions.
37107 * util/i386/pc/misc.c: Delete. Update all users.
37108 * util/sparc64/ieee1275/misc.c: Likewise.
37109 * util/powerpc/ieee1275/misc.c: Likewise.
37111 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37113 * conf/i386.rmk (setjmp_mod_SOURCES)
37114 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
37115 * conf/common.rmk (setjmp_mod_SOURCES)
37116 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
37117 to use $(target_cpu).
37118 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
37119 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
37120 * conf/powerpc-ieee1275.rmk: Likewise.
37121 * conf/sparc64-ieee1275.rmk: Likewise.
37123 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
37124 $(target_cpu) for kern/$(target_cpu)/dl.c.
37125 * conf/i386-efi.rmk: Likewise.
37126 * conf/i386-ieee1275.rmk: Likewise.
37127 * conf/x86_64-efi.rmk: Likewise.
37128 * conf/i386-coreboot.rmk: Likewise.
37129 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
37130 $(target_cpu) for kern/$(target_cpu)/dl.c and for
37131 kern/$(target_cpu)/cache.S.
37132 * conf/sparc64-ieee1275.rmk: Likewise.
37134 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37136 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
37137 type to `grub_uint8_t', and adjust `padding9' accordingly.
37139 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37141 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
37143 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
37144 assembly in final jump, using register constraints.
37146 (grub_linux_boot): For text mode, initialize `have_vga' using
37147 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
37149 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
37150 right before the final jump.
37152 Set `video_mode' to 0x3.
37154 Document initialization of `video_page', `video_mode' and
37157 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37159 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
37160 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
37161 and set GRUB_LINUX_FLAG_QUIET appropriately.
37163 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37165 Fix build on Debian / sparc.
37167 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
37169 2009-06-28 Pavel Roskin <proski@gnu.org>
37171 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
37174 * util/grub.d/10_linux.in: Match SUSE style initrd names.
37176 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37178 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
37181 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37185 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
37186 file can't be opened. grub_file_open() is already supposed to set
37187 grub_errno / grub_errmsg appropriately.
37188 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37190 2009-06-27 Pavel Roskin <proski@gnu.org>
37191 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37193 * include/grub/dl.h: Include grub/elf.h.
37194 (struct grub_dl): Add symtab field.
37195 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
37196 GRUB_MODULES_MACHINE_READONLY.
37197 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
37198 of the header for read-only modules.
37199 (grub_dl_unload): Free mod->symtab for read-only modules.
37200 * kern/i386/dl.c: Use mod->symtab.
37201 * kern/powerpc/dl.c: Likewise.
37202 * kern/sparc64/dl.c: Likewise.
37203 * kern/x86_64/dl.c: Likewise.
37205 * conf/i386-qemu.rmk: New file.
37206 * kern/i386/qemu/startup.S: Likewise.
37207 * kern/i386/qemu/mmap.c: Likewise.
37208 * boot/i386/qemu/boot.S: Likewise.
37209 * include/grub/i386/qemu/time.h: Likewise.
37210 * include/grub/i386/qemu/serial.h: Likewise.
37211 * include/grub/i386/qemu/kernel.h: Likewise.
37212 * include/grub/i386/qemu/console.h: Likewise.
37213 * include/grub/i386/qemu/boot.h: Likewise.
37214 * include/grub/i386/qemu/init.h: Likewise.
37215 * include/grub/i386/qemu/machine.h: Likewise.
37216 * include/grub/i386/qemu/loader.h: Likewise.
37217 * include/grub/i386/qemu/memory.h: Likewise.
37219 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
37220 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
37221 [qemu] (pkglib_IMAGES): Add `boot.img'.
37222 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
37223 [qemu] (boot_img_FORMAT): New variables.
37224 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
37225 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
37226 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
37227 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
37228 [qemu] (kernel_img_FORMAT): New variables.
37230 * configure.ac: Recognise `i386-qemu'.
37232 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
37233 (for no compression).
37234 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
37235 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
37236 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
37237 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
37240 2009-06-27 Pavel Roskin <proski@gnu.org>
37242 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
37244 * efiemu/prepare32.c: Likewise.
37245 * efiemu/prepare64.c: Likewise.
37247 2009-06-26 Pavel Roskin <proski@gnu.org>
37249 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
37250 * include/grub/elf.h: Define symbols without "32" or "64" based
37251 on GRUB_TARGET_WORDSIZE.
37252 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
37253 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
37255 * efiemu/loadcore64.c: Likewise.
37256 * loader/i386/bsd32.c: Likewise.
37257 * loader/i386/bsd64.c: Likewise.
37258 * kern/dl.c: Remove own ELF definitions.
37259 * util/i386/efi/grub-mkimage.c: Likewise.
37261 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
37263 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
37264 segment 0x0 unconditionally, because the reference generated by
37265 GAS is an absolute address.
37267 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37269 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
37270 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
37272 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37274 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
37275 indexes. Check for -f explicitly.
37276 (search_file): Improve error message.
37277 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
37279 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37281 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
37282 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
37284 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37286 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
37287 * conf/i386-ieee1275.rmk: Likewise.
37288 * conf/i386-coreboot.rmk: Likewise.
37290 * kern/i386/pc/startup.S (grub_stop): Remove function.
37291 * kern/i386/ieee1275/startup.S: Likewise.
37292 * kern/i386/coreboot/startup.S: Likewise.
37293 * kern/i386/misc.S (grub_stop): New function.
37295 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37297 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
37298 * kern/i386/realmode.S (real_to_prot): ... to here.
37300 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37302 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
37304 (kernel_elf_SOURCES): Rename to ...
37305 (kernel_img_SOURCES): ... this.
37306 (kernel_elf_HEADERS): Rename to ...
37307 (kernel_img_HEADERS): ... this. Update all users.
37308 (kernel_elf_ASFLAGS): Rename to ...
37309 (kernel_img_ASFLAGS): ... this.
37310 (kernel_elf_CFLAGS): Rename to ...
37311 (kernel_img_CFLAGS): ... this.
37312 (kernel_elf_LDFLAGS): Rename to ...
37313 (kernel_img_LDFLAGS): ... this.
37314 * conf/i386-coreboot.rmk: Likewise.
37315 * conf/powerpc-ieee1275.rmk: Likewise.
37317 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
37320 2009-06-21 Pavel Roskin <proski@gnu.org>
37322 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
37323 to match nested functions.
37324 * loader/sparc64/ieee1275/linux.c: Likewise.
37326 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
37328 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37330 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
37331 all i386 platforms.
37333 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37335 Fix asm file handling on ELF, and remove workarounds.
37337 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
37338 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
37339 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
37340 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
37342 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
37344 Load BSD ELF modules
37346 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
37347 and loader/i386/bsd64.c
37348 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
37349 (FREEBSD_MODTYPE_ELF_MODULE): New definition
37350 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
37351 (grub_freebsd_load_elfmodule32): New declaration
37352 (grub_freebsd_load_elfmoduleobj64): Likewise
37353 (grub_freebsd_load_elf_meta32): Likewise
37354 (grub_freebsd_load_elf_meta64): Likewise
37355 (grub_freebsd_add_meta): Likewise
37356 (grub_freebsd_add_meta_module): Likewise
37357 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
37358 (grub_freebsd_add_meta_module): Likewise and move module-specific
37359 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
37360 (grub_cmd_freebsd): Add elf-kernel specific parts
37361 based on grub_freebsd_add_meta_module
37362 (grub_cmd_freebsd_module): Add type parsing moved from
37363 grub_freebsd_add_meta_module
37364 (grub_cmd_freebsd_module_elf): New function
37365 (cmd_freebsd_module_elf): New variable
37366 (GRUB_MOD_INIT): Register freebsd_module_elf
37367 * loader/i386/bsd32.c: New file
37368 * loader/i386/bsd64.c: Likewise
37369 * loader/i386/bsdXX.c: Likewise
37370 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
37371 (grub_elf64_load): Likewise
37372 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
37374 (grub_elf64_load_hook_t): Likewise
37376 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
37378 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
37380 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
37381 don't write a menu entry for recovery mode.
37383 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37385 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
37386 after it's no longer needed.
37388 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37390 * include/grub/i386/loader.h (grub_linux_prot_size)
37391 (grub_linux_tmp_addr, grub_linux_real_addr)
37392 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
37393 GRUB_MACHINE_PCBIOS.
37394 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
37395 common grub_util_info() call to ...
37396 (generate_image): ... here.
37397 Fix use of uninitialized memory, comparison of signed with
37398 unsigned integers and memory leak.
37399 Remove bogus module address message.
37401 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
37403 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
37405 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
37407 2009-06-19 Pavel Roskin <proski@gnu.org>
37409 * configure.ac: Remove stray AC_MSG_CHECKING.
37411 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
37413 * disk/scsi.c (grub_scsi_open): use continue instead of big if
37415 2009-06-18 Pavel Roskin <proski@gnu.org>
37417 * conf/common.rmk: Add fs_file.mod.
37418 * disk/fs_file.c: New file.
37419 * include/grub/disk.h (enum grub_disk_dev_id): Add
37420 GRUB_DISK_DEVICE_FILE_ID.
37422 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37424 Fix build with Apple's toolchain. Part 2
37426 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
37429 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37431 Fix build with Apple's toolchain. Part 1
37433 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
37435 * configure.ac: remove a leftover AC_MSG_RESULT
37436 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
37439 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37443 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
37444 (decomp_block): initialize ch
37445 use grub_memcpy instead of memcpy
37447 2009-06-17 Pavel Roskin <proski@gnu.org>
37449 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
37450 version, use declarations needed to use vga_text as the startup
37453 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
37454 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
37456 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
37457 and grub_at_keyboard_fini(), it's done on module load and
37460 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
37462 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
37463 file can't be found.
37464 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37466 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37468 Fix newline handling
37470 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
37471 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
37472 (grub_script_yylex): don't segfault on unterminated script
37473 newline terminates command and variable
37475 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37477 avoid double grub_adjust_range call. Bug reported by David Simner
37479 * kern/disk.c (grub_disk_write): change to raw disk access before
37482 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
37484 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
37485 spaces, for the benefit of help2man.
37486 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37488 2009-06-16 Pavel Roskin <proski@gnu.org>
37490 * kern/i386/halt.c: Include grub/machine/init.h.
37491 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
37493 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
37495 * util/grub.d/30_os-prober.in: Use ${root} in the generated
37496 drivemap menuentry.
37498 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
37500 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
37503 2009-06-16 Pavel Roskin <proski@gnu.org>
37505 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
37506 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
37507 save %dx, we only need %dl and we never change it.
37508 * boot/i386/pc/cdboot.S: Don't set the root drive.
37509 * boot/i386/pc/pxeboot.S: Likewise.
37510 * include/grub/i386/pc/boot.h: Remove
37511 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
37512 GRUB_BOOT_MACHINE_DRIVE_CHECK.
37513 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
37514 * kern/i386/pc/init.c (make_install_device): Remove references
37515 to grub_root_drive.
37516 * kern/i386/pc/startup.S: Likewise.
37517 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
37519 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37523 * commands/xnu_uuid.c: new file
37524 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
37525 (xnu_uuid_mod_SOURCES): new variable
37526 (xnu_uuid_mod_CFLAGS): likewise
37527 (xnu_uuid_mod_LDFLAGS): likewise
37528 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37529 * conf/i386-ieee1275.rmk: likewise
37530 * conf/i386-pc.rmk: likewise
37531 * conf/powerpc-ieee1275.rmk: likewise
37532 * conf/sparc64-ieee1275.rmk: likewise
37533 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
37535 2009-06-16 Pavel Roskin <proski@gnu.org>
37537 * configure.ac: Avoid '==' in test command, it's not portable.
37539 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37543 * commands/probe.c: new file
37544 * conf/common.rmk (pkglib_MODULES): add probe.mod
37545 (probe_mod_SOURCES): new variable
37546 (probe_mod_CFLAGS): likewise
37547 (probe_mod_LDFLAGS): likewise
37548 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37549 * conf/i386-ieee1275.rmk: likewise
37550 * conf/i386-pc.rmk: likewise
37551 * conf/powerpc-ieee1275.rmk: likewise
37552 * conf/sparc64-ieee1275.rmk: likewise
37554 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
37556 Fix handling of string like \"hello\" and "a
37559 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
37560 (grub_script_yylex): fix parsing of quoting, escaping and newline
37562 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
37564 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
37567 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
37569 * util/grub-mkconfig.in: Fix parsing of --output option.
37571 2009-06-12 Pavel Roskin <proski@gnu.org>
37573 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
37574 genmk.rb don't need to be generated or installed.
37576 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
37578 * commands/i386/pc/drivemap_int13h.S: add more comments
37580 2009-06-11 Pavel Roskin <proski@gnu.org>
37582 * Makefile.in (uninstall): Uninstall manuals.
37584 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
37585 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
37586 and update-grub_lib in two places.
37587 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
37589 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
37590 a compiler warning.
37592 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
37593 `entry_lo' to fix variable shadowing.
37595 2009-06-11 Christian Franke <franke@computer.org>
37597 * kern/misc.c (__enable_execute_stack): Add missing return type
37598 to prevent gcc warning.
37600 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37602 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
37604 2009-06-11 Pavel Roskin <proski@gnu.org>
37606 * Makefile.in: Don't rely on any scripts being executable.
37607 Always use $(SHELL) to run shell scripts.
37609 * configure.ac: Always define ___main if using -nostdlib. This
37610 fixes tests on Cygwin.
37612 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
37616 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
37617 is in bytes and not in blocks
37619 2009-06-11 Pavel Roskin <proski@gnu.org>
37621 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
37624 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37626 * util/grub.d/30_os-prober.in: Fix a comment. Source
37627 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
37628 to set the root device. Place drivemap command in the generated
37631 2009-06-11 Pavel Roskin <proski@gnu.org>
37633 * configure.ac: Remove host_m32. Issues with 64-bit utilities
37634 have long been resolved.
37636 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
37638 * util/grub.d/10_linux.in: Capitalise "Linux".
37640 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
37642 2009-06-11 Pavel Roskin <proski@gnu.org>
37644 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
37645 fix a gcc warning and ensure that the function won't ever exit.
37647 * kern/i386/ieee1275/init.c: Add missing prototype for
37648 grub_stop_floppy().
37650 * loader/ieee1275/multiboot2.c [__i386__]: Include
37651 grub/cpu/multiboot.h.
37653 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
37654 casts to short - they are not portable and cause warnings. Fix
37655 use of uninitialized values in input_buf. Use ARRAY_SIZE.
37657 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
37661 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
37663 (grub_get_root_biosnumber_saved): new variable
37664 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
37665 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
37666 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
37667 %dx after the call if necessary
37668 * conf/common.rmk (pkglib_MODULES): remove boot.mod
37669 (boot_mod_SOURCES): remove
37670 (boot_mod_CFLAGS): remove
37671 (boot_mod_LDFLAGS): remove
37672 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
37673 (boot_mod_SOURCES): new variable
37674 (boot_mod_CFLAGS): likewise
37675 (boot_mod_LDFLAGS): likewise
37676 * conf/i386-efi.rmk: likewise
37677 * conf/i386-ieee1275.rmk: likewise
37678 * conf/i386-pc.rmk: likewise
37679 * conf/powerpc-ieee1275.rmk: likewise
37680 * conf/sparc64-ieee1275.rmk: likewise
37681 * conf/x86_64-efi.rmk: likewise
37682 * include/grub/i386/pc/biosnum.h: new file
37683 * lib/i386/pc/biosnum.c: likewise
37684 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
37685 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
37686 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
37688 2009-06-10 Pavel Roskin <proski@gnu.org>
37690 * io/gzio.c (test_header): Don't reuse one buffer for all data.
37691 Use separate variables. Read only the file size at the end, but
37692 not the checksum that we don't use.
37694 * kern/file.c (grub_file_read): Use void pointer for the buffer.
37695 Adjust all callers.
37697 * kern/ieee1275/openfw.c: Remove libc includes.
37698 * kern/ieee1275/cmain.c: Likewise.
37699 * include/grub/ieee1275/ieee1275.h: Likewise.
37701 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
37704 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37706 * Makefile.in: Remove all trailing whitespace.
37707 * conf/i386-pc.rmk: Likewise.
37708 * conf/powerpc-ieee1275.rmk: Likewise.
37709 * conf/sparc64-ieee1275.rmk: Likewise.
37710 * docs/grub.texi: Likewise.
37711 * docs/texinfo.tex: Likewise.
37712 * disk/fs_uuid.c: Likewise.
37713 * disk/lvm.c: Likewise.
37714 * disk/scsi.c: Likewise.
37715 * disk/ata.c: Likewise.
37716 * disk/ieee1275/ofdisk.c: Likewise.
37717 * disk/i386/pc/biosdisk.c: Likewise.
37718 * disk/host.c: Likewise.
37719 * disk/raid.c: Likewise.
37720 * disk/efi/efidisk.c: Likewise.
37721 * disk/usbms.c: Likewise.
37722 * disk/memdisk.c: Likewise.
37723 * disk/loopback.c: Likewise.
37724 * kern/powerpc/dl.c: Likewise.
37725 * kern/device.c: Likewise.
37726 * kern/dl.c: Likewise.
37727 * kern/sparc64/dl.c: Likewise.
37728 * kern/ieee1275/ieee1275.c: Likewise.
37729 * kern/term.c: Likewise.
37730 * kern/fs.c: Likewise.
37731 * kern/i386/dl.c: Likewise.
37732 * kern/i386/pc/startup.S: Likewise.
37733 * kern/i386/pc/init.c: Likewise.
37734 * kern/i386/pc/mmap.c: Likewise.
37735 * kern/i386/pc/lzo1x.S: Likewise.
37736 * kern/i386/ieee1275/init.c: Likewise.
37737 * kern/i386/realmode.S: Likewise.
37738 * kern/i386/tsc.c: Likewise.
37739 * kern/partition.c: Likewise.
37740 * kern/corecmd.c: Likewise.
37741 * kern/file.c: Likewise.
37742 * kern/efi/efi.c: Likewise.
37743 * kern/efi/init.c: Likewise.
37744 * kern/efi/mm.c: Likewise.
37745 * kern/main.c: Likewise.
37746 * kern/err.c: Likewise.
37747 * kern/env.c: Likewise.
37748 * kern/disk.c: Likewise.
37749 * kern/generic/millisleep.c: Likewise.
37750 * kern/generic/rtc_get_time_ms.c: Likewise.
37751 * kern/misc.c: Likewise.
37752 * kern/parser.c: Likewise.
37753 * genmk.rb: Likewise.
37754 * configure.ac: Likewise.
37755 * boot/i386/pc/diskboot.S: Likewise.
37756 * boot/i386/pc/pxeboot.S: Likewise.
37757 * boot/i386/pc/boot.S: Likewise.
37758 * boot/i386/pc/lnxboot.S: Likewise.
37759 * boot/i386/pc/cdboot.S: Likewise.
37760 * parttool/pcpart.c: Likewise.
37761 * video/readers/tga.c: Likewise.
37762 * video/video.c: Likewise.
37763 * video/bitmap.c: Likewise.
37764 * lib/envblk.c: Likewise.
37765 * lib/i386/setjmp.S: Likewise.
37766 * fs/xfs.c: Likewise.
37767 * fs/afs.c: Likewise.
37768 * fs/fat.c: Likewise.
37769 * fs/ntfs.c: Likewise.
37770 * fs/udf.c: Likewise.
37771 * fs/affs.c: Likewise.
37772 * fs/iso9660.c: Likewise.
37773 * fs/hfs.c: Likewise.
37774 * fs/fshelp.c: Likewise.
37775 * fs/ext2.c: Likewise.
37776 * fs/jfs.c: Likewise.
37777 * fs/reiserfs.c: Likewise.
37778 * fs/hfsplus.c: Likewise.
37779 * fs/minix.c: Likewise.
37780 * fs/cpio.c: Likewise.
37781 * fs/sfs.c: Likewise.
37782 * fs/ufs.c: Likewise.
37783 * efiemu/prepare.c: Likewise.
37784 * efiemu/loadcore_common.c: Likewise.
37785 * efiemu/runtime/efiemu.sh: Likewise.
37786 * efiemu/runtime/efiemu.S: Likewise.
37787 * efiemu/runtime/efiemu.c: Likewise.
37788 * efiemu/pnvram.c: Likewise.
37789 * efiemu/main.c: Likewise.
37790 * efiemu/i386/pc/cfgtables.c: Likewise.
37791 * efiemu/i386/loadcore64.c: Likewise.
37792 * efiemu/i386/loadcore32.c: Likewise.
37793 * efiemu/loadcore.c: Likewise.
37794 * efiemu/symbols.c: Likewise.
37795 * efiemu/mm.c: Likewise.
37796 * include/grub/autoefi.h: Likewise.
37797 * include/grub/datetime.h: Likewise.
37798 * include/grub/term.h: Likewise.
37799 * include/grub/hfs.h: Likewise.
37800 * include/grub/lvm.h: Likewise.
37801 * include/grub/i386/tsc.h: Likewise.
37802 * include/grub/i386/linux.h: Likewise.
37803 * include/grub/i386/xnu.h: Likewise.
37804 * include/grub/i386/efiemu.h: Likewise.
37805 * include/grub/i386/pc/biosdisk.h: Likewise.
37806 * include/grub/i386/pc/memory.h: Likewise.
37807 * include/grub/i386/pc/vbe.h: Likewise.
37808 * include/grub/parttool.h: Likewise.
37809 * include/grub/video.h: Likewise.
37810 * include/grub/memory.h: Likewise.
37811 * include/grub/fs.h: Likewise.
37812 * include/grub/partition.h: Likewise.
37813 * include/grub/xnu.h: Likewise.
37814 * include/grub/efi/api.h: Likewise.
37815 * include/grub/efi/pe32.h: Likewise.
37816 * include/grub/efi/memory.h: Likewise.
37817 * include/grub/multiboot.h: Likewise.
37818 * include/grub/usbdesc.h: Likewise.
37819 * include/grub/multiboot2.h: Likewise.
37820 * include/grub/acpi.h: Likewise.
37821 * include/grub/efiemu/efiemu.h: Likewise.
37822 * include/grub/disk.h: Likewise.
37823 * include/grub/ieee1275/ieee1275.h: Likewise.
37824 * include/grub/net.h: Likewise.
37825 * include/grub/machoload.h: Likewise.
37826 * include/grub/macho.h: Likewise.
37827 * include/multiboot.h: Likewise.
37828 * genmoddep.awk: Likewise.
37829 * normal/main.c: Likewise.
37830 * normal/menu_entry.c: Likewise.
37831 * normal/menu_viewer.c: Likewise.
37832 * normal/completion.c: Likewise.
37833 * normal/cmdline.c: Likewise.
37834 * normal/misc.c: Likewise.
37835 * normal/datetime.c: Likewise.
37836 * bus/usb/usbtrans.c: Likewise.
37837 * bus/usb/ohci.c: Likewise.
37838 * bus/usb/uhci.c: Likewise.
37839 * bus/usb/usb.c: Likewise.
37840 * mmap/efi/mmap.c: Likewise.
37841 * mmap/i386/pc/mmap_helper.S: Likewise.
37842 * mmap/i386/pc/mmap.c: Likewise.
37843 * mmap/i386/mmap.c: Likewise.
37844 * mmap/i386/uppermem.c: Likewise.
37845 * mmap/mmap.c: Likewise.
37846 * commands/acpi.c: Likewise.
37847 * commands/echo.c: Likewise.
37848 * commands/blocklist.c: Likewise.
37849 * commands/loadenv.c: Likewise.
37850 * commands/usbtest.c: Likewise.
37851 * commands/boot.c: Likewise.
37852 * commands/parttool.c: Likewise.
37853 * commands/search.c: Likewise.
37854 * commands/cat.c: Likewise.
37855 * commands/i386/pc/play.c: Likewise.
37856 * commands/i386/pc/drivemap.c: Likewise.
37857 * commands/i386/pc/vbeinfo.c: Likewise.
37858 * commands/i386/pc/acpi.c: Likewise.
37859 * commands/i386/pc/vbetest.c: Likewise.
37860 * commands/ls.c: Likewise.
37861 * commands/cmp.c: Likewise.
37862 * commands/test.c: Likewise.
37863 * commands/efi/acpi.c: Likewise.
37864 * commands/gptsync.c: Likewise.
37865 * commands/help.c: Likewise.
37866 * partmap/amiga.c: Likewise.
37867 * partmap/apple.c: Likewise.
37868 * partmap/acorn.c: Likewise.
37869 * partmap/pc.c: Likewise.
37870 * partmap/sun.c: Likewise.
37871 * partmap/gpt.c: Likewise.
37872 * script/sh/lexer.c: Likewise.
37873 * script/sh/function.c: Likewise.
37874 * font/font.c: Likewise.
37875 * font/font_cmd.c: Likewise.
37876 * loader/powerpc/ieee1275/linux.c: Likewise.
37877 * loader/efi/chainloader.c: Likewise.
37878 * loader/multiboot_loader.c: Likewise.
37879 * loader/macho.c: Likewise.
37880 * loader/i386/multiboot.c: Likewise.
37881 * loader/i386/linux.c: Likewise.
37882 * loader/i386/pc/linux.c: Likewise.
37883 * loader/i386/pc/multiboot2.c: Likewise.
37884 * loader/i386/pc/chainloader.c: Likewise.
37885 * loader/i386/pc/xnu.c: Likewise.
37886 * loader/i386/bsd_trampoline.S: Likewise.
37887 * loader/i386/efi/linux.c: Likewise.
37888 * loader/i386/multiboot_elfxx.c: Likewise.
37889 * loader/i386/bsd_helper.S: Likewise.
37890 * loader/i386/bsd.c: Likewise.
37891 * loader/i386/linux_trampoline.S: Likewise.
37892 * loader/i386/xnu_helper.S: Likewise.
37893 * loader/i386/xnu.c: Likewise.
37894 * loader/i386/bsd_pagetable.c: Likewise.
37895 * loader/i386/multiboot_helper.S: Likewise.
37896 * loader/xnu.c: Likewise.
37897 * loader/xnu_resume.c: Likewise.
37898 * io/gzio.c: Likewise.
37899 * term/efi/console.c: Likewise.
37900 * term/terminfo.c: Likewise.
37901 * term/ieee1275/ofconsole.c: Likewise.
37902 * term/i386/pc/serial.c: Likewise.
37903 * term/i386/pc/vesafb.c: Likewise.
37904 * term/i386/pc/vga.c: Likewise.
37905 * term/usb_keyboard.c: Likewise.
37906 * term/gfxterm.c: Likewise.
37907 * aclocal.m4: Likewise.
37908 * util/lvm.c: Likewise.
37909 * util/grub.d/30_os-prober.in: Likewise.
37910 * util/grub.d/10_hurd.in: Likewise.
37911 * util/console.c: Likewise.
37912 * util/grub-macho2img.c: Likewise.
37913 * util/grub-probe.c: Likewise.
37914 * util/hostfs.c: Likewise.
37915 * util/i386/pc/grub-mkimage.c: Likewise.
37916 * util/i386/pc/grub-setup.c: Likewise.
37917 * util/i386/efi/grub-mkimage.c: Likewise.
37918 * util/grub-mkconfig.in: Likewise.
37919 * util/raid.c: Likewise.
37920 * util/resolve.c: Likewise.
37921 * util/grub-mkdevicemap.c: Likewise.
37922 * util/grub-emu.c: Likewise.
37923 * util/getroot.c: Likewise.
37924 * util/hostdisk.c: Likewise.
37925 * util/usb.c: Likewise.
37926 * util/grub-editenv.c: Likewise.
37927 * util/misc.c: Likewise.
37929 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37931 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
37932 `genparttoollist.sh'.
37933 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
37934 Add `*.sh' to the list find searches for and change `mdate.sh'
37937 2009-06-10 Pavel Roskin <proski@gnu.org>
37939 * include/grub/multiboot2.h: Provide compatibility defines for
37941 * include/multiboot2.h: Include stdint.h only if needed, using
37943 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
37945 * loader/ieee1275/multiboot2.c: Likewise.
37946 * loader/multiboot2.c: Likewise.
37947 * loader/multiboot_loader.c: Likewise.
37949 * configure.ac: Use -nostdlib when probing for the target. It
37950 should not be required to have libc for the target.
37952 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
37953 they fail without libc headers for the target.
37954 * include/grub/powerpc/libgcc.h: Use weak attribute for all
37956 * include/grub/sparc64/libgcc.h: Likewise. Don't use
37957 preprocessor conditionals.
37959 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
37960 build system doesn't need to be aware of the tar.c internals.
37962 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
37964 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
37966 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
37968 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
37969 disk limit to 26 for IDE, Virtio, Xen and SCSI.
37971 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
37973 * util/i386/pc/grub-install.in: Change the error message if UUIDs
37974 aren't available if ata.mod gets used.
37976 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
37978 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
37979 initialising controller.
37980 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37982 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37984 * util/i386/pc/grub-install.in: Add a parameter --disk-module
37985 to choose between ata and biosdisk module on i386-pc.
37987 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
37989 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
37990 Subclass and Programming Interface fields in terms of the 3 byte
37991 Class Code register.
37992 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37994 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
37995 interface is OHCI. Add grub_dprintf for symmetry with
37997 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
37998 interface is UHCI. Add interf variable for programming
37999 interface. Print interface with class/subclass.
38001 * bus/usb/ohci.c: Set interf with correct field.
38003 * bus/usb/uhci.c: Remove unneeded doubled lines.
38004 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
38005 Remove whitespace inside comment.
38007 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
38009 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
38010 as fallback an equivalent option without depth.
38012 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
38014 Not fail if unable to retrieve C/H/S on LBA disks
38016 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
38017 if unable to retrieve C/H/S on LBA disks
38019 2009-06-08 Pavel Roskin <proski@gnu.org>
38021 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
38024 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38026 * Makefile.in (uninstall): Remove all $lib_DATA files.
38028 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
38030 Bugfix: install on partitionless device
38032 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
38035 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38037 * Makefile.in (uninstall): Remove all $include_DATA files.
38039 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38041 * commands/true.c: New file. Implement the true and false commands.
38042 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
38043 (true_mod_SOURCES): New variable.
38044 (true_mod_CFLAGS): Likewise.
38045 (true_mod_LDFLAGS): Likewise.
38047 2009-06-05 Colin D Bennett <colin@gibibit.com>
38049 Optimized font character lookup using binary search instead of linear
38050 search. Fonts now are required to have the character index ordered by
38053 * font/font.c (load_font_index): Verify that fonts have ordered
38055 (find_glyph): Use binary search instead of linear search to find a
38056 character in a font.
38058 2009-06-05 Michael Scherer <misc@mandriva.org>
38060 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
38061 uses case sensitive btree.
38062 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
38063 only for case insensitive filesystems.
38065 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
38067 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
38068 * conf/common.rmk (search_mod_CFLAGS): likewise
38070 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38072 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
38073 compensate a compiler bug
38075 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38077 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
38080 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38082 Definitions for creating asm symbols with Apple's CC
38084 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
38085 [APPLE_CC] (VARIABLE): likewise
38087 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38089 Disable lnxboot.img when compiled
38092 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
38093 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
38094 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
38095 [! APPLE_CC] (CODE_LENG): skip
38096 [! APPLE_CC] (setup_sects): likewise
38097 [! APPLE_CC]: skip filling
38099 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38101 Address in trampolines based on 32-bit registers when compiled
38104 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
38106 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
38108 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38110 Avoid aliases when compiling with Apple's CC for PCBIOS machine
38112 * kern/misc.c [APPLE_CC] (memcpy): new function
38113 [APPLE_CC] (memmove): likewise
38114 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
38115 (memcpy): define alias conditionally on !APPLE_CC
38118 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
38119 APPLE_CC are defined
38120 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
38121 (grub_assert_fail): make prototype conditional
38123 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38125 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
38127 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
38129 (CLEANFILES): add grub-macho2img
38130 (grub_macho2img_SOURCES): new variable
38131 * kern/i386/pc/startup.S (bss_start): new variable
38132 (bss_end): likewise
38133 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
38134 * util/grub-macho2img.c: new file
38136 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38138 Use objconv when compiling with Apple's CC
38140 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
38141 (efiemu64.o): likewise
38142 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
38143 when compiling with Apple's CC
38144 (efiemu64_s.o): likewise
38145 * configure.ac: check for objconv when compiling with Apple's CC
38146 * genmk.rb: use objconv for modules when compiled with Apple's CC
38148 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38150 Define segment as well as section when compiling with
38153 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
38154 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
38155 (efiemu_convert_pointer): likewise
38156 (efiemu_set_virtual_address_map): likewise
38157 (efiemu_convert_pointer): likewise
38158 (efiemu_getcrc32): likewise
38159 (init_crc32_table): likewise
38160 (reflect): likewise
38161 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
38162 (GRUB_MOD_DEP): likewise
38164 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38166 Allow a compilation without -mcmodel=large
38168 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
38169 when compiled without -mcmodel=large
38170 (filter_memory_map): remove memory post 4 GiB when compiled
38171 without -mcmodel=large
38172 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
38173 TARGET_CFLAGS when -mcmodel=large isn't supported
38175 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38177 Remove nested functions in efiemu core
38179 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
38181 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38183 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
38185 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
38187 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
38189 (grub_cpu_is_tsc_supported): likewise
38190 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
38192 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38194 Absolute addressing through constant with Apple's cc
38196 * kern/i386/pc/startup.S: Define necessary constants
38197 and address through it when using ABS with Apple's CC
38198 * boot/i386/pc/diskboot.S: likewise
38199 * boot/i386/pc/boot.S: likewise
38200 * boot/i386/pc/lnxboot.S: likewise
38201 * boot/i386/pc/cdboot.S: likewise
38202 * mmap/i386/pc/mmap_helper.S: likewise
38203 * commands/i386/pc/drivemap_int13h.S: likewise
38205 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38207 Check if compiler is apple cc
38209 * Makefile.in (ASFLAGS): new variable
38210 (TARGET_ASFLAGS): likewise
38211 (TARGET_MODULE_FORMAT): likewise
38212 (TARGET_APPLE_CC): likewise
38213 (OBJCONV): likewise
38214 (TARGET_IMG_CFLAGS): likewise
38215 (TARGET_CPPFLAGS): add includedir
38216 * configure.ac: call grub_apple_cc and grub_apple_target_cc
38217 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
38218 Check for linker script only if compiler isn't Apple's CC
38219 (TARGET_MODULE_FORMAT): set
38220 (TARGET_APPLE_CC): likewise
38221 (TARGET_ASFLAGS): likewise
38222 (ASFLAGS): likewise
38223 Check for objcopy only if compiler isn't Apple's CC
38224 Check for BSS symbol only if compiler isn't Apple's CC
38225 * genmk.rb: adapt nm options if we use Apple's utils
38226 * aclocal.m4 (grub_apple_cc): new test
38227 (grub_apple_target_cc): likewise
38229 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38231 Simplify sed expressions and improve awk
38233 * Makefile.in (install-local): simplify sed expression
38234 * gencmdlist.sh: likewise
38235 * genmoddep.awk: avoid adding module as a dependency of itself
38237 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38239 Add missing start symbols
38241 * boot/i386/pc/boot.S: add start
38242 * boot/i386/pc/pxeboot.S: likewise
38244 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38246 Fix wrong assumptions with grub-mkimage on EFI
38248 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
38249 (relocate_addresses): consider both r_addend and value at offset
38250 (make_mods_section): zerofill modinfo and header
38251 (convert_elf): write prefix here
38253 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38255 Use .asciz instead of .string
38257 * i386/pc/diskboot.S: use .asciz instead of .string
38258 * i386/pc/boot.S: likewise
38259 * include/grub/dl.h (GRUB_MOD_DEP): likewise
38260 (GRUB_MOD_NAME): likewise
38262 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38266 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
38267 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
38268 (grub_video_setup): remove
38269 (grub_video_set_mode): new prototype
38270 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
38272 (linux_vesafb_res): compile only on PCBIOS
38273 (grub_linux_boot): support gfxpayload
38274 * loader/i386/pc/xnu.c (video_hook): new function
38275 (grub_xnu_set_video): support gfxpayload
38276 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
38277 (DEFAULT_VIDEO_HEIGHT): likewise
38278 (DEFAULT_VIDEO_FLAGS): likewise
38279 (DEFAULT_VIDEO_MODE): new definition
38280 (video_hook): new function
38281 (grub_gfxterm_init): use grub_video_set_mode
38282 * util/grub.d/30_os-prober.in: remove explicit modesetting before
38284 * video/video.c (grub_video_setup): removed
38285 (grub_video_set_mode): new function based on grub_gfxterm_init and
38288 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38290 Avoid calling biosdisk in drivemap
38292 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
38293 (revparse_biosdisk): likewise
38294 (list_mappings): derive name from id directly
38295 (grub_cmd_drivemap): use tryparse_diskstring
38297 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38301 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
38302 (grub_lexer_param): add tokenonhold
38303 (grub_script_create_cmdline): remove cmdline. All callers updated
38304 (grub_script_function_create): make functionname
38305 grub_script_arg. All callers updated
38306 (grub_script_execute_argument_to_string): new prototype
38307 * kern/parser.c (state_transitions): reorder
38308 (grub_parser_cmdline_state): fix a bug and make more compact
38309 * script/sh/execute.c (grub_script_execute_argument_to_string):
38311 (grub_script_execute_cmdline): use new format
38312 * script/sh/function.c (grub_script_function_create): make functionname
38313 grub_script_arg. All callers updated
38314 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
38315 (grub_script_yylex): remove
38316 (grub_script_yylex2): renamed to ...
38317 (grub_script_yylex): ...renamed
38318 parse the expressions like a${b}c
38319 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
38320 (GRUB_PARSER_TOKEN_VAR): remove
38321 (GRUB_PARSER_TOKEN_NAME): likewise
38322 ("if"): declare as typeless
38323 ("while"): likewise
38324 ("function"): likewise
38329 (argument): likewise
38330 (script): accept empty scripts and make exit on error
38331 (arguments): use GRUB_PARSER_TOKEN_ARG
38332 (function): likewise
38333 (command): move error handling to script
38334 (menuentry): move grub_script_lexer_ref before
38335 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
38336 argument. All callers updated
38338 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38340 Prevent GRUB from probing floppies during boot.
38342 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
38343 * commands/search.c (options): Add --no-floppy.
38344 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
38345 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
38346 --no-floppy when searching for UUIDs.
38348 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38350 Simplify the code duplication in commands/search.c.
38352 * commands/search.c (search_label, search_fs_uuid): Merge into ...
38353 (search_fs): ... this. Update all users.
38355 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
38357 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
38359 2009-05-28 Pavel Roskin <proski@gnu.org>
38361 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
38362 Remove the original symlink explicitly.
38364 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
38365 just one slash. That's how grub_fshelp_find_file() does it.
38367 2009-05-26 Pavel Roskin <proski@gnu.org>
38369 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
38372 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
38375 2009-05-25 Christian Franke <franke@computer.org>
38377 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
38379 (grub_atapi_identify): Add wait after drive select.
38380 (grub_ata_identify): Do more strict status register check before
38381 calling grub_atapi_identify (). Suppress error message if status
38382 register is 0x00 after command failure. Add status register
38383 check after PIO read to avoid bogus identify due to stuck DRQ.
38384 Thanks to Pavel Roskin for testing.
38385 (grub_device_initialize): Remove unsafe status register check.
38386 Thanks to 'phcoder' for problem report and patch.
38387 Prevent sign extension in debug message.
38389 2009-05-23 Colin D Bennett <colin@gibibit.com>
38391 Cleaned up `include/grub/normal.h'. Grouped prototypes by
38392 definition file, and functions defined in `normal/menu.c' have had
38393 their prototypes moved to `include/grub/menu.h' for consistency.
38395 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
38397 (grub_menu_get_entry): Likewise.
38398 (grub_menu_get_timeout): Likewise.
38399 (grub_menu_set_timeout): Likewise.
38400 (grub_menu_execute_entry): Likewise.
38401 (grub_menu_execute_with_fallback): Likewise.
38402 (grub_menu_entry_run): Likewise.
38404 * include/grub/normal.h: Re-ordered and grouped function
38405 prototypes by file that the function is defined in.
38406 (grub_menu_execute_callback): Removed; moved to menu.h.
38407 (grub_menu_get_entry): Likewise.
38408 (grub_menu_get_timeout): Likewise.
38409 (grub_menu_set_timeout): Likewise.
38410 (grub_menu_execute_entry): Likewise.
38411 (grub_menu_execute_with_fallback): Likewise.
38412 (grub_menu_entry_run): Likewise.
38413 (grub_menu_addentry): Renamed from this ...
38414 (grub_normal_add_menu_entry): ... to this.
38416 * normal/main.c (grub_menu_addentry): Renamed from this ...
38417 (grub_normal_add_menu_entry): ... to this.
38419 * script/sh/execute.c (grub_script_execute_menuentry): Update
38420 reference to renamed grub_menu_addentry function.
38422 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
38424 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
38426 2009-05-22 Pavel Roskin <proski@gnu.org>
38428 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
38429 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
38430 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
38431 compiling for the i386 targets, but not for the utilities.
38433 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
38435 (grub_root_drive): Likewise.
38436 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
38438 (grub_root_drive): Change size to byte.
38439 (grub_start_addr): Remove.
38440 (grub_end_addr): Likewise.
38441 (grub_apm_bios_info): Likewise.
38443 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
38445 * normal/i386: Remove.
38446 * normal/powerpc: Likewise.
38447 * normal/sparc64: Likewise.
38448 * normal/x86_64: Likewise.
38450 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
38452 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
38453 * loader/i386/linux_trampoline.S: Fix indentation
38454 * loader/i386/xnu_helper.S: Likewise
38456 2009-05-18 Colin D Bennett <colin@gibibit.com>
38458 Display error messages when parsing a Lua statement fails.
38459 Previously, executing a syntactically invalid statement like
38460 ")foo" or "bar;" would silently fail.
38462 * script/lua/grub_main.c (handle_lua_error): New function.
38463 (grub_lua_parse_line): Improved reporting of Lua parser and
38466 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38468 Remove -Werror which causes build to fail on some systems
38470 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
38471 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
38472 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
38474 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38476 trampoline for linux on 64-bit platform
38478 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
38479 loader/i386/efi/linux_trampoline.S
38480 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
38482 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
38484 * loader/i386/linux_trampoline.S: moved here
38485 * loader/i386/efi/linux.c (allocate_pages): reserve space for
38487 (jumpvector): removed
38488 (grub_linux_trampoline_start): new declaration
38489 (grub_linux_trampoline_end): likewise
38490 (grub_linux_boot): use trampoline when on 64-bit platform
38491 * loader/i386/linux.c: likewise
38493 2009-05-16 Pavel Roskin <proski@gnu.org>
38495 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
38496 const to avoid a warning.
38497 (grub_lua_setenv): Likewise.
38498 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
38499 lmsg to fix a warning.
38501 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38503 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
38504 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38505 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
38506 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38507 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38508 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38509 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38510 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38512 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38514 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
38516 2009-05-16 Bean <bean123ch@gmail.com>
38518 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
38519 (lua_mod_SOURCES): New variable.
38520 (lua_mod_CFLAGS): Likewise.
38521 (lua_mod_LDFLAGS): Likewise.
38523 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
38524 (setjmp_mod_SOURCES): New variable.
38525 (setjmp_mod_CFLAGS): Likewise.
38526 (setjmp_LDFLAGS): Likewise.
38528 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
38529 (setjmp_mod_SOURCES): New variable.
38530 (setjmp_mod_CFLAGS): Likewise.
38531 (setjmp_LDFLAGS): Likewise.
38533 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38534 (setjmp_mod_SOURCES): New variable.
38535 (setjmp_mod_CFLAGS): Likewise.
38536 (setjmp_LDFLAGS): Likewise.
38538 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38539 (setjmp_mod_SOURCES): New variable.
38540 (setjmp_mod_CFLAGS): Likewise.
38541 (setjmp_LDFLAGS): Likewise.
38543 * normal/i386/setjmp.S: Moved from here ...
38544 * lib/i386/setjmp.S: ... Moved here
38545 * normal/x86_64/setjmp.S: Moved from here ...
38546 * lib/x86_64/setjmp.S: ... Moved here
38547 * normal/powerpc/setjmp.S: Moved from here ...
38548 * lib/powerpc/setjmp.S: ... Moved here
38549 * normal/sparc64/setjmp.S: Moved from here ...
38550 * lib/sparc64/setjmp.S: ... Moved here
38552 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
38553 returns_twice in mingw.
38555 * script/lua/grub_lib.c: New file.
38556 * script/lua/grub_lib.h: Likewise.
38557 * script/lua/grub_lua.h: Likewise.
38558 * script/lua/grub_main.c: Likewise.
38559 * script/lua/lapi.c: Likewise.
38560 * script/lua/lapi.h: Likewise.
38561 * script/lua/lauxlib.c: Likewise.
38562 * script/lua/lauxlib.h: Likewise.
38563 * script/lua/lbaselib.c: Likewise.
38564 * script/lua/lcode.c: Likewise.
38565 * script/lua/lcode.h: Likewise.
38566 * script/lua/ldblib.c: Likewise.
38567 * script/lua/ldebug.c: Likewise.
38568 * script/lua/ldebug.h: Likewise.
38569 * script/lua/ldo.c: Likewise.
38570 * script/lua/ldo.h: Likewise.
38571 * script/lua/ldump.c: Likewise.
38572 * script/lua/lfunc.c: Likewise.
38573 * script/lua/lfunc.h: Likewise.
38574 * script/lua/lgc.c: Likewise.
38575 * script/lua/lgc.h: Likewise.
38576 * script/lua/linit.c: Likewise.
38577 * script/lua/liolib.c: Likewise.
38578 * script/lua/llex.c: Likewise.
38579 * script/lua/llex.h: Likewise.
38580 * script/lua/llimits.h: Likewise.
38581 * script/lua/lmathlib.c: Likewise.
38582 * script/lua/lmem.c: Likewise.
38583 * script/lua/lmem.h: Likewise.
38584 * script/lua/loadlib.c: Likewise.
38585 * script/lua/lobject.c: Likewise.
38586 * script/lua/lobject.h: Likewise.
38587 * script/lua/lopcodes.c: Likewise.
38588 * script/lua/lopcodes.h: Likewise.
38589 * script/lua/loslib.c: Likewise.
38590 * script/lua/lparser.c: Likewise.
38591 * script/lua/lparser.h: Likewise.
38592 * script/lua/lstate.c: Likewise.
38593 * script/lua/lstate.h: Likewise.
38594 * script/lua/lstring.c: Likewise.
38595 * script/lua/lstring.h: Likewise.
38596 * script/lua/lstrlib.c: Likewise.
38597 * script/lua/ltable.c: Likewise.
38598 * script/lua/ltable.h: Likewise.
38599 * script/lua/ltablib.c: Likewise.
38600 * script/lua/ltm.c: Likewise.
38601 * script/lua/ltm.h: Likewise.
38602 * script/lua/lua.h: Likewise.
38603 * script/lua/luaconf.h: Likewise.
38604 * script/lua/lualib.h: Likewise.
38605 * script/lua/lundump.c: Likewise.
38606 * script/lua/lundump.h: Likewise.
38607 * script/lua/lvm.c: Likewise.
38608 * script/lua/lvm.h: Likewise.
38609 * script/lua/lzio.c: Likewise.
38610 * script/lua/lzio.h: Likewise.
38612 2009-05-16 Bean <bean123ch@gmail.com>
38614 * include/grub/kernel.h (grub_module_header_types): Add type
38617 * kern/main.c (grub_load_config): New function.
38618 (grub_main): Call grub_load_config to read boot config.
38620 * grub-mkimage (generate_image): New parameter config_path.
38621 (options): New option --config.
38622 (main): Parse --config option, and pass it to generate_image.
38624 2009-05-14 Christian Franke <franke@computer.org>
38626 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
38627 This fixes build on Cygwin.
38629 2009-05-14 Pavel Roskin <proski@gnu.org>
38631 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
38632 jump. This saves two bytes, so the typical case of 2 swapped
38633 drives would fit 32 bytes.
38635 2009-05-13 Pavel Roskin <proski@gnu.org>
38637 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
38638 grub_uint32_t to avoid a warning.
38640 * loader/i386/linux.c (allocate_pages): When assigning
38641 real_mode_mem, cast through grub_size_t to fix a warning. The
38642 code already makes sure that the value would fit a pointer.
38643 (grub_linux_setup_video): Cast render_target->data to
38644 grub_size_t to fix a warning.
38646 2009-05-13 Javier Martín <lordhabbit@gmail.com>
38648 * commands/i386/pc/drivemap.c: New file - implement drivemap
38650 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
38651 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
38653 2009-05-13 Pavel Roskin <proski@gnu.org>
38655 * util/i386/pc/grub-setup.c (setup): Remove unused variable
38656 embedding_area_exists.
38658 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
38660 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
38661 it easier to understand / work with.
38662 Improve warning messages for cases where there's no embedding area,
38663 or when it is too small (or core.img too large).
38665 2009-05-13 Pavel Roskin <proski@gnu.org>
38667 * loader/i386/pc/multiboot2.c: Add necessary includes for
38668 grub_multiboot2_real_boot().
38670 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
38671 PX record is always little-endian. We only need the lower 2
38674 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
38675 facilitate code reuse.
38676 (grub_cpio_mount): Use "struct head", not a char buffer. This
38677 fixes a warning reported by gcc 4.4.
38679 * kernel/disk.c (grub_disk_read): Use void pointer for the
38681 (grub_disk_write): Use const void pointer for the buffer.
38682 Adjust all callers. Remove unnecessary casts.
38684 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
38686 * util/i386/pc/grub-install.in: Update copyright year.
38688 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38692 * commands/gptsync.c: new file
38693 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
38694 (gptsync_mod_SOURCES): new variable
38695 (gptsync_mod_CFLAGS): likewise
38696 (gptsync_mod_LDFLAGS): likewise
38697 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
38699 (GRUB_PC_PARTITION_TYPE_HFS): likewise
38700 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
38701 * conf/i386-ieee1275.rmk: likewise
38702 * conf/i386-pc.rmk: likewise
38703 * conf/powerpc-ieee1275.rmk: likewise
38705 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38709 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
38710 (grub_dl_ref): likewise
38712 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
38714 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
38715 split in two functions (one for msdos and one for gpt).
38717 2009-05-08 Pavel Roskin <proski@gnu.org>
38719 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
38722 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
38723 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
38724 Initialize them with -1. Add sanity check for bad1. Eliminate
38727 2009-05-08 David S. Miller <davem@davemloft.net>
38729 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
38731 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
38733 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
38736 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
38738 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38739 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
38741 2009-05-05 David S. Miller <davem@davemloft.net>
38743 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
38745 2009-05-05 Pavel Roskin <proski@gnu.org>
38747 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
38748 of grub_dl_ref() and grub_dl_unref().
38749 * commands/parttool.c: Remove preprocessor conditionals around
38750 grub_dl_ref() and grub_dl_unref().
38751 * fs/affs.c: Likewise.
38752 * fs/afs.c: Likewise.
38753 * fs/cpio.c: Likewise.
38754 * fs/ext2.c: Likewise.
38755 * fs/fat.c: Likewise.
38756 * fs/hfs.c: Likewise.
38757 * fs/hfsplus.c: Likewise.
38758 * fs/iso9660.c: Likewise.
38759 * fs/jfs.c: Likewise.
38760 * fs/minix.c: Likewise.
38761 * fs/ntfs.c: Likewise.
38762 * fs/reiserfs.c: Likewise.
38763 * fs/sfs.c: Likewise.
38764 * fs/udf.c: Likewise.
38765 * fs/ufs.c: Likewise.
38766 * fs/xfs.c: Likewise.
38767 * include/grub/dl.h: Likewise.
38768 * loader/xnu.c: Likewise.
38770 2009-05-04 Pavel Roskin <proski@gnu.org>
38772 * commands/acpi.c: Remove unused variable my_mod.
38773 * partmap/amiga.c: Likewise.
38774 * partmap/apple.c: Likewise.
38775 * partmap/gpt.c: Likewise.
38776 * partmap/pc.c: Likewise.
38777 * partmap/sun.c: Likewise.
38778 * term/gfxterm.c: Likewise.
38779 * term/i386/pc/vesafb.c: Likewise.
38780 * term/i386/pc/vga.c: Likewise.
38782 2009-05-04 David S. Miller <davem@davemloft.net>
38784 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
38785 pointer args to grub_ieee1275_get_property().
38787 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
38789 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
38790 devices, and do not traverse down under controller nodes.
38792 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
38793 (grub_ofdisk_open): Use it to un-escape "," characters.
38794 * kern/disk.c (find_part_sep): New.
38795 (grub_disk_open): Use it to find the first non-escaped ','
38796 character in the disk name.
38797 * util/ieee1275/devicemap.c (escape_of_path): New.
38798 (grub_util_emit_devicemap_entry): Use it.
38799 * util/sparc64/ieee1275/grub-install.in: Update script to
38800 strip partition specifiers properly by not triggering on
38801 '\' escaped ',' characters.
38803 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38805 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38807 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38809 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38810 on documentation from Wikipedia).
38812 2009-05-04 Pavel Roskin <proski@gnu.org>
38814 * disk/ata.c: Spelling fixes.
38815 * disk/raid.c: Likewise.
38816 * disk/usbms.c: Likewise.
38817 * disk/dmraid_nvidia.c: Likewise.
38818 * kern/ieee1275/openfw.c: Likewise.
38819 * kern/ieee1275/init.c: Likewise.
38820 * kern/ieee1275/cmain.c: Likewise.
38821 * boot/i386/pc/cdboot.S: Likewise.
38822 * video/readers/png.c: Likewise.
38823 * video/i386/pc/vbe.c: Likewise.
38824 * fs/udf.c: Likewise.
38825 * fs/hfs.c: Likewise.
38826 * fs/reiserfs.c: Likewise.
38827 * efiemu/runtime/efiemu.c: Likewise.
38828 * efiemu/main.c: Likewise.
38829 * efiemu/mm.c: Likewise.
38830 * include/grub/elf.h: Likewise.
38831 * include/grub/xnu.h: Likewise.
38832 * include/grub/usbdesc.h: Likewise.
38833 * include/grub/usb.h: Likewise.
38834 * include/grub/script_sh.h: Likewise.
38835 * include/grub/lib/LzmaEnc.h: Likewise.
38836 * include/grub/efiemu/efiemu.h: Likewise.
38837 * include/grub/command.h: Likewise.
38838 * normal/menu.c: Likewise.
38839 * normal/main.c: Likewise.
38840 * normal/datetime.c: Likewise.
38841 * bus/usb/uhci.c: Likewise.
38842 * mmap/i386/uppermem.c: Likewise.
38843 * mmap/mmap.c: Likewise.
38844 * commands/acpi.c: Likewise.
38845 * commands/test.c: Likewise.
38846 * partmap/apple.c: Likewise.
38847 * font/font.c: Likewise.
38848 * loader/sparc64/ieee1275/linux.c: Likewise.
38849 * loader/macho.c: Likewise.
38850 * loader/i386/bsd_trampoline.S: Likewise.
38851 * loader/i386/bsd.c: Likewise.
38852 * loader/xnu.c: Likewise.
38853 * term/i386/pc/vesafb.c: Likewise.
38854 * term/usb_keyboard.c: Likewise.
38855 * util/resolve.c: Likewise.
38856 * util/getroot.c: Likewise.
38858 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38860 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38862 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38864 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38867 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38869 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38870 parameter only available on BIOS.
38872 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38874 Removed wrong semicolon in declaration
38876 * grub/misc.h (grub_dprintf): remove semicolon
38878 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38880 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
38881 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
38882 is done by grub_cmd_linux() now).
38883 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
38884 restore video to text mode.
38885 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
38886 indicates lack of "vga=" parameter. "vga=0" is mapped to
38887 `GRUB_LINUX_VID_MODE_NORMAL'.
38889 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38891 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
38892 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
38893 and `normal/script.c'. Add `kern/rescue_reader.c',
38894 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
38895 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
38896 `grub_script.tab.c'.
38898 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38899 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38900 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38901 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38902 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38904 * Makefile.in: Remove duplicated 2008 in Copyright line.
38906 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38908 * util/misc.c (grub_util_warn): New function. Emits a warning
38910 * include/grub/util/misc.h (grub_util_warn): New declaration.
38912 * util/i386/pc/grub-install.in: Understand --force and pass it down
38915 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
38917 (setup): Improve error messages and add warnings when requested to
38918 install in odd layouts. Refuse to install using blocklists unless
38921 2009-05-04 martin f. krafft <madduck@madduck.net>
38923 * disk/raid.c (grub_raid_scan_device): Improve debug message.
38925 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38927 Updated copyright year
38929 * fs/hfsplus.c: updated copyright year
38931 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38935 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
38936 in the space previously used by unused3
38937 (grub_hfsplus_uuid): new function
38938 (grub_hfsplus_fs): added uuid field
38940 2009-05-03 Pavel Roskin <proski@gnu.org>
38942 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
38943 suppress warnings. It's no longer needed.
38944 * disk/host.c: Likewise.
38945 * disk/ata_pthru.c: Likewise.
38946 * disk/loopback.c: Likewise.
38947 * hook/datehook.c: Likewise.
38948 * parttool/pcpart.c: Likewise.
38949 * fs/i386/pc/pxe.c: Likewise.
38950 * fs/ntfscomp.c: Likewise.
38951 * efiemu/main.c: Likewise.
38952 * mmap/mmap.c: Likewise.
38953 * commands/crc.c: Likewise.
38954 * commands/hexdump.c: Likewise.
38955 * commands/hdparm.c: Likewise.
38956 * commands/acpi.c: Likewise.
38957 * commands/echo.c: Likewise.
38958 * commands/minicmd.c: Likewise.
38959 * commands/blocklist.c: Likewise.
38960 * commands/memrw.c: Likewise.
38961 * commands/loadenv.c: Likewise.
38962 * commands/usbtest.c: Likewise.
38963 * commands/lsmmap.c: Likewise.
38964 * commands/boot.c: Likewise.
38965 * commands/parttool.c: Likewise.
38966 * commands/configfile.c: Likewise.
38967 * commands/search.c: Likewise.
38968 * commands/ieee1275/suspend.c: Likewise.
38969 * commands/cat.c: Likewise.
38970 * commands/i386/pc/pxecmd.c: Likewise.
38971 * commands/i386/pc/play.c: Likewise.
38972 * commands/i386/pc/halt.c: Likewise.
38973 * commands/i386/pc/vbeinfo.c: Likewise.
38974 * commands/i386/pc/vbetest.c: Likewise.
38975 * commands/lspci.c: Likewise.
38976 * commands/date.c: Likewise.
38977 * commands/handler.c: Likewise.
38978 * commands/ls.c: Likewise.
38979 * commands/test.c: Likewise.
38980 * commands/cmp.c: Likewise.
38981 * commands/efi/loadbios.c: Likewise.
38982 * commands/efi/fixvideo.c: Likewise.
38983 * commands/halt.c: Likewise.
38984 * commands/help.c: Likewise.
38985 * commands/reboot.c: Likewise.
38986 * hello/hello.c: Likewise.
38987 * script/sh/main.c: Likewise.
38988 * loader/xnu.c: Likewise.
38989 * term/terminfo.c: Likewise.
38990 * term/i386/pc/serial.c: Likewise.
38991 * term/usb_keyboard.c: Likewise.
38993 2009-05-03 David S. Miller <davem@davemloft.net>
38995 * normal/menu.c: Include grub/parser.h
38997 2009-05-03 Pavel Roskin <proski@gnu.org>
38999 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
39001 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
39002 Suggested by Javier Martín <lordhabbit@gmail.com>
39004 * util/i386/pc/grub-mkrescue.in: Allow for the case when
39005 efiemu??.o doesn't exist.
39006 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
39009 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
39011 FreeBSD 64-bit support
39013 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
39014 and loader/i386/bsd_trampoline.S
39015 (bsd_mod_ASFLAGS): new variable
39016 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
39017 (FREEBSD_MODTYPE_KERNEL64): likewise
39018 (grub_bsd64_trampoline_start): likewise
39019 (grub_bsd64_trampoline_end): likewise
39020 (grub_bsd64_trampoline_selfjump): likewise
39021 (grub_bsd64_trampoline_gdt): likewise
39022 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
39023 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
39024 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
39025 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
39026 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39028 * loader/i386/bsd_pagetable.c: new file
39029 * loader/i386/bsd_trampoline.S: likewise
39030 * loader/i386/bsd.c (ALIGN_QWORD): new macro
39031 (ALIGN_VAR): likewise
39032 (entry_hi): new variable
39033 (kern_end_mdofs): likewise
39034 (is_64bit): likewise
39035 (grub_freebsd_add_meta): use ALIGN_VAR
39036 (grub_e820_mmap): new declaration
39037 (grub_freebsd_add_mmap): new function
39038 (grub_freebsd_add_meta_module): support 64 bit kernels
39039 (grub_freebsd_list_modules): use ALIGN_VAR
39040 (gdt_descriptor): new declaration
39041 (grub_freebsd_boot): support 64 bit kernels
39042 (grub_bsd_elf64_hook): new function
39043 (grub_bsd_load_elf): support elf64
39045 2009-05-03 Bean <bean123ch@gmail.com>
39047 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
39048 after we get the result of if statement.
39050 2009-05-03 Bean <bean123ch@gmail.com>
39052 * Makefile.in (enable_efiemu): New variable.
39054 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
39056 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
39058 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
39059 path, add -mno-red-zone option.
39060 (efiemu64_s.o): Likewise.
39061 (efiemu64.o): Use macro $^ for source file.
39063 * configure.ac (--enable-efiemu): New option.
39065 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
39069 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
39070 (pkglib_MODULES): add xnu.mod
39071 (xnu_mod_SOURCES): new variable
39072 (xnu_mod_CFLAGS): likewise
39073 (xnu_mod_LDFLAGS): likewise
39074 (xnu_mod_ASFLAGS): likewise
39075 * conf/i386-pc.rmk: likewise
39076 * conf/x86_64-efi.rmk: likewise
39077 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
39079 * include/grub/i386/macho.h: new file
39080 * include/grub/i386/xnu.h: likewise
39081 * include/grub/macho.h: likewise
39082 * include/grub/machoload.h: likewise
39083 * include/grub/x86_64/macho.h: likewise
39084 * include/grub/x86_64/xnu.h: likewise
39085 * include/grub/xnu.h: likewise
39086 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
39087 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
39088 * loader/i386/efi/xnu.c: new file
39089 * loader/i386/pc/xnu.c: likewise
39090 * loader/i386/xnu.c: likewise
39091 * loader/i386/xnu_helper.S: likewise
39092 * loader/macho.c: likewise
39093 * loader/xnu.c: likewise
39094 * loader/xnu_resume.c: likewise
39095 * util/grub-dumpdevtree: likewise
39096 * include/grub/i386/pit.h: include grub/err.h
39097 (grub_pit_wait): export
39098 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
39100 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39104 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
39105 _linux_efi, linux_efi.
39106 new files in grub-emu
39107 new targets efiemu32.o and efiemu64.o
39108 * loader/linux_normal_efiemu.c: likewise
39109 * loader/i386/efi/linux.c: added preliminary efiemu support
39110 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
39112 * include/grub/autoefi.h: new file
39113 * include/grub/i386/efiemu.h: likewise
39114 * include/grub/i386/pc/efiemu.h: likewise
39115 * include/grub/efi/api.h: add LL suffix when necessary
39116 new definitions relating to tables
39117 * include/grub/efiemu/efiemu.h: new file
39118 * include/grub/efiemu/runtime.h: likewise
39119 * efiemu/prepare.c: likewise
39120 * efiemu/loadcore_common.c: likewise
39121 * efiemu/loadcore64.c: likewise
39122 * efiemu/runtime/efiemu.sh: likewise
39123 * efiemu/runtime/efiemu.S: likewise
39124 * efiemu/runtime/efiemu.c: likewise
39125 * efiemu/runtime/config.h: likewise
39126 * efiemu/prepare32.c: likewise
39127 * efiemu/main.c: likewise
39128 * efiemu/modules/pnvram.c: likewise
39129 * efiemu/modules/i386: likewise
39130 * efiemu/modules/i386/pc: likewise
39131 * efiemu/modules/acpi.c: likewise
39132 * efiemu/i386/pc/cfgtables.c: likewise
39133 * efiemu/i386/loadcore64.c: likewise
39134 * efiemu/i386/loadcore32.c: likewise
39135 * efiemu/prepare64.c: likewise
39136 * efiemu/loadcore.c: likewise
39137 * efiemu/symbols.c: likewise
39138 * efiemu/mm.c: likewise
39139 * efiemu/loadcore32.c: likewise
39141 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39145 * commands/acpi.c: new file
39146 * commands/i386/pc/acpi.c: likewise
39147 * commands/efi/acpi.c: likewise
39148 * include/grub/acpi.h: likewise
39149 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
39150 (acpi_mod_SOURCES): new variable
39151 (acpi_mod_CFLAGS): likewise
39152 (acpi_mod_LDFLAGS): likewise
39153 * conf/i386-efi.rmk: likewise
39154 * conf/x86_64-efi.rmk: likewise
39156 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39158 Missing part from mmap patch
39160 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
39161 (grub_mmap_unregister)
39162 (grub_mmap_free_and_unregister): use grub_mmap_register
39164 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39168 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
39169 * loader/i386/linux.c (find_mmap_size): likewise
39170 (allocate_pages): likewise
39171 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
39172 (grub_fill_multiboot_mmap): likewise
39173 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
39174 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
39175 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
39176 (OPENBSD_MMAP_RESERVED): likewise
39177 * include/grub/i386/pc/memory.h: include grub/memory.h
39178 (grub_lower_mem): removed
39179 (grub_upper_mem): likewise
39180 (GRUB_MACHINE_MEMORY_ACPI): new definition
39181 (GRUB_MACHINE_MEMORY_NVS): likewise
39182 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
39183 (GRUB_MACHINE_MEMORY_HOLE): likewise
39184 (grub_machine_mmap_register): likewise
39185 (grub_machine_mmap_unregister): likewise
39186 (grub_machine_get_upper): likewise
39187 (grub_machine_get_lower): likewise
39188 (grub_machine_get_post64): likewise
39189 * include/grub/i386/efi/memory.h: new file
39190 * include/grub/x86_64/efi/memory.h: likewise
39191 * include/grub/efi/memory.h: likewise
39192 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
39193 (mmap_mod_SOURCES): new variable
39194 (mmap_mod_LDFLAGS): likewise
39195 (mmap_mod_ASFLAGS): likewise
39196 * conf/i386-coreboot.rmk: likewise
39197 * conf/i386-ieee1275.rmk: likewise
39198 * conf/i386-efi.rmk: likewise
39199 * conf/x86_64-efi.rmk: likewise
39200 * include/grub/types.h (UINT_TO_PTR): new macro
39201 (PTR_TO_UINT32): likewise
39202 (PTR_TO_UINT64): likewise
39203 * include/grub/memory.h: new file
39204 * mmap/i386/pc/mmap.c: likewise
39205 * mmap/i386/pc/mmap_helper.S: likewise
39206 * mmap/i386/uppermem.c: likewise
39207 * mmap/mmap.c: likewise
39208 * mmap/efi/mmap.c: likewise
39209 * kern/i386/coreboot/init.c (grub_machine_init): don't use
39211 * kern/i386/pc/init.c (grub_lower_mem): removed variable
39212 (grub_upper_mem): likewise
39213 (grub_machine_init): don't use grub_upper_mem,
39214 make grub_lower_mem local
39215 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
39216 grub_mmap_iterate and grub_mmap_get_upper
39217 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
39219 2009-05-02 Bean <bean123ch@gmail.com>
39221 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
39222 script/sh/parser.y.
39223 (pkglib_MODULES): Add normal.mod and sh.mod.
39224 (normal_SOURCES): New variable.
39225 (normal_mod_CFLAGS): Likewise.
39226 (normal_mod_LDFLAGS): Likewise.
39227 (sh_mod_SOURCES): Likewise.
39228 (sh_mod_CFLAGS): Likewise.
39229 (sh_mod_LDFLAGS): Likewise.
39231 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
39232 script/sh/lexer.c_DEPENDENCIES.
39233 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
39234 kern/rescue_reader.c and kern/rescue_parser.c.
39235 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
39236 (grub_emu_SOURCES): Change source files.
39237 (pkglib_MODULES): Remove normal.mod.
39238 (normal_SOURCES): Removed.
39239 (normal_mod_CFLAGS): Likewise.
39240 (normal_mod_LDFLAGS): Likewise.
39241 * conf/i386-coreboot.rmk: Likewise.
39242 * conf/i386-efi.rmk: Likewise.
39243 * conf/i386-ieee1276.rmk: Likewise.
39244 * conf/powerpc-ieee1275.rmk: Likewise.
39245 * conf/sparc64-ieee1275.rmk: Likewise.
39246 * conf/x86_64-efi.rmk: Likewise.
39248 * include/grub/command.h (grub_command_execute): New inline function.
39250 * include/grub/menu.h (grub_menu_entry): Removed commands field.
39252 * include/grub/normal.h: Remove <grub/setjmp.h>.
39253 (grub_fs_module_list): Moved to normal/autofs.c.
39254 (grub_exit_env): Removed.
39255 (grub_command_execute): Likewise.
39256 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
39258 (read_command_list): New function declaration.
39259 (read_fs_list): Likewise.
39261 * include/parser.h: Include <grub/reader.h>.
39262 (grub_parser_split_cmdline): Change type of getline parameter.
39263 (grub_parser): New structure.
39264 (grub_parser_class): New variable.
39265 (grub_parser_execute): New function declaration.
39266 (grub_register_rescue_parser): Likewise.
39267 (grub_parser_register): New inline function.
39268 (grub_parser_unregister): Likewise.
39269 (grub_parser_get_current): Likewise.
39270 (grub_parser_set_current): Likewise.
39272 * include/grub/reader.h: New file.
39273 * kern/reader.c: Likewise.
39274 * kern/rescue_parser.c: Likewise.
39275 * kern/rescue_reader.c: Likewise.
39276 * normal/autofs.c: Likewise.
39277 * normal/dyncmd.c: Likewise.
39279 * include/grub/rescue.h: Removed.
39280 * normal/command.h: Likewise.
39282 * include/grub/script.h: Moved to ...
39283 * include/grub/script_sh.h: ... Moved here.
39284 * normal/execute.c: Moved to ...
39285 * script/sh/execute.c: ... Moved here.
39286 * normal/function.c: Moved to ...
39287 * script/sh/function.c: ... Moved here.
39288 * normal/lexer.c: Moved to ...
39289 * script/sh/lexer.c: ... Moved here.
39290 * normal/parser.y: Moved to ...
39291 * script/sh/parser.y: ... Moved here.
39292 * normal/script.c: Moved to ...
39293 * script/sh/script.c: ... Moved here.
39295 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
39297 (grub_exit_env): Removed.
39298 (fs_module_list): Moved to normal/autofs.c.
39299 (grub_file_getline): Don't handle comment here.
39300 (free_menu): Skip removed field entry->commands.
39301 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
39303 (read_config_file): Removed nested parameter, change getline function.
39304 (grub_enter_normal_mode): Removed.
39305 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
39306 (read_command_list): Likewise.
39307 (autoload_fs_module): Moved to normal/autofs.c.
39308 (read_fs_list): Likewise.
39309 (reader_nested): New variable.
39310 (grub_normal_execute): Run parser.sh to switch to sh parser.
39311 (grub_cmd_rescue): Removed.
39312 (cmd_normal): Removed.
39313 (grub_cmd_normal): Unregister itself at the beginning. Don't register
39315 (grub_cmdline_run): New function.
39316 (grub_normal_reader_init): Likewise.
39317 (grub_normal_read_line): Likewise.
39318 (grub_env_write_pager): Likewise.
39319 (cmdline): New variable.
39320 (grub_normal_reader): Likewise.
39321 (GRUB_MOD_INIT): Register normal reader and set as current, register
39322 pager hook, register normal command with grub_register_command_prio,
39323 so that it won't show up in command.lst.
39324 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
39325 grub_fs_autoload_hook.
39327 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
39328 (grub_menu_execute_entry): Replace grub_script_execute with
39329 grub_parser_execute, change parameter to grub_command_execute.
39331 * normal/menu_text.c: Remove <grub/script.h>.
39333 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
39334 and <grub/parser.h>.
39335 (run): Change editor_getline to use new parser interface. Change
39336 parameter to grub_command_execute.
39338 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
39339 <grub/reader.h> and <grub/parser.h>.
39340 (grub_load_normal_mode): Execute normal command.
39341 (grub_main): Call grub_register_core_commands,
39342 grub_register_rescue_parser and grub_register_rescue_reader, use
39343 grub_reader_loop to enter input loop.
39345 * kern/parser.c (grub_parser_split_cmdline): Change type of
39347 (grub_parser_class): New variable.
39348 (grub_parser_execute): New function.
39350 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
39351 * loader/multiboot2.c: Likewise.
39352 * loader/sparc64/ieee1275/linux.c: Likewise.
39354 * util/grub-emu.c (read_command_list): New dummy function.
39356 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39358 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
39359 count to 16 for CCISS and IDA.
39361 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39363 * normal/menu_text.c (grub_wait_after_message): Print a newline
39364 after waiting for user input.
39366 * loader/i386/linux.c: Include `<grub/normal.h>'.
39367 (grub_cmd_linux): Improve the error message about `ask' mode, by
39368 waiting for user input so it's not missed (we can do this, since
39369 user requested interaction).
39371 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39373 Added missing lst to grub-mkrescue
39375 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
39376 and ${input_dir}/parttool.lst
39378 2009-04-30 David S. Miller <davem@davemloft.net>
39380 * util/hostdisk.c (device_is_wholedisk): New function.
39381 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
39382 zero only if device_is_wholedisk() returns true.
39384 * util/hostdisk.c (convert_system_partition_to_system_disk):
39385 Handle virtual disk devices named /dev/vdiskX as found on sparc
39388 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
39389 lettered partition specifier is found, convert to numbered.
39391 2009-04-29 David S. Miller <davem@davemloft.net>
39393 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
39394 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39396 * normal/command.c: Add missing newline at end of file.
39398 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
39400 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
39401 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
39402 grub_ofdisk_read): Likewise, and deal similarly with the fact that
39403 ihandles have a 32-bit type but need to be stored in a "void *".
39405 2009-04-28 Pavel Roskin <proski@gnu.org>
39407 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
39408 not disk. Adjust all dependencies.
39409 (grub_fs_uuid_close): Use grub_device_close(), not
39412 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
39413 parent's partition, don't copy it by reference, as it gets freed
39416 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39418 Preboot hooks support
39420 * commands/boot.c (struct grub_preboot_t): new declaration
39421 (preboots_head): new variable
39422 (preboots_tail): likewise
39423 (grub_loader_register_preboot_hook): new function
39424 (grub_loader_unregister_preboot_hook): likewise
39425 (grub_loader_set): launch preboot hooks
39426 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
39427 (grub_loader_register_preboot_hook): new declaration
39428 (grub_loader_unregister_preboot_hook): likewise
39430 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39434 * disk/scsi.c (grub_scsi_open): added missing cast when
39435 calling grub_dprintf
39437 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
39439 Bug and warning fixes
39441 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
39443 * commands/test.c (test_parse): fixed bug with file tests and corrected
39444 declaration of find_file
39446 2009-04-26 Pavel Roskin <proski@gnu.org>
39448 * Makefile.in: Don't install empty manual pages if help2man is
39449 missing. Use help2man option for output, not shell redirection.
39451 2009-04-26 David S. Miller <davem@davemloft.net>
39453 * util/grub-mkdevicemap.c (make_device_map): Add missing
39454 NESTED_FUNC_ATTR to process_device().
39456 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39460 * commands/test.c: rewritten to use bash-like test
39462 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39464 Parttool autoloading and improvements
39466 * Makefile.in (pkglib_DATA): add parttool.lst
39467 (parttool.lst): new target
39468 * genmk.rb: generate parttool-*
39469 (CLEANFILES): add #{parttool}
39470 (PARTTOOLFILES): new variable
39471 * genparttoollist.sh: new file
39472 * parttool/pcpart.c (grub_pcpart_boot): more feedback
39473 (grub_pcpart_type): likewise
39474 * commands/parttool.c (helpmsg): new variable
39475 (grub_cmd_parttool): output help if not enough arguments are supplied
39477 (GRUB_MOD_INIT(parttool)): use helpmsg
39479 2009-04-24 David S. Miller <davem@davemloft.net>
39481 Avoiding opening same device multiple times in device iterator.
39483 * kern/device.c: (grub_device_iterate): Define struct part_ent,
39484 and use it to build a list of partitions in iterate_disk() and
39485 iterate_partition().
39487 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
39490 * disk/ieee1275/nand.c (grub_nand_iterate): Return
39491 grub_devalias_iterate() result instead of unconditional 0.
39492 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
39493 Also, capture hook return value, either directly or via
39494 grub_children_iterate(), and propagate to caller.
39495 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
39496 grub_children_iterate): Return value is now 'int' instead of
39498 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
39499 like a proper iterator, stopping when hooks return non-zero.
39500 (grub_devalias_iterate): Likewise.
39502 2009-04-23 David S. Miller <davem@davemloft.net>
39504 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
39506 2009-04-22 David S. Miller <davem@davemloft.net>
39508 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
39509 is larger than address_cells, use that value for address_cells too.
39511 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
39512 IEEE1275_MAX_PATH_LEN): Define.
39513 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
39514 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
39515 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
39516 'devtype'. Explicitly NULL terminate devalias expansion.
39518 * util/sparc64/ieee1275/misc.c: New file.
39519 * util/sparc64/ieee1275/grub-setup.c: New file.
39520 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
39521 * util/sparc64/ieee1275/grub-mkimage.c: New file.
39522 * util/sparc64/ieee1275/grub-install.in: New file.
39523 * util/ieee1275/ofpath.c: New file.
39524 * util/ieee1275/devicemap.c: New file.
39525 * util/devicemap.c: New file.
39526 * util/deviceiter.c: New file.
39527 * kern/sparc64/ieee1275/init.c: New file.
39528 * include/grub/util/ofpath.h: New file.
39529 * include/grub/util/deviceiter.h: New file.
39530 * util/grub-mkdevicemap.c: Include deviceiter.h.
39531 Implement using grub_util_emit_devicemap_entry and
39532 grub_util_iterate_devices.
39533 * conf/i386-corebook.rmk: Build util/deviceiter.c and
39534 util/devicemap.c into grub-mkdevicemap
39535 * conf/i386-efi.rmk: Likewise.
39536 * conf/i386-ieee1275.rmk: Likewise.
39537 * conf/i386-pc.rmk: Likewise.
39538 * conf/powerpc-ieee1275.rmk: Likewise.
39539 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
39540 images and installation utilities. Build kernel as image
39541 instead of as elf binary. Use common rules as much as possible.
39543 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
39545 Correct GPT definition
39547 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39550 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
39552 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
39554 2009-04-19 David S. Miller <davem@davemloft.net>
39556 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
39557 (grub_rescue_cmd_linux): Rename to...
39558 (grub_cmd_linux): and fix prototype.
39559 (grub_rescue_cmd_initrd): Rename to...
39560 (grub_cmd_initrd): and fix prototype.
39561 (cmd_linux, cmd_initrd): New.
39562 (GRUB_MOD_INIT(linux)): Use grub_register_command().
39563 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
39565 2009-04-17 Pavel Roskin <proski@gnu.org>
39567 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
39569 (grub_ohci_transfer): Likewise.
39571 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
39573 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
39574 return without a value. Fix inconsistent indentation.
39576 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
39577 match struct grub_fs.
39579 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
39580 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
39581 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
39582 * commands/lspci.c (grub_lspci_iter): Likewise.
39584 2009-04-16 Bean <bean123ch@gmail.com>
39586 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
39589 2009-04-15 Pavel Roskin <proski@gnu.org>
39591 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
39592 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
39593 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
39596 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39598 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
39599 that no multiple data or metadata areas are supported and `Unknown
39602 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39604 Move loader out of the kernel
39606 * kern/loader.c: moved to ...
39607 * commands/boot.c: ... moved here
39608 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
39609 * commands/boot.c (grub_cmd_boot): moved here. All users updated
39610 * include/grub/kernel.h (grub_machine_fini): export
39611 * include/grub/loader.h (grub_loader_is_loaded): update declaration
39612 (grub_loader_set): likewise
39613 (grub_loader_unset): likewise
39614 (grub_loader_boot): likewise
39615 * conf/common.rmk: new module boot.mod
39616 (pkglib_MODULES): add boot.mod
39617 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
39618 (grub_emu_SOURCES): likewise
39619 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
39620 (grub_emu_SOURCES): likewise
39621 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
39622 (grub_emu_SOURCES): likewise
39623 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
39624 (grub_emu_SOURCES): likewise
39625 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
39626 (grub_emu_SOURCES): likewise
39627 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
39628 (grub_emu_SOURCES): likewise
39629 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
39630 (grub_emu_SOURCES): likewise
39632 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39634 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
39636 * kern/misc.c (grub_itoa): Removed function
39637 (grub_ltoa): likewise
39638 (grub_vsprintf): use grub_lltoa
39640 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39644 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
39645 * conf/i386-coreboot.rmk: likewise
39646 * conf/i386-ieee1275.rmk: likewise
39647 * conf/powerpc-ieee1275.rmk: likewise
39649 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39651 * INSTALL: Add that `./autogen.sh' needs to be run before
39654 2009-04-14 Bean <bean123ch@gmail.com>
39656 * Makefile.in (pkglib_DATA): Add handler.lst.
39657 (handler.lst): New rule.
39659 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
39660 * conf/i386-coreboot.rmk: Likewise.
39661 * conf/i386-ieee1275.rmk: Likewise.
39662 * conf/i386-efi.rmk: Likewise.
39663 * conf/x86_64-efi.rmk: Likewise.
39664 * conf/powerpc-ieee1275.rmk: Likewise.
39665 * conf/sparc64-ieee1275.rmk: Likewise.
39667 * genhandlerlist.sh: New file.
39669 * genmk.rb: Add rules to generate handler.lst.
39671 * include/grub/normal.h (grub_file_getline): New function definition.
39672 (read_handler_list): Likewise.
39673 (free_handler_list): Likewise.
39675 * include/grub/term.h (grub_term_register_input): Add name parameter
39676 for auto generation of handler.lst.
39677 (grub_term_register_output): Likewise.
39679 * normal/handler.c: New file.
39681 * normal/main.c (get_line): Renamed to grub_file_getline.
39682 (read_config_file): Use the newly renamed grub_file_getline.
39683 (read_command_list): Likewise.
39684 (read_fs_list): Likewise.
39685 (grub_normal_execute): Call read_handler_list to parse handler.lst.
39686 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
39688 * term/efi/console.c (grub_console_init): Add name parameter for auto
39689 generation of handler.lst.
39690 * term/gfxterm.c: Likewise.
39691 * term/i386/pc/at_keyboard.c: Likewise.
39692 * term/i386/pc/console.c: Likewise.
39693 * term/i386/pc/serial.c: Likewise.
39694 * term/i386/pc/vesafb.c: Likewise.
39695 * term/i386/pc/vga.c: Likewise.
39696 * term/i386/pc/vga_text.c: Likewise.
39697 * term/ieee1275/ofconsole.c: Likewise.
39698 * term/usb_keyboard.c: Likewise.
39700 2009-04-14 Bean <bean123ch@gmail.com>
39702 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
39703 properly with null character.
39705 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39707 * configure: Remove.
39708 * config.h.in: Likewise.
39709 * stamp-h.in: Likewise.
39710 * DISTLIST: Likewise.
39711 * conf/common.mk: Likewise.
39712 * conf/i386-coreboot.mk: Likewise.
39713 * conf/i386-efi.mk: Likewise.
39714 * conf/i386-ieee1275.mk: Likewise.
39715 * conf/i386.mk: Likewise.
39716 * conf/i386-pc.mk: Likewise.
39717 * conf/powerpc-ieee1275.mk: Likewise.
39718 * conf/sparc64-ieee1275.mk: Likewise.
39719 * conf/x86_64-efi.mk: Likewise.
39721 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
39724 2009-04-14 John Stanley <jpsinthemix@verizon.net>
39725 David S. Miller <davem@davemloft.net>
39727 * util/hostdisk.c (make_device_name): Fix buffer length
39730 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39732 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
39733 <sys/param.h> and <sys/sysctl.h>.
39734 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
39735 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
39736 opening the device and reset them afterwards.
39738 2009-04-13 Pavel Roskin <proski@gnu.org>
39740 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
39741 Reported by John Stanley <jpsinthemix@verizon.net>
39743 2009-04-13 Robert Millan <rmh@aybabtu.com>
39745 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
39746 that name for menuentries when appropriate.
39748 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39750 * util/grub.d/10_freebsd.in: Add a missing `fi'.
39752 2009-04-13 Robert Millan <rmh@aybabtu.com>
39754 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
39755 to Linux, simply abort telling the user it's no longer supported.
39757 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39759 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
39760 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
39761 `freebsd_loadenv' only when devices.hints exist.
39763 2009-04-13 Pavel Roskin <proski@gnu.org>
39765 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
39767 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39769 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
39771 (grub_drive): Likewise.
39773 2009-04-13 David S. Miller <davem@davemloft.net>
39775 * kern/sparc64/ieee1275/ieee1275.c: New file.
39776 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
39777 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
39778 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
39779 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
39780 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
39781 grub_ieee1275_alloc_physmem): Declare new exported functions.
39783 * include/grub/sparc64/ieee1275/loader.h: New file.
39784 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39785 * include/grub/sparc64/kernel.h: Likewise.
39786 * loader/sparc64/ieee1275/linux.c: Likewise.
39788 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
39789 (grub_fstest_SOURCES): Likewise.
39791 * util/hostdisk.c (make_device_name): Do not make any assumptions
39792 about the length of drive names.
39794 * kern/dl.c (grub_dl_load_file): Close file immediately when
39795 we are done using it.
39797 2009-04-12 David S. Miller <davem@davemloft.net>
39799 * kern/misc.c (grub_ltoa): Fix cast when handling negative
39800 values. Noticed by Pavel Roskin.
39802 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39805 * genmk.rb: Add more flexible image type specification, also
39806 pass --strip-unneeded to objcopy.
39807 * conf/i386-pc.rmk: Use *_FORMAT.
39808 * conf/i386-pc.mk: Rebuilt.
39810 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39811 (OFDISK_HASH_SZ): Define.
39812 (ofdisk_hash): New hash table.
39813 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39814 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39815 instead of device phandle which is not unique.
39817 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39818 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39819 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39820 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39821 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39822 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39823 GRUB_KERNEL_MACHINE_DATA_END): Define.
39824 (grub_kernel_image_size, grub_total_module_size): Declare.
39826 2009-04-12 Pavel Roskin <proski@gnu.org>
39828 * configure.ac: Change the logic when we check for target tools.
39829 Do it when the target is specified and it's different from the
39830 specified value of the host.
39832 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
39834 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39835 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39836 GNU/kFreeBSD. Check if a device is a character device. Use
39837 DIOCGMEDIASIZE to get the size.
39838 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39839 support for GNU/kFreeBSD.
39840 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39841 is a character device instead of a block device. Add support for
39842 FreeBSD device names.
39844 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39845 is a character device instead of a block device.
39847 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39848 is a character device instead of a block device.
39850 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39852 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39853 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39854 FreeBSD. Check if a device is a character device. Use
39855 DIOCGMEDIASIZE to get the size.
39856 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39857 support for FreeBSD.
39858 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39859 is a character device instead of a block device. Add support for
39860 FreeBSD device names.
39862 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39863 a character device instead of a block device.
39864 (grub_util_check_char_device): New function.
39866 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39867 a character device instead of a block device.
39869 * include/grub/util/getroot.h (grub_util_check_char_device): New
39872 2009-04-11 David S. Miller <davem@davemloft.net>
39874 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39876 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39877 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39878 function, if present.
39879 (__bswapdi2): Likewise.
39881 * include/grub/sparc64/ieee1275/boot.h: New file.
39882 * boot/sparc64/ieee1275/boot.S: Likewise.
39883 * boot/sparc64/ieee1275/diskboot.S: Likewise.
39885 * kern/misc.c (grub_ltoa): New function.
39886 (grub_vsprintf): Use it to format 'long' integers.
39888 2009-04-10 David S. Miller <davem@davemloft.net>
39890 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
39891 slots are of type grub_ieee1275_cell_t.
39892 (grub_nand_read): Likewise.
39893 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
39894 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
39895 macros are used to compare values in arg/ret block of the call.
39896 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
39897 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
39898 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
39899 grub_ieee1275_instance_to_path, grub_ieee1275_write,
39900 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
39901 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
39902 grub_ieee1275_close, grub_ieee1275_set_property,
39903 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
39904 grub_ieee1275_cell_t.
39905 * kern/ieee1275/openfw.c (grub_map): Likewise.
39906 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
39907 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
39909 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
39910 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
39911 (grub_devalias_iterate): Likewise.
39913 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
39917 * fs/ufs.c (INODE_NBLOCKS): new definition
39918 (struct grub_ufs_dirent): added fields for non-BSD dirents
39919 (grub_ufs_get_file_block): fixed double indirect handling
39920 (grub_ufs_lookup_symlink): use more robust way to determine whether
39922 (grub_ufs_find_file): support for non-BSD dirents
39923 (grub_ufs_dir): support for non-BSD dirents
39925 2009-04-10 Bean <bean123ch@gnail.com>
39927 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
39928 attribute, otherwise the size would be wrong for i386 platform.
39930 * include/grub/pci.h (grub_pci_read_word): New inline function.
39931 (grub_pci_read_byte): Likewise.
39932 (grub_pci_write): Likewise.
39933 (grub_pci_write_word): Likewise.
39934 (grub_pci_write_byte): Likewise.
39936 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
39938 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
39939 (find_framebuf): Scan pci to locate the frame buffer address.
39941 * commands/efi/fixvideo.c: New file.
39943 * commands/efi/loadbios.c: Likewise.
39945 * commands/memrw.c: Likewise.
39947 * util/grub-dumpbios.in: Likewise.
39949 * conf/common.rmk (grub-dumpbios): New utility.
39950 (pkglib_MODULES): New module memrw.mod.
39951 (memrw_mod_SOURCE): New macro.
39952 (memrw_mod_CFLAGS): Likewise.
39953 (memrw_mod_LDFLAGS): Likewise.
39955 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
39957 (loadbios_mod_SOURCE): New macro.
39958 (loadbios_mod_CFLAGS): Likewise.
39959 (loadbios_mod_LDFLAGS): Likewise.
39960 (fixvideo_mod_SOURCE): Likewise.
39961 (fixvideo_mod_CFLAGS): Likewise.
39962 (fixvideo_mod_LDFLAGS): Likewise.
39964 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
39966 (loadbios_mod_SOURCE): New macro.
39967 (loadbios_mod_CFLAGS): Likewise.
39968 (loadbios_mod_LDFLAGS): Likewise.
39969 (fixvideo_mod_SOURCE): Likewise.
39970 (fixvideo_mod_CFLAGS): Likewise.
39971 (fixvideo_mod_LDFLAGS): Likewise.
39973 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
39975 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
39977 2009-04-07 David S. Miller <davem@davemloft.net>
39979 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
39980 support for R_SPARC_OLO10 relocations. Fix compile warning for
39981 R_SPARC_WDISP30 case.
39982 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
39984 2009-04-06 Pavel Roskin <proski@gnu.org>
39986 * include/grub/misc.h (ARRAY_SIZE): New macro.
39987 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
39989 * loader/i386/linux.c (allocate_pages): Use free_pages().
39990 (grub_linux_unload): Don't use free_pages().
39991 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
39992 wrong index. Treat all other modes as text modes.
39993 (grub_cmd_linux): Initialize vid_mode unconditionally to
39994 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
39996 * commands/help.c (print_command_help): Use cmd->prio, not
39997 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
39999 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
40003 * parttool/pcpart.c: new file
40004 * commands/parttool.c: likewise
40005 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
40006 (parttool_mod_SOURCES): new variable
40007 (parttool_mod_CFLAGS): likewise
40008 (parttool_mod_LDFLAGS): likewise
40009 (pcpart_mod_SOURCES): likewise
40010 (pcpart_mod_CFLAGS): likewise
40011 (pcpart_mod_LDFLAGS): likewise
40012 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
40013 and parttool/pcpart.c
40014 * conf/i386-efi.rmk: likewise
40015 * conf/i386-ieee1275.rmk: likewise
40016 * conf/i386-pc.rmk: likewise
40017 * conf/powerpc-ieee1275.rmk: likewise
40018 * conf/sparc64-ieee1275.rmk: likewise
40019 * conf/x86_64-ieee1275.rmk: likewise
40021 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
40023 Support for mtime and further expandability of dir command
40025 * include/grub/lib/datetime.h: moved to ...
40026 * include/grub/datetime.h: ... moved here and added
40027 declaration of grub_unixtime2datetime. All users updated
40028 * include/grub/fs.h: new syntax for dir and mtime functions in
40030 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
40031 and GRUB_FSHELP_FLAGS_MASK
40032 * commands/ls.c (grub_ls_list_files): Write mtime in long format
40033 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
40034 (grub_ext2_mtime): new function
40035 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
40036 (grub_hfsplus_mtime): new function
40037 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
40038 (GRUB_UFS_ATTR_FILE): likewise
40039 (GRUB_UFS_ATTR_LNK): likewise
40040 (struct grub_ufs_sblock): new fields mtime
40041 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
40043 (grub_ufs_dir): mtime support
40044 (grub_ufs_mtime): new function
40045 * fs/affs.c (grub_affs_dir): use new dir syntax
40046 * fs/afs.c (grub_afs_dir): likewise
40047 * fs/cpio.c (grub_cpio_dir): likewise
40048 * fs/fat.c (grub_fat_find_dir): likewise
40049 * fs/hfs.c (grub_hfs_dir): likewise
40050 * fs/iso9660.c (grub_iso9660_dir): likewise
40051 * fs/jfs.c (grub_jfs_dir): likewise
40052 * fs/minix.c (grub_minix_dir): likewise
40053 * fs/ntfs.c (grub_ntfs_dir): likewise
40054 * fs/reiserfs.c (grub_reiserfs_dir): likewise
40055 * fs/sfs.c (grub_sfs_dir): likewise
40056 * fs/xfs.c (grub_xfs_dir): likewise
40057 * util/hostfs.c (grub_hostfs_dir): likewise
40058 * lib/datetime.c: moved to ...
40059 * normal/datetime.c: ... moved here
40060 (grub_unixtime2datetime): new function
40061 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
40062 * normal/completion.c (iterate_dir): use new dir syntax
40063 * normal/misc.c (grub_normal_print_device_info): tell the
40064 last modification time of a volume
40065 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
40066 * conf/common.rmk: added lib/datetime.c to ls.mod
40067 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
40068 (normal_mod_SOURCES): likewise
40069 (datetime_mod_SOURCES): Removed lib/datetime.c
40070 * conf/i386-efi.rmk: likewise
40071 * conf/i386-ieee1275.rmk: likewise
40072 * conf/i386-pc.rmk: likewise
40073 * conf/powerpc-ieee1275.rmk: likewise
40074 * conf/sparc64-ieee1275.rmk: likewise
40075 * conf/x86_64-efi.rmk: likewise
40077 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
40079 Trim trailing spaces in FAT label and support mtools-like labels
40081 * fs/fat.c (grub_fat_iterate_dir): New function based
40082 on grub_fat_find_dir
40083 (grub_fat_find_dir): use grub_fat_iterate_dir
40084 (grub_fat_label): likewise
40086 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
40088 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
40090 remove extraneous kernel_elf_HEADERS
40092 2009-04-04 Bean <bean123ch@gnail.com>
40094 * include/grub/util/misc.h: Add dummy function fsync for mingw.
40096 * util/misc.c: Likewise.
40098 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
40100 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
40101 instead of grub_printf.
40103 2009-04-03 Robert Millan <rmh@aybabtu.com>
40105 * loader/i386/linux.c (grub_linux_setup_video): Fill
40106 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
40107 values from `mode info' structure instead of hardcoded
40110 2009-04-01 Pavel Roskin <proski@gnu.org>
40112 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
40114 * genmk.rb: Likewise.
40115 * configure.ac: Likewise.
40117 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
40119 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
40120 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
40122 2009-04-01 David S. Miller <davem@davemloft.net>
40124 * normal/sparc64/setjmp.S: Fix setjmp implementation.
40125 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
40126 (grub_setjmp): Mark with 'returns_twice' attribute.
40127 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
40128 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
40129 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
40131 2009-04-01 Robert Millan <rmh@aybabtu.com>
40133 Reapply fix from 2008-07-28 which was accidentally reverted; also
40134 perform the same fix to a similar check in same function.
40136 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
40137 with the same number are found, just use issue a warning with
40138 grub_dprintf(), as this error has been reported to be non-fatal.
40140 2009-03-31 Pavel Roskin <proski@gnu.org>
40142 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
40143 for cross-compilation.
40145 2009-03-30 Robert Millan <rmh@aybabtu.com>
40147 Fix i386-ieee1275 build.
40149 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
40150 Remove declaration.
40152 2009-03-30 Pavel Roskin <proski@gnu.org>
40154 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
40155 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
40156 zero-terminated, rely only on the strlen value. Fix comparison
40157 of strings differing in length.
40159 2009-03-30 Robert Millan <rmh@aybabtu.com>
40161 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
40162 checking for abi version. Improve error messages on BIOS to notify
40163 user about `linux16' command.
40165 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
40169 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
40170 in case of collision
40171 * disk/scsi.c (grub_scsi_open): free scsi in case of error
40173 2009-03-29 Robert Millan <rmh@aybabtu.com>
40175 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
40176 set `vid_mode' accordingly.
40177 (grub_linux_boot): Process `vid_mode' and set video mode.
40179 2009-03-29 Robert Millan <rmh@aybabtu.com>
40181 * util/grub.d/10_linux.in (linux_entry): New function.
40182 Factorize generation of Linux boot entries.
40184 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
40186 Make the format of Environment Block plain text. The boot loader
40187 part is not tested well yet.
40189 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
40191 (envblk): Likewise.
40192 (usage): Remove "info" and "clear". Add "unset". Update the
40193 description of "set", as this does not delete variables any
40195 (create_envblk_file): Complete rewrite.
40196 (open_envblk_file): Likewise.
40197 (cmd_info): Removed.
40198 (cmd_list): Likewise.
40199 (cmd_set): Likewise.
40200 (cmd_clear): Likewise.
40201 (list_variables): New function.
40202 (write_envblk): Likewise.
40203 (set_variables): Likewise.
40204 (unset_variables): Likewise.
40205 (main): Complete rewrite.
40207 * commands/loadenv.c (buffer): Removed.
40208 (envblk): Likewise.
40209 (open_envblk_file): New function.
40210 (read_envblk_file): Complete rewrite.
40211 (grub_cmd_load_env): Likewise.
40212 (grub_cmd_list_env): Likewise.
40213 (struct blocklist): New struct.
40214 (free_blocklists): New function.
40215 (check_blocklists): Likewise.
40216 (write_blocklists): Likewise.
40217 (grub_cmd_save_env): Complete rewrite.
40219 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
40220 a plain text signature.
40221 (GRUB_ENVBLK_MAXLEN): Removed.
40222 (struct grub_envblk): Complete rewrite.
40223 (grub_envblk_find): Removed.
40224 (grub_envblk_insert): Likewise.
40225 (grub_envblk_open): New prototype.
40226 (grub_envblk_set): Likewise.
40227 (grub_envblk_delete): Put const to VALUE.
40228 (grub_envblk_iterate): Put const to NAME and VALUE.
40229 (grub_envblk_close): New prototype.
40230 (grub_envblk_buffer): New inline function.
40231 (grub_envblk_size): Likewise.
40233 * lib/envblk.c: Include grub/mm.h.
40234 (grub_env_find): Removed.
40235 (grub_envblk_open): New function.
40236 (grub_envblk_close): Likewise.
40237 (escaped_value_len): Likewise.
40238 (find_next_line): Likewise.
40239 (grub_envblk_insert): Removed.
40240 (grub_envblk_set): New function.
40241 (grub_envblk_delete): Complete rewrite.
40242 (grub_envblk_iterate): Likewise.
40244 2009-03-28 Robert Millan <rmh@aybabtu.com>
40246 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
40247 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
40248 variables. Use 16-bit loader.
40249 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
40251 * kern/i386/loader.S (grub_linux_boot): Rename to ...
40252 (grub_linux16_boot): ... this. Update all users.
40253 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
40254 (grub_linux_boot): ... this. Update all users.
40256 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
40257 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
40258 commands to `linux16' and `initrd16'.
40259 (GRUB_MOD_FINI(linux)): Rename to ...
40260 (GRUB_MOD_FINI(linux16)): ... this.
40262 2009-03-24 Pavel Roskin <proski@gnu.org>
40264 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
40265 not just for compilation.
40267 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
40269 Move multiboot helper out of kernel
40271 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
40272 `loader/i386/multiboot_helper.S'.
40273 * conf/i386-coreboot.rmk: Likewise
40274 * conf/i386-ieee1275.rmk: Likewise
40276 * kern/i386/loader.S: Move multiboot helpers from here...
40277 * loader/i386/multiboot_helper.S: ...moved here
40278 * include/grub/i386/loader.h: Move declarations of multiboot
40279 helpers from here...
40280 * include/grub/i386/multiboot.h: ...moved here
40281 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
40283 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40285 * kern/env.c (grub_env_context_open): Added an argument to specify
40286 whether a new context inherits exported variables from current
40287 one. This is useful when making a sandbox to interpret a config
40289 All callers updated.
40291 * include/grub/env.h (grub_env_context_open): Updated the prototype.
40293 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40295 * kern/env.c (grub_env_context_close): Fix memory leaks.
40297 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40299 * normal/main.c (grub_normal_execute): Added an argument
40300 BATCH to specify if an interactive interface should be provided
40301 after reading a config file.
40302 All callers updated.
40303 (read_command_list): Prevent being executed twice.
40304 (read_fs_list): Likewise.
40306 * include/grub/normal.h (grub_normal_execute): Updated the
40309 2009-03-22 Pavel Roskin <proski@gno.org>
40311 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
40313 * kern/i386/pc/startup.S: Likewise.
40314 * kern/i386/efi/startup.S: Likewise.
40315 * kern/i386/ieee1275/startup.S: Likewise.
40316 * kern/i386/coreboot/startup.S: Likewise.
40317 * kern/x86_64/efi/startup.S: Likewise.
40319 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
40320 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
40321 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
40323 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
40325 Bugfixes in multiboot for bugs uncovered by solaris kernel.
40327 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
40329 Use vaddr of correct segment for entry_point.
40331 2009-03-21 Bean <bean123ch@gmail.com>
40333 * commands/blocklist.c: Add include file <grub/command.h>, remove
40334 <grub/normal.h> and <grub/arg.h>.
40335 (grub_cmd_blocklist): Use the new command interface.
40336 (GRUB_MOD_INIT): Likewise.
40337 (GRUB_MOD_FINI): Likewise.
40338 * commands/boot.c: Likewise.
40339 * commands/cat.c: Likewise.
40340 * commands/cmp.c: Likewise.
40341 * commands/configfile.c: Likewise.
40342 * commands/crc.c: Likewise.
40343 * commands/echo.c: Likewise.
40344 * commands/halt.c: Likewise.
40345 * commands/handler.c: Likewise.
40346 * commands/hdparm.c: Likewise.
40347 * commands/help.c: Likewise.
40348 * commands/hexdump.c: Likewise.
40349 * commands/loadenv.c: Likewise.
40350 * commands/ls.c: Likewise.
40351 * commands/lsmmap.c: Likewise.
40352 * commands/lspci.c: Likewise.
40353 * commands/loadenv.c: Likewise.
40354 * commands/read.c: Likewise.
40355 * commands/reboot.c: Likewise.
40356 * commands/search.c: Likewise.
40357 * commands/sleep.c: Likewise.
40358 * commands/test.c: Likewise.
40359 * commands/usbtest.c: Likewise.
40360 * commands/videotest.c: Likewise.
40361 * commands/i386/cpuid.c: Likewise.
40362 * commands/i386/pc/halt.c: Likewise.
40363 * commands/i386/pc/play.c: Likewise.
40364 * commands/i386/pc/pxecmd.c: Likewise.
40365 * commands/i386/pc/vbeinfo.c: Likewise.
40366 * commands/i386/pc/vbetest.c: Likewise.
40367 * commands/ieee1275/suspend.c: Likewise.
40368 * disk/loopback.c: Likewise.
40369 * font/font_cmd.c: Likewise.
40370 * hello/hello.c: Likewise.
40371 * loader/efi/appleloader.c: Likewise.
40372 * loader/efi/chainloader.c: Likewise.
40373 * loader/i386/bsd.c: Likewise.
40374 * loader/i386/efi/linux.c: Likewise.
40375 * loader/i386/ieee1275/linux.c: Likewise.
40376 * loader/i386/linux.c: Likewise.
40377 * loader/i386/pc/chainloader.c: Likewise.
40378 * loader/i386/pc/linux.c: Likewise.
40379 * loader/powerpc/ieee1275/linux.c: Likewise.
40380 * loader/multiboot_loader.c: Likewise.
40381 * term/gfxterm.c: Likewise.
40382 * term/i386/pc/serial.c: Likewise.
40383 * term/terminfo.c: Likewise.
40385 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
40386 * term/i386/pc/vga.c: Likewise.
40387 * video/readers/jpeg.c: Likewise.
40388 * video/readers/png.c: Likewise.
40389 * video/readers/tga.c: Likewise.
40391 * util/grub-fstest (cmd_loopback): Removed.
40392 (cmd_blocklist): Likewise.
40393 (cmd_ls): Likewise.
40394 (grub_register_command): Likewise.
40395 (grub_unregister_command): Likewise.
40396 (execute_command): Use grub_command_find to locate command and execute
40399 * include/grub/efi/chainloader.h: Removed.
40400 * loader/efi/chainloader_normal.c: Likewise.
40401 * loader/i386/bsd_normal.c: Likewise.
40402 * loader/i386/pc/chainloader_normal.c: Likewise.
40403 * loader/i386/pc/multiboot_normal.c: Likewise.
40404 * loader/linux_normal.c: Likewise.
40405 * loader/multiboot_loader_normal.c: Likewise.
40406 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40408 * gencmdlist.sh: Scan new registration command grub_register_extcmd
40409 and grub_register_command_p1.
40411 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
40412 kern/command.c, lib/arg.c and commands/extcmd.c.
40413 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
40414 (minicmd_mod_SOURCES): New variable.
40415 (minicmd_mod_CFLAGS): Likewise.
40416 (minicmd_mod_LDFLAGS): Likewise.
40417 (extcmd_mod_SOURCES): Likewise.
40418 (extcmd_mod_CFLAGS): Likewise.
40419 (extcmd_mod_LDFLAGS): Likewise.
40420 (boot_mod_SOURCES): Removed.
40421 (boot_mod_CFLAGS): Likewise.
40422 (boot_mod_LDFLAGS): Likewise.
40424 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
40426 (kernel_img_HEADERS): Add command.h.
40427 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
40428 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
40430 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
40431 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
40432 remove the corresponding normal mode command.
40433 (normal_mod_SOURCES): Remove normal/arg.c.
40434 * conf/i386-coreboot.rmk: Likewise.
40435 * conf/i386-efi.rmk: Likewise.
40436 * conf/i386-ieee1275.rmk: Likewise.
40437 * conf/powerpc-ieee1275.rmk: Likewise.
40438 * conf/x86_64-efi.rmk: Likewise.
40440 * include/grub/arg.h: Move from here ...
40441 * include/grub/lib/arg.h: ... to here.
40443 * normal/arg.c: Move from here ...
40444 * lib/arg.c: ... to here.
40446 * commands/extcmd.c: New file.
40447 * commands/minicmd.c: Likewise.
40448 * include/grub/command.h: Likewise.
40449 * include/grub/extcmd.h: Likewise.
40450 * kern/command.c: Likewise.
40451 * kern/corecmd.c: Likewise.
40453 * kern/list.c (grub_list_iterate): Return int instead of void.
40454 (grub_list_insert): New function.
40455 (grub_prio_list_insert): Likewise.
40457 * kern/rescue.c (grub_rescue_command): Removed.
40458 (grub_rescue_command_list): Likewise.
40459 (grub_rescue_register_command): Likewise.
40460 (grub_rescue_unregister_command): Likewise.
40461 (grub_rescue_cmd_boot): Move to minicmd.c
40462 (grub_rescue_cmd_help): Likewise.
40463 (grub_rescue_cmd_info): Likewise.
40464 (grub_rescue_cmd_boot): Likewise.
40465 (grub_rescue_cmd_testload): Likewise.
40466 (grub_rescue_cmd_dump): Likewise.
40467 (grub_rescue_cmd_rmmod): Likewise.
40468 (grub_rescue_cmd_lsmod): Likewise.
40469 (grub_rescue_cmd_exit): Likewise.
40470 (grub_rescue_print_devices): Moved to corecmd.c.
40471 (grub_rescue_print_files): Likewise.
40472 (grub_rescue_cmd_ls): Likewise.
40473 (grub_rescue_cmd_insmod): Likewise.
40474 (grub_rescue_cmd_set): Likewise.
40475 (grub_rescue_cmd_unset): Likewise.
40476 (attempt_normal_mode): Use grub_command_find to get normal module.
40477 (grub_enter_rescue_mode): Use grub_register_core_commands to register
40478 commands, remove grub_rescue_register_command calls.
40480 * normal/command.c (grub_register_command): Removed.
40481 (grub_unregister_command): Likewise.
40482 (grub_command_find): Likewise.
40483 (grub_iterate_commands): Likewise.
40484 (rescue_command): Likewise.
40485 (export_command): Moved to corecmd.c.
40486 (set_command): Removed.
40487 (unset_command): Likewise.
40488 (insmod_command): Likewise.
40489 (rmmod_command): Likewise.
40490 (lsmod_command): Likewise.
40491 (grub_command_init): Likewise.
40493 * normal/completion.c (iterate_command): Use cmd->prio to check for
40495 (complete_arguments): Use grub_extcmd_t structure to find options.
40496 (grub_normal_do_completion): Change function grub_iterate_commands to
40497 grub_command_iterate.
40499 * normal/execute.c (grub_script_execute_cmd): No need to parse
40502 * normal/main.c (grub_dyncmd_dispatcher): New function.
40503 (read_command_list): Register unload commands as dyncmd.
40504 (grub_cmd_normal): Use new command interface, register rescue,
40505 unregister normal at entry, register normal, unregister rescue at exit.
40507 * include/grub/list.h (grub_list_test_t): New type.
40508 (grub_list_iterate): Return int instead of void.
40509 (grub_list_insert): New function.
40510 (GRUB_AS_NAMED_LIST_P): New macro.
40511 (GRUB_AS_PRIO_LIST): Likewise.
40512 (GRUB_AS_PRIO_LIST_P): Likewise.
40513 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
40514 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
40515 (grub_prio_list): New structure.
40516 (grub_prio_list_insert): New function.
40517 (grub_prio_list_remove): New inline function.
40519 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
40520 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
40521 (GRUB_COMMAND_FLAG_MENU): Likewise.
40522 (GRUB_COMMAND_FLAG_BOTH): Likewise.
40523 (GRUB_COMMAND_FLAG_TITLE): Likewise.
40524 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
40525 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
40526 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
40527 (grub_command): Likewise.
40528 (grub_register_command): Likewise.
40529 (grub_command_find): Likewise.
40530 (grub_iterate_commands): Likewise.
40531 (grub_command_init): Likewise.
40532 (grub_arg_parse): Likewise.
40533 (grub_arg_show_help): Likewise.
40535 * include/grub/rescue.h (grub_rescue_register_command): Removed.
40536 (grub_rescue_unregister_command): Likewise.
40538 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
40539 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
40540 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
40542 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
40543 grub_rescue_cmd_initrd.
40544 * include/grub/i386/loader.h: Likewise.
40545 * include/grub/x86_64/loader.h: Likewise.
40547 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
40549 2009-03-21 Bean <bean123ch@gmail.com>
40551 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
40552 instead of stat in mingw environment.
40554 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
40556 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
40558 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
40561 2009-03-21 Bean <bean123ch@gmail.com>
40563 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
40564 out of range error.
40566 2009-03-18 Michel Dänzer <michel@daenzer.net>
40568 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
40569 checking inode flags for EXT4_EXTENTS_FLAG.
40571 2009-03-18 Robert Millan <rmh@aybabtu.com>
40573 * loader/i386/linux.c: Include `<grub/video.h>' and
40574 `<grub/i386/pc/vbe.h>'..
40575 (grub_linux_setup_video): New function. Loosely based on the EFI one.
40576 (grub_linux32_boot): Attempt to configure video settings with
40577 grub_linux_setup_video().
40578 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
40579 to avoid grub_console_fini() which would step out of graphical mode
40582 2009-03-14 Robert Millan <rmh@aybabtu.com>
40584 Fix build on powerpc.
40585 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
40587 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
40589 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
40590 background image command.
40592 2009-03-12 Colin D Bennett <colin@gibibit.com>
40594 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
40595 (grub_gfxterm_putchar): Extract pairs of identical calls to
40596 draw_cursor out of conditional blocks.
40598 2009-03-11 Pavel Roskin <proski@gnu.org>
40600 * fs/hfs.c (grub_hfs_strncasecmp): New function.
40601 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
40603 2009-03-11 Robert Millan <rmh@aybabtu.com>
40605 * loader/i386/multiboot_elfxx.c
40606 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
40608 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
40610 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
40613 2009-03-11 Robert Millan <rmh@aybabtu.com>
40615 * loader/i386/multiboot.c (code_size): New variable.
40616 (grub_multiboot): Define offsets by adding to `code_size' rather
40617 than subtracting from `grub_multiboot_payload_size'. Provide
40618 4-byte alignment to MBI and others by increasing
40619 `boot_loader_name_length' appropriately.
40621 * loader/i386/multiboot_elfxx.c
40622 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
40624 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
40626 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
40629 2009-03-08 Robert Millan <rmh@aybabtu.com>
40631 Make loader/i386/linux.c usable on i386-pc again.
40633 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
40635 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
40638 2009-03-07 Bean <bean123ch@gmail.com>
40640 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
40643 2009-03-06 Robert Millan <rmh@aybabtu.com>
40645 Fix display issue on terminals with screen size other than 80x25
40646 (e.g. gfxterm with resolution higher than 640x480).
40648 * normal/main.c (grub_normal_init_page): Display title text in a
40649 position relative to the center of the terminal instead of relying
40650 on a hardcoded offset.
40652 2009-03-04 Robert Millan <rmh@aybabtu.com>
40654 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
40657 * Makefile.in (host_kernel): New variable.
40658 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
40659 scripts instead of just the windows one.
40660 * configure.ac: Initialize and AC_SUBST `host_kernel'.
40662 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40664 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
40666 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40667 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40668 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40669 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40670 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40671 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40673 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40675 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
40676 or if there's no space for the disk label and print the partition number on a
40679 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40681 * util/misc.c: Include <time.h>.
40682 (grub_millisleep): New function.
40684 2009-03-04 Bean <bean123ch@gmail.com>
40686 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
40687 another option -mno-red-zone.
40689 * commands/handler.c: Change module description.
40691 * kern/handler.c: Add missing space at the end of description line.
40693 * kern/list.c: Likewise.
40695 2009-03-03 Robert Millan <rmh@aybabtu.com>
40697 Move more components to the relocation area, and fix mbi pointer
40698 handling to use the destination rather than the origin (thanks to
40699 Vladimir Serbinenko for spotting).
40701 * loader/i386/multiboot.c (mbi_dest): New variable.
40702 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
40703 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
40706 2009-03-01 Bean <bean123ch@gmail.com>
40708 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
40709 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
40710 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
40711 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
40713 * loader/i386/efi/linux.c (acpi_guid): New variable.
40714 (acpi_guid): Likewise.
40715 (EBDA_SEG_ADDR): New constant.
40716 (LOW_MEM_ADDR): Likewise.
40717 (FAKE_EBDA_SEG): Likewise.
40718 (fake_bios_data): New function.
40719 (grub_linux_boot): Call fake_bios_data.
40721 2009-03-01 Bean <bean123ch@gmail.com>
40723 * commands/terminal.c: Removed.
40725 * commands/handler.c: New file.
40727 * include/grub/list.h: Likewise.
40729 * include/grub/handler.h: Likewise.
40731 * kern/list.c: Likewise.
40733 * kern/handler.c: Likewise.
40735 * kern/term.h: Include header file <grub/handler.h>.
40736 (grub_term_input): Move next field to the beginning.
40737 (grub_term_output): Likewise.
40738 (grub_term_input_class): New variable.
40739 (grub_term_output_class): Likewise.
40740 (grub_term_register_input): Changed to inline function.
40741 (grub_term_register_output): Likewise.
40742 (grub_term_unregister_input): Likewise.
40743 (grub_term_unregister_output): Likewise.
40744 (grub_term_set_current_input): Likewise.
40745 (grub_term_set_current_output): Likewise.
40746 (grub_term_get_current_input): Likewise.
40747 (grub_term_get_current_output): Likewise.
40748 (grub_term_iterate_input): Removed.
40749 (grub_term_iterate_output): Likewise.
40751 * kern/term.c (grub_term_list_input): Removed.
40752 (grub_term_list_output): Likewise.
40753 (grub_term_input_class): New variable.
40754 (grub_term_output_class): Likewise.
40755 (grub_cur_term_input): Change variable as macro.
40756 (grub_cur_term_output): Likewise.
40757 (grub_term_register_input): Removed.
40758 (grub_term_register_output): Likewise.
40759 (grub_term_unregister_input): Likewise.
40760 (grub_term_unregister_output): Likewise.
40761 (grub_term_set_current_input): Likewise.
40762 (grub_term_set_current_output): Likewise.
40763 (grub_term_iterate_input): Likewise.
40764 (grub_term_iterate_output): Likewise.
40765 (grub_term_get_current_input): Likewise.
40766 (grub_term_get_current_output): Likewise.
40768 * util/grub-editenv.c: Include header file <grub/handler.h>.
40769 (grub_term_get_current_input): Removed.
40770 (grub_term_get_current_output): Likewise.
40771 (grub_term_input_class): New variable.
40772 (grub_term_output_class): Likewise.
40774 * util/grub-fstest.c (grub_term_get_current_input): Removed.
40775 (grub_term_get_current_output): Likewise.
40776 (grub_term_input_class): New variable.
40777 (grub_term_output_class): Likewise.
40779 * util/grub-probe.c (grub_term_get_current_input): Removed.
40780 (grub_term_get_current_output): Likewise.
40781 (grub_term_input_class): New variable.
40782 (grub_term_output_class): Likewise.
40784 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
40785 (grub_term_get_current_output): Likewise.
40786 (grub_term_input_class): New variable.
40787 (grub_term_output_class): Likewise.
40789 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
40790 (terminal_mod_SOURCES): Likewise.
40791 (terminal_mod_CFLAGS): Likewise.
40792 (terminal_mod_LDFLAGS): Likewise.
40794 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
40796 (kernel_img_SOURCES): Add list.c and handler.c.
40797 (kernel_img_HEADERS): Add list.h and handler.h.
40799 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40801 (kernel_mod_SOURCES): Add list.c and handler.c.
40802 (kernel_mod_HEADERS): Add list.h and handler.h.
40804 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40806 (kernel_elf_SOURCES): Add list.c and handler.c.
40807 (kernel_elf_HEADERS): Add list.h and handler.h.
40809 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40811 (kernel_elf_SOURCES): Add list.c and handler.c.
40812 (kernel_elf_HEADERS): Add list.h and handler.h.
40814 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40816 (kernel_mod_SOURCES): Add list.c and handler.c.
40817 (kernel_mod_HEADERS): Add list.h and handler.h.
40819 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40821 (kernel_elf_SOURCES): Add list.c and handler.c.
40822 (kernel_elf_HEADERS): Add list.h and handler.h.
40824 2009-02-27 Robert Millan <rmh@aybabtu.com>
40826 Factorize elf32 / elf64 code in Multiboot loader. This will
40827 prevent it from getting out of sync again.
40829 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40830 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40831 grub_multiboot_load_elf64): Move from here ...
40832 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40833 grub_multiboot_load_elf): ... to here (new file).
40835 2009-02-27 Robert Millan <rmh@aybabtu.com>
40837 * util/grub.d/10_linux.in: Rename "single-user mode" to
40840 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40842 Don't leak in SCSI code.
40843 * disk/scsi.c (grub_scsi_close): free `scsi'.
40845 2009-02-27 Robert Millan <rmh@aybabtu.com>
40847 * loader/i386/pc/multiboot.c: Move from here ...
40848 * loader/i386/multiboot.c: ... to here. Update all users.
40850 2009-02-27 Robert Millan <rmh@aybabtu.com>
40852 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40853 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40855 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
40857 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40860 2009-02-27 Robert Millan <rmh@aybabtu.com>
40862 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40863 `0x' qualifier as 0 when base is specified as parameter).
40865 2009-02-24 Bean <bean123ch@gmail.com>
40867 * configure.ac: Check for -mcmodel=large in x86_64 target.
40869 * include/grub/efi/api.h (efi_call_10): New macro.
40870 (efi_wrap_10): New function.
40872 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40873 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40874 (GRUB_PE32_REL_BASED_LOW): Likewise.
40875 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40876 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40877 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40878 (GRUB_PE32_REL_BASED_SECTION): Likewise.
40879 (GRUB_PE32_REL_BASED_REL): Likewise.
40880 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
40881 (GRUB_PE32_REL_BASED_DIR64): Likewise.
40882 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
40884 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
40887 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
40888 (efi_wrap_10): New function.
40890 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
40892 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
40893 MB/MBP model (NV chipset).
40894 (devdata_devs): Add devpath_5 to the list.
40896 * load/i386/efi/linux.c (video_base): Remove variable.
40897 (RGB_MASK): New macro.
40898 (RGB_MAGIC): Likewise.
40899 (LINE_MIN): Likewise.
40900 (LINE_MAX): Likewise.
40901 (FBTEST_STEP): Likewise.
40902 (FBTEST_COUNT): Likewise.
40903 (fb_list): New variable.
40904 (grub_find_video_card): Remove function.
40905 (find_framebuf): New function.
40906 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
40909 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
40910 problem for x86_64.
40912 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
40914 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
40916 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
40919 2009-02-22 Robert Millan <rmh@aybabtu.com>
40921 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
40922 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
40923 in our relocation, instead of using it directly from heap. Also
40924 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
40926 2009-02-21 Robert Millan <rmh@aybabtu.com>
40928 Implement USB keyboard support (based on patch by Marco Gerards)
40930 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
40931 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
40932 (usb_keyboard_mod_LDFLAGS): New variables.
40934 * term/usb_keyboard.c: New file.
40936 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
40938 Corrected wrong declaration
40940 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
40942 2009-02-14 Christian Franke <franke@computer.org>
40944 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
40945 (grub_lspci_iter): Print class code and programming interface byte.
40947 2009-02-14 Christian Franke <franke@computer.org>
40949 * gendistlist.sh: Ignore `.svn' directories.
40951 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
40953 * fs/fat.c: Add 2009 to Copyright line.
40955 2009-02-14 Christian Franke <franke@computer.org>
40957 * commands/hdparm.c: New file. Provides `hdparm' command
40958 which sends ATA commands via grub_disk_ata_pass_through ().
40960 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
40962 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
40963 and <grub/cpu/io.h> to include/grub/ata.h.
40964 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
40965 (GRUB_CDROM_SECTOR_SIZE): Remove.
40966 (GRUB_ATA_*): Move to include/grub/ata.h.
40967 (GRUB_ATAPI_*): Likewise.
40968 (enum grub_ata_commands): Likewise.
40969 (enum grub_ata_timeout_milliseconds): Likewise.
40970 (struct grub_ata_device): Likewise.
40971 (grub_ata_regset): Likewise.
40972 (grub_ata_regget): Likewise.
40973 (grub_ata_regset2): Likewise.
40974 (grub_ata_regget2): Likewise.
40975 (grub_ata_check_ready): Likewise.
40976 (grub_ata_wait_not_busy): Remove static, exported in
40977 include/grub/ata.h.
40978 (grub_ata_wait_drq): Likewise.
40979 (grub_ata_pio_read): Likewise.
40981 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
40982 function for hdparm.mod.
40984 * include/grub/ata.h: New file, contains declarations from
40986 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
40988 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
40989 (grub_disk_ata_pass_through): New exported variable.
40991 * kern/disk.c (grub_disk_ata_pass_through): New variable.
40993 2009-02-13 Colin D Bennett <colin@gibibit.com>
40995 Support multiple fallback entries, and provide an API to support
40996 executing default+fallback menu entries. Renamed the `terminal' menu
40999 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
41000 variable declaration.
41001 (grub_menu_execute_callback): New structure declaration.
41002 (grub_menu_execute_callback_t): New typedef.
41003 (grub_menu_execute_with_fallback): New function declaration.
41004 (grub_menu_get_entry): Likewise.
41005 (grub_menu_get_timeout): Likewise.
41006 (grub_menu_set_timeout): Likewise.
41008 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
41010 * normal/menu.c (grub_wait_after_message): Moved to
41011 `normal/menu_text.c'.
41012 (draw_border): Likewise.
41013 (print_message): Likewise.
41014 (print_entry): Likewise.
41015 (print_entries): Likewise.
41016 (grub_menu_init_page): Likewise.
41017 (get_entry_number): Likewise.
41018 (print_timeout): Likewise.
41019 (run_menu): Likewise.
41020 (grub_menu_execute_entry): Likewise.
41021 (show_text_menu): Likewise.
41022 (get_and_remove_first_entry_number): New function.
41023 (grub_menu_execute_with_fallback): Likewise.
41024 (get_entry): Renamed to ...
41025 (grub_menu_get_entry): .. this and made it global.
41026 (get_timeout): Renamed to ...
41027 (grub_menu_get_timeout): ... this and made it global.
41028 (set_timeout): Renamed to ...
41029 (grub_menu_set_timeout): ... this and made it global.
41030 (grub_normal_terminal_menu_viewer): Renamed to ...
41031 (grub_normal_text_menu_viewer): ... this.
41033 * normal/menu_text.c: New file. Extracted text-menu-specific code
41034 from normal/menu.c.
41036 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
41037 (normal_mod_SOURCES): Likewise.
41039 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41040 (normal_mod_SOURCES): Likewise.
41042 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41043 (normal_mod_SOURCES): Likewise.
41045 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
41046 (normal_mod_SOURCES): Likewise.
41048 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41049 (normal_mod_SOURCES): Likewise.
41051 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41052 (normal_mod_SOURCES): Likewise.
41054 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41055 (normal_mod_SOURCES): Likewise.
41057 2009-02-11 Robert Millan <rmh@aybabtu.com>
41059 * util/grub.d/00_header.in: Update old reference to `font' command.
41061 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
41063 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
41065 Based on patch from Javier Martín.
41067 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
41069 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
41070 to avoid false positives with FAT.
41071 (grub_fstest_SOURCES): Likewise.
41072 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41073 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41074 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41075 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41076 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41077 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41079 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
41081 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
41082 bpb.version_specific.fat12_or_fat16.fstype and
41083 bpb.version_specific.fat32.fstype.
41085 2009-02-08 Robert Millan <rmh@aybabtu.com>
41087 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
41089 2009-02-08 Robert Millan <rmh@aybabtu.com>
41091 * Makefile.in (host_os, host_cpu): New variables.
41092 (target_os): Remove. Update all users.
41094 2009-02-08 Marco Gerards <marco@gnu.org>
41096 * Makefile.in (enable_grub_emu_usb): New variable.
41097 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
41098 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
41099 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
41100 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
41101 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
41102 `usbtest.mod' and `usbms.mod'.
41103 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
41104 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
41105 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
41106 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
41107 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
41110 * disk/usbms.c: New file.
41112 * include/grub/usb.h: Likewise.
41114 * include/grub/usbtrans.h: Likewise.
41116 * include/grub/usbdesc.h: Likewise.
41118 * bus/usb/usbtrans.c: Likewise.
41120 * bus/usb/ohci.c: Likewise.
41122 * bus/usb/uhci.c: Likewise.
41124 * bus/usb/usbhub.c: Likewise.
41126 * bus/usb/usb.c: Likewise.
41128 * commands/usbtest.c: Likewise.
41130 * util/usb.c: Likewise.
41132 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
41134 * configure.ac: Test for libusb presence.
41136 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
41138 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
41140 * kern/mm.c: Add more comments.
41142 2009-02-08 Robert Millan <rmh@aybabtu.com>
41144 Patch from Javier Martín.
41145 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
41146 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
41148 2009-02-08 Robert Millan <rmh@aybabtu.com>
41150 * fs/cpio.c: Split tar functionality to ...
41151 * fs/tar.c: ... here (new file). Update all users.
41153 2009-02-07 Robert Millan <rmh@aybabtu.com>
41155 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
41156 backward-incompatible features.
41158 Based on patch from Javier Martín, with some adjustments.
41160 2009-02-07 Michael Scherer <misc@mandriva.org>
41162 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
41164 2009-02-07 Robert Millan <rmh@aybabtu.com>
41166 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
41167 position of `disk/lvm.c' to ensure grub_init_all() always picks it
41168 after the RAID stuff.
41170 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
41172 Fixes problem when running vbetest command as reported by
41173 Vladimir Serbinenko <phcoder@gmail.com>.
41175 * (grub_vbe_set_video_mode): Fixed problem with text modes.
41177 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
41179 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
41180 /dev/md/NpN style mdraid devices.
41182 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41184 * util/unifont2pff.rb: Remove.
41186 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41188 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
41191 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41193 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
41194 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41195 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41196 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41197 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41198 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41199 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41201 2009-02-02 Christian Franke <franke@computer.org>
41203 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
41205 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
41207 * INSTALL: Note that we now require at least autoconf 2.59 and
41208 that LZO is optional.
41210 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41212 Base on patch on bug #24154 created by Tomas Tintera
41213 <trosos@seznam.cz>.
41215 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
41217 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41219 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
41220 <bero@arklinux.org>.
41222 * normal/parser.y (script_init): Add missing semicolon.
41224 2009-01-31 Colin D Bennett <colin@gibibit.com>
41226 * normal/main.c: Add include to grub/menu_viewer.h.
41227 (free_menu_entry_classes): Added.
41228 (grub_normal_menu_addentry): Added class property handling.
41229 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
41230 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
41232 * normal/menu_viewer.c: New file.
41234 * normal/menu.c (run_menu_entry): Renamed to ...
41235 (grub_menu_execute_entry): ... this and made it as global.
41236 (grub_menu_run): Renamed to ...
41237 (show_text_menu): ... this and made it local.
41238 (show_text_menu): Adapt to new function names.
41239 (grub_normal_terminal_menu_viewer): New global variable.
41241 * include/grub/menu.h: New file.
41243 * include/grub/menu_viewer.h: New file.
41245 * include/grub/normal.h: Added include to grub/menu.h.
41246 (grub_menu_entry): Moved to include/grub/menu.h.
41247 (grub_menu_entry_t): Likewise.
41248 (grub_menu): Likewise.
41249 (grub_menu_t): Likewise.
41250 (grub_normal_terminal_menu_viewer): Added.
41251 (grub_menu_execute_entry): Likewise.
41252 (grub_menu_run): Removed.
41254 * DISTLIST: Added include/grub/menu.h.
41255 Added include/grub/menu_viewer.h.
41256 Added normal/menu_viewer.c.
41258 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
41260 * normal/execute.c (grub_script_execute_menuentry): Changed to use
41261 arglist for menutitle arguments.
41263 * normal/main.c (grub_normal_menu_addentry): Likewise.
41265 * normal/parser.y (menuentry): Likewise.
41267 * normal/script.c (grub_script_create_cmdmenu): Likewise.
41269 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
41270 (grub_script_create_cmdmenu): Likewise.
41272 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
41274 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
41277 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
41279 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
41281 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
41283 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41285 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41287 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41289 2009-01-30 Christian Franke <franke@computer.org>
41291 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
41292 in option help text.
41294 2009-01-27 Pavel Roskin <proski@gnu.org>
41296 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
41298 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41300 * commands/lsmmap.c: Add include to grub/machine/memory.h.
41302 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
41304 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
41305 unregister function.
41307 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41309 * disk/scsi.c (grub_scsi_read): Fix sign problem.
41311 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
41313 * util/grub-mkfont.c (usage): Fix typo.
41315 * util/elf/grub-mkimage.c (load_modules): Fix warning.
41317 2009-01-26 Daniel Mierswa <impulze@impulze.org>
41319 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
41321 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
41323 * kern/misc.c (grub_strcasecmp): New function.
41324 (grub_strcasecmp): Use grub_size_t instead of int for length.
41326 * include/grub/misc.h: Update function prototypes.
41328 2009-01-26 Robert Millan <rmh@aybabtu.com>
41330 * configure.ac: Fix cross-compilation check.
41332 2009-01-22 Christian Franke <franke@computer.org>
41334 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
41335 (precision) digit string. Allow `.format2' without `format1' (width).
41336 Limit input chars for `%s' output to `format2' if specified. This is
41337 compatible with standard printf ().
41339 2009-01-22 Christian Franke <franke@computer.org>
41341 * disk/ata.c (grub_ata_wait_status): Replace by ...
41342 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
41343 other status bits may be invalid while BSY is asserted.
41344 (grub_ata_check_ready): New function.
41345 (grub_ata_cmd): Removed.
41346 (grub_ata_wait_drq): New function.
41347 (grub_ata_strncpy): Remove inline.
41348 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
41349 and error check now done by grub_ata_wait_drq ().
41350 (grub_ata_pio_write): Likewise.
41351 (grub_atapi_identify): Set DEV before check for !BSY. Use
41352 grub_ata_wait_drq () to wait for data.
41353 (grub_ata_device_initialize): Add status register check to
41354 detect missing SATA slave devices. Add debug messages.
41355 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
41356 (grub_atapi_packet): Set DEV before check for !BSY. Replace
41357 transfer loop by grub_ata_pio_write ().
41358 (grub_ata_identify): Set DEV before check for !BSY. Use
41359 grub_ata_wait_drq () to wait for data.
41360 (grub_ata_setaddress): Set DEV before check for !BSY.
41361 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
41362 read/write in one loop. Fix invalid command on write. Fix incomplete
41363 command on (size % batch) == 0. Add missing error check after write of
41364 last block. Add debug messages.
41365 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
41367 2009-01-19 Christian Franke <franke@computer.org>
41369 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
41370 (GRUB_ATAPI_IREASON_*): Likewise.
41371 (grub_ata_pio_write): Fix timeout error return.
41372 (grub_atapi_identify): Add grub_ata_wait () after cmd.
41373 (grub_atapi_wait_drq): New function.
41374 (grub_atapi_packet): New parameter `size'.
41375 Use grub_atapi_wait_drq () and direct write instead of
41376 grub_ata_pio_write ().
41377 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
41378 reads the number of bytes requested by the device for each DRQ
41380 (grub_atapi_write): Remove old implementation, return not
41381 implemented instead.
41383 2009-01-19 Christian Franke <franke@computer.org>
41385 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
41386 of 512 to calculate data size.
41387 (grub_scsi_read12): Likewise.
41388 (grub_scsi_write10): Likewise.
41389 (grub_scsi_write12): Likewise.
41390 (grub_scsi_read): Adjust size according to blocksize.
41391 Add checks for invalid blocksize and unaligned transfer.
41393 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
41395 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
41397 * term/gfxterm.c (write_char): Fix background rendering for wide
41400 2009-01-19 Robert Millan <rmh@aybabtu.com>
41402 * config.guess: Update to latest version from config git.
41403 * config.sub: Likewise.
41405 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
41407 * Makefile.in: Change font compilation to use new grub-mkfont instead
41410 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
41411 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41412 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41413 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41414 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41415 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41416 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41417 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41418 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41420 2009-01-16 Christian Franke <franke@computer.org>
41422 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
41423 (enum grub_ata_timeout_milliseconds): New enum.
41424 (grub_ata_wait_status): Add parameter milliseconds.
41425 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
41426 recovery from timed-out commands.
41427 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
41428 return grub_errno instead of REG_ERROR.
41429 (grub_ata_pio_write): Add parameter milliseconds.
41430 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
41431 Pass milliseconds to grub_ata_wait_status () and
41432 grub_ata_pio_read ().
41433 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
41434 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
41435 grub_ata_wait_status (). Fix IDENTIFY timeout check.
41436 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
41437 It is not suitable for device detection, because DEV bit is ignored,
41438 the command may run too long, and not all devices set the signature
41440 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
41441 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
41442 Fix device selection, DEV bit must be set first to address the registers
41443 of the correct device.
41444 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
41445 grub_ata_pio_read/write ().
41446 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
41447 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
41449 2009-01-13 Carles Pina i Estany <carles@pina.cat>
41451 * util/grub-editenv.c (main): Use fseeko(), not fseek().
41453 2009-01-13 Bean <bean123ch@gmail.com>
41455 * util/grub-mkfont.c (write_font): forget to remove some debug code.
41457 2009-01-13 Bean <bean123ch@gmail.com>
41459 * Makefile.in: (enable_grub_mkfont): New variable.
41460 (freetype_cflags): Likewise.
41461 (freetype_libs): Likewise.
41463 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
41464 (grub_mkfont_SOURCES): New variable.
41465 (grub_mkfont_CFLAGS): Likewise.
41466 (grub_mkfont_LDFLAGS): Likewise.
41468 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
41469 library if `--enable-grub-mkfont' is requested.
41470 (enable_grub_mkfont): New variable.
41471 (freetype_cflags): Likewise.
41472 (freetype_libs): Likewise.
41474 * util/grub-mkfont.c: New file.
41476 2009-01-12 Christian Franke <franke@computer.org>
41478 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
41479 mode check. Fix setting of compat_use[].
41481 2009-01-10 Robert Millan <rmh@aybabtu.com>
41483 Update a few copyright years which we forgot to do in 2008 (only for
41484 files whose changes made in 2008 were copyright-significant)
41486 * Makefile.in: Add 2008 to Copyright line.
41487 * disk/ieee1275/ofdisk.c: Likewise.
41488 * disk/efi/efidisk.c: Likewise.
41489 * kern/dl.c: Likewise.
41490 * kern/sparc64/ieee1275/init.c: Likewise.
41491 * kern/mm.c: Likewise.
41492 * kern/efi/mm.c: Likewise.
41493 * boot/i386/pc/boot.S: Likewise.
41494 * genfslist.sh: Likewise.
41495 * fs/iso9660.c: Likewise.
41496 * fs/hfs.c: Likewise.
41497 * fs/jfs.c: Likewise.
41498 * fs/minix.c: Likewise.
41499 * fs/ufs.c: Likewise.
41500 * gensymlist.sh.in: Likewise.
41501 * genkernsyms.sh.in: Likewise.
41502 * include/grub/misc.h: Likewise.
41503 * include/grub/types.h: Likewise.
41504 * include/grub/symbol.h: Likewise.
41505 * include/grub/elf.h: Likewise.
41506 * include/grub/kernel.h: Likewise.
41507 * include/grub/disk.h: Likewise.
41508 * include/grub/dl.h: Likewise.
41509 * include/grub/i386/linux.h: Likewise.
41510 * include/grub/i386/pc/biosdisk.h: Likewise.
41511 * include/grub/efi/api.h: Likewise.
41512 * include/grub/efi/pe32.h: Likewise.
41513 * include/grub/util/misc.h: Likewise.
41514 * normal/execute.c: Likewise.
41515 * normal/arg.c: Likewise.
41516 * normal/completion.c: Likewise.
41517 * normal/lexer.c: Likewise.
41518 * normal/parser.y: Likewise.
41519 * normal/misc.c: Likewise.
41520 * commands/i386/pc/vbeinfo.c: Likewise.
41521 * commands/hexdump.c: Likewise.
41522 * commands/terminal.c: Likewise.
41523 * commands/ls.c: Likewise.
41524 * commands/help.c: Likewise.
41525 * partmap/pc.c: Likewise.
41526 * loader/efi/chainloader.c: Likewise.
41527 * loader/multiboot_loader.c: Likewise.
41528 * loader/i386/pc/multiboot2.c: Likewise.
41529 * term/efi/console.c: Likewise.
41530 * term/i386/pc/serial.c: Likewise.
41531 * util/lvm.c: Likewise.
41532 * util/console.c: Likewise.
41533 * util/i386/efi/grub-mkimage.c: Likewise.
41534 * util/raid.c: Likewise.
41536 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
41538 * commands/videotest.c: Removed include to grub/machine/memory.h.
41540 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
41541 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
41542 (video_mod_SOURCES): Removed.
41543 (video_mod_CFLAGS): Likewise.
41544 (video_mod_LDFLAGS): Likewise.
41545 (gfxterm_mod_SOURCES): Likewise.
41546 (gfxterm_mod_CFLAGS): Likewise.
41547 (gfxterm_mod_LDFLAGS): Likewise.
41548 (videotest_mod_SOURCES): Likewise.
41549 (videotest_mod_CFLAGS): Likewise.
41550 (videotest_mod_LDFLAGS): Likewise.
41551 (bitmap_mod_SOURCES): Likewise.
41552 (bitmap_mod_CFLAGS): Likewise.
41553 (bitmap_mod_LDFLAGS): Likewise.
41554 (tga_mod_SOURCES): Likewise.
41555 (tga_mod_CFLAGS): Likewise.
41556 (tga_mod_LDFLAGS): Likewise.
41557 (jpeg_mod_SOURCES): Likewise.
41558 (jpeg_mod_CFLAGS): Likewise.
41559 (jpeg_mod_LDFLAGS): Likewise.
41560 (png_mod_SOURCES): Likewise.
41561 (png_mod_CFLAGS): Likewise.
41562 (png_mod_LDFLAGS): Likewise.
41564 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
41565 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
41566 (video_mod_SOURCES): Added.
41567 (video_mod_CFLAGS): Likewise.
41568 (video_mod_LDFLAGS): Likewise.
41569 (videotest_mod_SOURCES): Likewise.
41570 (videotest_mod_CFLAGS): Likewise.
41571 (videotest_mod_LDFLAGS): Likewise.
41572 (bitmap_mod_SOURCES): Likewise.
41573 (bitmap_mod_CFLAGS): Likewise.
41574 (bitmap_mod_LDFLAGS): Likewise.
41575 (tga_mod_SOURCES): Likewise.
41576 (tga_mod_CFLAGS): Likewise.
41577 (tga_mod_LDFLAGS): Likewise.
41578 (jpeg_mod_SOURCES): Likewise.
41579 (jpeg_mod_CFLAGS): Likewise.
41580 (jpeg_mod_LDFLAGS): Likewise.
41581 (png_mod_SOURCES): Likewise.
41582 (png_mod_CFLAGS): Likewise.
41583 (png_mod_LDFLAGS): Likewise.
41584 (gfxterm_mod_SOURCES): Likewise.
41585 (gfxterm_mod_CFLAGS): Likewise.
41586 (gfxterm_mod_LDFLAGS): Likewise.
41588 * term/gfxterm.c: Removed include to grub/machine/memory.h,
41589 grub/machine/console.h.
41591 2009-01-04 Jerone Young <jerone@gmail.com>
41593 Make on screen instructions clearer
41595 Based on patch created by Jidanni <jidanni@jidanni.org>
41597 * normal/menu.c: print clearer instructions on the screen
41599 2009-01-02 Colin D Bennett <colin@gibibit.com>
41603 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
41604 build system and fixed gfxterm.c to work with different sized fonts.
41606 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
41608 * configure: Re-generated.
41610 * DISTLIST: Removed font/manager.c.
41612 Added font/font_cmd.c.
41614 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
41617 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
41619 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
41621 * kern/term.c: Changed users of grub_utf8_to_ucs4.
41623 * normal/menu.c: Likewise.
41625 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
41626 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
41628 * include/grub/font.h: Replaced with new file.
41630 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
41631 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
41632 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
41633 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
41634 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
41635 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
41636 fg_red, fg_green, fg_blue, fg_alpha.
41637 (grub_video_adapter): Removed blit_glyph.
41638 (grub_video_blit_glyph): Removed.
41640 * font/manager.c: Removed file.
41642 * font/font.c: New file.
41644 * font/font_cmd.c: Likewise.
41646 * video/video.c (grub_video_blit_glyph): Removed.
41648 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
41649 (grub_video_vbe_map_rgba): Likewise.
41650 (grub_video_vbe_unmap_color_int): Likewise.
41651 (grub_video_vbe_blit_glyph): Removed.
41652 (grub_video_vbe_adapter): Removed blit_glyph.
41654 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
41655 (get_pixel): Likewise.
41656 (set_pixel): Likewise.
41658 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
41660 * term/gfxterm.c: Adapted to new font engine.
41662 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
41664 * term/i386/pc/vga.c: Likewise.
41666 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
41668 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41670 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41672 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41674 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41676 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41678 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41680 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41682 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41684 * util/grub.d/00_header.in: Changed to use new loadfont command.
41686 * util/grub-mkconfig_lib.in: Changed font extension.
41688 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
41690 * util/getroot.c (grub_util_get_grub_dev): Add support for
41691 /dev/md/dNNpNN style partitionable mdraid devices.
41693 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
41695 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
41696 at a time limit of the PXE TFTP API correctly.
41697 (grub_pxefs_close): Likewise.
41699 2008-11-29 Robert Millan <rmh@aybabtu.com>
41701 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
41702 grub_ata_device_initialize() calls.
41704 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
41706 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
41708 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
41710 2008-11-28 Robert Millan <rmh@aybabtu.com>
41712 Fix build on powerpc-ieee1275. Based on patch created by
41713 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
41714 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41715 `kern/ieee1275/mmap.c'.
41716 * include/grub/powerpc/ieee1275/memory.h: New file.
41718 Provide grub-install on coreboot.
41719 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
41720 (grub_install_SOURCES): New variable.
41721 * util/i386/pc/grub-install.in: Add a few condition checks to make it
41722 usable on coreboot.
41724 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
41726 * util/grub-fstest.c (grub_term_get_current_input): Change return type
41727 to `grub_term_input_t'.
41728 (grub_term_get_current_output): Change return type to
41729 `grub_term_output_t'.
41731 2008-11-22 Robert Millan <rmh@aybabtu.com>
41733 Fix breakage on coreboot due to declaration mismatch.
41734 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
41735 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
41736 grub_vga_text_cls().
41738 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
41739 comments. Avoid copying one more byte than necessary (just in case).
41741 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
41742 to 0x200000 (avoids trouble with some OFW implementations, and matches
41743 with the one in Yaboot).
41744 Reported by Manoel Abranches
41746 2008-11-20 Robert Millan <rmh@aybabtu.com>
41748 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
41749 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
41751 * util/grub-mkconfig_lib.in (grub_warn): New function.
41752 (convert_system_path_to_grub_path): Use grub_warn() when issuing
41753 warnings, to obtain consistent formatting.
41754 * util/grub.d/00_header.in: Likewise.
41755 * util/update-grub_lib.in: Likewise.
41757 * loader/i386/linux.c (allocate_pages): Fix a warning.
41758 Move comment text to `#error' stanza.
41760 Harmonize ieee1275's grub_available_iterate() with the generic
41761 grub_machine_mmap_iterate() interface (fixes a recently-introduced
41762 build problem on i386-ieee1275):
41763 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
41764 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
41765 parameter `type'. Update all users of this function.
41766 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41767 `kern/ieee1275/mmap.c'.
41768 * kern/ieee1275/init.c
41769 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
41771 (grub_machine_mmap_iterate): ... this.
41772 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
41773 return type to `grub_err_t'. Update all implementations of this
41774 function prototype.
41775 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
41778 Add `lsmmap' command (lists firmware-provided memory map):
41779 * commands/lsmmap.c: New file.
41780 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
41781 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
41783 * conf/powerpc-ieee1275.rmk: Likewise.
41784 * conf/i386-coreboot.rmk: Likewise.
41785 * conf/i386-ieee1275.rmk: Likewise.
41787 2008-11-19 Robert Millan <rmh@aybabtu.com>
41789 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
41790 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
41791 constraints to initrd allocation (based on code from
41792 loader/i386/pc/linux.c). Without them, initrd was allocated too high
41793 for Linux to find it.
41795 2008-11-14 Robert Millan <rmh@aybabtu.com>
41797 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
41798 order to cope with duplicate slashes.
41800 2008-11-14 Robert Millan <rmh@aybabtu.com>
41802 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
41803 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
41804 don't want to mess with lower memory, because it is used in the Linux
41807 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
41808 an appropriate place in lower memory, between 0x10000 and 0x90000,
41809 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41810 is in our heap (probably as a result of it being corrupted during
41811 decompression). Add #error instance with comment to explain why this
41812 loader isn't currently usable on PC/BIOS.
41814 2008-11-14 Robert Millan <rmh@aybabtu.com>
41816 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
41817 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
41819 2008-11-12 Robert Millan <rmh@aybabtu.com>
41821 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41823 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41824 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41826 * include/grub/i386/pc/memory.h: ... to here.
41828 2008-11-12 Robert Millan <rmh@aybabtu.com>
41830 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41833 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41834 (grub_console_cur_color, grub_console_real_putchar)
41835 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41836 (grub_console_setcolorstate, grub_console_setcolor)
41837 (grub_console_getcolor): Move from here ...
41838 * include/grub/i386/vga_common.h: ... to here (new file).
41840 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41841 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41842 `<grub/i386/io.h>'.
41843 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41844 `<grub/i386/vga_common.h>'.
41846 2008-11-12 Robert Millan <rmh@aybabtu.com>
41848 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41849 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41850 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41852 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41853 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41855 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41856 grub_console_init() with call to grub_vga_text_init().
41857 (grub_machine_fini): Replace call to
41858 grub_console_fini() with call to grub_vga_text_fini() and
41859 grub_at_keyboard_fini().
41861 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41862 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41863 (grub_console_setcolorstate, grub_console_setcolor)
41864 (grub_console_getcolor): New function prototypes.
41866 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41867 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41868 (grub_vga_text_setcursor): Static-ize.
41869 (grub_vga_text_term): New structure.
41870 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41872 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41873 (grub_console_cur_color, grub_console_standard_color)
41874 (grub_console_normal_color, grub_console_highlight_color)
41875 (map_char, grub_console_putchar, grub_console_getcharwidth)
41876 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41877 (grub_console_getcolor): Move from here ...
41878 * term/i386/vga_common.c: ... to here (same function names).
41880 2008-11-12 Robert Millan <rmh@aybabtu.com>
41882 Use newly-added Multiboot support in coreboot.
41884 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41885 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
41887 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
41888 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
41889 (codestart): Store the MBI in `startup_multiboot_info' when we're
41890 being loaded using Multiboot.
41892 * kern/i386/coreboot/init.c (grub_machine_init): Move
41893 grub_at_keyboard_init() call to beginning of function (useful for
41894 debugging). Call grub_machine_mmap_init() before attempting to use
41895 grub_machine_mmap_iterate().
41896 (grub_lower_mem, grub_upper_mem): Move from here ...
41897 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
41900 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
41901 function prototype.
41903 2008-11-12 Robert Millan <rmh@aybabtu.com>
41905 Fix a regression introduced by the at_keyboard.mod split. Because
41906 some terminals are default on some platforms and non-default on
41907 others, the first terminal being registered determines which is
41908 going to be default.
41910 * kern/term.c (grub_term_register_input): If this is the first
41911 terminal being registered, set it as the current one.
41912 (grub_term_register_output): Likewise.
41914 * term/efi/console.c (grub_console_init): Do not call
41915 grub_term_set_current_output() or grub_term_set_current_input().
41916 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
41917 * term/i386/pc/console.c (grub_console_init): Likewise.
41918 (grub_console_fini): Do not call grub_term_set_current_input()
41919 (but leave grub_term_set_current_output() to restore text mode).
41921 2008-11-10 Robert Millan <rmh@aybabtu.com>
41923 * util/grub.d/00_header.in: Add backward compatibility check for
41924 versions of terminal.mod that don't understand `terminal_input' or
41927 2008-11-09 Robert Millan <rmh@aybabtu.com>
41929 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
41930 `terminal_input' / `terminal_output', not `terminal'.
41932 2008-11-08 Robert Millan <rmh@aybabtu.com>
41934 * Makefile.in (include_DATA): Fix srcdir=. assumption.
41935 (DISTCLEANFILES): Add `build_env.mk'.
41937 2008-11-08 Robert Millan <rmh@aybabtu.com>
41939 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
41940 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41941 members. Update all users.
41942 * util/console.c (grub_ncurses_term): Split in ...
41943 (grub_ncurses_term_input): ... this, and ...
41944 (grub_ncurses_term_output): ... this. Update all users.
41945 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
41947 2008-11-08 Robert Millan <rmh@aybabtu.com>
41949 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
41950 (PKGDATA): Add $(pkgdata_SRCDIR).
41951 (pkglib_BUILDDIR): New variable.
41952 (pkgdata_SRCDIR): New variable.
41953 (build_env.mk): New target.
41954 (include_DATA): New variable.
41955 (install-local): Install $(include_DATA) files in $(includedir).
41957 2008-11-07 Pavel Roskin <proski@gnu.org>
41959 * gendistlist.sh: Use C locale for sorting to ensure consistent
41960 output on all systems.
41962 * util/grub.d/00_header.in: Remove incorrect space before
41965 2008-11-07 Robert Millan <rmh@aybabtu.com>
41967 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
41969 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
41970 * loader/multiboot_loader.c (find_multi_boot2_header): New function
41971 (based on find_multi_boot1_header).
41972 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
41973 using find_multi_boot2_header(), and abort if neither Multiboot or
41974 Multiboot headers were found.
41976 2008-11-07 Robert Millan <rmh@aybabtu.com>
41978 Modularize at_keyboard.mod:
41980 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
41981 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
41982 (at_keyboard_mod_LDFLAGS): New variables.
41984 Actual terminal split:
41986 * include/grub/term.h (struct grub_term): Split in ...
41987 (struct grub_term_input): ... this, and ...
41988 (struct grub_term_output): ... this. Update all users.
41989 (grub_term_set_current): Split in ...
41990 (grub_term_set_current_input): ... this, and ...
41991 (grub_term_set_current_output): ... this.
41992 (grub_term_get_current): Split in ...
41993 (grub_term_get_current_input): ... this, and ...
41994 (grub_term_get_current_output): ... this.
41995 (grub_term_register): Split in ...
41996 (grub_term_register_input): ... this, and ...
41997 (grub_term_register_output): ... this.
41998 (grub_term_unregister): Split in ...
41999 (grub_term_unregister_input): ... this, and ...
42000 (grub_term_unregister_output): ... this.
42001 (grub_term_iterate): Split in ...
42002 (grub_term_iterate_input): ... this, and ...
42003 (grub_term_iterate_output): ... this.
42005 * kern/term.c (grub_term_list): Split in ...
42006 (grub_term_list_input): ... this, and ...
42007 (grub_term_list_output): ... this. Update all users.
42008 (grub_cur_term): Split in ...
42009 (grub_cur_term_input): ... this, and ...
42010 (grub_cur_term_output): ... this. Update all users.
42011 (grub_term_set_current): Split in ...
42012 (grub_term_set_current_input): ... this, and ...
42013 (grub_term_set_current_output): ... this.
42014 (grub_term_get_current): Split in ...
42015 (grub_term_get_current_input): ... this, and ...
42016 (grub_term_get_current_output): ... this.
42017 (grub_term_register): Split in ...
42018 (grub_term_register_input): ... this, and ...
42019 (grub_term_register_output): ... this.
42020 (grub_term_unregister): Split in ...
42021 (grub_term_unregister_input): ... this, and ...
42022 (grub_term_unregister_output): ... this.
42023 (grub_term_iterate): Split in ...
42024 (grub_term_iterate_input): ... this, and ...
42025 (grub_term_iterate_output): ... this.
42027 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
42028 a check for input and one for output (and only attempt to get keys
42029 from user when input works).
42031 * util/grub-probe.c (grub_term_get_current): Split in ...
42032 (grub_term_get_current_input): ... this, and ...
42033 (grub_term_get_current_output): ... this.
42034 * util/grub-fstest.c: Likewise.
42035 * util/i386/pc/grub-setup.c: Likewise.
42036 * util/grub-editenv.c: Likewise.
42038 Portability adjustments:
42040 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
42041 `term/i386/pc/at_keyboard.c'.
42042 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
42043 grub_keyboard_controller_init() (now handled by terminal .init).
42044 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
42045 grub_at_keyboard_init().
42046 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
42047 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
42048 at_keyboard.mod via input terminal interface).
42049 * include/grub/i386/coreboot/console.h: Convert into a stub for
42050 `<grub/i386/pc/console.h>'.
42052 Migrate full terminals to new API:
42054 * term/efi/console.c (grub_console_term): Split into ...
42055 (grub_console_term_input): ... this, and ...
42056 (grub_console_term_output): ... this. Update all users.
42057 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
42058 (grub_ofconsole_init): Split into ...
42059 (grub_ofconsole_init_input): ... this, and ...
42060 (grub_ofconsole_init_output): ... this.
42061 (grub_ofconsole_term): Split into ...
42062 (grub_ofconsole_term_input): ... this, and ...
42063 (grub_ofconsole_term_output): ... this. Update all users.
42064 * term/i386/pc/serial.c (grub_serial_term): Split into ...
42065 (grub_serial_term_input): ... this, and ...
42066 (grub_serial_term_output): ... this. Update all users.
42067 * term/i386/pc/console.c (grub_console_term): Split into ...
42068 (grub_console_term_input): ... this, and ...
42069 (grub_console_term_output): ... this. Update all users.
42070 (grub_console_term_input): Only enable it on PC/BIOS platform.
42071 (grub_console_init): Remove grub_keyboard_controller_init() call.
42073 Migrate input terminals to new API:
42075 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
42076 `i386' and `i386/pc' to enable build on x86_64 (this driver is
42077 i386-specific anyway).
42078 (grub_console_checkkey): Rename to ...
42079 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
42081 (grub_keyboard_controller_orig): New variable.
42082 (grub_console_getkey): Rename to ...
42083 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
42085 (grub_keyboard_controller_init): Static-ize. Save original
42086 controller value so that it can be restored ...
42087 (grub_keyboard_controller_fini): ... here (new function).
42088 (grub_at_keyboard_term): New structure.
42089 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
42092 Migrate output terminals to new API:
42094 * term/i386/pc/vga.c (grub_vga_term): Change type to
42095 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42096 members. Update all users.
42097 * term/gfxterm.c (grub_video_term): Change type to
42098 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42099 members. Update all users.
42100 * include/grub/i386/pc/console.h (grub_console_checkkey)
42101 (grub_console_getkey): Do not export (no longer needed by gfxterm,
42104 Migrate `terminal' command and userland tools to new API:
42106 * commands/terminal.c (grub_cmd_terminal): Split into ...
42107 (grub_cmd_terminal_input): ... this, and ...
42108 (grub_cmd_terminal_output): ... this.
42109 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
42110 `terminal_input' and `terminal_output'.
42111 * util/grub.d/00_header.in: Adjust `terminal' calls to new
42112 `terminal_input' / `terminal_output' API.
42113 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
42114 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
42115 provided ${GRUB_TERMINAL}, convert it).
42117 2008-11-04 Robert Millan <rmh@aybabtu.com>
42119 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
42121 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
42123 2008-11-03 Bean <bean123ch@gmail.com>
42125 * kern/elf.c (grub_elf32_load): Revert to previous code.
42126 (grub_elf64_load): Likewise.
42128 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
42130 2008-11-01 Robert Millan <rmh@aybabtu.com>
42132 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
42133 (TARGET_CPPFLAGS): Likewise.
42134 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
42136 2008-11-01 Carles Pina i Estany <carles@pina.cat>
42138 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
42140 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42142 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
42143 addition of objects until the code is not going to be able to fail.
42145 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42147 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
42148 (add a missing NULL check, and correct them by moving the pointer
42149 operations after the actual check).
42151 2008-10-29 Robert Millan <rmh@aybabtu.com>
42153 * util/i386/pc/grub-install.in: Handle empty string as output from
42154 make_system_path_relative_to_its_root().
42156 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
42158 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
42159 circular metadata worst case scenario. If the metadata is circular
42160 then copy the wrap in place.
42161 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
42162 project lib/format_text/layout.h
42163 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
42165 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42167 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
42169 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42171 * util/update-grub_lib.in: Mention filename in warning message.
42173 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42175 * NEWS: Update for rename of update-grub to grub-mkconfig.
42177 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42179 * util/update-grub_lib.in: Copy to ...
42180 * util/grub-mkconfig_lib.in: ... this. Update all users.
42181 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
42182 * util/update-grub.in: Rename to ...
42183 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
42184 option. Add `--output' option to allow users to specify the generated
42185 configuration file. Default to stdout.
42186 (update_grub_dir): Rename to ...
42187 (grub_mkconfig_dir): ... this.
42188 (grub_cfg): Default to an empty string.
42189 * conf/common.rmk (update-grub): Rename to ...
42190 (grub-mkconfig): ... this.
42191 (update-grub_lib): Copy to ...
42192 (grub-mkconfig_lib): ... this.
42193 (update-grub_SCRIPTS): Copy to ...
42194 (grub-mkconfig_SCRIPTS): ... this. Update all users.
42195 (update-grub_DATA): Rename to ...
42196 (grub-mkconfig_DATA): ... this.
42198 2008-09-28 Robert Millan <rmh@aybabtu.com>
42200 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
42201 to `modified'. Add the real `created' field.
42202 (grub_iso9660_uuid): Use `modified' rather than `created' for
42203 constructing the UUID.
42205 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
42207 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
42208 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
42210 2008-09-28 Bean <bean123ch@gmail.com>
42212 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
42213 Thanks to Christian Franke for finding this bug.
42215 2008-09-25 Robert Millan <rmh@aybabtu.com>
42217 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
42218 instances of grub_util_get_disk_name() (see previous commit).
42220 2008-09-25 Robert Millan <rmh@aybabtu.com>
42222 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
42223 `util/i386/get_disk_name.c'.
42224 * conf/i386-efi.rmk: Likewise.
42225 * conf/x86_64-efi.rmk: Likewise.
42226 * conf/i386-coreboot.rmk: Likewise.
42227 * conf/i386-ieee1275.rmk: Likewise.
42228 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
42229 `util/ieee1275/get_disk_name.c'.
42230 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
42231 * util/ieee1275/get_disk_name.c: Remove file.
42232 * util/i386/get_disk_name.c: Remove file.
42233 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
42234 "hd%d" for device.map entries, rather than using
42235 grub_util_get_disk_name().
42237 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42239 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
42241 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
42243 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42245 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
42247 (GRUB_TERM_PPAGE): Changed to 0x4900.
42249 2008-09-24 Robert Millan <rmh@aybabtu.com>
42251 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
42252 macros (they were i386-pc specific).
42253 * include/grub/sparc64/ieee1275/console.h: Likewise.
42254 * include/grub/efi/console.h: Likewise.
42256 2008-09-22 Bean <bean123ch@gmail.com>
42258 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
42259 resident and in attribute list.
42261 * include/grub/ntfs.h (BMP_LEN): Removed.
42263 2008-09-22 Bean <bean123ch@gmail.com>
42265 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
42266 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
42268 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
42269 error occurs, as grub_disk_open will call grub_disk_close, which will
42270 call p->close (scsi).
42272 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42274 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
42275 (AC_PREREQ): Bumped to 2.59.
42276 (AC_TRY_COMPILE): Replace obsolete macro with ...
42277 (AC_COMPILE_IFELSE): ... this.
42278 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
42279 (AC_LINK_IFELSE): ... this.
42281 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42283 * autogen.sh: Add a call to `gendistlist.sh'.
42285 2008-09-19 Christian Franke <franke@computer.org>
42287 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
42288 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
42289 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
42290 Export __enable_execute_stack() to modules.
42291 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
42294 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42296 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
42299 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42301 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
42302 #include <grub/util/hostdisk.h>.
42304 2008-09-08 Robert Millan <rmh@aybabtu.com>
42306 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
42307 segments when their filesz is zero (grub_file_read() interprets
42308 zero-size as "read until EOF", which results in memory corruption).
42309 Use `lowest_segment' rather than 0 for calculating the current
42310 segment load address.
42312 2008-09-08 Robert Millan <rmh@aybabtu.com>
42314 * util/hostdisk.c (open_device): Replace a grub_util_info() call
42315 with grub_dprintf("hostdisk", ...), as it was so verbose that it
42316 clobbered useful information.
42318 2008-09-08 Robert Millan <rmh@aybabtu.com>
42320 * include/grub/util/biosdisk.h: Move to ...
42321 * include/grub/util/hostdisk.h: ... here. Update all users.
42322 * util/biosdisk.c: Move to ...
42323 * util/hostdisk.c: ... here. Update all users.
42325 2008-09-07 Robert Millan <rmh@aybabtu.com>
42327 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
42329 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
42330 and length can be stored directly in the `mbi->mmap_addr' and
42331 `mbi->mmap_length' struct fields.
42333 2008-09-07 Robert Millan <rmh@aybabtu.com>
42335 * conf/i386.rmk: New file. Provides declaration for building
42337 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
42338 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
42340 Include `conf/i386.mk'.
42341 * conf/i386-efi.rmk: Likewise.
42342 * conf/x86_64-efi.rmk: Likewise.
42343 * conf/i386-coreboot.rmk: Likewise.
42344 * conf/i386-ieee1275.rmk: Likewise.
42346 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
42348 Based on patch created by Colin D Bennett <colin@gibibit.com>.
42349 Adds optimization support for BGR based modes.
42351 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
42352 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42353 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42354 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42355 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42356 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42357 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42358 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42359 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42360 (grub_video_i386_vbeblit_index_index): Likewise.
42361 (grub_video_i386_vbeblit_replace_directN): Added.
42362 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42363 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42364 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42365 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42366 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42367 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42368 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42369 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42370 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42371 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42372 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42373 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42374 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42376 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
42377 (grub_video_i386_vbefill_R8G8B8): Likewise.
42378 (grub_video_i386_vbefill_index): Likewise.
42379 (grub_video_i386_vbefill_direct32): Added.
42380 (grub_video_i386_vbefill_direct24): Likewise.
42381 (grub_video_i386_vbefill_direct16): Likewise.
42382 (grub_video_i386_vbefill_direct8): Likewise.
42384 * include/grub/video.h (grub_video_blit_format): Removed
42385 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
42386 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
42387 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
42388 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
42389 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
42391 * video/video.c (grub_video_get_blit_format): Updated to use new
42392 blit formats. Added handling for 16 bit color modes.
42394 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
42396 (common_blitter): Updated to use new blitters.
42398 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
42400 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42401 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42402 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42403 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42404 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42405 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42406 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42407 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42408 (grub_video_i386_vbeblit_index_index): Likewise.
42409 (grub_video_i386_vbeblit_replace_directN): Added.
42410 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42411 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42412 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42413 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42414 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42415 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42416 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42417 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42418 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42419 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42420 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42421 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42422 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42424 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
42425 (grub_video_i386_vbefill_R8G8B8): Likewise.
42426 (grub_video_i386_vbefill_index): Likewise.
42427 (grub_video_i386_vbefill_direct32): Added.
42428 (grub_video_i386_vbefill_direct24): Likewise.
42429 (grub_video_i386_vbefill_direct16): Likewise.
42430 (grub_video_i386_vbefill_direct8): Likewise.
42432 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
42435 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
42438 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
42441 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
42444 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42446 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
42449 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42451 * fs/iso9660.c (grub_iso9660_date): New structure.
42452 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
42453 (grub_iso9660_uuid): New function.
42455 2008-09-05 Bean <bean123ch@gmail.com>
42457 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
42459 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
42460 insensitive bit for names in Win32 and Win32 & DOS namespace.
42462 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
42464 * include/grub/types.h (LONG_MAX): Likewise.
42466 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42468 * util/getroot.c: Include <config.h>.
42469 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
42470 add support for /dev/md/N devices and handle LVM double dash escaping.
42472 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42474 * config.guess: Update to latest version from config git.
42475 * config.sub: Likewise.
42477 2008-09-03 Robert Millan <rmh@aybabtu.com>
42479 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
42480 `disk->total_sectors'.
42482 2008-09-01 Colin D Bennett <colin@gibibit.com>
42484 * include/grub/normal.h: Fixed incorrect comment for
42485 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
42487 2008-09-01 Colin D Bennett <colin@gibibit.com>
42489 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
42490 values with defines.
42492 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
42493 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
42494 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
42495 (GRUB_VBE_MODEATTR_COLOR): Likewise.
42496 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
42497 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
42498 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
42499 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
42500 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
42501 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
42502 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
42503 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
42504 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
42505 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
42506 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
42507 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
42508 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
42509 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
42510 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
42512 2008-08-31 Robert Millan <rmh@aybabtu.com>
42514 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
42516 (grub_multiboot): Fix a few warnings.
42518 2008-08-31 Robert Millan <rmh@aybabtu.com>
42520 * loader/i386/pc/multiboot.c: Update comment not to say that
42521 boot_device support is unimplemented.
42523 2008-08-31 Robert Millan <rmh@aybabtu.com>
42525 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
42526 or memory map support are unimplemented.
42528 2008-08-31 Colin D Bennett <colin@gibibit.com>
42530 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
42532 2008-08-31 Colin D Bennett <colin@gibibit.com>
42534 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
42535 total video memory in 'vbeinfo' output; show color format details for
42538 2008-08-30 Pavel Roskin <proski@gnu.org>
42540 * util/genmoddep.c: Remove for real this time.
42541 * DISTLIST: Remove util/genmoddep.c.
42543 2008-08-30 Robert Millan <rmh@aybabtu.com>
42545 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
42546 as required by Multiboot spec (it was already 4-byte aligned, but
42549 2008-08-29 Pavel Roskin <proski@gnu.org>
42551 * kern/powerpc/ieee1275/crt0.S: Rename to ...
42552 * kern/powerpc/ieee1275/startup.S: ... this.
42553 * conf/powerpc-ieee1275.rmk: Adjust for the above.
42554 * DISTLIST: Likewise.
42556 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
42557 grub/cpu/kernel.h. Add start label for consistency with other
42558 platforms. Add grub_prefix immediately after start. Add jump
42559 to the code after grub_prefix.
42560 * include/grub/powerpc/kernel.h: Provide valid values for
42561 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
42563 2008-08-29 Bean <bean123ch@gmail.com>
42565 * configure.ac: Change host_os to cygwin for mingw.
42566 (asprintf): New check for function.
42568 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
42569 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
42571 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
42572 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
42573 sync, sleep and grub_util_get_disk_size for mingw.
42575 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
42576 to get size in mingw.
42577 (open_device): Use flag O_BINARY if it's defined.
42578 (find_root_device): Add dummy code for mingw.
42580 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
42581 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
42582 (get_scsi_disk_name): Return 0 for mingw.
42584 * util/hostfs.c: #include <grub/util/misc.h>.
42585 (grub_hostfs_open): Use "rb" flag to open file, use
42586 grub_util_get_disk_size to get disk size for mingw.
42588 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
42589 (asprintf): New function if HAVE_ASPRINTF is not set.
42590 (sync): New function for mingw.
42592 (grub_util_get_disk_size): Likewise.
42594 2008-08-28 Pavel Roskin <proski@gnu.org>
42596 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42599 2008-08-28 Robert Millan <rmh@aybabtu.com>
42601 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
42603 2008-08-28 Robert Millan <rmh@aybabtu.com>
42605 Change find_grub_drive() syntax so it doesn't prevent it from
42606 detecting NULL names as errors.
42608 * util/biosdisk.c (find_grub_drive): Move free slot search code
42610 (find_free_slot): ... to here.
42611 (read_device_map): Use find_free_slot() to search for free slots.
42613 2008-08-27 Marco Gerards <marco@gnu.org>
42615 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
42616 (scsi_mod_SOURCES): New variable.
42617 (scsi_mod_CFLAGS): Likewise
42618 (scsi_mod_LDFLAGS): Likewise.
42620 * disk/scsi.c: New file.
42622 * include/grub/scsi.h: Likewise.
42624 * include/grub/scsicmd.h: Likewise.
42626 * disk/ata.c: Include <grub/scsi.h>.
42627 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
42629 (grub_ata_iterate): Skip ATAPI devices.
42630 (grub_ata_open): Only handle ATAPI devices.
42631 (struct grub_atapi_read): Removed.
42632 (grub_atapi_readsector): Likewise.
42633 (grub_ata_read): No longer handle ATAPI devices.
42634 (grub_ata_write): Likewise.
42635 (grub_atapi_iterate): New function.
42636 (grub_atapi_read): Likewise.
42637 (grub_atapi_write): Likewise.
42638 (grub_atapi_open): Likewise.
42639 (grub_atapi_close): Likewise.
42640 (grub_atapi_dev): New variable.
42641 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
42642 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
42644 * include/grub/disk.h (enum grub_disk_dev_id): Add
42645 `GRUB_DISK_DEVICE_SCSI_ID'.
42647 2008-08-26 Robert Millan <rmh@aybabtu.com>
42649 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
42650 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
42653 2008-08-23 Bean <bean123ch@gmail.com>
42655 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
42656 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42657 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
42658 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
42660 (raid5rec_mod_SOURCES): New macro.
42661 (raid5rec_mod_CFLAGS): Likewise.
42662 (raid5rec_mod_LDFLAGS): Likewise.
42663 (raid6rec_mod_SOURCES): Likewise.
42664 (raid6rec_mod_CFLAGS): Likewise.
42665 (raid6rec_mod_LDFLAGS): Likewise.
42666 (mdraid_mod_SOURCES): Likewise.
42667 (mdraid_mod_CFLAGS): Likewise.
42668 (mdraid_mod_LDFLAGS): Likewise.
42669 (dm_nv_mod_SOURCES): Likewise.
42670 (dm_nv_mod_CFLAGS): Likewise.
42671 (dm_nv_mod_LDFLAGS): Likewise.
42673 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
42674 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42675 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42677 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
42678 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42680 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42682 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42684 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42686 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42688 * disk/raid5_recover.c: New file.
42690 * disk/raid6_recover.c: Likewise.
42692 * disk/mdraid_linux.c: Likewise.
42694 * disk/dmraid_nvidia.c: Likewise.
42696 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
42699 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
42700 calculate the size of raid device.
42701 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
42702 different layout of raid5.
42703 (grub_raid_scan_device): Remove code specific to mdraid.
42704 (grub_raid_list): New variable.
42705 (free_array): New function.
42706 (grub_raid_register): Likewise.
42707 (grub_raid_unregister): Likewise.
42708 (grub_raid_rescan): Likewise.
42709 (GRUB_MOD_INIT): Don't iterate device here.
42710 (GRUB_MOD_FINI): Use free_array to release resource.
42712 * include/grub/raid.h: Remove macro and structure specific to mdraid.
42713 (grub_raid5_recover_func_t): New function variable type.
42714 (grub_raid6_recover_func_t): Likewise.
42715 (grub_raid5_recover_func): New variable.
42716 (grub_raid6_recover_func): Likewise.
42717 (grub_raid_register): New function.
42718 (grub_raid_unregister): Likewise.
42719 (grub_raid_rescan): Likewise.
42720 (grub_raid_block_xor): Likewise.
42722 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
42723 (CMD_CRC): New macro.
42725 (read_file): Handle device as well as file.
42726 (cmd_crc): New function.
42727 (fstest): Handle multiple disks.
42728 (options): Remove part, raw and long, add root and diskcount.
42729 (usage): Add crc, remove -p, -r, -l, add -r and -c.
42730 (main): Find the first non option entry and ignore subsequent options,
42731 add handling for the new options, support multiple disks.
42733 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
42735 2008-08-23 Bean <bean123ch@gmail.com>
42737 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
42739 * genfslist.sh: Ignore kernel.mod.
42741 * genpartmaplist.sh: Likewise.
42743 2008-08-23 Robert Millan <rmh@aybabtu.com>
42745 * util/getroot.c (find_root_device): Skip anything that starts with
42746 a dot, not just directories. This avoids things like /dev/.tmp.md0.
42748 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
42750 * util/update-grub.in (GRUB_GFXMODE): Export variable.
42751 * util/grub.d/00_header.in: Allow the administrator to change default
42752 gfxmode via ${GRUB_GFXMODE}.
42754 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
42756 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
42758 2008-08-21 Robert Millan <rmh@aybabtu.com>
42760 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
42762 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
42763 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
42765 2008-08-20 Carles Pina i Estany <carles@pina.cat>
42767 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
42768 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
42770 2008-08-19 Robert Millan <rmh@aybabtu.com>
42772 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
42773 (struct grub_virtual_screen): Remove `cursor_color'.
42774 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
42776 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
42778 2008-08-18 Robert Millan <rmh@aybabtu.com>
42780 Unify (identical) linux_normal.c files.
42781 * loader/i386/efi/linux_normal.c: Move from here ...
42782 * loader/linux_normal.c: ... to here. Update all users.
42783 * loader/i386/pc/linux_normal.c: Delete. Update all users.
42784 * loader/i386/ieee1275/linux_normal.c: Likewise.
42786 2008-08-18 Robert Millan <rmh@aybabtu.com>
42788 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
42789 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
42790 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
42791 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
42792 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
42794 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
42795 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
42796 (GRUB_LINUX_CL_END_OFFSET): ... to here.
42797 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
42798 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
42799 (GRUB_EFI_CL_END_OFFSET): Rename to ...
42800 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
42801 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
42802 Initialize `params->video_cursor_x' and `params->video_cursor_y'
42803 portably using grub_getxy().
42804 Replace `-EFI' with `-bzImage' in boot message.
42806 2008-08-17 Robert Millan <rmh@aybabtu.com>
42808 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42810 2008-08-17 Robert Millan <rmh@aybabtu.com>
42812 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42814 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42815 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42816 (grub_machine_mmap_iterate): New function declaration.
42817 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42819 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42822 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42823 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42824 Move e820 parsing from here ...
42825 * kern/i386/pc/mmap.c: New file.
42826 (grub_machine_mmap_iterate): ... to here.
42828 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42829 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42830 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42831 (grub_available_iterate): Redeclare to return `void', and redeclare
42832 its hook to use grub_uint64_t as addr and size parameters, and rename
42834 (grub_machine_mmap_iterate): ... this. Update all users.
42836 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42837 to make it more readable. Rename to ...
42838 (grub_machine_mmap_iterate): ... this.
42840 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42841 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42842 (grub_multiboot): Allocate an extra region after the payload, and fill
42843 it with a Multiboot memory map. Adjust a.out loader to calculate size
42844 with the extra space.
42845 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42846 with the extra space.
42848 2008-08-17 Carles Pina i Estany <carles@pina.cat>
42850 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
42852 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
42854 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42855 mdate-sh to the list `find' searches for.
42856 * DISTLIST: Regenerated.
42858 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
42860 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42861 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
42862 genmoddep.awk, gensymlist.sh.in.
42863 (DISTDIRS): Add bus, docs, hook, lib.
42864 * DISTLIST: Regenerated.
42865 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
42867 2008-08-16 Robert Millan <rmh@aybabtu.com>
42869 * disk/raid.c (grub_raid_init): Handle/report errors set by
42870 grub_device_iterate().
42871 * disk/lvm.c (grub_lvm_init): Likewise.
42873 2008-08-15 Bean <bean123ch@gmail.com>
42875 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42877 (datetime_mod_SOURCES): New macro.
42878 (datetime_mod_CFLAGS): Likewise.
42879 (datetime_mod_LDFLAGS): Likewise.
42880 (date_mod_SOURCES): Likewise.
42881 (date_mod_CFLAGS): Likewise.
42882 (date_mod_LDFLAGS): Likewise.
42883 (datehook_mod_SOURCES): Likewise.
42884 (datehook_mod_CFLAGS): Likewise.
42885 (datehook_mod_LDFLAGS): Likewise.
42887 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42889 (datetime_mod_SOURCES): New macro.
42890 (datetime_mod_CFLAGS): Likewise.
42891 (datetime_mod_LDFLAGS): Likewise.
42892 (date_mod_SOURCES): Likewise.
42893 (date_mod_CFLAGS): Likewise.
42894 (date_mod_LDFLAGS): Likewise.
42895 (datehook_mod_SOURCES): Likewise.
42896 (datehook_mod_CFLAGS): Likewise.
42897 (datehook_mod_LDFLAGS): Likewise.
42899 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42901 (datetime_mod_SOURCES): New macro.
42902 (datetime_mod_CFLAGS): Likewise.
42903 (datetime_mod_LDFLAGS): Likewise.
42904 (date_mod_SOURCES): Likewise.
42905 (date_mod_CFLAGS): Likewise.
42906 (date_mod_LDFLAGS): Likewise.
42907 (datehook_mod_SOURCES): Likewise.
42908 (datehook_mod_CFLAGS): Likewise.
42909 (datehook_mod_LDFLAGS): Likewise.
42911 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42913 (datetime_mod_SOURCES): New macro.
42914 (datetime_mod_CFLAGS): Likewise.
42915 (datetime_mod_LDFLAGS): Likewise.
42916 (date_mod_SOURCES): Likewise.
42917 (date_mod_CFLAGS): Likewise.
42918 (date_mod_LDFLAGS): Likewise.
42919 (datehook_mod_SOURCES): Likewise.
42920 (datehook_mod_CFLAGS): Likewise.
42921 (datehook_mod_LDFLAGS): Likewise.
42923 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42925 (datetime_mod_SOURCES): New macro.
42926 (datetime_mod_CFLAGS): Likewise.
42927 (datetime_mod_LDFLAGS): Likewise.
42928 (date_mod_SOURCES): Likewise.
42929 (date_mod_CFLAGS): Likewise.
42930 (date_mod_LDFLAGS): Likewise.
42931 (datehook_mod_SOURCES): Likewise.
42932 (datehook_mod_CFLAGS): Likewise.
42933 (datehook_mod_LDFLAGS): Likewise.
42935 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
42937 * commands/date.c: New file.
42939 * hook/datehook.c: Likewise.
42941 * include/grub/lib/datetime.h: Likewise.
42943 * include/grub/i386/cmos.h: Likewise.
42945 * lib/datetime.c: Likewise.
42947 * lib/i386/datetime.c: Likewise.
42949 * lib/efi/datetime.c: Likewise.
42951 2008-08-14 Robert Millan <rmh@aybabtu.com>
42953 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
42954 (grub_mkelfimage_SOURCES): New variable.
42955 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
42957 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
42958 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
42959 * conf/powerpc-ieee1275.rmk: Likewise.
42960 * conf/i386-ieee1275.rmk: Likewise.
42962 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
42963 * kern/i386/coreboot/init.c: Likewise.
42965 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
42966 with `<grub/cpu/kernel.h>'.
42967 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
42969 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
42970 * kern/i386/coreboot/startup.S: Likewise.
42972 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
42973 (GRUB_MOD_GAP): Remove.
42974 * include/grub/powerpc/kernel.h: New file.
42975 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
42976 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42977 * include/grub/i386/kernel.h: New file.
42978 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
42979 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
42980 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42982 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
42984 Use --directory when invoking grub_mkimage.
42986 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
42987 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
42988 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
42989 and GRUB_KERNEL_CPU_PREFIX.
42991 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
42993 * include/grub/err.h (grub_err_printf): New function prototype.
42994 * util/misc.c (grub_err_printf): New function.
42995 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
42997 * kern/err.c (grub_print_error): Use grub_err_printf.
42999 2008-08-13 Robert Millan <rmh@aybabtu.com>
43001 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
43003 2008-08-13 Robert Millan <rmh@aybabtu.com>
43005 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
43008 2008-08-12 Robert Millan <rmh@aybabtu.com>
43010 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
43011 of the relocation code from here ...
43012 (grub_multiboot): ... to here.
43013 (forward_relocator, backward_relocator): Move from here ...
43014 * kern/i386/loader.S (grub_multiboot_forward_relocator)
43015 (grub_multiboot_backward_relocator): ... to here.
43016 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
43017 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
43018 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
43019 (grub_multiboot_forward_relocator_end)
43020 (grub_multiboot_backward_relocator)
43021 (grub_multiboot_backward_relocator_end): New variables.
43023 2008-08-12 Bean <bean123ch@gmail.com>
43025 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
43027 2008-08-11 Robert Millan <rmh@aybabtu.com>
43029 * kern/i386/linuxbios/startup.S: Move from here ...
43030 * kern/i386/coreboot/startup.S: ... to here.
43032 * kern/i386/linuxbios/init.c: Move from here ...
43033 * kern/i386/coreboot/init.c: ... to here.
43035 * kern/i386/linuxbios/table.c: Move from here ...
43036 * kern/i386/coreboot/mmap.c: ... to here.
43038 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
43040 2008-08-11 Robert Millan <rmh@aybabtu.com>
43042 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
43043 errors. Leave it to the upper layer to handle them.
43045 2008-08-09 Christian Franke <franke@computer.org>
43047 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
43048 * conf/common.rmk: Install `grub-pe2elf' only if requested.
43049 Install `grub.d/10_windows' only on Cygwin.
43050 * configure.ac: Add subst of `target_os'.
43051 Check `target_os' also before setting TARGET_OBJ2ELF.
43052 Add `--enable-grub-pe2elf'.
43054 2008-08-08 Robert Millan <rmh@aybabtu.com>
43056 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
43057 (grub_last_time): Change type to grub_uint64_t.
43058 (grub_disk_open): Migrate code from to using grub_get_time_ms().
43059 (grub_disk_close): Likewise.
43061 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
43062 (run_menu): Migrate code from to using grub_get_time_ms().
43064 * util/misc.c (grub_get_time_ms): New function.
43066 2008-08-08 Marco Gerards <marco@gnu.org>
43068 * disk/ata.c (grub_ata_regget): Change return type to
43070 (grub_ata_regget2): Likewise.
43071 (grub_ata_wait_status): New function.
43072 (grub_ata_wait_busy): Removed function, updated all users to use
43073 `grub_ata_wait_status'.
43074 (grub_ata_wait_drq): Likewise.
43075 (grub_ata_cmd): New function.
43076 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
43078 (grub_ata_pio_write): Add error handling.
43079 (grub_atapi_identify): Likewise.
43080 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
43082 (grub_ata_identify): Use `grub_ata_cmd' and improve error
43083 handling. Actually use the detected registers. Reorder the
43084 detection logic such that it is easier to read.
43085 (grub_ata_pciinit): Do not assign the same ID to each controller.
43086 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
43088 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
43090 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
43092 2008-08-08 Marco Gerards <marco@gnu.org>
43096 2008-08-07 Bean <bean123ch@gmail.com>
43098 * include/grub/x86_64/pci.h: New file.
43100 2008-08-07 Christian Franke <franke@computer.org>
43102 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
43103 (TIMER2_GATE): Likewise.
43104 (grub_pit_wait): Add enable/disable of the timer2 gate
43105 bit of port 0x61. This fixes a possible infinite loop.
43107 2008-08-07 Bean <bean123ch@gmail.com>
43109 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
43110 kern/i386/tsc.c and kern/i386/pit.c.
43112 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
43115 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
43118 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
43120 2008-08-07 Bean <bean123ch@gmail.com>
43122 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
43124 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
43126 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
43127 multiple inclusion. Add #include <grub/types.h>.
43129 2008-08-06 Christian Franke <franke@computer.org>
43131 * conf/common.rmk: Build and install `10_windows'.
43132 * util/grub.d/10_windows.in: New script.
43134 2008-08-06 Pavel Roskin <proski@gnu.org>
43136 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
43138 2008-08-06 Robert Millan <rmh@aybabtu.com>
43140 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
43141 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
43143 2008-08-06 Bean <bean123ch@gmail.com>
43145 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
43146 (grub_pxefs_fs_int): Remove dummy definition.
43147 (grub_pxefs_open): Use data->block_size to store the current block
43149 (grub_pxefs_read): Use block size stored in data->block_size. As the
43150 value of grub_pxe_blksize can be changed after the file is opened.
43152 2008-08-06 Bean <bean123ch@gmail.com>
43154 * fs/i386/pc/pxe.c (curr_file): new variable.
43155 (grub_pxefs_open): Simply the handling of pxe file system. Don't
43156 require the dummy internal file system anymore.
43157 (grub_pxefs_read): Removed.
43158 (grub_pxefs_close): Likewise.
43159 (grub_pxefs_fs_int): Likewise.
43160 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
43161 connection when we switch file.
43162 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
43164 2008-08-06 Robert Millan <rmh@aybabtu.com>
43166 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
43168 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
43169 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
43171 * kern/i386/halt.c: New file.
43172 * kern/i386/reboot.c: Likewise.
43173 * include/grub/i386/reboot.h: Likewise.
43174 * include/grub/i386/halt.h: Likewise.
43176 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
43177 Include `<grub/cpu/halt.h>'.
43178 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
43179 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
43181 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
43182 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
43183 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
43184 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
43185 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
43186 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
43188 * include/grub/i386/at_keyboard.h: ... to here.
43190 2008-08-05 Robert Millan <rmh@aybabtu.com>
43192 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
43193 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
43194 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
43195 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43196 `kern/generic/millisleep.c'.
43198 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
43199 instead of grub_get_rtc().
43200 (grub_tsc_init): Initialize `tsc_boot_time'.
43202 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
43203 (grub_machine_init): Use grub_tsc_init() rather than
43204 installing an RTC-based handler via grub_install_get_time_ms().
43206 * kern/i386/pit.c: New file.
43207 * include/grub/i386/pit.h: Likewise.
43209 2008-08-05 Bean <bean123ch@gmail.com>
43211 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
43213 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
43214 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
43215 (pxe_mod_SOURCES): New macro.
43216 (pxe_mod_CFLAGS): Likewise.
43217 (pxe_mod_LDFLAGS): Likewise.
43218 (pxecmd_mod_SOURCES): Likewise.
43219 (pxecmd_mod_CFLAGS): Likewise.
43220 (pxecmd_mod_LDFLAGS): Likewise.
43222 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
43223 (grub_pxe_call): Likewise.
43225 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
43227 * commands/i386/pc/pxecmd.c: New file.
43229 * fs/i386/pc/pxe.c: Likewise.
43231 * include/grub/i386/pc/pxe.h: Likewise.
43233 2008-08-05 Bean <bean123ch@gmail.com>
43235 * util/console.c (grub_console_cur_color): New variable.
43236 (grub_console_standard_color): Likewise.
43237 (grub_console_normal_color): Likewise.
43238 (grub_console_highlight_color): Likewise.
43239 (color_map): Likewise.
43240 (use_color): Likewise.
43241 (NUM_COLORS): New macro.
43242 (grub_ncurses_setcolorstate): Handle color properly.
43243 (grub_ncurses_setcolor): Don't change color here, just remember the
43244 settings, color will be set in grub_ncurses_setcolorstate.
43245 (grub_ncurses_getcolor): New function.
43246 (grub_ncurses_init): Initialize color pairs.
43247 (grub_ncurses_term): New member grub_ncurses_getcolor.
43249 2008-08-05 Colin D Bennett <colin@gibibit.com>
43251 High resolution timer support. Implemented for x86 CPUs using TSC.
43252 Extracted generic grub_millisleep() so it's linked in only as needed.
43253 This requires a Pentium compatible CPU; if the RDTSC instruction is
43254 not supported, then it falls back on the generic grub_get_time_ms()
43255 implementation that uses the machine's RTC.
43257 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
43258 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43259 `kern/generic/millisleep.c'.
43261 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
43262 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
43264 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
43265 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
43267 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43269 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
43270 `kern/generic/millisleep.c'.
43272 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43274 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
43276 * kern/generic/rtc_get_time_ms.c: New file.
43278 * kern/generic/millisleep.c: New file.
43280 * kern/misc.c: Don't include
43281 <kern/time.h> anymore.
43282 (grub_millisleep_generic): Removed.
43284 * commands/sleep.c (grub_interruptible_millisleep): Uses
43285 grub_get_time_ms() instead of grub_get_rtc().
43287 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
43289 (grub_cpu_is_cpuid_supported): New inline function.
43290 (grub_cpu_is_tsc_supported): New inline function.
43291 (grub_tsc_init): New function prototype.
43292 (grub_tsc_get_time_ms): New function prototype.
43294 * kern/i386/tsc.c (grub_get_time_ms): New file.
43296 * include/grub/time.h: Include <grub/types.h.
43297 (grub_millisleep_generic): Removed.
43298 (grub_get_time_ms): New prototype.
43299 (grub_install_get_time_ms): New prototype.
43300 (grub_rtc_get_time_ms): New prototype.
43302 * kern/time.c (grub_get_time_ms): New function.
43303 (grub_install_get_time_ms): New function.
43305 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
43306 <grub/time.h> anymore.
43307 (grub_millisleep): Removed.
43308 (grub_machine_init): Call grub_tsc_init.
43310 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
43311 get_time_ms() implementation.
43313 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
43314 (ieee1275_get_time_ms): New function.
43315 (grub_machine_init): Install get_time_ms() implementation.
43317 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
43318 (grub_machine_init): Call grub_tsc_init().
43319 (grub_millisleep): Removed.
43321 * kern/ieee1275/init.c (grub_millisleep): Removed.
43322 (grub_machine_init): Install ieee1275_get_time_ms()
43324 (ieee1275_get_time_ms): New function.
43325 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
43328 2008-08-05 Marco Gerards <marco@gnu.org>
43330 * disk/ata.c: Include <grub/pci.h>.
43331 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
43332 (grub_ata_initialize): Rewritten.
43333 (grub_ata_device_initialize): New function.
43335 2008-08-04 Pavel Roskin <proski@gnu.org>
43337 * kern/main.c: Include grub/mm.h.
43339 2008-08-04 Robert Millan <rmh@aybabtu.com>
43341 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
43342 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
43343 corruption problem).
43345 2008-08-04 Robert Millan <rmh@aybabtu.com>
43347 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
43348 warnings introduced in my last commit.
43350 2008-08-03 Robert Millan <rmh@aybabtu.com>
43352 Make PCI available on all i386 architectures.
43354 * include/grub/i386/pc/pci.h: Move from here ...
43355 * include/grub/i386/pci.h: ... to here.
43357 * include/grub/i386/pc/pci.h: Remove.
43358 * include/grub/i386/efi/pci.h: Remove.
43359 * include/grub/x86_64/efi/pci.h: Remove.
43361 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
43362 `<grub/cpu/pci.h>'.
43364 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
43365 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
43366 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
43368 * conf/i386-ieee1275.rmk: Likewise.
43370 2008-08-03 Robert Millan <rmh@aybabtu.com>
43372 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
43373 (grub_console_setcursor): Make it possible to set cursor off.
43375 2008-08-03 Robert Millan <rmh@aybabtu.com>
43377 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
43378 of modules instead of assuming which platform provides what.
43379 * util/update-grub.in: Likewise.
43381 2008-08-03 Robert Millan <rmh@aybabtu.com>
43383 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
43384 instead of `grub_install_dos_part' to determine whether a drive needs
43385 to be prepended to prefix (`grub_install_dos_part' is not reliable,
43386 because it can be overridden when loading GRUB via Multiboot).
43388 2008-08-02 Robert Millan <rmh@aybabtu.com>
43390 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
43392 2008-08-02 Robert Millan <rmh@aybabtu.com>
43394 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
43395 of informational grub_dprintf() calls.
43397 2008-08-02 Robert Millan <rmh@aybabtu.com>
43399 * disk/memdisk.c (memdisk_size): Don't initialize.
43400 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
43402 * include/grub/i386/pc/kernel.h
43403 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
43404 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
43405 (grub_memdisk_image_size, grub_arch_memdisk_addr)
43406 (grub_arch_memdisk_size): Remove.
43408 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
43409 field (was only used to transfer a constant). Add `type' field to
43410 support multiple module types.
43411 (grub_module_iterate): New function.
43413 * kern/device.c (grub_device_open): Do not hide error messages
43414 when grub_disk_open() fails. Use grub_print_error() instead.
43416 * kern/i386/pc/init.c (grub_arch_modules_addr)
43417 (grub_arch_memdisk_size): Remove functions.
43418 (grub_arch_modules_addr): Return the module address in high memory
43419 (now that it isn't copied anymore).
43421 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
43422 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
43423 decompression routine (grub_total_module_size already includes that
43424 now). Don't copy modules back to low memory.
43426 * kern/main.c: Include `<grub/mm.h>'.
43427 (grub_load_modules): Split out (and use) ...
43428 (grub_module_iterate): ... this function, which iterates through
43429 module objects and runs a hook.
43430 Comment out grub_mm_init_region() call, as it would cause non-ELF
43431 modules to be overwritten.
43433 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
43434 the memdisk image in its own region, make it part of the module list.
43435 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
43436 (main): Parse --memdisk|-m option, and pass user-provided path as
43437 parameter to generate_image().
43438 (add_segments): Pass `memdisk_path' down to load_modules().
43439 (load_modules): Embed memdisk image in module section when requested.
43440 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
43441 `header.type' instead of `header.offset'.
43443 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
43444 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
43445 (memdisk_mod_LDFLAGS): New variables.
43446 * conf/i386-coreboot.rmk: Likewise.
43447 * conf/i386-ieee1275.rmk: Likewise.
43449 2008-08-02 Robert Millan <rmh@aybabtu.com>
43451 * loader/i386/pc/multiboot.c (playground, forward_relocator)
43452 (backward_relocator): New variables. Used to allocate and relocate
43453 the payload, respectively.
43454 (grub_multiboot_load_elf32): Load into heap instead of requested
43455 address, install the appropriate relocator code in each bound of
43456 the payload, and set the entry point such that
43457 grub_multiboot_real_boot() will jump to one of them.
43459 * kern/i386/loader.S (grub_multiboot_payload_size)
43460 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43461 (grub_multiboot_payload_entry_offset): New variables.
43462 (grub_multiboot_real_boot): Set cpu context to what the relocator
43463 expects, and jump to the relocator instead of the payload.
43465 * include/grub/i386/loader.h (grub_multiboot_payload_size)
43466 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43467 (grub_multiboot_payload_entry_offset): Export.
43469 2008-08-01 Bean <bean123ch@gmail.com>
43471 * normal/menu_entry.c (editor_getline): Don't return the original
43472 string as result, as it will be released by lexer once it has done
43475 2008-08-01 Robert Millan <rmh@aybabtu.com>
43477 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
43478 within menuentries, not before them.
43479 util/grub.d/10_hurd.in: Likewise.
43481 2008-08-01 Bean <bean123ch@gmail.com>
43483 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
43484 (bufio_mod_SOURCES): New macro.
43485 (bufio_mod_CFLAGS): Likewise.
43486 (bufio_mod_LDFLAGS): Likewise.
43488 * include/grub/bufio.h: New file.
43490 * io/bufio.c: Likewise.
43492 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
43493 (grub_video_reader_png): Use grub_buffile_open to open file.
43495 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
43496 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
43498 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
43499 (grub_video_reader_tga): Use grub_buffile_open to open file.
43501 * font/manager.c: Include <grub/bufio.h>.
43502 (add_font): Use grub_buffile_open to open file.
43504 2008-07-31 Robert Millan <rmh@aybabtu.com>
43506 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
43507 ELF segments, use a macro for arbitrarily accessing any of them instead
43508 of preparing a pointer that allows access to one at a time.
43509 (grub_multiboot_load_elf64): Likewise.
43511 2008-07-31 Bean <bean123ch@gmail.com>
43513 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
43514 GRUB_KERNEL_MACHINE_DATA_END.
43516 2008-07-30 Robert Millan <rmh@aybabtu.com>
43518 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
43519 Increase from 0x50 to 0x60.
43520 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
43521 use UUIDs to identify the root drive for them. If that's not
43523 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
43524 check, for cross-disk installs.
43526 2008-07-30 Robert Millan <rmh@aybabtu.com>
43528 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
43529 is non-empty, use it to set the `prefix' environment variable instead
43530 of the usual approach.
43531 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
43532 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
43533 environment variable instead of dummy make_install_device().
43535 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
43536 (start): Insert a data section, with `grub_prefix' variable.
43537 * kern/i386/linuxbios/startup.S: Likewise.
43539 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
43540 New variable reference.
43541 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
43542 New macro. Defines offset of `grub_prefix' within startup.S (relative
43544 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
43545 section within startup.S (relative to `start').
43546 * include/grub/i386/coreboot/kernel.h: Likewise.
43548 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
43549 Overwrite grub_prefix with its contents, at the beginning of the
43551 (main): Understand -p|--prefix.
43553 2008-07-30 Robert Millan <rmh@aybabtu.com>
43555 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
43557 2008-07-30 Robert Millan <rmh@aybabtu.com>
43559 * term/i386/pc/vga_text.c (grub_console_cls): Use
43560 grub_console_gotoxy() to go back to beginning of the screen.
43561 Found by Patrick Georgi <patrick.georgi@coresystems.de>
43563 2008-07-29 Christian Franke <franke@computer.org>
43565 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43566 Add conversion of emulated mount points on Cygwin.
43568 2008-07-29 Christian Franke <franke@computer.org>
43570 * util/update-grub.in: Add a check for admin
43572 Remove old `grub.cfg.new' before creation.
43573 Add `-f' to `mv' to handle the different filesystem
43574 semantics of Windows.
43576 2008-07-29 Bean <bean123ch@gmail.com>
43578 * normal/main.c (get_line): Fix buffer overflow bug.
43580 2008-07-28 Robert Millan <rmh@aybabtu.com>
43582 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
43583 (struct grub_apple_header): New struct. Describes the layout of
43584 the partmap header.
43585 (apple_partition_map_iterate): Check the header magic as well as the
43586 partition magic (which was already being checked).
43588 2008-07-28 Pavel Roskin <proski@gnu.org>
43590 * genmk.rb: Add a warning to the beginning of the output that
43591 it's a generated file and should not be edited.
43593 2008-07-28 Robert Millan <rmh@aybabtu.com>
43595 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
43596 with the same number are found, just use issue a warning with
43597 grub_dprintf(), as this error has been reported to be non-fatal.
43599 2008-07-27 Robert Millan <rmh@aybabtu.com>
43601 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
43604 2008-07-27 Bean <bean123ch@gmail.com>
43606 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
43607 (grub_fat_find_dir): Ignore case when comparing filename.
43609 2008-07-27 Bean <bean123ch@gmail.com>
43611 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
43612 smallino, as it's more descriptive, and i8count can be confused with
43613 the other field count.
43614 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
43617 2008-07-27 Bean <bean123ch@gmail.com>
43619 * commands/crc.c: New file.
43621 * lib/crc.c: Likewise.
43623 * include/grub/lib/crc.h: Likewise.
43625 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
43627 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
43628 (hexdump): Move this function to ...
43630 * lib/hexdump.c: ... here.
43632 * include/grub/hexdump.h: Renamed to ...
43634 * include/grub/lib/hexdump.h: ... this.
43636 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
43638 * util/grub-editenv.c: Likewise.
43640 * include/envblk.h: Renamed to ...
43642 * include/lib/envblk.h: ... this.
43644 * util/envblk.c: Renamed to ...
43646 * lib/envblk.c: ... this.
43648 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
43650 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
43651 (pkglib_MODULES): Add crc.mod.
43652 (hexdump_mod_SOURCES): Add lib/hexdump.c.
43653 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
43654 (crc_mod_SOURCES): New macro.
43655 (crc_mod_CFLAGS): Likewise.
43656 (crc_mod_LDFLAGS): Likewise.
43658 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
43660 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43662 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43664 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43666 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
43668 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
43670 * commands/help.c: Include <grub/term.h>.
43671 (TERM_WIDTH): Removed. Updated all users.
43673 2008-07-27 Pavel Roskin <proski@gnu.org>
43675 * util/getroot.c (find_root_device): Rephrase a comment to avoid
43676 spurious warnings about a comment within a comment.
43678 2008-07-25 Robert Millan <rmh@aybabtu.com>
43680 * util/getroot.c (find_root_device): Skip devices that match
43681 /dev/dm-[0-9]. This lets the real device be found for any type of
43682 abstraction (LVM, EVMS, RAID..).
43683 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
43684 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
43685 device is found first, find_root_device() will now skip it.
43687 2008-07-24 Pavel Roskin <proski@gnu.org>
43689 * include/grub/types.h: Use __builtin_bswap32() and
43690 __builtin_bswap64() with gcc 4.3 and newer.
43692 2008-07-24 Christian Franke <franke@computer.org>
43694 * util/i386/pc/grub-install.in: If `--debug' is specified,
43695 pass `--verbose' to grub-setup.
43696 Abort script if make_system_path_relative_to_its_root() fails.
43698 2008-07-24 Bean <bean123ch@gmail.com>
43700 * configure.ac: Fixed a bug caused by the previous cygwin patch,
43701 variable `target_platform' should be `platform'.
43703 2008-07-24 Bean <bean123ch@gmail.com>
43705 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
43706 (grub_png_init_fixed_block): New function.
43707 (grub_png_decode_image_data): Handle fixed huffman code compression.
43709 2008-07-24 Bean <bean123ch@gmail.com>
43711 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
43712 (grub_pe2elf_SOURCES): New macro.
43713 (CLEANFILES): Add grub-pe2elf.
43715 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
43716 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
43717 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
43718 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
43719 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
43720 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
43721 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
43722 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
43723 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
43724 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
43725 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
43726 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
43727 (GRUB_PE32_DT_FUNCTION): Likewise.
43728 (GRUB_PE32_REL_I386_DIR32): Likewise.
43729 (GRUB_PE32_REL_I386_REL32): Likewise.
43730 (grub_pe32_symbol): New structure.
43731 (grub_pe32_reloc): Likewise.
43733 * util/grub-pe2elf.c: New file.
43735 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
43736 start symbol in non pc platform.
43738 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
43740 The following patches are from Christian Franke.
43742 * include/grub/dl.h: Remove .previous, gas supports this only
43745 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
43746 Remove .type, gas supports this only for ELF format.
43748 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
43749 nullbytes in symbol table. This fixes an infinite loop if table is
43752 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
43753 TARGET_IMG_LDFLAGS and EXEEXT.
43755 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
43756 TARGET_IMG_LDFLAGS_AC.
43757 (grub_CHECK_STACK_ARG_PROBE): New function.
43759 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
43761 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
43763 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
43764 to set TARGET_IMG_LD* accordingly.
43765 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
43766 Add call to grub_CHECK_STACK_ARG_PROBE.
43767 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
43769 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
43771 * genmk.rb: Add EXEEXT to CLEANFILES.
43773 2008-07-23 Robert Millan <rmh@aybabtu.com>
43775 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
43776 define the codes for arrows and lines used for the menu).
43777 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
43780 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
43781 fonts, because the latter are too slow.
43783 2008-07-21 Bean <bean123ch@gmail.com>
43785 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
43786 a20. Run keyboard test last, as it will cause macbook to halt.
43788 2008-07-18 Pavel Roskin <proski@gnu.org>
43790 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
43791 load foreign architecture modules correctly anyway. Keep
43792 support for loading host architecture modules, whether we
43793 compile them or not.
43795 2008-07-17 Pavel Roskin <proski@gnu.org>
43797 * configure.ac: Use -m32 or -m64 regardless of whether we had to
43798 change target_cpu. The compiler default can mismatch target_cpu
43801 * disk/efi/efidisk.c: Fix format warnings on x86_64.
43802 * kern/efi/efi.c: Likewise.
43804 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43805 target compiler is functional.
43806 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43809 * configure.ac: Default to efi platform for x86_64-apple. Allow
43810 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43811 adjustments from the rest, only do them if target is not
43812 explicitly given. Merge other adjustments with the final sanity
43813 check. Remove an extraneous check for supported CPU. Be
43814 specific which CPU and which platform is not supported.
43816 * configure.ac: Default to pc platform for x86_64.
43818 2008-07-17 Robert Millan <rmh@aybabtu.com>
43820 Partial LinuxBIOS -> Coreboot rename.
43822 * conf/i386-linuxbios.rmk: Renamed to ...
43823 * conf/i386-coreboot.rmk: ... this.
43824 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43825 * configure.ac: Accept "coreboot" as input platform (but maintain
43826 compatibility with "linuxbios").
43827 * include/grub/i386/linuxbios: Renamed to ...
43828 * include/grub/i386/coreboot: ... this.
43830 2008-07-17 Bean <bean123ch@gmail.com>
43832 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
43833 (appleldr_mod_SOURCE): New variable.
43834 (appleldr_mod_CFLAGS): Likewise.
43835 (appleldr_mod_LDFLAGS): Likewise.
43836 (pci_mod_SOURCES): Likewise.
43837 (pci_mod_CFLAGS): Likewise.
43838 (pci_mod_LDFLAGS): Likewise.
43839 (lspci_mod_SOURCES): Likewise.
43840 (lspci_mod_CFLAGS): Likewise.
43841 (lspci_mod_LDFLAGS): Likewise.
43843 * conf/x86_64-efi.rmk: New file.
43845 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43847 (grub_efidisk_write): Likewise.
43849 * include/efi/api.h (efi_call_0): New macro.
43850 (efi_call_1): Likewise.
43851 (efi_call_2): Likewise.
43852 (efi_call_3): Likewise.
43853 (efi_call_4): Likewise.
43854 (efi_call_5): Likewise.
43855 (efi_call_6): Likewise.
43857 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43858 grub_rescue_cmd_chainloader.
43860 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43861 (grub_pe32_optional_header): Change some fields based on i386 or
43863 (GRUB_PE32_PE32_MAGIC): Likewise.
43865 * include/grub/efi/uga_draw.h: New file.
43867 * include/grub/elf.h (STN_ABS): New constant.
43868 (R_X86_64_NONE): Relocation constant for x86_64.
43869 (R_X86_64_64): Likewise.
43870 (R_X86_64_PC32): Likewise.
43871 (R_X86_64_GOT32): Likewise.
43872 (R_X86_64_PLT32): Likewise.
43873 (R_X86_64_COPY): Likewise.
43874 (R_X86_64_GLOB_DAT): Likewise.
43875 (R_X86_64_JUMP_SLOT): Likewise.
43876 (R_X86_64_RELATIVE): Likewise.
43877 (R_X86_64_GOTPCREL): Likewise.
43878 (R_X86_64_32): Likewise.
43879 (R_X86_64_32S): Likewise.
43880 (R_X86_64_16): Likewise.
43881 (R_X86_64_PC16): Likewise.
43882 (R_X86_64_8): Likewise.
43883 (R_X86_64_PC8): Likewise.
43885 * include/grub/i386/efi/pci.h: New file.
43887 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
43888 Change it value based on platform.
43889 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
43890 (GRUB_E820_RAM): Likewise.
43891 (GRUB_E820_RESERVED): Likewise.
43892 (GRUB_E820_ACPI): Likewise.
43893 (GRUB_E820_NVS): Likewise.
43894 (GRUB_E820_EXEC_CODE): Likewise.
43895 (GRUB_E820_MAX_ENTRY): Likewise.
43896 (grub_e820_mmap): New structure.
43897 (linux_kernel_header): Change the efi field according to different
43898 kernel version, also field from linux_kernel_header.
43900 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
43902 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
43903 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
43904 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
43905 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
43906 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
43907 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
43908 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
43909 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
43910 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
43911 (GRUB_PCI_ADDR_IO_MASK): Likewise.
43913 * include/grub/x86_64/efi/kernel.h: New file.
43915 * include/grub/x86_64/efi/loader.h: Likewise.
43917 * include/grub/x86_64/efi/machine.h: Likewise.
43919 * include/grub/x86_64/efi/pci.h: Likewise.
43921 * include/grub/x86_64/efi/time.h: Likewise.
43923 * include/grub/x86_64/linux.h: Likewise.
43925 * include/grub/x86_64/setjmp.h: Likewise.
43927 * include/grub/x86_64/time.h: Likewise.
43929 * include/grub/x86_64/types.h: Likewise.
43931 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
43932 GRUB_TARGET_SIZEOF_VOID_P.
43934 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
43935 (grub_efi_locate_handle): Likewise.
43936 (grub_efi_open_protocol): Likewise.
43937 (grub_efi_set_text_mode): Likewise.
43938 (grub_efi_stall): Likewise.
43939 (grub_exit): Likewise.
43940 (grub_reboot): Likewise.
43941 (grub_halt): Likewise.
43942 (grub_efi_exit_boot_services): Likewise.
43943 (grub_get_rtc): Likewise.
43945 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
43946 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
43947 (grub_efi_allocate_pages): Wrap efi calls.
43948 (grub_efi_free_pages): Wrap efi calls.
43949 (grub_efi_get_memory_map): Wrap efi calls.
43951 * kern/x86_64/dl.c: New file.
43953 * kern/x86_64/efi/callwrap.S: Likewise.
43955 * kern/x86_64/efi/startup.S: Likewise.
43957 * loader/efi/appleloader.c: Likewise.
43959 * loader/efi/chainloader.c (cmdline): New variable.
43960 (grub_chainloader_unload): Wrap efi calls.
43961 (grub_chainloader_boot): Likewise.
43962 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
43965 * loader/efi/chainloader_normal.c (chainloader_command):
43966 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
43969 * loader/i386/efi/linux.c (allocate_pages): Change allocation
43971 (grub_e820_add_region): New function.
43972 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
43974 (grub_find_video_card): New function.
43975 (grub_linux_setup_video): New function.
43976 (grub_rescue_cmd_linux): Probe for video information.
43978 * normal/x86_64/setjmp.S: New file.
43980 * term/efi/console.c (map_char): New function.
43981 (grub_console_putchar): Map unicode char.
43982 (grub_console_checkkey): Wrap efi calls.
43983 (grub_console_getkey): Likewise.
43984 (grub_console_getwh): Likewise.
43985 (grub_console_gotoxy): Likewise.
43986 (grub_console_cls): Likewise.
43987 (grub_console_setcolorstate): Likewise.
43988 (grub_console_setcursor): Likewise.
43990 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
43992 2008-07-16 Pavel Roskin <proski@gnu.org>
43994 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
43997 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
43998 pointer, not an integer. This fixes a warning and prevents
43999 precision loss on 64-bit systems.
44000 (relocate_addresses): Remove unneeded cast.
44002 2008-07-15 Pavel Roskin <proski@gnu.org>
44004 * kern/i386/ieee1275/init.c: Include grub/cache.h.
44006 * term/ieee1275/ofconsole.c: Disable code unused on i386.
44008 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
44009 Fix comparison between signed and unsigned.
44011 * include/grub/i386/ieee1275/console.h: Declare
44012 grub_console_init() and grub_console_fini().
44014 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
44015 It's empty and unused.
44017 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
44018 beginning to avoid warnings with some compilers.
44020 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
44021 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
44023 2008-07-14 Pavel Roskin <proski@gnu.org>
44025 * kern/env.c (grub_register_variable_hook): Don't copy empty
44026 string, it leaks memory. Pass "" to grub_env_set(), it should
44027 handle constant strings.
44029 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
44030 * commands/cmp.c (grub_cmd_cmp): Likewise.
44031 * kern/dl.c (grub_dl_flush_cache): Likewise.
44032 (grub_dl_load_core): Likewise.
44033 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
44034 (grub_elf64_load_phdrs): Likewise.
44036 2008-07-13 Pavel Roskin <proski@gnu.org>
44038 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
44039 between signed and unsigned.
44040 (LzmaEnc_Finish): Fix warning about an unused parameter.
44042 2008-07-13 Bean <bean123ch@gmail.com>
44044 * Makefile.in (enable_lzo): New rule.
44046 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
44048 * configure.ac (ENABLE_LZO): New option --enable-lzo.
44050 * boot/i386/pc/lnxboot.S: #include <config.h>.
44052 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
44053 its value according to the compression algorithm used, lzo or lzma.
44055 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
44056 compression algorithm according to configure macro.
44058 * kern/i386/pc/startup.S (codestart): Likewise.
44060 * kern/i386/pc/lzma_decode.S: New file.
44062 * include/grub/lib/LzFind.h: Likewise.
44064 * include/grub/lib/LzHash.h: Likewise.
44066 * include/grub/lib/LzmaDec.h: Likewise.
44068 * include/grub/lib/LzmaEnc.h: Likewise.
44070 * include/grub/lib/LzmaTypes.h: Likewise.
44072 * lib/LzFind.c: Likewise.
44074 * lib/LzmaDec.c: Likewise.
44076 * lib/LzmaEnc.c: Likewise.
44078 2008-07-13 Bean <bean123ch@gmail.com>
44080 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
44081 (grub_ext4_extent_header): New structure.
44082 (grub_ext4_extent): Likewise.
44083 (grub_ext4_extent_idx): Likewise.
44084 (grub_ext4_find_leaf): New function.
44085 (grub_ext2_read_block): Handle extents.
44087 2008-07-12 Robert Millan <rmh@aybabtu.com>
44089 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
44091 2008-07-11 Robert Millan <rmh@aybabtu.com>
44093 * util/grub.d/40_custom.in: New file. Example on how to add custom
44094 entries to /etc/grub.d.
44095 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
44096 40_custom (implicitly, by merging all the grub.d rules).
44098 2008-07-11 Pavel Roskin <proski@gnu.org>
44100 * commands/read.c (grub_getline): Fix invalid memory access.
44101 Don't add newline to the variable value.
44103 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
44104 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
44105 (serial_hw_get_port): Check validity of the port number.
44106 (grub_cmd_serial): Check return value of serial_hw_get_port().
44108 2008-07-07 Pavel Roskin <proski@gnu.org>
44110 * boot/i386/pc/diskboot.S (notification_string): Replace
44111 "Loading kernel" with just "loading". This is shorter, less
44112 confusing and saves a few bytes for possible future changes.
44114 2008-07-05 Pavel Roskin <proski@gnu.org>
44116 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
44117 size for ATAPI devices, they are undefined. Output sector
44118 number in decimal form.
44120 * disk/ata.c: Use named constants for status bits.
44122 2008-07-04 Pavel Roskin <proski@gnu.org>
44124 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
44125 grub_addr_t before casting it to the void pointer to fix a
44126 warning. Non-addressable regions are discarded earlier.
44127 (grub_arch_modules_addr): Cast _end to grub_addr_t.
44128 * kern/i386/linuxbios/table.c: Include grub/misc.h.
44129 (check_signature): Don't shadow table_header.
44130 (grub_linuxbios_table_iterate): Cast numeric constants to
44131 grub_linuxbios_table_header_t.
44132 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
44135 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
44138 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
44139 pointer, which can cause warnings. Support 64-bit addresses.
44141 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
44142 of sizeof(long). This fixes PowerPC image generation on x86_64.
44144 2008-07-04 Robert Millan <rmh@aybabtu.com>
44146 This fixes a performance issue when pc & gpt partmap iterators
44147 didn't abort iteration even after our hook found what it was
44148 looking for (often causing expensive probes of non-existent drives).
44150 Some callers relied on previous buggy behaviour, since they would
44151 raise an error when their own hooks caused early abortion of its
44154 * kern/device.c (grub_device_open): Improve error message.
44155 * disk/lvm.c (grub_lvm_open): Likewise.
44156 * disk/raid.c (grub_raid_open): Likewise.
44158 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
44159 when hook requests it, independently of grub_errno.
44160 (pc_partition_map_probe): Do not fail when find_func() caused
44161 early abortion of pc_partition_map_iterate().
44163 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
44164 when hook requests it, independently of grub_errno.
44165 (gpt_partition_map_probe): Do not fail when find_func() caused
44166 early abortion of gpt_partition_map_iterate().
44168 * kern/partition.c (grub_partition_iterate): Abort parent iteration
44169 when hook requests it, independently of grub_errno. Do not fail when
44170 part_map_iterate_hook() caused early abortion of p->iterate().
44172 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
44173 when grub_partition_iterate() returned with non-zero.
44175 2008-07-03 Pavel Roskin <proski@gnu.org>
44177 * disk/ata.c (grub_ata_pio_write): Check status before writing,
44178 like we do in grub_ata_pio_read().
44179 (grub_ata_readwrite): Always write individual sectors. Fix the
44180 sector count for the remainder.
44181 (grub_ata_write): Enable writing to ATA devices. Correctly
44182 report error for ATAPI devices.
44184 2008-07-02 Pavel Roskin <proski@gnu.org>
44186 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
44189 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
44190 for every read sector, we already increment it for the whole
44191 batch. This fixes reading more than 256 sectors at once.
44193 * util/grub-editenv.c (cmd_info): Cast argument to long
44194 explicitly. ptrdiff_t reduces to int on i386.
44196 * util/grub-editenv.c (main): Be specific which parameter is
44199 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
44200 (memdisk): Make memdisk_orig_addr a pointer.
44202 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
44203 for file offsets, use grub_off_t instead. Fix printf format
44206 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
44207 there. Real unexpected warnings should not drown in the noise
44208 about known problems.
44210 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
44211 grub_disk_addr_t for memory addresses.
44213 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
44214 explicitly to fix a warning.
44216 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
44218 * Makefile.in (MODULE_LDFLAGS): New variable.
44219 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
44220 the linker accepts --build-id=none.
44221 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
44223 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
44225 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
44226 those in Linux XFS code. Provide a way to access 64-bit parent
44228 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
44229 the end of struct grub_xfs_dir_header.
44231 2008-07-02 Bean <bean123ch@gmail.com>
44233 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
44234 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44235 and GRUB_IEEE1275_FLAG_NO_ANSI.
44237 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
44238 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44239 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
44241 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
44242 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
44244 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
44245 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
44247 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
44248 esc sequence on non ANSI terminal.
44249 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
44251 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
44254 2008-07-02 Bean <bean123ch@gmail.com>
44256 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
44257 (grub_editenv_SOURCES): New variable.
44258 (pkglib_MODULES): Add loadenv.mod.
44259 (loadenv_mod_SOURCES): New variable.
44260 (loadenv_mod_CFLAGS): Likewise.
44261 (loadenv_mod_LDFLAGS): Likewise.
44263 * include/grub/envblk.h: New file.
44265 * util/envblk.c: New file.
44267 * util/grub-editenv.c: New file.
44269 * commands/loadenv.c: New file.
44271 2008-07-01 Pavel Roskin <proski@gnu.org>
44273 * include/multiboot2.h (struct multiboot_tag_module): Use char,
44274 not unsigned char. This fixes warnings and is consistent with
44277 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
44279 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
44281 * term/tparm.c (analyze): Always set *popcount.
44283 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
44284 cast to fix a warning.
44286 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
44287 cast to suppress a warning.
44289 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
44290 grub_fshelp_read_file() expects.
44292 * fs/fat.c: Fix UUID calculation on big-endian systems. We
44293 write uuid as a 32-bit value in CPU byte order, so declare and
44296 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
44297 long if the format specifier expects it.
44298 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
44299 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44300 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
44301 long to fix a warning.
44302 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
44303 grub_dprintf() arguments to fix warnings.
44305 2008-06-30 Pavel Roskin <proski@gnu.org>
44307 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
44308 install_bsd_part immediately before core.img is embedded or
44309 modified on disk. This fixes core.img verification if core.img
44310 cannot be embedded.
44312 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
44313 core_path to calculate the blocklist.
44314 Patch from Javier Martín <lordhabbit@gmail.com>
44316 2008-06-29 Robert Millan <rmh@aybabtu.com>
44318 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
44319 block to disk block.
44320 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
44321 Patch from Niels Böhm <bitbucket@arcor.de>
44323 2008-06-29 Robert Millan <rmh@aybabtu.com>
44325 * util/update-grub_lib.in (font_path): Search for fonts in
44326 /boot/grub first, which is more likely to be readable (we aren't
44327 deciding where fonts live, just looking for them).
44329 2008-06-26 Pavel Roskin <proski@gnu.org>
44331 * util/biosdisk.c (read_device_map): Don't leave dead map
44332 entries for devices failing stat() check.
44334 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
44335 core_path_dev for the core.img path on the target device.
44337 2008-06-26 Robert Millan <rmh@aybabtu.com>
44339 * disk/fs_uuid.c: New file.
44340 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
44341 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
44342 (fs_uuid_mod_LDFLAGS): New variables.
44343 * include/grub/disk.h (grub_disk_dev_id): Add
44344 `GRUB_DISK_DEVICE_UUID_ID'.
44345 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
44346 implement iterate().
44348 2008-06-26 Robert Millan <rmh@aybabtu.com>
44350 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
44351 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
44352 Linux image includes no initrd.
44354 2008-06-21 Javier Martín <lordhabbit@gmail.com>
44356 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
44357 call to resolve the core image location that effectively appended the
44360 2008-06-21 Robert Millan <rmh@aybabtu.com>
44362 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
44365 * util/grub.d/10_hurd.in: ... to here ...
44366 * util/grub.d/10_linux.in: ... and here.
44368 2008-06-19 Robert Millan <rmh@aybabtu.com>
44370 * kern/main.c (grub_main): Export `prefix' variable immediately
44371 after it has been set by grub_machine_set_prefix().
44373 2008-06-19 Robert Millan <rmh@aybabtu.com>
44375 * commands/search.c (search_label, search_fs_uuid, search_file): Print
44376 search result when not saving to variable, not the other way around.
44377 When saving to variable, abort iteration as soon as a match is found.
44379 2008-06-19 Robert Millan <rmh@aybabtu.com>
44381 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
44382 check for partition that provides /boot/grub. Its logic is flawed,
44383 as it prevents prepare_grub_to_access_device() from being called
44386 2008-06-19 Robert Millan <rmh@aybabtu.com>
44388 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
44389 "insmod" command directly when abstraction modules are needed,
44390 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
44391 since it had already been processed).
44393 2008-06-19 Pavel Roskin <proski@gnu.org>
44395 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
44396 changed. This is needed in case GRUB_LIBDIR changes.
44397 * conf/i386-ieee1275.rmk: Likewise.
44398 * conf/i386-linuxbios.rmk: Likewise.
44399 * conf/i386-pc.rmk: Likewise.
44400 * conf/powerpc-ieee1275.rmk: Likewise.
44402 2008-06-18 Pavel Roskin <proski@gnu.org>
44404 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
44405 kernel_elf_symlist.c to symlist.c for consistency with other
44406 architectures. Update all users.
44407 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
44409 2008-06-18 Robert Millan <rmh@aybabtu.com>
44411 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
44414 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
44415 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
44416 a RAID device, run setup() for all members independently on whether
44417 LVM abstraction is being used.
44418 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
44419 If grub-mkimage has set `*install_dos_part == -2', don't override this
44421 Perform *install_dos_part adjustments independently on whether
44422 we're embedding or not.
44423 Clarify error message when image is too big for embedding.
44424 Remove duplicate *install_dos_part stanza.
44426 2008-06-17 Robert Millan <rmh@aybabtu.com>
44428 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
44429 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
44431 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
44432 values in grub_ofconsole_normal_color and
44433 grub_ofconsole_highlight_color (they're not directly related to
44434 background and foreground).
44435 (grub_ofconsole_setcolorstate): Extract background and foreground
44436 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
44438 2008-06-17 Robert Millan <rmh@aybabtu.com>
44440 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
44441 /boot/grub for the check in last commit, not /boot (they could be
44442 different partitions).
44444 2008-06-16 Robert Millan <rmh@aybabtu.com>
44446 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
44447 asked to setup access for the same partition that provides /boot,
44448 don't bother using UUIDs since our root already has the value we
44451 2008-06-16 Robert Millan <rmh@aybabtu.com>
44453 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
44455 Patch from Sven Mueller <sven@debian.org>.
44457 2008-06-16 Robert Millan <rmh@aybabtu.com>
44459 * util/update-grub.in: Check for $EUID instead of $UID.
44460 Reported by Vincent Zweije.
44462 2008-06-16 Bean <bean123ch@gmail.com>
44464 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
44465 (grub_ext2_read_block): Likewise.
44466 (grub_ext2_read_inode): Likewise.
44467 (grub_ext2_mount): Likewise.
44468 (grub_ext2_close): Likewise.
44469 (grub_ext3_get_journal): Removed.
44471 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
44472 (grub_reiserfs_read_symlink): Likewise.
44473 (grub_reiserfs_mount): Likewise.
44474 (grub_reiserfs_open): Likewise.
44475 (grub_reiserfs_read): Likewise.
44476 (grub_reiserfs_close): Likewise.
44477 (grub_reiserfs_get_journal): Removed.
44479 * fs/fshelp.c (grub_fshelp_read): Removed.
44480 (grub_fshelp_map_block): Likewise.
44482 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
44483 (grub_fshelp_journal): Likewise.
44484 (grub_fshelp_read): Likewise.
44485 (grub_fshelp_map_block): Likewise.
44487 2008-06-16 Pavel Roskin <proski@gnu.org>
44489 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
44490 floating point anymore.
44491 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
44493 2008-06-15 Pavel Roskin <proski@gnu.org>
44495 * commands/ls.c (grub_ls_list_files): Use integer calculations
44496 for human readable format, avoid floating point use.
44497 * kern/misc.c (grub_ftoa): Remove.
44498 (grub_vsprintf): Remove floating point support.
44500 2008-06-15 Robert Millan <rmh@aybabtu.com>
44502 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
44504 Reported by Max Vozeler.
44506 2008-06-15 Robert Millan <rmh@aybabtu.com>
44508 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
44509 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
44511 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
44512 the beginning of the prefix.
44514 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
44515 It is assumed that if we have a memdisk, grub-mkimage has set
44516 grub_prefix to include the "(memdisk)" drive in it.
44518 2008-06-15 Robert Millan <rmh@aybabtu.com>
44520 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
44521 Initialize keyboard controller after registering the terminal, so that
44522 grub_printf() can be called from grub_keyboard_controller_init().
44524 2008-06-15 Robert Millan <rmh@aybabtu.com>
44526 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
44527 extent-btree which is written as big endian on disk.
44528 Reported by Alain Greppin <al@chilibi.org>.
44530 2008-06-14 Robert Millan <rmh@aybabtu.com>
44532 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
44533 * util/i386/pc/grub-install.in (modules): Likewise.
44535 2008-06-13 Pavel Roskin <proski@gnu.org>
44537 * commands/ls.c (grub_ls_list_files): Fix format warnings.
44539 2008-06-13 Bean <bean123ch@gmail.com>
44541 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
44543 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
44545 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
44546 to indicate sparse block.
44548 2008-06-12 Pavel Roskin <proski@gnu.org>
44550 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
44551 number, grub_fshelp_read() does it for us.
44553 * fs/fshelp.c (grub_fshelp_read): New function. Implement
44554 linear disk read with journal translation.
44555 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
44556 * include/grub/fshelp.h: Declare grub_fshelp_read().
44558 2008-06-09 Pavel Roskin <proski@gnu.org>
44560 * fs/minix.c (grub_minix_mount): Handle error reading
44563 2008-06-08 Robert Millan <rmh@aybabtu.com>
44565 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
44566 don't append the RAID prefix afterwards.
44567 Reported by Clint Adams.
44569 2008-06-08 Robert Millan <rmh@aybabtu.com>
44571 Based on description from Pavel:
44572 * kern/disk.c (grub_disk_check_range): Rename to ...
44573 (grub_disk_adjust_range): ... this. Add a comment explaining the
44574 tasks performed by this function.
44576 2008-06-08 Robert Millan <rmh@aybabtu.com>
44578 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
44579 `num_serial' (for consistency with other variables).
44580 (struct grub_ntfs_data): Add `uuid' member.
44581 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
44582 (grub_ntfs_uuid): New function.
44583 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
44585 2008-06-07 Pavel Roskin <proski@gnu.org>
44587 * util/biosdisk.c (open_device): Revert last change to the
44588 function, it broke installation. The sector needs to be
44589 different dependent on which device is opened.
44591 2008-06-06 Robert Millan <rmh@aybabtu.com>
44593 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
44594 rest of GRUB, and breakage doesn't happen if its value were modified.
44596 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44597 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
44598 a constant (same value).
44599 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
44600 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
44602 2008-06-06 Robert Millan <rmh@aybabtu.com>
44604 * util/biosdisk.c (open_device): Do not modify sector offset when
44605 accessing a partition. kern/disk.c already handles this for us.
44607 2008-06-06 Robert Millan <rmh@aybabtu.com>
44609 * util/grub-emu.c (grub_machine_init): Move code in this function from
44611 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
44612 segfault in case grub_printf() is called).
44614 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
44615 grub_probe. Update all users not to explicitly add it again.
44616 (grub_device): New variable; contains corresponding device for grubdir.
44617 (fs_module, partmap_module, devabstraction_module): Pass
44618 `--device ${grub_device}' to grub_probe to avoid traversing /dev
44621 2008-06-05 Robert Millan <rmh@aybabtu.com>
44623 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
44624 is found, print it (same layout as with labels).
44626 2008-06-04 Robert Millan <rmh@aybabtu.com>
44628 * util/biosdisk.c (get_drive): Rename to ...
44629 (find_grub_drive): ... this. Update all users.
44631 (get_os_disk): Rename to ...
44632 (convert_system_partition_to_system_disk): ... this. Update all users.
44634 (find_drive): Rename to ...
44635 (find_system_device): ... this. Update all users.
44637 2008-06-04 Robert Millan <rmh@aybabtu.com>
44639 * util/biosdisk.c (get_os_disk): Handle IDA devices.
44640 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44641 (make_device_map): Likewise.
44643 2008-06-01 Robert Millan <rmh@aybabtu.com>
44645 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
44646 before dereferencing it.
44648 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
44649 union with fat12/fat16-specific ones. Add some new fields, including
44650 `num_serial' for both versions.
44651 (struct grub_fat_data): Add `uuid' member.
44652 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
44653 names. Initialize `data->uuid' using `num_serial'.
44654 (grub_fat_uuid): New function.
44655 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
44657 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
44658 (grub_reiserfs_uuid): New function.
44659 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
44662 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
44663 (grub_xfs_uuid): New function.
44664 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
44666 2008-06-01 Robert Millan <rmh@aybabtu.com>
44668 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
44669 code that is backward compatible with pre-uuid search command.
44671 2008-05-31 Robert Millan <rmh@aybabtu.com>
44673 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
44674 floppies after everything else, to ensure floppy drive isn't accessed
44675 unnecessarily (patch from Bean).
44677 2008-05-31 Robert Millan <rmh@aybabtu.com>
44679 * commands/search.c (search_label, search_fs_uuid, search_file): Do
44680 not print device names when we were asked to set a variable.
44682 2008-05-31 Robert Millan <rmh@aybabtu.com>
44684 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
44685 using "cursor-on" and "cursor-off" commands (understood at least by
44686 the Open Firmware flavour on OLPC).
44688 2008-05-31 Michael Gorven <michael@gorven.za.net>
44690 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
44691 on and off sequences.
44693 2008-05-31 Robert Millan <rmh@aybabtu.com>
44695 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
44696 * util/update-grub.in: Likewise.
44698 2008-05-30 Pavel Roskin <proski@gnu.org>
44700 * util/biosdisk.c (linux_find_partition): Simplify logic and
44701 make the code more universal. Keep special processing for
44702 devfs, but use a simple rule for all other devices. If the
44703 device ends with a number, append 'p' and the partition number.
44704 Otherwise, append only the partition number.
44706 2008-05-30 Robert Millan <rmh@aybabtu.com>
44708 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
44709 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
44710 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
44711 the `root' parameter to Linux.
44713 2008-05-30 Robert Millan <rmh@aybabtu.com>
44715 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
44716 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
44717 --fs_uuid with --fs-uuid.
44718 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
44719 all filesystems support them).
44721 2008-05-30 Robert Millan <rmh@aybabtu.com>
44723 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
44724 grub_printf() flags, since we're printing in units of 2 bytes.
44726 2008-05-30 Robert Millan <rmh@aybabtu.com>
44728 * util/grub.d/00_header.in: Remove obsolete comment referencing
44729 convert_system_path_to_grub_path().
44730 * util/update-grub.in: Likewise.
44731 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
44732 (convert_system_path_to_grub_path): Add a warning message explaining
44733 that this function is deprecated. Rely on is_path_readable_by_grub()
44734 for the readability checks.
44735 (font_path): Use is_path_readable_by_grub() for the readability
44736 check rather than convert_system_path_to_grub_path().
44738 2008-05-30 Robert Millan <rmh@aybabtu.com>
44740 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
44741 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
44742 converting it first.
44743 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
44744 grub.cfg for access to font file, and afterwards call it again to set
44747 2008-05-30 Robert Millan <rmh@aybabtu.com>
44749 * commands/search.c (options): Add --fs_uuid option.
44750 (search_fs_uuid): New function.
44751 (grub_cmd_search): Fix --set argument passing.
44752 Use search_fs_uuid() when requested via --fs_uuid.
44753 (grub_search_init): Update help message.
44754 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
44755 and redeclare it as an array of 16-bit words.
44756 (grub_ext2_uuid): New function.
44757 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
44758 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
44759 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
44760 (GRUB_DEVICE_BOOT_UUID): New variables.
44761 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
44762 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
44764 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
44765 just assume `root' variable has the right value.
44766 * util/grub.d/10_linux.in: Likewise.
44767 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
44769 (main): Recognise `-t fs_uuid' argument.
44771 2008-05-30 Robert Millan <rmh@aybabtu.com>
44773 * util/biosdisk.c (map): Redefine structure to hold information
44774 about GRUB drive name.
44775 (get_drive): Reimplement without assuming (and verifying) BIOS-like
44777 (call_hook): Remove.
44778 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
44779 member. Assume drive has partitions.
44780 (grub_util_biosdisk_open): Access device names via `.device' struct
44782 (open_device): Likewise.
44783 (find_drive): Likewise.
44784 (read_device_map): Adjust map[] usage to match the new struct
44785 definition. Don't check for duplicates (still possible, but not cheap
44787 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
44788 (make_device_name): Remove assumption of BIOS-like drive names.
44790 2008-05-30 Pavel Roskin <proski@gnu.org>
44792 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
44793 compiling execute.c doesn't need grub_script.tab.h anymore.
44794 (normal/command.c_DEPENDENCIES): Likewise.
44795 (normal/function.c_DEPENDENCIES): Likewise.
44796 * conf/i386-ieee1275.rmk: Likewise.
44797 * conf/i386-linuxbios.rmk: Likewise.
44798 * conf/i386-pc.rmk: Likewise.
44799 * conf/powerpc-ieee1275.rmk: Likewise.
44800 * conf/sparc64-ieee1275.rmk: Likewise.
44802 2008-05-29 Pavel Roskin <proski@gnu.org>
44804 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44805 when scanning metadata for volume group name.
44807 * include/grub/script.h: Don't include grub_script.tab.h. It's
44808 a generated file, which may only be included from the files with
44809 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44810 use union YYSTYPE, as the later allows forward declaration.
44811 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44813 2008-05-29 Robert Millan <rmh@aybabtu.com>
44815 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44816 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44817 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44818 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44821 2008-05-29 Robert Millan <rmh@aybabtu.com>
44823 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44824 control key combinations.
44826 2008-05-29 Robert Millan <rmh@aybabtu.com>
44828 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44829 * util/ieee1275/grub-install.in: ... to here.
44830 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44831 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44832 (grub_install_SOURCES): Likewise.
44834 2008-05-29 Robert Millan <rmh@aybabtu.com>
44836 * fs/affs.c: Update copyright year.
44837 * fs/ext2.c: Likewise.
44838 * fs/fshelp.c: Likewise.
44839 * fs/hfsplus.c: Likewise.
44840 * fs/ntfs.c: Likewise.
44841 * fs/xfs.c: Likewise.
44842 * include/grub/fshelp.h: Likewise.
44843 * util/grub-mkdevicemap.c: Likewise.
44845 2008-05-28 Robert Millan <rmh@aybabtu.com>
44847 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44848 might need to be fatfs to support some firmware implementations
44851 2008-05-28 Robert Millan <rmh@aybabtu.com>
44853 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44855 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44856 (make_device_map): Likewise.
44858 2008-05-20 Bean <bean123ch@gmail.com>
44860 * fs/fshelp.c (grub_fshelp_map_block): New function.
44861 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44862 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44864 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44865 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44866 (grub_fshelp_journal): New structure.
44867 (grub_fshelp_map_block): New function prototype.
44868 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44869 (grub_fshelp_map_block): Likewise.
44871 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44872 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44873 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44874 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44875 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44876 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44877 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44878 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
44879 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
44880 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
44881 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
44882 (grub_ext2_sblock): New members for journal support.
44883 (grub_ext3_journal_header): New structure.
44884 (grub_ext3_journal_revoke_header): Likewise.
44885 (grub_ext3_journal_block_tag): Likewise.
44886 (grub_ext3_journal_sblock): Likewise.
44887 (grub_fshelp_node): New members logfile and journal.
44888 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
44889 grub_fshelp_map_block to get real block number.
44890 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
44892 (grub_ext2_read_inode): Likewise.
44893 (grub_ext3_get_journal): New function.
44894 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
44895 (grub_ext2_close): Release memory used by journal.
44897 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
44898 (REISERFS_MAGIC_DESC_BLOCK): New macro.
44899 (grub_reiserfs_transaction_header): Renamed to
44900 grub_reiserfs_description_block, replace field data with real_blocks.
44901 (grub_reiserfs_commit_block): New structure.
44902 (grub_reiserfs_data): New member journal.
44903 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
44905 (grub_reiserfs_read_symlink): Likewise.
44906 (grub_reiserfs_iterate_dir): Likewise.
44907 (grub_reiserfs_open): Likewise.
44908 (grub_reiserfs_read): Likewise.
44909 (grub_reiserfs_get_journal): New function.
44910 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
44911 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
44912 using grub_reiserfs_get_journal.
44913 (grub_reiserfs_close): Release memory used by journal.
44915 * fs/affs.c (grub_affs_read_block): Change block type to
44916 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
44918 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
44920 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
44922 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
44924 * fs/udf.c (grub_udf_read_block): Change block type to
44925 grub_disk_addr_t. Use type cast to avoid warning.
44927 * fs/xfs.c (grub_xfs_read_block): Likewise.
44929 2008-05-16 Christian Franke <franke@computer.org>
44931 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
44932 to ensure that break with ESC will always work.
44933 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
44934 Remove ESC from keyboard queue.
44936 2008-05-16 Christian Franke <franke@computer.org>
44938 * util/biosdisk.c: [__CYGWIN__] Add includes.
44939 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
44940 (get_os_disk): Move variable declarations to OS specific
44941 parts to avoid warning.
44942 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
44943 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
44944 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
44946 * util/getroot.c: [__CYGWIN__] Add includes.
44947 (strip_extra_slashes): Fix "/" case.
44948 [__CYGWIN__] (get_win32_path): New function.
44949 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
44950 [__CYGWIN__] (find_root_device): Disable.
44951 [__CYGWIN__] (get_bootsec_serial): New function.
44952 [__CYGWIN__] (find_cygwin_root_device): Likewise.
44953 [__linux__] (grub_guess_root_device): Add early returns to simplify
44955 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
44956 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
44957 check for Linux only.
44959 2008-05-15 Bean <bean123ch@gmail.com>
44961 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
44962 keyboard hang problem in apple's intel mac.
44964 2008-05-09 Robert Millan <rmh@aybabtu.com>
44966 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
44968 * util/grub-mkdevicemap.c (get_virtio_disk_name)
44969 (make_device_map): Likewise.
44970 Reported by Aurelien Jarno <aurel32@debian.org>
44972 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
44974 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
44975 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
44976 (make_device_map): Output entries for xvd type disks.
44978 2008-05-07 Robert Millan <rmh@aybabtu.com>
44980 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
44982 * util/grub-mkdevicemap.c (get_cciss_disk_name)
44983 (make_device_map): Likewise.
44984 Reported by Roland Dreier <rdreier@cisco.com>
44986 2008-05-07 Robert Millan <rmh@aybabtu.com>
44988 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
44989 grub_strstr() call. Correct a few mistakes in failure path handling.
44991 2008-05-06 Robert Millan <rmh@aybabtu.com>
44993 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
44994 Do not print a trailing slash (therefore, the root directory is an
44996 (convert_system_path_to_grub_path): Do not remove trailing slash
44997 from make_system_path_relative_to_its_root() output.
44999 * util/i386/pc/grub-install.in: Add trailing slash to output from
45000 make_system_path_relative_to_its_root().
45002 2008-05-06 Robert Millan <rmh@aybabtu.com>
45004 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
45005 ensures that output lines aren't intermangled with those sent to
45006 stderr (via grub_util_info()).
45007 * util/grub-probe.c (grub_refresh): Likewise.
45008 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
45010 2008-05-05 Christian Franke <franke@computer.org>
45012 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
45013 Add Cygwin device names.
45014 (get_ide_disk_name) [__CYGWIN__]: Likewise.
45015 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
45016 (check_device): Return error instead of success on empty name.
45017 (make_device_map): Move label inside linux specific code to
45018 prevent compiler warning.
45020 2008-04-30 Robert Millan <rmh@aybabtu.com>
45022 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
45023 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
45025 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
45027 2008-04-29 Robert Millan <rmh@aybabtu.com>
45029 * docs/grub.cfg: New file (example GRUB configuration).
45031 2008-04-26 Robert Millan <rmh@aybabtu.com>
45033 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
45034 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
45035 and `disk/ieee1275/nand.c'.
45037 2008-04-25 Bean <bean123ch@gmail.com>
45039 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
45042 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
45043 change the buffer size to 4096 for cdrom device.
45045 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
45047 (_linux_mod_SOURCES): New variable.
45048 (_linux_mod_CFLAGS): Likewise.
45049 (_linux_mod_LDFLAGS): Likewise.
45050 (linux_mod_SOURCES): Likewise.
45051 (linux_mod_CFLAGS): Likewise.
45052 (linux_mod_LDFLAGS): Likewise.
45053 (nand_mod_SOURCES): Likewise.
45054 (nand_mod_CFLAGS): Likewise.
45055 (nand_mod_LDFLAGS): Likewise.
45057 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
45058 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
45059 type property. (nand device in olpc don't have this property)
45061 * include/grub/disk.h (grub_disk_dev_id): New macro
45062 GRUB_DISK_DEVICE_NAND_ID.
45064 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
45065 function prototype.
45066 (grub_rescue_cmd_initrd): Likewise.
45068 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
45069 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
45070 ofw_cif_handler and ofw_idt, adjust padding number.
45072 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
45073 GRUB_MACHINE_IEEE1275 is defined.
45075 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
45076 Use NESTED_FUNC_ATTR attribute on the hook parameter.
45078 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
45079 on nested function heap_init.
45080 (grub_upper_mem): New variable for i386-ieee1275.
45081 (grub_get_extended_memory): New function for i386-ieee1275.
45082 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
45084 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
45085 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
45088 * loader/i386/ieee1275/linux.c: New file.
45090 * loader/i386/ieee1275/linux_normal.c: New file.
45092 * disk/ieee1275/nand.c: New file.
45094 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
45096 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
45098 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
45100 2008-04-18 Robert Millan <rmh@aybabtu.com>
45102 Restructures early code path on ieee1275 to unify grub_main() as
45103 the first C function that is executed in every platform.
45105 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
45106 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
45108 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
45109 * kern/ieee1275/cmain.c (cmain): Rename to ...
45110 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
45111 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
45114 2008-04-18 Robert Millan <rmh@aybabtu.com>
45116 * util/update-grub.in: Fix syntax error when setting
45117 `GRUB_PRELOAD_MODULES'.
45118 Reported by Stephane Chazelas <stephane@artesyncp.com>
45120 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
45122 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
45123 section into account, newer toolchains generate unique build ids
45124 * configure.ac: remove the test for --build-id=none acceptance,
45125 we want build ids to be preserved
45126 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
45127 far from other sections don't cause the raw binary images grow
45130 2008-04-15 Robert Millan <rmh@aybabtu.com>
45132 * disk/lvm.c: Update copyright year.
45133 * kern/misc.c: Likewise.
45135 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45137 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
45138 there is no memory left for physical volume name.
45140 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45142 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
45143 volume name mapping to support bigger than 9 character names properly.
45145 2008-04-13 Robert Millan <rmh@aybabtu.com>
45147 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
45148 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
45150 2008-04-13 Christian Franke <franke@computer.org>
45152 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
45153 to create a floppy emulation boot CD when non emulation mode
45155 Enable Joliet CD filesystem extension.
45157 2008-04-13 Robert Millan <rmh@aybabtu.com>
45159 * kern/misc.c (grub_strncat): Fix off-by-one error.
45160 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
45162 * kern/env.c (grub_env_context_close): Clear current context, not
45164 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
45166 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
45168 2008-04-13 Robert Millan <rmh@aybabtu.com>
45170 Improve robustness when handling LVM.
45172 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
45173 (and leave `*p' unmodified).
45174 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
45176 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
45177 iterating through it.
45178 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
45180 (grub_lvm_scan_device): Check the return value (and fail gracefully
45181 when due) on each grub_lvm_getvalue() or grub_strstr() call.
45182 Don't assume `vg->pvs != NULL' when iterating through it.
45184 2008-04-13 Robert Millan <rmh@aybabtu.com>
45186 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
45187 * genmk.rb (partmap): New variable.
45188 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
45189 (#{partmap}): New target rule.
45190 * genpartmaplist.sh: New file.
45191 * Makefile.in (pkglib_DATA): Add partmap.lst.
45192 (partmap.lst): New target rule.
45193 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
45194 modules (including all partition maps), instead of preloading them.
45196 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
45198 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
45199 `linux-boot-prober' (if installed) to detect other operating
45200 systems which are installed on the computer and add them to
45202 * conf/common.rmk: Build and install 30_os-prober.
45204 2008-04-12 Robert Millan <rmh@aybabtu.com>
45206 * kern/powerpc/ieee1275/init.c: Move from here ...
45207 * kern/ieee1275/init.c: ... to here. Update all users.
45209 * kern/powerpc/ieee1275/cmain.c: Move from here ...
45210 * kern/ieee1275/cmain.c: ... to here. Update all users.
45212 * kern/powerpc/ieee1275/openfw.c: Move from here ...
45213 * kern/ieee1275/openfw.c: ... to here. Update all users.
45215 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
45216 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
45218 2008-04-10 Pavel Roskin <proski@gnu.org>
45220 * configure.ac: Always use "_cv_" in cache variables for
45221 compatibility with Autoconf 2.62.
45223 2008-04-07 Robert Millan <rmh@aybabtu.com>
45225 Revert grub/machine/init.h addition by Pavel (since it breaks on
45226 i386-ieee1275 and others):
45227 * util/i386/pc/misc.c: Remove grub/machine/init.h.
45228 * util/powerpc/ieee1275/misc.c: Likewise.
45230 2008-04-07 Robert Millan <rmh@aybabtu.com>
45232 * util/grub-probe.c (probe): Improve error message.
45234 2008-04-07 Robert Millan <rmh@aybabtu.com>
45236 * util/biosdisk.c (read_device_map): Skip devices that don't exist
45237 (this prevents the presence of a bogus entry from ruining the whole
45240 2008-04-06 Pavel Roskin <proski@gnu.org>
45242 * util/biosdisk.c: Include grub/util/biosdisk.h.
45243 * util/grub-fstest.c (execute_command): Make static.
45244 * util/grub-mkdevicemap.c (check_device): Likewise.
45245 * util/i386/pc/misc.c: Include grub/machine/init.h.
45246 * util/powerpc/ieee1275/misc.c: Likewise.
45247 * util/lvm.c: Include grub/util/lvm.h.
45248 * util/misc.c: Include grub/kernel.h, grub/misc.h and
45250 * util/raid.c: Include grub/util/raid.h.
45251 (grub_util_getdiskname): Make static.
45253 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
45254 grub_hostfs_fini(), as they are called from grub_init_all() and
45255 grub_fini_all() respectively. This fixes an infinite loop in
45256 grub-fstest due to double registration of hostfs.
45257 Reported by Christian Franke <Christian.Franke@t-online.de>
45259 2008-04-05 Pavel Roskin <proski@gnu.org>
45261 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
45262 all 8 functions. Otherwise, probe function 0 only.
45264 2008-04-04 Pavel Roskin <proski@gnu.org>
45266 * commands/lspci.c (grub_lspci_iter): Print the bus number
45269 * commands/lspci.c (grub_pci_classes): Fix typos.
45270 (grub_lspci_iter): Don't print func twice. Print vendor ID
45271 before device ID, as it's normally done.
45273 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45274 Fix signedness warnings.
45275 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
45277 * util/ieee1275/get_disk_name.c: Include config.h so that
45278 _GNU_SOURCE is defined and getline() is declared. Mark an
45279 unused argument as such. Fix a signedness warning.
45281 2008-04-02 Pavel Roskin <proski@gnu.org>
45283 * genkernsyms.sh.in: Use more robust assignments for CC and
45284 srcdir. Quote srcdir.
45285 * gensymlist.sh.in: Likewise. Assert at the compile time that
45286 the symbol table is not empty.
45288 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
45289 * fs/cpio.c (grub_cpio_read): Likewise.
45291 2008-04-01 Pavel Roskin <proski@gnu.org>
45293 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
45294 * disk/host.c (grub_host_open): Likewise.
45295 * disk/loopback.c (grub_loopback_open): Likewise.
45296 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
45297 disk->id as in disk/host.c, not a multi-character constant.
45299 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
45300 later is obsolete, potentially dangerous and sets a bad example.
45301 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
45302 * util/misc.c (grub_util_get_image_size): Likewise.
45304 * disk/loopback.c (options): Improve help for "--partitions".
45306 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
45307 options to align them with the short options, e.g. "echo -e".
45309 2008-03-31 Bean <bean123ch@gmail.com>
45311 * video/reader/png.c (grub_png_data): New member is_16bit and
45313 (grub_png_decode_image_header): Detect 16 bit png image.
45314 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
45315 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
45316 (grub_video_reader_png): Release memory occupied by image_data.
45318 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
45320 (grub_nfs_mount): Skip the test for sector per cluster.
45322 * include/grub/ntfs.h (MAX_SPC): Removed.
45324 2008-03-31 Bean <bean123ch@gmail.com>
45326 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
45327 (grub_probe_SOURCES): Add fs/afs.c.
45328 (grub_fstest_SOURCES): Likewise.
45329 (afs_mod_SOURCES): New variable.
45330 (afs_mod_CFLAGS): Likewise.
45331 (afs_mod_LDFLAGS): Likewise.
45333 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
45334 (grub_emu_SOURCES): Likewise.
45336 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45338 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45340 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45342 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45344 * fs/afs.c: New file.
45346 2008-03-30 Pavel Roskin <proski@gnu.org>
45348 * disk/host.c: Include grub/misc.h to fix a warning.
45349 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
45350 warnings about implicit declarations.
45352 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
45354 * include/grub/i386/loader.h: Change declaration of
45355 grub_linux_boot() to match what grub_loader_set() expects.
45356 * util/getroot.c (grub_guess_root_device): Return const char* to
45358 * util/grub-probe.c (probe): Fix a warning about uninitialized
45359 abstraction_name variable.
45360 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
45361 second argument as unused to fix a warning.
45363 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
45364 missing grub_error() call.
45366 * util/update-grub_lib.in: Define datarootdir, since Autoconf
45367 2.60 and newer uses it to define datadir.
45369 * commands/sleep.c: Fix warning about implicit declaration.
45370 * disk/memdisk.c: Likewise.
45371 * loader/aout.c: Likewise.
45372 * loader/i386/bsd_normal.c: Likewise.
45373 * util/grub-probe.c: Likewise.
45375 * commands/i386/cpuid.c (has_longmode): Make static.
45376 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
45377 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
45379 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
45380 GDT. This is more robust, as %ds can change.
45381 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
45382 calling real_to_prot().
45383 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
45385 2008-03-28 Pavel Roskin <proski@gnu.org>
45387 * kern/i386/pc/startup.S: Assert that uncompressed functions
45388 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
45389 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
45390 code, as they push parts of the code (error handlers) beyond
45391 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
45392 code as correctness and size.
45394 2008-03-28 Pavel Roskin <proski@gnu.org>
45396 * kern/i386/pc/startup.S
45397 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
45398 data block address to the real mode, keep offset minimal. This
45399 works around a bug in AWARD BIOS on old Athlon systems, which
45400 makes CD detection hang.
45402 2008-03-26 Pavel Roskin <proski@gnu.org>
45404 * normal/color.c (grub_parse_color_name_pair): Make `name' a
45406 * include/grub/normal.h: Add grub_parse_color_name_pair()
45409 2008-03-24 Bean <bean123ch@gmail.com>
45411 * disk/i386/pc/biosdisk.c (cd_start): Removed.
45412 (cd_count): Removed.
45413 (cd_drive): New variable.
45414 (grub_biosdisk_get_drive): Don't check for (cdN) device.
45415 (grub_biosdisk_call_hook): Likewise.
45416 (grub_biosdisk_iterate): Change cdrom detection method.
45417 (grub_biosdisk_open): Replace cd_start with cd_drive.
45418 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
45419 detect cdrom device.
45421 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
45423 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
45424 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
45425 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
45426 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
45427 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
45428 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
45429 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
45430 (grub_biosdisk_cdrp): New structure.
45431 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
45433 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
45435 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
45438 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
45441 2008-03-20 Robert Millan <rmh@aybabtu.com>
45443 Remove 2 TiB limit in ata.mod.
45444 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
45445 (grub_ata_dumpinfo): Print sector count with 0x%llx.
45446 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
45447 grub_uint64_t instead of grub_uint32_t.
45449 2008-03-05 Bean <bean123ch@gmail.com>
45451 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
45452 (grub_multiboot): Set boot device.
45454 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
45456 2008-03-02 Bean <bean123ch@gmail.com>
45458 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
45461 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
45463 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
45466 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
45469 * docs/fdl.texi: New file.
45471 * docs/mdate-sh: New file. Copied from gnulib.
45472 * docs/texinfo.tex: Likewise.
45474 * config.guess: Updated from gnulib.
45475 * install-sh: Likewise.
45477 2008-02-28 Robert Millan <rmh@aybabtu.com>
45479 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
45480 (aout_mod_SOURCES): New variable.
45481 (aout_mod_CFLAGS): Likewise.
45482 (aout_mod_LDFLAGS): Likewise.
45484 * conf/i386-ieee1275.rmk: Likewise.
45486 2008-02-28 Robert Millan <rmh@aybabtu.com>
45488 * util/update-grub.in: Reorganise terminal validity check. Accept
45489 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
45490 Based on suggestion by Franklin PIAT.
45492 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
45494 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
45496 * util/getroot.c (grub_util_check_block_device): New function that
45497 returns the given argument if it is a block device and returns NULL else.
45498 * util/grub-probe.c (argument_is_device): New variable.
45499 (probe): Promote device_name from a variable to an argument. Receive
45500 device_name from grub_util_check_block_device() if path is NULL and from
45501 grub_guess_root_device() else. Do not free() device_name anymore.
45502 (options): Introduce new parameter '-d, --device'.
45503 (main): Add description of the new parameter to the help screen.
45504 Rename path variable to argument. Set argument_is_device if the '-d'
45505 option is given. Pass argument to probe() depending on
45506 argument_is_device.
45508 2008-02-24 Bean <bean123ch@gmail.com>
45510 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
45511 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
45512 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
45513 (GRUB_ISO9660_VOLDESC_PART): Likewise.
45514 (GRUB_ISO9660_VOLDESC_END): Likewise.
45515 (grub_iso9660_primary_voldesc): New member escape.
45516 (grub_iso9660_data): New member joliet.
45517 (grub_iso9660_convert_string): New function.
45518 (grub_iso9660_mount): Detect joliet extension.
45519 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
45520 (grub_iso9660_iso9660_label): Likewise.
45522 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
45523 (grub_setup_SOURCES): Add fs/udf.c.
45524 (grub_fstest_SOURCES): Likewise.
45525 (udf_mod_SOURCES): New variable.
45526 (udf_mod_CFLAGS): Likewise.
45527 (udf_mod_LDFLAGS): Likewise.
45529 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
45530 (grub_emu_SOURCES): Likewise.
45532 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45534 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45536 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45538 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45540 * fs/udf.c: New file.
45542 2008-02-24 Robert Millan <rmh@aybabtu.com>
45544 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
45545 (normal/lexer.c_DEPENDENCIES): New variables.
45546 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45547 (normal/lexer.c_DEPENDENCIES): Likewise.
45548 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
45549 (normal/lexer.c_DEPENDENCIES): Likewise.
45550 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
45551 (normal/lexer.c_DEPENDENCIES): Likewise.
45552 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45553 (normal/lexer.c_DEPENDENCIES): Likewise.
45554 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45555 (normal/lexer.c_DEPENDENCIES): Likewise.
45557 2008-02-23 Robert Millan <rmh@aybabtu.com>
45559 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
45560 since they were intended to be in hex. This didn't break previously
45561 because of a bug in gpt_partition_map_iterate() (see below).
45563 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
45564 when checking the validity of GPT header.
45565 Remove `partno', since it always provides the same information as `i'.
45567 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
45569 * include/grub/efi/time.h: Fix a wrong comment.
45571 2008-02-19 Pavel Roskin <proski@gnu.org>
45573 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
45576 2008-02-19 Bean <bean123ch@gmail.com>
45578 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
45579 (aout_mod_SOURCES): New variable.
45580 (aout_mod_CFLAGS): Likewise.
45581 (aout_mod_LDFLAGS): Likewise.
45582 (_bsd_mod_SOURCES): New variable.
45583 (_bsd_mod_CFLAGS): Likewise.
45584 (_bsd_mod_LDFLAGS): Likewise.
45585 (bsd_mod_SOURCES): New variable.
45586 (bsd_mod_CFLAGS): Likewise.
45587 (bsd_mod_LDFLAGS): Likewise.
45589 * include/grub/aout.h: New file.
45591 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
45593 * include/grub/i386/bsd.h: New file.
45595 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
45598 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
45599 function is called, so that it's possible to change it inside the hook.
45600 (grub_elf64_load): Likewise.
45601 (grub_elf_file): Don't close the file if elf header is not found.
45602 (grub_elf_close): Close the file if grub_elf_file fails (The new
45603 grub_elf_file won't close it).
45604 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
45605 (grub_elf64_size): Likewise.
45607 * kern/i386/loader.S (grub_unix_real_boot): New function.
45609 * loader/aout.c: New file.
45611 * loader/i386/bsd.c: New file.
45613 * loader/i386/bsd_normal.c: New file.
45615 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
45617 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
45618 can test other formats.
45620 2008-02-19 Robert Millan <rmh@aybabtu.com>
45622 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
45623 (grub_gpt_partition_type_empty): Redefine with macro from
45624 `<grub/gpt_partition.h>'.
45625 (gpt_partition_map_iterate): Adjust partition type comparison.
45627 Export `entry' as partmap-specific `part.data' struct.
45628 (grub_gpt_header, grub_gpt_partentry): Move from here ...
45630 * include/grub/gpt_partition.h (grub_gpt_header)
45631 (grub_gpt_partentry): ... to here (new file).
45633 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
45635 (grub_gpt_partition_type_bios_boot): New const variable, defined
45636 with macro from `<grub/gpt_partition.h>'.
45638 (setup): Replace `first_start' with `embed_region', which keeps
45639 track of the embed region (and is partmap-agnostic).
45641 Replace find_first_partition_start() with find_usable_region(),
45642 which finds a usable region for embedding using partmap-specific
45643 knowledge (supports PC/MSDOS and GPT).
45645 Fix all assumptions that the embed region start at sector 1, using
45646 `embed_region.start' from now on. Similarly, use `embed_region.end'
45647 rather than `first_start' to calculate available size.
45649 In grub_util_info() message, replace "into after the MBR" with an
45650 indication of the specific sector our embed region starts at.
45652 2008-02-19 Robert Millan <rmh@aybabtu.com>
45654 * DISTLIST: Replace `commands/ieee1275/halt.c' and
45655 `commands/ieee1275/reboot.c' with `commands/halt.c' and
45656 `commands/reboot.c'.
45657 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45658 (halt_mod_SOURCES): Likewise.
45659 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45660 (halt_mod_SOURCES): Likewise.
45662 2008-02-17 Christian Franke <franke@computer.org>
45664 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
45666 2008-02-17 Robert Millan <rmh@aybabtu.com>
45668 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45669 set `first_start' to 0 for non-PC/MSDOS partition maps.
45671 2008-02-16 Robert Millan <rmh@aybabtu.com>
45673 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45674 do not assume partition map is PC/MSDOS before performing checks that
45675 are specific to that layout.
45677 2008-02-13 Robert Millan <rmh@aybabtu.com>
45679 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
45680 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
45681 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
45683 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
45685 * configure.ac: Only a cosmetic change on the handling of
45686 -fno-stack-protector.
45688 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
45690 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
45691 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
45693 (grub_install_SOURCES): Add halt.mod and reboot.mod.
45694 (halt_mod_SOURCES): New variable.
45695 (halt_mod_CFLAGS): Likewise.
45696 (halt_mod_LDFLAGS): Likewise.
45697 (reboot_mod_SOURCES): Likewise.
45698 (reboot_mod_CFLAGS): Likewise.
45699 (reboot_mod_LDFLAGS): Likewise.
45701 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
45702 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
45704 (halt_mod_SOURCES): Likewise.
45705 (reboot_mod_SOURCES): Likewise.
45707 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
45708 commands/i386/pc/reboot.c by commands/reboot.c.
45709 (reboot_mod_SOURCES): Likewise.
45711 * commands/i386/pc/reboot.c: merge this file ...
45713 * commands/ieee1275/reboot.c: ... and this file ...
45715 * commands/reboot.c: ... to this file.
45716 Add some precompiler directive to include the correct header for
45719 * commands/ieee1275/halt.c: move this file ...
45721 * commands/halt.c: ... to here.
45722 Add some precompiler directive to include the correct header for
45725 * include/grub/efi/efi.h (grub_reboot): New function declaration.
45726 (grub_halt): Likewise.
45728 * kern/efi/efi.c (grub_reboot): New function.
45729 (grub_halt): Likewise.
45731 2008-02-12 Robert Millan <rmh@aybabtu.com>
45733 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
45734 /dev (like it is done for /dev/mapper). This doesn't provide support
45735 for EVMS, but at least it is now easy to identify the problem when it
45738 2008-02-11 Robert Millan <rmh@aybabtu.com>
45740 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
45741 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
45742 comparing it with -1, not 0.
45744 2008-02-10 Robert Millan <rmh@aybabtu.com>
45746 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
45748 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45749 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45751 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
45752 `disk/lvm.c' to the end of the list.
45753 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45754 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45756 2008-02-10 Robert Millan <rmh@aybabtu.com>
45758 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
45759 grub_print_error() instead. This will let user know why we're entering
45761 Based on suggestions from Sam Morris.
45763 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
45765 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
45766 on remaining N args, instead of "--" arg N times.
45768 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
45770 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
45771 (fill_with_default_glyph): Changed to use unknown_glyph for fill
45772 pattern for unknown glyphs.
45774 2008-02-09 Robert Millan <rmh@aybabtu.com>
45776 * configure.ac: Probe for `help2man'.
45777 * Makefile.in (builddir): New variable.
45778 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
45779 or otherwise add a few flags/options to it.
45780 (install-local): For every executable utility or script that is
45781 installed, invoke $(HELP2MAN) to install a manpage based on --help
45784 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
45785 that it doesn't prevent --help from working in build tree.
45787 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
45788 with `bug-grub@gnu.org'.
45789 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
45790 * util/update-grub.in (usage): New function.
45791 Implement proper argument check, with support for --help and --version
45792 (as well as existing -y).
45794 2008-02-09 Christian Franke <franke@computer.org>
45796 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
45797 avoid overwriting previous output.
45798 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
45800 2008-02-09 Robert Millan <rmh@aybabtu.com>
45802 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45805 2008-02-09 Robert Millan <rmh@aybabtu.com>
45807 * commands/sleep.c: New file.
45808 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45809 (sleep_mod_SOURCES): New variable.
45810 (sleep_mod_CFLAGS): Likewise.
45811 (sleep_mod_LDFLAGS): Likewise.
45813 2008-02-09 Robert Millan <rmh@aybabtu.com>
45815 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45816 situations in which we can deduce the RAID size and the superblock
45819 2008-02-09 Robert Millan <rmh@aybabtu.com>
45821 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45822 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45823 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45825 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45826 and return a grub_diskmemberlist_t composed of physical array members.
45827 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45829 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45831 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45832 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45833 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45835 * util/grub-probe.c (probe): Move partmap probing code from here ...
45836 (probe_partmap): ... to here.
45837 (probe): Use probe_partmap() once for the disk we're probing, and
45838 additionally, when such disk contains a memberlist() struct member,
45839 once for each disk that is contained in the structure returned by
45842 2008-02-09 Robert Millan <rmh@aybabtu.com>
45844 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45845 environment variable to 'all' in order to obtain debug output from
45847 * util/i386/pc/grub-setup.c (main): Likewise.
45849 2008-02-08 Robert Millan <rmh@aybabtu.com>
45851 * disk/raid.c (grub_raid_scan_device): Check for
45852 `array->device[sb.this_disk.number]' rather than for
45853 `array->device[sb.this_disk.number]->name', since the latter is not
45854 guaranteed to be accessible.
45856 2008-02-08 Robert Millan <rmh@aybabtu.com>
45858 * disk/raid.c: Update copyright.
45859 * fs/cpio.c: Likewise.
45860 * include/grub/raid.h: Likewise.
45861 * loader/i386/pc/multiboot.c: Likewise.
45862 * util/hostfs.c: Likewise.
45864 2008-02-08 Robert Millan <rmh@aybabtu.com>
45866 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45867 to a grub_disk_t array.
45868 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45870 (grub_raid_scan_device): Replace `device[x].name' accesses with
45871 `device[x]->name'. Simplify initialization of `array->device[x]'.
45873 2008-02-08 Robert Millan <rmh@aybabtu.com>
45875 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45876 grub_dprintf() calls.
45877 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
45880 2008-02-07 Christian Franke <franke@computer.org>
45882 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
45883 instead of fseek and ftell to support large files.
45884 (grub_hostfs_read): Likewise.
45886 2008-02-07 Robert Millan <rmh@aybabtu.com>
45888 Patch from Jeroen Dekkers.
45889 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
45890 failure, since successfully reading all array members might not be
45893 2008-02-06 Robert Millan <rmh@aybabtu.com>
45895 * util/grub-probe.c (probe): Simplify partmap probing (with the
45896 assumption that the first word up to the underscore equals to
45899 2008-02-06 Christian Franke <franke@computer.org>
45901 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
45902 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
45903 last block of a cpio or tar stream.
45904 Check for "TRAILER!!!" instead of any empty data
45905 block to detect last block of a cpio stream.
45906 (grub_cpio_dir): Fix constness of variable np.
45907 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
45908 cpio or tar trailer is detected. This fixes a crash
45909 on open of a non existing file.
45911 2008-02-05 Bean <bean123ch@gmail.com>
45913 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
45915 (grub_multiboot_load_elf64): Likewise.
45916 (grub_multiboot): Initialize mbi structure.
45918 * util/grub-fstest.c: Don't include unused header file script.h.
45920 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
45922 (grub_fstest_SOURCES): Likewise.
45924 2008-02-05 Robert Millan <rmh@aybabtu.com>
45926 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
45927 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
45928 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
45929 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
45931 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
45932 (translation_table): Replace hardcoded values with macros
45933 provided by `<grub/term.h>'.
45935 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
45936 (keyboard_map): Correct/add a few values, with macros provided
45937 by `<grub/term.h>'.
45938 (keyboard_map_shift): Zero values that don't differ from their
45939 `keyboard_map' equivalents.
45940 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
45941 Discard the second scan code that is always sent by Caps lock.
45942 Only use `keyboard_map_shift' when it provides a non-zero value,
45943 otherwise fallback to `keyboard_map'.
45945 2008-02-04 Bean <bean123ch@gmail.com>
45947 * Makefile.in (enable_grub_fstest): New variable.
45949 * conf/common.rmk (grub_fstest_init.lst): New rule.
45950 (grub_fstest_init.h): Likewise.
45951 (grub_fstest_init.c): Likewise.
45952 (util/grub-fstest.c_DEPENDENCIES): New variable.
45953 (grub_fstest_SOURCES): Likewise.
45955 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
45957 * util/grub-fstest.c: New file.
45959 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45961 Make grub-setup handle a separate root device.
45963 * util/i386/pc/grub-setup.c (setup): Always open the root device,
45964 so that the root device can be compared with the destination
45966 When embedding the core image, if the root and destination devices
45967 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
45969 When not embedding, set ROOT_DRIVE to 0xFF.
45971 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45973 Add support for having a grub directory in a different drive. This
45974 is still only the data handling part.
45976 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
45977 (codestart): Save %dh in GRUB_ROOT_DRIVE.
45978 (grub_root_drive): New variable.
45980 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
45981 instead of GRUB_BOOT_DRIVE to construct a device name. Set
45982 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
45985 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
45987 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
45989 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
45991 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
45992 is bogus, because PXE booting does not specify any drive
45995 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
45996 am not sure if this is really correct.
45998 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
45999 is always identical to the boot drive when booting from a CD.
46001 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
46003 (root_drive): New variable.
46004 (real_start): Unconditionally set %dh to ROOT_DRIVE.
46005 (setup_sectors): Push %dx right after popping it, because %dh will
46007 (copy_buffer): Restore %dx.
46009 2008-02-03 Robert Millan <rmh@aybabtu.com>
46011 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
46012 use `cdboot.img' for cdrom images.
46014 2008-02-03 Robert Millan <rmh@aybabtu.com>
46016 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
46017 only setup gfxterm when `font' command has succeeded.
46019 2008-02-03 Robert Millan <rmh@aybabtu.com>
46021 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
46022 (grub_rescue_cmd_multiboot_loader)
46023 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
46025 2008-02-03 Pavel Roskin <proski@gnu.org>
46027 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
46028 %edx and %esi from stack only after grub_gate_a20() is called.
46029 grub_gate_a20() clobbers %edx.
46031 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
46033 * configure.ac (AC_INIT): Bumped to 1.96.
46035 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
46036 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
46037 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
46038 video/readers/png.c.
46040 2008-02-03 Bean <bean123ch@gmail.com>
46042 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
46043 (cdboot_img_SOURCES): New variable.
46044 (cdboot_img_ASFLAGS): New variable.
46045 (cdboot_img_LDFLAGS): New variable.
46047 * boot/i386/pc/cdboot.S: New file.
46049 * disk/i386/pc/biosdisk.c (cd_start): New variable.
46050 (cd_count): Likewise.
46051 (grub_biosdisk_get_drive): Add support for cd device.
46052 (grub_biosdisk_call_hook): Likewise.
46053 (grub_biosdisk_iterate): Likewise.
46054 (grub_biosdisk_open): Likewise.
46055 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
46056 (grub_biosdisk_rw): Support reading from cd device.
46057 (GRUB_MOD_INIT): Iterate cd devices.
46059 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
46060 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
46061 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
46063 * kern/i386/pc/init.c (make_install_device): Check for cd device.
46065 2008-02-02 Robert Millan <rmh@aybabtu.com>
46067 * commands/read.c: New file.
46068 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
46069 (read_mod_SOURCES): New variable.
46070 (read_mod_CFLAGS): Likewise.
46071 (read_mod_LDFLAGS): Likewise.
46073 2008-02-02 Robert Millan <rmh@aybabtu.com>
46075 * normal/main.c (grub_normal_execute): Check for `menu->size' when
46076 determining whether menu has to be displayed.
46078 2008-02-02 Marco Gerards <marco@gnu.org>
46080 * bus/pci.c: New file.
46082 * include/grub/pci.h: Likewise.
46084 * include/grub/i386/pc/pci.h: Likewise.
46086 * commands/lspci.c: Likewise.
46088 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
46090 (pci_mod_SOURCES): New variable.
46091 (pci_mod_CFLAGS): Likewise.
46092 (pci_mod_LDFLAGS): Likewise.
46093 (lspci_mod_SOURCES): Likewise.
46094 (lspci_mod_CFLAGS): Likewise.
46095 (lspci_mod_LDFLAGS): Likewise.
46097 2008-02-02 Bean <bean123ch@gmail.com>
46099 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
46100 (grub_ufs_get_file_block): Fix indirect block calculation problem.
46102 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
46103 (grub_xfs_btree_node): New structure.
46104 (grub_xfs_btree_root): New structure.
46105 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
46106 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
46107 (GRUB_XFS_EXTENT_BLOCK): Likewise.
46108 (GRUB_XFS_EXTENT_SIZE): Likewise.
46109 (grub_xfs_read_block): Support btree format type.
46110 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
46111 Use directory block as basic unit.
46113 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
46115 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
46116 __attribute__ ((__regparm__ (1))).
46118 2008-02-01 Robert Millan <rmh@aybabtu.com>
46120 Correct a mistake in previous commit.
46122 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
46124 (normal/command.c_DEPENDENCIES): New variable.
46126 2008-02-01 Robert Millan <rmh@aybabtu.com>
46128 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
46130 (normal/command.c_DEPENDENCIES): New variable.
46131 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
46132 * conf/i386-ieee1275.rmk: Likewise.
46133 * conf/i386-linuxbios.rmk: Likewise.
46134 * conf/i386-pc.rmk: Likewise.
46135 * conf/sparc64-ieee1275.rmk: Likewise.
46136 * conf/powerpc-ieee1275.rmk: Likewise.
46137 (grub_emu_SOURCES): Add `fs/fshelp.c'.
46139 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
46141 2008-02-01 Robert Millan <rmh@aybabtu.com>
46143 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
46144 call at beginning of function.
46146 2008-01-31 Pavel Roskin <proski@gnu.org>
46148 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
46149 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
46150 (grub_mkrescue_SOURCES): Likewise.
46151 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
46153 2008-01-30 Robert Millan <rmh@aybabtu.com>
46155 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
46156 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
46157 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
46158 (grub_probe_SOURCES): ... to here.
46160 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
46161 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
46162 * conf/i386-ieee1275.rmk: Likewise.
46163 * conf/i386-linuxbios.rmk: Likewise.
46164 * conf/powerpc-ieee1275.rmk: Likewise.
46166 2008-01-30 Tristan Gingold <gingold@free.fr>
46168 * kern/rescue.c: Silently accept empty lines.
46170 2008-01-29 Bean <bean123ch@gmail.com>
46172 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
46173 (real_code_2): Code cleanup and change comment style.
46174 (move_memory): Avoid using 32-bit address mode.
46176 2008-01-29 Bean <bean123ch@gmail.com>
46178 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
46179 (png_mod_SOURCES): New variable.
46180 (png_mod_CFLAGS): Likewise.
46181 (png_mod_LDFLAGS): Likewise.
46183 * video/readers/png.c: New file.
46185 2008-01-28 Robert Millan <rmh@aybabtu.com>
46187 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
46188 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
46189 `ifndef GRUB_MOD_GAP' hack.
46190 * util/elf/grub-mkimage.c (add_segments): Likewise.
46192 2008-01-27 Robert Millan <rmh@aybabtu.com>
46194 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
46195 `GRUB_MOD_GAP' for platforms in which it's not defined.
46196 * util/elf/grub-mkimage.c (add_segments): Likewise.
46198 2008-01-27 Robert Millan <rmh@aybabtu.com>
46200 Get grub-emu to build again (including parallel builds).
46202 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
46204 (util/grub-emu.c_DEPENDENCIES): ... this, ...
46205 (normal/execute.c_DEPENDENCIES): ... this, ...
46206 (grub-emu_DEPENDENCIES): ... and this.
46208 * conf/i386-efi.rmk: Likewise.
46209 * conf/i386-linuxbios.rmk: Likewise.
46210 * conf/i386-ieee1275.rmk: Likewise.
46211 * conf/powerpc-ieee1275.rmk: Likewise.
46212 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
46214 2008-01-27 Robert Millan <rmh@aybabtu.com>
46216 * NEWS: Add a few items.
46218 2008-01-27 Robert Millan <rmh@aybabtu.com>
46220 Fix parallel builds with grub-emu. Based on earlier commit for
46221 grub-probe and grub-setup.
46223 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46224 (util/grub-emu.c_DEPENDENCIES): ... this.
46225 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46226 (util/grub-emu.c_DEPENDENCIES): ... this.
46227 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46228 (util/grub-emu.c_DEPENDENCIES): ... this.
46229 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46230 (util/grub-emu.c_DEPENDENCIES): ... this.
46231 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46232 (util/grub-emu.c_DEPENDENCIES): ... this.
46234 2008-01-27 Pavel Roskin <proski@gnu.org>
46236 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
46237 to create a gap between _end and the modules added to the image
46238 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
46239 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
46240 * util/elf/grub-mkimage.c (add_segments): Likewise.
46242 2008-01-26 Pavel Roskin <proski@gnu.org>
46244 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
46245 just return an error.
46247 2008-01-26 Bean <bean123ch@gmail.com>
46249 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
46250 (grub_reiserfs_get_item): Save offset of the next item.
46251 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
46253 2008-01-25 Robert Millan <rmh@aybabtu.com>
46255 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
46256 make all filesystem sources appear together (possibly fixing omissions
46258 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46259 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46260 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46261 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46263 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
46265 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
46266 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46267 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
46268 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46270 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
46271 (probe): Add a sanity check to make sure of our ability to read
46272 requested files when probing for filesystem type.
46274 * genmk.rb: Update copyright year (2007).
46276 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
46277 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
46278 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
46279 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
46280 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
46281 : Remove function prototypes.
46283 2008-01-25 Robert Millan <rmh@aybabtu.com>
46285 Revert my previous commits (based on wrong assumption of how grub_errno
46288 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
46289 * kern/file.c (grub_file_open): Likewise.
46291 2008-01-24 Pavel Roskin <proski@gnu.org>
46293 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
46294 that hang if GRUB tries to setup colors.
46295 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
46296 colors for firmwares that don't support it.
46297 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
46298 Recognize Open Hack'Ware, set flags to work around its
46301 2008-01-24 Robert Millan <rmh@aybabtu.com>
46303 * kern/file.c (grub_file_open): Do not account previous failures of
46304 unrelated functions when grub_errno is checked for.
46305 Reported by Oleg Strikov.
46307 2008-01-24 Bean <bean123ch@gmail.com>
46309 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
46310 (grub_ufs_sblock): New member volume name.
46311 (grub_ufs_find_file): Fix string copy bug.
46312 (grub_ufs_label): Implement this function properly.
46314 * fs/hfs.c (grub_hfs_cnid_type): New enum.
46315 (grub_hfs_iterate_records): Use the correct file number for extents
46316 and catalog file. Fix problem in next index calculation.
46317 (grub_hfs_find_node): Replace recursive function call with loop.
46318 (grub_hfs_iterate_dir): Replace recursive function call with loop.
46320 2008-01-23 Robert Millan <rmh@aybabtu.com>
46322 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
46323 `<grub/symbol.h>' and `<grub/multiboot.h>'.
46324 (grub_multiboot2_real_boot): New function prototype.
46326 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
46327 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
46329 * kern/i386/ieee1275/init.c (grub_os_area_addr)
46330 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
46332 2008-01-23 Robert Millan <rmh@aybabtu.com>
46334 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
46335 #ifdef'ed out grub_printf().
46337 2008-01-23 Robert Millan <rmh@aybabtu.com>
46339 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
46340 grub_dprintf calls, since they make "debug=all" mode unusable.
46341 (grub_console_checkkey): Likewise.
46343 2008-01-23 Robert Millan <rmh@aybabtu.com>
46345 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
46346 `term/i386/pc/at_keyboard.c'.
46347 (pkglib_MODULES): Add `serial.mod'.
46348 (serial_mod_SOURCES): New variable.
46349 (serial_mod_CFLAGS): Likewise.
46350 (serial_mod_LDFLAGS): Likewise.
46352 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
46353 `<grub/powerpc/ieee1275/console.h>'.
46354 (grub_keyboard_controller_init): New function prototype.
46355 (grub_console_checkkey): Likewise.
46356 (grub_console_getkey): Likewise.
46358 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
46361 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
46362 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
46364 2008-01-23 Robert Millan <rmh@aybabtu.com>
46366 * kern/i386/pc/init.c (make_install_device): When memdisk image is
46367 present, "(memdisk)/boot/grub" becomes the default prefix.
46369 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
46370 a memdisk tarball with all the modules. Add --overlay=DIR option that
46371 allows users to overlay additional files into the image.
46373 2008-01-23 Robert Millan <rmh@aybabtu.com>
46375 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
46376 and `machine/memory.h'.
46377 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
46378 (_multiboot_mod_SOURCES): New variable.
46379 (_multiboot_mod_CFLAGS): Likewise.
46380 (_multiboot_mod_LDFLAGS): Likewise.
46381 (multiboot_mod_SOURCES): Likewise.
46382 (multiboot_mod_CFLAGS): Likewise.
46383 (multiboot_mod_LDFLAGS): Likewise.
46385 * include/grub/i386/ieee1275/loader.h: New file.
46387 * include/grub/i386/ieee1275/machine.h: Likewise.
46389 * include/grub/i386/ieee1275/memory.h: Likewise.
46391 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
46392 variable declaration.
46393 (grub_os_area_size): Likewise.
46395 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
46396 (grub_lower_mem, grub_upper_mem): New variables.
46397 (grub_stop_floppy): New function (just to make
46398 grub_multiboot2_real_boot() happy).
46400 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
46401 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
46402 (grub_stop): New function.
46403 Include `"../realmode.S"' and `"../loader.S"'.
46405 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
46406 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
46408 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
46409 rely on grub_multiboot2_real_boot() for final boot.
46411 2008-01-22 Robert Millan <rmh@aybabtu.com>
46413 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
46414 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
46415 device that doesn't look like an SD card.
46416 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46417 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
46418 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
46419 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
46422 2008-01-22 Robert Millan <rmh@aybabtu.com>
46424 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
46425 avoid claiming over our own code.
46427 2008-01-22 Bean <bean123ch@gmail.com>
46429 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
46430 (jpeg_mod_SOURCES): New variable.
46431 (jpeg_mod_CFLAGS): Likewise.
46432 (jpeg_mod_LDFLAGS): Likewise.
46434 * video/readers/jpeg.c : New file.
46436 2008-01-22 Bean <bean123ch@gmail.com>
46438 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
46439 there are no more items.
46441 2008-01-21 Robert Millan <rmh@aybabtu.com>
46443 * kern/mm.c (grub_mm_init_region): Improve debug message.
46445 2008-01-21 Robert Millan <rmh@aybabtu.com>
46447 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
46448 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
46450 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
46452 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
46453 Indicates start of upper memory.
46454 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
46455 (generate_image): Abort when image size is big enough to corrupt
46458 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
46459 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
46460 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46461 instead of hardcoding 0xA0000.
46462 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
46463 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46464 instead of hardcoding 0xA0000.
46466 2008-01-21 Robert Millan <rmh@aybabtu.com>
46468 * disk/memdisk.c (memdisk_size): New variable.
46469 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
46471 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
46472 image to dynamic memory.
46473 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
46474 `memdisk_size'. Free memdisk block.
46476 2008-01-21 Robert Millan <rmh@aybabtu.com>
46478 Fix detection of very small filesystems (like tar).
46480 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
46481 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
46482 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
46483 a problem with this disk).
46485 2008-01-21 Robert Millan <rmh@aybabtu.com>
46487 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
46488 on grub_biosdisk_rw_standard() error.
46490 2008-01-21 Robert Millan <rmh@aybabtu.com>
46492 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
46494 * kern/elf.c: Likewise.
46495 * kern/ieee1275/ieee1275.c: Likewise.
46496 * kern/powerpc/ieee1275/openfw.c: Likewise.
46497 * term/ieee1275/ofconsole.c: Likewise.
46499 2008-01-21 Robert Millan <rmh@aybabtu.com>
46501 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
46503 * include/grub/kernel.h (grub_arch_memdisk_addr)
46504 (grub_arch_memdisk_size): Moved from here ...
46506 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
46507 (grub_arch_memdisk_size): ... to here.
46509 2008-01-21 Robert Millan <rmh@aybabtu.com>
46511 Mostly based on bugfix from Bean.
46513 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
46514 attribute with hook() parameter.
46515 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
46517 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
46518 attribute with hook() parameter.
46519 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
46522 2008-01-21 Robert Millan <rmh@aybabtu.com>
46524 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
46525 (pkglib_MODULES): Add `memdisk.mod'.
46526 (memdisk_mod_SOURCES): New variable.
46527 (memdisk_mod_CFLAGS): Likewise.
46528 (memdisk_mod_LDFLAGS): Likewise.
46530 * disk/memdisk.c: New file.
46532 * include/grub/disk.h (grub_disk_dev_id): Add
46533 `GRUB_DISK_DEVICE_MEMDISK_ID'.
46535 * include/grub/i386/pc/kernel.h
46536 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
46537 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
46538 (grub_kernel_image_size): New variable declaration.
46539 (grub_total_module_size): Likewise.
46540 (grub_memdisk_image_size): Likewise.
46542 * include/grub/i386/pc/memory.h
46543 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
46545 * include/grub/kernel.h: Include `<grub/symbol.h>'.
46546 (grub_arch_memdisk_addr): New variable declaration.
46547 (grub_arch_memdisk_size): Likewise.
46549 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
46550 (grub_arch_memdisk_size): Likewise.
46552 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
46553 (codestart): Replace hardcoded `0x100000' with
46554 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
46556 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
46557 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
46558 not NULL, append the contents of the file it refers to, at the end of
46559 the compressed kernel image. Initialize `grub_memdisk_image_size'
46560 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
46561 (options): Add "memdisk"|'m' option.
46562 (main): Parse --memdisk|-m option, and pass user-provided path as
46563 parameter to generate_image().
46565 2008-01-20 Robert Millan <rmh@aybabtu.com>
46567 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
46568 grub_dprintf() calls from here ...
46569 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
46571 2008-01-20 Robert Millan <rmh@aybabtu.com>
46573 Fix detection of "real mode" when /options/real-mode? doesn't exist.
46575 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
46577 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
46578 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
46579 `GRUB_IEEE1275_FLAG_REAL_MODE'.
46580 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
46582 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
46583 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
46585 2008-01-19 Robert Millan <rmh@aybabtu.com>
46587 Get rid of confusing function (superseded by
46588 `grub_ieee1275_get_integer_property')
46589 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
46591 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
46593 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
46594 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
46595 in native endianness from grub_ieee1275_get_integer_property().
46597 2008-01-19 Robert Millan <rmh@aybabtu.com>
46599 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
46600 command after "shut-down", since implementations differ on which
46601 the command for halt is.
46603 2008-01-19 Robert Millan <rmh@aybabtu.com>
46605 * include/grub/i386/linuxbios/console.h: Add header protection.
46606 (grub_keyboard_controller_init): New function prototype.
46607 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
46608 (KEYBOARD_COMMAND_READ): Likewise.
46609 (KEYBOARD_COMMAND_WRITE): Likewise.
46610 (KEYBOARD_SCANCODE_SET1): Likewise.
46611 (grub_keyboard_controller_write): New function.
46612 (grub_keyboard_controller_read): Likewise.
46613 (grub_keyboard_controller_init): Likewise.
46615 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
46616 (grub_console_init): On coreboot/LinuxBIOS, call
46617 grub_keyboard_controller_init().
46619 2008-01-19 Robert Millan <rmh@aybabtu.com>
46621 PowerPC changes provided by Pavel Roskin.
46623 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
46624 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
46625 don't rely on cmain() doing it.
46626 * kern/i386/ieee1275/startup.S (_start): Store %eax in
46627 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
46629 2008-01-16 Robert Millan <rmh@aybabtu.com>
46631 * include/grub/i386/linuxbios/memory.h
46632 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
46633 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
46634 receive `table_header' as argument. Instead, probe for it in the
46635 known memory ranges where it can be present.
46636 (grub_available_iterate): Do not pass a fixed `table_header' address
46637 to grub_linuxbios_table_iterate().
46639 2008-01-15 Robert Millan <rmh@aybabtu.com>
46641 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
46642 * conf/i386-ieee1275.rmk: New file.
46643 * include/grub/i386/ieee1275/console.h: Likewise.
46644 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
46645 * include/grub/i386/ieee1275/kernel.h: Likewise.
46646 * include/grub/i386/ieee1275/time.h: Likewise.
46647 * kern/i386/ieee1275/init.c: Likewise.
46648 * kern/i386/ieee1275/startup.S: Likewise.
46650 2008-01-15 Robert Millan <rmh@aybabtu.com>
46652 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
46653 when pointers are 32-bit (but still do set it to one when they are
46656 2008-01-15 Robert Millan <rmh@aybabtu.com>
46658 * include/grub/ieee1275/ieee1275.h
46659 (grub_ieee1275_get_integer_property): New function prototype.
46661 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
46662 (grub_ieee1275_get_integer_property): New function. Wraps around
46663 grub_ieee1275_get_property() to handle endianness.
46665 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
46666 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
46668 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
46669 (grub_map): Likewise.
46670 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
46672 2008-01-15 Bean <bean123ch@gmail.com>
46674 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
46675 (grub_script_execute_cmdline): Reset grub_errno.
46677 * normal/main.c (read_config_file): Reset grub_errno.
46679 * normal/parse.y (script_init): New.
46680 (script): Move function and menuentry here.
46682 (command): Add delimiter at the end of command.
46683 (commands): Adjust to match the new command.
46684 (commandblock): Remove grub_script_lexer_record_start.
46685 (menuentry): Add grub_script_lexer_record_start, use the new commands.
46686 (if): Use the new commands.
46688 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
46690 2008-01-15 Robert Millan <rmh@aybabtu.com>
46692 * normal/menu.c (run_menu): Move timeout message from here ...
46693 (print_timeout): ... to here.
46694 (run_menu): Use print_timeout() once during initial draw to print
46695 the whole message, and again in every clock tick to update only
46696 the number of seconds.
46698 2008-01-15 Robert Millan <rmh@aybabtu.com>
46700 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
46701 actual size of `available' from grub_ieee1275_get_property(), and
46702 restrict parsing to that bound.
46704 2008-01-15 Christian Franke <franke@computer.org>
46706 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
46707 (argp_program_version): Remove variable.
46708 (argp_program_bug_address): Likewise.
46709 (options): Convert from struct argp_option to struct option.
46710 (struct arguments): Remove.
46711 (parse_opt): Remove.
46712 (usage): New function.
46713 (main): Replace struct args members by simple variables.
46714 Replace argp_parse() by getopt_long().
46715 Add switch to evaluate options.
46716 Add missing "(...)" around root_dev in prefix string.
46718 2008-01-14 Robert Millan <rmh@aybabtu.com>
46720 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
46721 for grub_ieee1275_exit(), in order to improve portability.
46723 2008-01-14 Robert Millan <rmh@aybabtu.com>
46725 * util/grub.d/10_linux.in (prefix): Define.
46726 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
46728 2008-01-13 Pavel Roskin <proski@gnu.org>
46730 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
46731 grub_errno if no errors have been detected.
46733 2008-01-12 Robert Millan <rmh@aybabtu.com>
46735 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
46736 (grub_util_get_dev_abstraction): New function prototype.
46738 * util/getroot.c: Include `<grub/util/getroot.h>'
46739 (grub_util_get_grub_dev): Move detection of abstraction type to ...
46740 (grub_util_get_dev_abstraction): ... here (new function).
46742 * util/grub-probe.c: Convert PRINT_* to an enum. Add
46743 `PRINT_ABSTRACTION'.
46744 (probe): Probe for abstraction type when requested.
46745 (main): Understand `--target=abstraction'.
46747 * util/i386/efi/grub-install.in: Add abstraction module to core
46748 image when it is found to be necessary.
46749 * util/i386/pc/grub-install.in: Likewise.
46750 * util/powerpc/ieee1275/grub-install.in: Likewise.
46752 * util/update-grub_lib.in (font_path): Return system path without
46753 converting to GRUB path.
46754 * util/update-grub.in: Convert system path returned by font_path()
46755 to a GRUB path. Use `grub-probe -t abstraction' to determine what
46756 abstraction module is needed for loading fonts (if any). Export
46757 that as `GRUB_PRELOAD_MODULES'.
46758 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
46761 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
46763 Remove some unused code from reiserfs.
46765 * fs/reiserfs.c (struct grub_reiserfs_key)
46766 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
46767 (struct grub_reiserfs_node_body): Removed.
46768 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46770 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46772 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46774 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46776 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46778 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
46780 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46781 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46782 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46784 2008-01-10 Robert Millan <rmh@aybabtu.com>
46786 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
46787 Determines if a file is garbage left by packaging systems, etc.
46788 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
46789 for processing /etc/grub.d scripts.
46790 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
46791 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
46792 as a condition for processing Linux images.
46794 2008-01-10 Pavel Roskin <proski@gnu.org>
46796 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
46797 to compile reiserfs.c on PowerPC.
46799 2008-01-10 Robert Millan <rmh@aybabtu.com>
46801 * kern/device.c (grub_device_iterate): Do not abort device iteration
46802 when one of the devices cannot be opened.
46803 * kern/disk.c (grub_disk_open): Do not account previous failures of
46804 unrelated functions when grub_errno is checked for.
46806 2008-01-08 Robert Millan <rmh@aybabtu.com>
46808 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46809 `! grub_linux_is_bzimage', change order of address comparison to make
46810 it more intuitive, and improve "too big zImage" error message.
46812 2008-01-08 Robert Millan <rmh@aybabtu.com>
46814 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46815 `$(update-grub_DATA)'.
46816 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46819 2008-01-07 Robert Millan <rmh@aybabtu.com>
46821 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46822 which instruction is modified by grub-setup during installation
46823 (since it wasn't obvious by only looking at this file).
46825 2008-01-07 Robert Millan <rmh@aybabtu.com>
46827 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46828 listing actual TODO items.
46830 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46832 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46834 (grub_reiserfs_get_key_offset): Likewise.
46835 (grub_reiserfs_set_key_offset): Likewise.
46836 (grub_reiserfs_set_key_type): Likewise.
46837 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
46839 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46840 better to remove the bitfield version completely.
46842 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46844 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46845 allocated from the heap, due to the fshelp implementation.
46846 (grub_reiserfs_dir): Free NODE, due to the same reason.
46848 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46850 Mostly from Vincent Pelletier:
46852 * fs/reiserfs.c: New file.
46854 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46855 (reiserfs_mod_SOURCES): New variable.
46856 (reiserfs_mod_CFLAGS): Likewise.
46857 (reiserfs_mod_LDFLAGS): Likewise.
46859 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46860 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46861 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46864 2008-01-06 Robert Millan <rmh@aybabtu.com>
46866 * normal/color.c: Remove `<grub/env.h>'.
46868 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46870 * include/grub/normal.h: Include <grub/env.h>.
46872 2008-01-05 Robert Millan <rmh@aybabtu.com>
46874 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46875 usage example with `(hd0,1)'.
46876 Reported by Samuel Thibault.
46878 2008-01-05 Robert Millan <rmh@aybabtu.com>
46880 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
46881 (grub_linux_boot_zimage): Rename to ...
46882 (grub_linux_boot): ... this.
46883 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
46884 (grub_linux_boot_zimage): Conditionalize zImage copy.
46886 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
46887 (grub_linux_boot_bzimage): Remove prototype.
46888 (grub_linux_boot_zimage): Rename to ...
46889 (grub_linux_boot): ... this.
46891 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
46892 (grub_linux_boot): Remove function.
46894 2008-01-05 Robert Millan <rmh@aybabtu.com>
46896 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
46897 (grub_env_write_color_highlight): Likewise.
46898 (grub_wait_after_message): Likewise.
46900 * normal/color.c: New file.
46902 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46903 (normal_mod_DEPENDENCIES): Likewise.
46905 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46906 (normal_mod_DEPENDENCIES): Likewise.
46908 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46909 (normal_mod_DEPENDENCIES): Likewise.
46911 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46912 (normal_mod_DEPENDENCIES): Likewise.
46914 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
46915 for waiting after a message is printed.
46916 * normal/main.c (read_config_file): Likewise.
46917 (grub_normal_init): Register grub_env_write_color_normal() and
46918 grub_env_write_color_highlight() hooks. Mark `color_normal' and
46919 `color_highlight' variables as global.
46921 * normal/menu.c (grub_wait_after_message): New function.
46922 (grub_color_menu_normal): New variable. Replaces ...
46923 (GRUB_COLOR_MENU_NORMAL): ... this macro.
46924 (grub_color_menu_highlight): New variable. Replaces ...
46925 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
46926 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
46927 `GRUB_TERM_COLOR_STANDARD'.
46928 (print_message): Use `grub_setcolorstate' to reload colors. Rename
46929 `normal_code' and `highlight_code' to `old_color_normal' and
46930 `old_color_highlight', respectively.
46931 (grub_menu_init_page): Update colors when drawing the menu, based on
46932 `menu_color_normal' and `menu_color_highlight' variables.
46933 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
46934 a message is printed.
46936 2008-01-05 Robert Millan <rmh@aybabtu.com>
46938 * kern/env.c (grub_env_context_open): Propagate hooks for global
46939 variables to new context.
46941 * kern/main.c (grub_set_root_dev): Export `root' variable.
46943 2008-01-05 Robert Millan <rmh@aybabtu.com>
46945 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
46946 discs unconditionally, since udev and others have options to provide
46949 2008-01-05 Robert Millan <rmh@aybabtu.com>
46951 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
46953 2008-01-04 Christian Franke <franke@computer.org>
46955 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
46958 2008-01-03 Pavel Roskin <proski@gnu.org>
46960 * kern/i386/linuxbios/init.c: Put "void" to all function
46961 declarations with no arguments.
46962 * kern/powerpc/ieee1275/init.c: Likewise.
46963 * term/i386/pc/at_keyboard.c: Likewise.
46964 * term/i386/pc/vga_text.c: Likewise.
46965 * util/grub-mkdevicemap.c: Likewise.
46967 2008-01-02 Robert Millan <rmh@aybabtu.com>
46969 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
46970 message when loaded image is out of bounds.
46971 (grub_multiboot_load_elf64): Likewise.
46973 2008-01-02 Pavel Roskin <proski@gnu.org>
46975 * util/grub.d/10_linux.in: Try version without ".old" when
46976 looking for initrd. It's better to use initrd from the newer
46977 kernel of the same version than no initrd at all.
46979 2008-01-01 Robert Millan <rmh@aybabtu.com>
46981 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
46983 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
46985 * include/grub/video.h: Added grub_video_unmap_color and
46986 grub_video_get_active_render_target.
46987 (grub_video_adapter): Added unmap_color and get_active_render_target.
46989 * video/video.c: Added grub_video_unmap_color and
46990 grub_video_get_active_render_target.
46991 (grub_video_get_info): Changed method to accept NULL pointer as an
46992 argument to allow detection of active video adapter.
46994 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
46995 grub_video_vbe_unmap_color_int.
46996 Added grub_video_vbe_unmap_color and
46997 grub_video_vbe_get_active_render_target.
46998 (grub_video_vbe_adapter): Added unmap_color and
46999 get_active_render_target.
47001 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
47002 with grub_video_vbe_unmap_color_int.
47004 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
47005 (DEFAULT_NORMAL_COLOR): Likewise.
47006 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
47007 (DEFAULT_FG_COLOR): Removed.
47008 (DEFAULT_BG_COLOR): Likewise.
47009 (DEFAULT_CURSOR_COLOR): Changed value.
47010 (grub_virtual_screen): Added standard_color_setting,
47011 normal_color_setting, highlight_color_setting and term_color.
47012 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
47013 (bitmap_width): Added.
47014 (bitmap_height): Likewise.
47015 (bitmap): Likewise.
47016 (set_term_color): Likewise.
47017 (grub_virtual_screen_setup): Changed to use new terminal coloring
47019 (grub_gfxterm_init): Added init for bitmap.
47020 (grub_gfxterm_fini): Added destroy for bitmap.
47021 (redraw_screen_rect): Updated to use background bitmap and new
47023 (scroll_up): Added optimization for case when there is no bitmap.
47024 (grub_gfxterm_cls): Fixed to use correct background color.
47025 (grub_virtual_screen_setcolorstate): Changed to use new terminal
47027 (grub_virtual_screen_setcolor): Likewise.
47028 (grub_virtual_screen_getcolor): Added.
47029 (grub_gfxterm_background_image_cmd): Likewise.
47030 (grub_video_term): Added setcolor and getcolor.
47031 (MOD_INIT): Added registration of background_image command.
47032 (MOD_TERM): Added unregistration for background_image command.
47034 2007-12-30 Pavel Roskin <proski@gnu.org>
47036 * loader/multiboot_loader.c: Fix multiboot command
47037 unregistration. Fix all typos in the word "multiboot".
47039 2007-12-29 Pavel Roskin <proski@gnu.org>
47041 * util/grub.d/10_linux.in: Refactor search for initrd. Add
47042 support for initrd names used in Fedora.
47044 2007-12-26 Bean <bean123ch@gmail.com>
47046 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
47047 (cpio_mod_SOURCES): New variable.
47048 (cpio_mod_CFLAGS): Likewise.
47049 (cpio_mod_LDFLAGS): Likewise.
47051 * fs/cpio.c: New file.
47053 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
47055 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
47057 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
47059 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47061 2007-12-25 Robert Millan <rmh@aybabtu.com>
47063 * include/grub/term.h (struct grub_term): Add `getcolor' function.
47064 (grub_getcolor): New function.
47066 * kern/term.c (grub_getcolor): New function.
47067 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
47068 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
47069 (print_entry): Set normal and highlight colors to
47070 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
47071 respectively, before printing and restore them to old
47073 (grub_menu_init_page): Likewise. Fill an additional colored space
47074 that would otherwise be left blank.
47076 * term/efi/console.c (grub_console_getcolor): New function.
47077 (struct grub_console_term.getcolor): New variable.
47078 * term/i386/pc/console.c (grub_console_getcolor): New function.
47079 (struct grub_console_term.getcolor): New variable.
47080 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
47081 (struct grub_console_term.getcolor): New variable.
47083 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
47084 (struct grub_console_term.setcolor): Remove variable.
47085 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
47086 (struct grub_console_term.setcolor): Remove variable.
47087 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
47088 (struct grub_console_term.setcolor): Remove variable.
47089 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
47090 (struct grub_console_term.setcolor): Remove variable.
47092 2007-12-25 Robert Millan <rmh@aybabtu.com>
47094 * configure.ac: Search for possible unifont.hex locations, and
47095 define UNIFONT_HEX if found.
47097 * Makefile.in (UNIFONT_HEX): Define variable.
47098 (DATA): Rename to ...
47099 (PKGLIB): ... this. Update all users.
47100 (PKGDATA): New variable.
47101 (pkgdata_IMAGES): Rename to ...
47102 (pkglib_IMAGES): ... this. Update all users.
47103 (pkgdata_MODULES): Rename to ...
47104 (pkglib_MODULES): ... this. Update all users.
47105 (pkgdata_PROGRAMS): Rename to ...
47106 (pkglib_PROGRAMS): ... this. Update all users.
47107 (pkgdata_DATA): Rename to ...
47108 (pkglib_DATA): ... this. Update all users.
47109 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
47110 (unicode.pff, ascii.pff): New rules.
47111 (all-local): Add `$(PKGDATA)' dependency.
47112 (install-local): Process `$(PKGDATA)'.
47114 * util/update-grub_lib.in (font_path): Search for *.pff files in
47115 a few more locations, including `${pkgdata}'.
47117 2007-12-23 Robert Millan <rmh@aybabtu.com>
47119 Patch from Bean <bean123ch@gmail.com>:
47120 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
47123 2007-12-21 Bean <bean123ch@gmail.com>
47125 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
47126 (ntfscomp_mod_SOURCES): New variable.
47127 (ntfscomp_mod_CFLAGS): Likewise.
47128 (ntfscomp_mod_LDFLAGS): Likewise.
47130 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
47131 (grub_probe_SOURCES): Likewise.
47132 (grub_emu_SOURCES): Likewise.
47134 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47135 (grub_emu_SOURCES): Likewise.
47137 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47138 (grub_emu_SOURCES): Likewise.
47140 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47141 (grub_emu_SOURCES): Likewise.
47143 * fs/ntfs.c (grub_ntfscomp_func): New variable.
47144 (read_run_list): Renamed to grub_ntfs_read_run_list.
47145 (decomp_nextvcn): Moved to ntfscomp.c.
47146 (decomp_getch): Likewise.
47147 (decomp_get16): Likewise.
47148 (decomp_block): Likewise.
47149 (read_block): Likewise.
47150 (read_data): Partially moved to ntfscomp.c.
47151 (fixup): Change unsigned to grub_uint16_t.
47152 (read_mft): Change unsigned long to grub_uint32_t.
47153 (read_attr): Likewise.
47154 (read_data): Likewise.
47155 (read_run_data): Likewise.
47156 (read_run_list): Likewise.
47157 (read_mft): Likewise.
47159 * fs/ntfscomp.c: New file.
47161 * include/grub/ntfs.h: New file.
47163 2007-12-16 Robert Millan <rmh@aybabtu.com>
47165 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
47166 IDE disk check, since Linux is known to support 20 IDE disks.
47167 Reported by Colin Watson.
47169 2007-12-15 Bean <bean123ch@gmail.com>
47171 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
47172 (lnxboot_img_SOURCES): New variable.
47173 (lnxboot_img_ASFLAGS): Likewise.
47174 (lnxboot_img_LDFLAGS): Likewise.
47176 * boot/i386/pc/lnxboot.S: New file.
47178 2007-11-24 Pavel Roskin <proski@gnu.org>
47180 * configure.ac: Test if '--build-id=none' is supported by the
47181 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
47182 objcopy to generate incorrect binary files (binutils
47183 2.17.50.0.18-1 as shipped by Fedora 8).
47184 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
47185 linking, so that build ID doesn't break the test.
47187 2007-11-24 Pavel Roskin <proski@gnu.org>
47189 * include/grub/i386/time.h: use "void" in the argument list
47190 of grub_cpu_idle().
47191 * include/grub/powerpc/time.h: Likewise.
47192 * include/grub/sparc64/time.h: Likewise.
47194 2007-11-18 Christian Franke <franke@computer.org>
47196 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
47197 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
47198 This fixes the problem that function keys did not work in grub-emu.
47200 2007-11-18 Christian Franke <franke@computer.org>
47202 * disk/host.c (grub_host_open): Remove attribute unused from
47203 name parameter. Add check for "host". This fixes the problem
47204 that grub-emu does not find partitions.
47206 2007-11-18 Christian Franke <franke@computer.org>
47208 * util/hostfs.c (is_dir): New function.
47209 (grub_hostfs_dir): Handle missing dirent.d_type case.
47210 (grub_hostfs_read): Add missing fseek().
47211 (grub_hostfs_label): Clear label pointer. This fixes a crash
47212 of grub-emu on "ls (host)".
47214 2007-11-18 Christian Franke <franke@computer.org>
47216 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
47217 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
47218 to 64 bit boundary by default.
47220 2007-11-18 Bean <bean123ch@gmail.com>
47222 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
47223 (hexdump_mod_SOURCES): New variable.
47224 (hexdump_mod_CFLAGS): Likewise.
47225 (hexdump_mod_LDFLAGS): Likewise.
47227 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47229 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47231 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47233 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47235 * include/grub/hexdump.h: New file.
47237 * commands/hexdump.c: New file.
47239 2007-11-10 Robert Millan <rmh@aybabtu.com>
47241 * commands/i386/pc/play.c (beep_off): Switch order of arguments
47242 in grub_outb() calls.
47243 (beep_on): Likewise.
47245 2007-11-10 Christian Franke <franke@computer.org>
47247 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
47248 (grub_menu_run): Likewise.
47250 2007-11-10 Robert Millan <rmh@aybabtu.com>
47252 * include/grub/i386/efi/machine.h: New file.
47253 * include/grub/i386/linuxbios/machine.h: Likewise.
47254 * include/grub/i386/pc/machine.h: Likewise.
47255 * include/grub/powerpc/ieee1275/machine.h: Likewise.
47256 * include/grub/sparc64/ieee1275/machine.h: Likewise.
47258 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
47259 (serial_hw_io_addr): New variable.
47260 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
47261 instead of `(unsigned short *) 0x400'.
47263 2007-11-10 Bean <bean123ch@gmail.com>
47265 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
47267 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47269 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
47270 (vga_mod_SOURCES): Added.
47271 (vga_mod_CFLAGS): Likewise.
47272 (vga_mod_LDFLAGS): Likewise.
47274 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
47276 (set_map_mask): Likewise.
47277 (set_read_map): Likewise.
47278 (set_read_address): Likewise.
47279 (vga_font): Removed variable.
47280 (get_vga_glyph): Removed function.
47281 (invalidate_char): Likewise.
47282 (write_char): Changed to use grub_font_get_glyph() for font
47284 (grub_vga_putchar): Likewise.
47285 (grub_vga_getcharwidth): Likewise.
47287 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47289 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
47291 (pxeboot_img_LDFLAGS): Likewise.
47292 (diskboot_img_LDFLAGS): Likewise.
47293 (kernel_img_LDFLAGS): Likewise.
47295 2007-11-06 Robert Millan <rmh@aybabtu.com>
47297 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
47298 in grub_outb() calls.
47299 (serial_hw_init): Likewise.
47301 2007-11-05 Robert Millan <rmh@aybabtu.com>
47303 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
47304 spaces. Skip non-regular files.
47306 2007-11-05 Robert Millan <rmh@aybabtu.com>
47308 * kern/disk.c (grub_disk_firmware_fini)
47309 (grub_disk_firmware_is_tainted): New variables.
47311 * include/grub/disk.h (grub_disk_firmware_fini)
47312 (grub_disk_firmware_is_tainted): Likewise.
47314 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
47315 (grub_disk_biosdisk_fini): ... to here.
47316 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
47317 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
47318 is set. Register grub_disk_biosdisk_fini() in
47319 `grub_disk_firmware_fini'.
47321 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
47322 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
47323 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
47324 to finish existing firmware disk interface.
47326 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
47327 (ata_mod_SOURCES): New variable.
47328 (ata_mod_CFLAGS): Likewise.
47329 (ata_mod_LDFLAGS): Likewise.
47331 2007-11-05 Robert Millan <rmh@aybabtu.com>
47333 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
47334 (grub_ata_wait): Reimplement using grub_millisleep().
47336 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
47337 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
47339 2007-11-03 Marco Gerards <marco@gnu.org>
47341 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
47342 (CRTC_ADDR_PORT): New macro.
47343 (CRTC_DATA_PORT): Likewise.
47344 (CRTC_CURSOR): Likewise.
47345 (CRTC_CURSOR_ADDR_HIGH): Likewise.
47346 (CRTC_CURSOR_ADDR_LOW): Likewise.
47347 (update_cursor): New function.
47348 (grub_console_real_putchar): Call `update_cursor'.
47349 (grub_console_gotoxy): Likewise.
47350 (grub_console_cls): Set the default color when clearing the
47352 (grub_console_setcursor): Implemented.
47354 2007-11-03 Marco Gerards <marco@gnu.org>
47356 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
47358 (grub_ata_pio_write): Likewise.
47360 (grub_atapi_identify): Wait after issuing an ATA command.
47361 (grub_atapi_packet): Likewise.
47362 (grub_ata_identify): Likewise.
47363 (grub_ata_readwrite): Likewise.
47365 2007-11-03 Marco Gerards <marco@gnu.org>
47367 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
47368 (grub_ata_pio_write): Likewise.
47369 (grub_ata_readwrite): Use `grub_error', instead of
47370 returning `grub_errno'.
47372 2007-11-03 Marco Gerards <marco@gnu.org>
47374 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
47375 grub_ata_pio_write once for every single sector, instead of for
47378 2007-10-31 Robert Millan <rmh@aybabtu.com>
47380 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
47382 * conf/i386-linuxbios.rmk: New file.
47384 * kern/i386/pc/hardware.c: Likewise.
47385 * term/i386/pc/at_keyboard.c: Likewise.
47386 * term/i386/pc/vga_text.c: Likewise.
47388 * include/grub/i386/linuxbios/boot.h: Likewise.
47389 * include/grub/i386/linuxbios/console.h: Likewise.
47390 * include/grub/i386/linuxbios/init.h: Likewise.
47391 * include/grub/i386/linuxbios/kernel.h: Likewise.
47392 * include/grub/i386/linuxbios/loader.h: Likewise.
47393 * include/grub/i386/linuxbios/memory.h: Likewise.
47394 * include/grub/i386/linuxbios/serial.h: Likewise.
47395 * include/grub/i386/linuxbios/time.h: Likewise.
47397 * kern/i386/linuxbios/init.c: Likewise.
47398 * kern/i386/linuxbios/startup.S: Likewise.
47399 * kern/i386/linuxbios/table.c: Likewise.
47401 2007-10-31 Marco Gerards <marco@gnu.org>
47403 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
47404 (ata_mod_SOURCES): New variable.
47405 (ata_mod_CFLAGS): Likewise.
47406 (ata_mod_LDFLAGS): Likewise.
47408 * disk/ata.c: New file.
47410 * include/grub/disk.h (grub_disk_dev_id): Add
47411 `GRUB_DISK_DEV_ATA_ID'.
47413 2007-10-31 Robert Millan <rmh@aybabtu.com>
47415 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
47416 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
47418 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
47419 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
47421 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
47424 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
47426 2007-10-27 Robert Millan <rmh@aybabtu.com>
47428 * include/grub/types.h (ULONG_MAX): Define macro.
47430 2007-10-22 Robert Millan <rmh@aybabtu.com>
47432 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
47434 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
47436 2007-10-22 Robert Millan <rmh@aybabtu.com>
47438 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
47439 (pkgdata_MODULES): Add `biosdisk.mod'.
47440 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
47443 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
47444 (grub_biosdisk_init): Replace with ...
47445 (GRUB_MOD_INIT(biosdisk)): ... this.
47446 (grub_biosdisk_fini): Replace with ...
47447 (GRUB_MOD_FINI(biosdisk)): ... this.
47449 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
47450 (grub_machine_init): Remove call to grub_biosdisk_init().
47451 (grub_machine_fini): Remove call to grub_machine_fini().
47453 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
47455 2007-10-22 Robert Millan <rmh@aybabtu.com>
47457 * include/grub/time.h: New file.
47458 * include/grub/i386/time.h: Likewise.
47459 * include/grub/powerpc/time.h: Likewise.
47460 * include/grub/sparc64/time.h: Likewise.
47462 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
47464 (KERNEL_MACHINE_TIME_HEADER): ... this.
47465 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47467 (KERNEL_MACHINE_TIME_HEADER): ... this.
47468 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47470 (KERNEL_MACHINE_TIME_HEADER): ... this.
47472 * kern/i386/efi/init.c: Include `<grub/time.h>'.
47473 (grub_millisleep): New function.
47474 * kern/i386/pc/init.c: Include `<grub/time.h>'.
47475 (grub_millisleep): New function.
47476 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
47477 Remove `grub/machine/time.h' include.
47478 (grub_millisleep): New function.
47479 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
47480 Remove `grub/machine/time.h' include.
47481 (grub_millisleep): New function.
47483 * include/grub/misc.h (grub_div_roundup): New function.
47485 * kern/misc.c: Include `<grub/time.h>'.
47486 (grub_millisleep_generic): New function.
47488 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
47490 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
47492 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
47493 `machine/time.h'. Add `time.h'.
47494 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47496 2007-10-21 Robert Millan <rmh@aybabtu.com>
47498 * include/grub/misc.h (grub_max): New function.
47500 2007-10-21 Robert Millan <rmh@aybabtu.com>
47502 * util/misc.c (grub_util_info): Call fflush() before returning.
47504 2007-10-20 Robert Millan <rmh@aybabtu.com>
47506 * genmk.rb (Image): Copy `extra_flags' from here ...
47507 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
47509 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
47510 to `argc' and `args' arguments.
47512 2007-10-17 Robert Millan <rmh@aybabtu.com>
47514 * kern/i386/loader.S: New file.
47516 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
47517 * kern/i386/loader.S (grub_linux_prot_size)... to here.
47518 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
47519 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
47520 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
47521 * kern/i386/loader.S (grub_linux_real_addr)... to here.
47522 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
47523 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
47524 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
47525 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
47526 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
47527 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
47528 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
47529 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
47531 * kern/i386/realmode.S: New file.
47533 * kern/i386/pc/startup.S (protstack): Moved from here ...
47534 * kern/i386/realmode.S (protstack)... to here.
47535 * kern/i386/pc/startup.S (gdt): Moved from here ...
47536 * kern/i386/realmode.S (gdt)... to here.
47537 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
47538 * kern/i386/realmode.S (prot_to_real)... to here.
47540 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
47541 `kern/i386/realmode.S'.
47543 2007-10-17 Robert Millan <rmh@aybabtu.com>
47545 * include/grub/i386/loader.h: New file.
47547 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
47548 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47549 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47550 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47551 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
47552 * include/grub/i386/loader.h (grub_linux_prot_size)
47553 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47554 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47555 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47556 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
47558 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
47560 2007-10-15 Robert Millan <rmh@aybabtu.com>
47562 * normal/misc.c (grub_normal_print_device_info): Do not probe for
47563 filesystem when dev->disk is unset.
47564 Do probe for filesystem even when dev->disk->has_partitions is set.
47565 In case a filesystem is found, always report it.
47566 In case it isn't, if dev->disk->has_partitions is set, report that
47567 a partition table was found instead of reporting that no filesystem
47568 could be identified.
47570 2007-10-12 Robert Millan <rmh@aybabtu.com>
47572 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
47573 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
47575 * include/grub/types.h (grub_host_to_target16): New macro.
47576 (grub_host_to_target32): Likewise.
47577 (grub_host_to_target64): Likewise.
47578 (grub_target_to_host16): Likewise.
47579 (grub_target_to_host32): Likewise.
47580 (grub_target_to_host64): Likewise.
47582 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47583 Renamed from to ...
47584 (GRUB_MOD_ALIGN): ...this. Update all users.
47586 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
47587 grub_host_to_target32.
47588 Replace grub_be_to_cpu32 with grub_target_to_host32.
47589 (load_modules): Likewise.
47590 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
47591 Replace grub_be_to_cpu32 with grub_target_to_host32.
47592 Replace grub_cpu_to_be16 with grub_host_to_target16.
47593 Replace grub_cpu_to_be32 grub_host_to_target32.
47595 2007-10-12 Robert Millan <rmh@aybabtu.com>
47597 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
47598 * util/elf/grub-mkimage.c: ... here.
47600 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
47601 `util/powerpc/ieee1275/grub-mkimage.c'.
47603 2007-10-07 Robert Millan <rmh@aybabtu.com>
47605 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
47606 and make it easier to figure out.
47607 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
47608 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
47609 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
47610 leave us with less than HEAP_MIN_SIZE total heap.
47611 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
47613 2007-10-03 Robert Millan <rmh@aybabtu.com>
47615 * include/grub/i386/io.h: New file.
47616 * commands/i386/pc/play.c (inb): Removed.
47618 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47620 * term/i386/pc/serial.c (inb): Removed.
47622 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47624 * term/i386/pc/vga.c (inb): Removed.
47626 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47629 2007-10-02 Robert Millan <rmh@aybabtu.com>
47631 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
47632 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47633 Reported by Marcin Kurek.
47635 2007-09-07 Robert Millan <rmh@aybabtu.com>
47637 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
47638 SmartFirmware version updates (as released by Sven Luther), and avoid
47639 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
47640 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
47643 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47645 From Hitoshi Ozeki:
47646 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
47647 when merging two regions.
47649 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47651 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
47652 * normal/completion.c (grub_normal_do_completion): Likewise.
47653 Reported by Hitoshi Ozeki.
47655 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47657 Do not use devices at boot in chainloading.
47659 * loader/i386/pc/chainloader.c (boot_drive): New variable.
47660 (boot_part_addr): Likewise.
47661 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
47662 with BOOT_DRIVE and BOOT_PART_ADDR.
47663 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
47664 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
47666 2007-08-29 Robert Millan <rmh@aybabtu.com>
47668 Patch from Simon Peter <dn.tlp@gmx.net>:
47669 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
47670 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
47671 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
47672 util/i386/pc/grub-setup.c_DEPENDENCIES.
47673 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
47674 util/grub-probe.c_DEPENDENCIES.
47675 * conf/powerpc-ieee1275.rmk: Likewise.
47677 2007-08-28 Robert Millan <rmh@aybabtu.com>
47679 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
47680 to tell grub-mkdevicemap how to name devices.
47681 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
47684 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
47685 util/i386/get_disk_name.c.
47686 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
47687 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
47688 util/ieee1275/get_disk_name.c.
47690 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
47692 * DISTLIST: Add util/i386/get_disk_name.c and
47693 util/ieee1275/get_disk_name.c.
47695 * util/grub-mkdevicemap.c: Replace device naming logic with
47696 grub_util_get_disk_name() calls.
47698 2007-08-20 Robert Millan <rmh@aybabtu.com>
47700 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
47701 (so that it works for both plural and singular quantities).
47703 2007-08-05 Robert Millan <rmh@aybabtu.com>
47705 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
47706 so that [xz] isn't taken into account when determining order.
47708 2007-08-02 Marco Gerards <marco@gnu.org>
47710 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
47711 `include/multiboot2.h', `include/grub/elfload.h',
47712 `include/multiboot.h', `include/grub/multiboot.h',
47713 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
47714 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
47715 `kern/elf.c', `loader/multiboot_loader.c',
47716 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
47717 `loader/i386/pc/multiboot2.c',
47718 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
47719 `util/i386/pc/grub-mkrescue.in'. Remove
47720 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
47721 `include/grub/i386/pc/util/biosdisk.h' and
47722 `include/grub/powerpc/ieee1275/multiboot.h'.
47724 2007-08-02 Bean <bean123ch@gmail.com>
47726 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
47727 (ntfs_mod_SOURCES): New variable.
47728 (ntfs_mod_CFLAGS): Likewise.
47729 (ntfs_mod_LDFLAGS): Likewise.
47731 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
47732 (grub_probe_SOURCES): Likewise.
47733 (grub_emu_SOURCES): Likewise.
47735 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47736 (grub_emu_SOURCES): Likewise.
47738 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47739 (grub_emu_SOURCES): Likewise.
47741 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
47743 * fs/ntfs.c: New file.
47745 2007-08-02 Bean <bean123ch@gmail.com>
47747 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
47749 * file.h (grub_file): Likewise.
47751 * fshelp.h (grub_fshelp_read_file): Likewise.
47753 * util/i386/pc/grub-setup.c (setup): Likewise.
47754 (save_first_sector): Likewise.
47755 (save_blocklists): Likewise.
47757 * fs/affs.c (grub_affs_read_file): Likewise.
47759 * fs/ext2.c (grub_ext2_read_file): Likewise.
47761 * fs/fat.c (grub_fat_read_data): Likewise.
47763 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
47765 * fs/hfs.c (grub_hfs_read_file): Likewise.
47767 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47769 * fs/jfs.c (grub_jfs_read_file): Likewise.
47771 * fs/minix.c (grub_minix_read_file): Likewise.
47773 * fs/sfs.c (grub_sfs_read_file): Likewise.
47775 * fs/ufs.c (grub_ufs_read_file): Likewise.
47777 * fs/xfs.c (grub_xfs_read_file): Likewise.
47779 * command/blocklist.c (read_blocklist): Likewise.
47780 (print_blocklist): Likewise.
47782 2007-08-02 Marco Gerards <marco@gnu.org>
47784 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
47787 * disk/host.c: New file.
47789 * util/hostfs.c: Likewise.
47791 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
47792 return `GRUB_ERR_BAD_FS'.
47793 * fs/sfs.c (grub_sfs_mount): Likewise.
47794 * fs/xfs.c (grub_xfs_mount): Likewise.
47796 * include/grub/disk.h (enum grub_disk_dev_id): Add
47797 `GRUB_DISK_DEVICE_HOST_ID'.
47799 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
47801 2007-07-24 Jerone Young <jerone@gmail.com>
47803 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
47804 modules for compilation.
47805 * conf/powerpc-ieee1275.rmk: Likewise.
47807 * include/multiboot.h: Move multiboot definitions to one file. Rename
47808 many definitions to not get grub specific.
47809 * include/multiboot2.h: Create header with multiboot 2 definitions.
47810 * include/grub/multiboot.h: Header for grub specific function
47811 prototypes and definitions.
47812 * include/grub/multiboot2.h: Likewise.
47813 * include/grub/multiboot_loader.h: Likewise.
47814 * include/grub/i386/pc/multiboot.h: Removed.
47815 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47817 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47818 and 2 to allow for one multiboot and module commands.
47819 * loader/multiboot2.c: Add multiboot2 functionality.
47820 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47821 and definition names.
47822 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47824 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47825 ieee1275 specific multiboot2 code.
47827 * kern/i386/pc/startup.S: Change headers and definition names for
47828 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47830 2007-07-22 Robert Millan <rmh@aybabtu.com>
47832 * geninitheader.sh: Process file specified in first parameter rather
47833 than hardcoding grub_modules_init.lst.
47834 * geninit.sh: Likewise. Also, construct header name dynamically rather
47835 than hardcoding grub_modules_init.h.
47837 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47838 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47839 grub_probe_init.[ch] and grub_setup_init.[ch].
47841 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47842 grub_modules_init.h with grub_emu_init.h.
47843 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47844 grub_probe_init.[ch] files.
47845 * conf/i386-efi.rmk: Likewise.
47846 * conf/i386-pc.rmk: Likewise.
47847 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47848 grub_setup_init.[ch] files.
47850 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47851 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47852 to initialize modules rather than a list of hardcoded functions.
47853 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47854 grub_init_all() to initialize modules rather than a list of hardcoded
47857 2007-07-22 Robert Millan <rmh@aybabtu.com>
47859 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47860 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47862 2007-07-22 Robert Millan <rmh@aybabtu.com>
47864 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47865 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47866 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47867 flag when running on SmartFirmware.
47868 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47869 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47872 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47873 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47874 rather than decreasing it.
47876 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47877 there's not enough space to do it, fail in the same way as when it
47878 can't be done because there are no partitions.
47880 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
47881 when nvsetenv failed.
47883 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47885 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
47886 because this rule is automatically generated.
47887 (grub-mkrescue): Removed for the same reason as above.
47889 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47891 Migrate to GNU General Public License Version 3.
47893 * COPYING: Replaced with the plain text version of GPLv3.
47895 * config.guess: Updated from gnulib.
47896 * config.sub: Likewise.
47898 * geninit.sh: Output a GPLv3 copyright notice.
47899 * geninitheader.sh: Likewise.
47900 * genmodsrc.sh: Likewise.
47901 * gensymlist.sh.in: Likewise.
47903 * boot/i386/pc/boot.S: Upgraded to GPLv3.
47904 * boot/i386/pc/diskboot.S: Likewise.
47905 * boot/i386/pc/pxeboot.S: Likewise.
47906 * commands/blocklist.c: Likewise.
47907 * commands/boot.c: Likewise.
47908 * commands/cat.c: Likewise.
47909 * commands/cmp.c: Likewise.
47910 * commands/configfile.c: Likewise.
47911 * commands/echo.c: Likewise.
47912 * commands/help.c: Likewise.
47913 * commands/ls.c: Likewise.
47914 * commands/search.c: Likewise.
47915 * commands/terminal.c: Likewise.
47916 * commands/test.c: Likewise.
47917 * commands/videotest.c: Likewise.
47918 * commands/i386/cpuid.c: Likewise.
47919 * commands/i386/pc/halt.c: Likewise.
47920 * commands/i386/pc/play.c: Likewise.
47921 * commands/i386/pc/reboot.c: Likewise.
47922 * commands/i386/pc/vbeinfo.c: Likewise.
47923 * commands/i386/pc/vbetest.c: Likewise.
47924 * commands/ieee1275/halt.c: Likewise.
47925 * commands/ieee1275/reboot.c: Likewise.
47926 * commands/ieee1275/suspend.c: Likewise.
47927 * disk/loopback.c: Likewise.
47928 * disk/lvm.c: Likewise.
47929 * disk/raid.c: Likewise.
47930 * disk/efi/efidisk.c: Likewise.
47931 * disk/i386/pc/biosdisk.c: Likewise.
47932 * disk/ieee1275/ofdisk.c: Likewise.
47933 * font/manager.c: Likewise.
47934 * fs/affs.c: Likewise.
47935 * fs/ext2.c: Likewise.
47936 * fs/fat.c: Likewise.
47937 * fs/fshelp.c: Likewise.
47938 * fs/hfs.c: Likewise.
47939 * fs/hfsplus.c: Likewise.
47940 * fs/iso9660.c: Likewise.
47941 * fs/jfs.c: Likewise.
47942 * fs/minix.c: Likewise.
47943 * fs/sfs.c: Likewise.
47944 * fs/ufs.c: Likewise.
47945 * fs/xfs.c: Likewise.
47946 * hello/hello.c: Likewise.
47947 * include/grub/acorn_filecore.h: Likewise.
47948 * include/grub/arg.h: Likewise.
47949 * include/grub/bitmap.h: Likewise.
47950 * include/grub/boot.h: Likewise.
47951 * include/grub/cache.h: Likewise.
47952 * include/grub/device.h: Likewise.
47953 * include/grub/disk.h: Likewise.
47954 * include/grub/dl.h: Likewise.
47955 * include/grub/elfload.h: Likewise.
47956 * include/grub/env.h: Likewise.
47957 * include/grub/err.h: Likewise.
47958 * include/grub/file.h: Likewise.
47959 * include/grub/font.h: Likewise.
47960 * include/grub/fs.h: Likewise.
47961 * include/grub/fshelp.h: Likewise.
47962 * include/grub/gzio.h: Likewise.
47963 * include/grub/hfs.h: Likewise.
47964 * include/grub/kernel.h: Likewise.
47965 * include/grub/loader.h: Likewise.
47966 * include/grub/lvm.h: Likewise.
47967 * include/grub/misc.h: Likewise.
47968 * include/grub/mm.h: Likewise.
47969 * include/grub/net.h: Likewise.
47970 * include/grub/normal.h: Likewise.
47971 * include/grub/parser.h: Likewise.
47972 * include/grub/partition.h: Likewise.
47973 * include/grub/pc_partition.h: Likewise.
47974 * include/grub/raid.h: Likewise.
47975 * include/grub/rescue.h: Likewise.
47976 * include/grub/script.h: Likewise.
47977 * include/grub/setjmp.h: Likewise.
47978 * include/grub/symbol.h: Likewise.
47979 * include/grub/term.h: Likewise.
47980 * include/grub/terminfo.h: Likewise.
47981 * include/grub/tparm.h: Likewise.
47982 * include/grub/types.h: Likewise.
47983 * include/grub/video.h: Likewise.
47984 * include/grub/efi/api.h: Likewise.
47985 * include/grub/efi/chainloader.h: Likewise.
47986 * include/grub/efi/console.h: Likewise.
47987 * include/grub/efi/console_control.h: Likewise.
47988 * include/grub/efi/disk.h: Likewise.
47989 * include/grub/efi/efi.h: Likewise.
47990 * include/grub/efi/pe32.h: Likewise.
47991 * include/grub/efi/time.h: Likewise.
47992 * include/grub/i386/linux.h: Likewise.
47993 * include/grub/i386/setjmp.h: Likewise.
47994 * include/grub/i386/types.h: Likewise.
47995 * include/grub/i386/efi/kernel.h: Likewise.
47996 * include/grub/i386/efi/loader.h: Likewise.
47997 * include/grub/i386/efi/time.h: Likewise.
47998 * include/grub/i386/pc/biosdisk.h: Likewise.
47999 * include/grub/i386/pc/boot.h: Likewise.
48000 * include/grub/i386/pc/chainloader.h: Likewise.
48001 * include/grub/i386/pc/console.h: Likewise.
48002 * include/grub/i386/pc/init.h: Likewise.
48003 * include/grub/i386/pc/kernel.h: Likewise.
48004 * include/grub/i386/pc/loader.h: Likewise.
48005 * include/grub/i386/pc/memory.h: Likewise.
48006 * include/grub/i386/pc/multiboot.h: Likewise.
48007 * include/grub/i386/pc/serial.h: Likewise.
48008 * include/grub/i386/pc/time.h: Likewise.
48009 * include/grub/i386/pc/vbe.h: Likewise.
48010 * include/grub/i386/pc/vbeblit.h: Likewise.
48011 * include/grub/i386/pc/vbefill.h: Likewise.
48012 * include/grub/i386/pc/vbeutil.h: Likewise.
48013 * include/grub/i386/pc/vga.h: Likewise.
48014 * include/grub/ieee1275/ieee1275.h: Likewise.
48015 * include/grub/ieee1275/ofdisk.h: Likewise.
48016 * include/grub/powerpc/libgcc.h: Likewise.
48017 * include/grub/powerpc/setjmp.h: Likewise.
48018 * include/grub/powerpc/types.h: Likewise.
48019 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
48020 * include/grub/powerpc/ieee1275/console.h: Likewise.
48021 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
48022 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
48023 * include/grub/powerpc/ieee1275/loader.h: Likewise.
48024 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
48025 * include/grub/powerpc/ieee1275/time.h: Likewise.
48026 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
48027 * include/grub/sparc64/libgcc.h: Likewise.
48028 * include/grub/sparc64/setjmp.h: Likewise.
48029 * include/grub/sparc64/types.h: Likewise.
48030 * include/grub/sparc64/ieee1275/console.h: Likewise.
48031 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
48032 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
48033 * include/grub/sparc64/ieee1275/time.h: Likewise.
48034 * include/grub/util/biosdisk.h: Likewise.
48035 * include/grub/util/getroot.h: Likewise.
48036 * include/grub/util/lvm.h: Likewise.
48037 * include/grub/util/misc.h: Likewise.
48038 * include/grub/util/raid.h: Likewise.
48039 * include/grub/util/resolve.h: Likewise.
48040 * io/gzio.c: Likewise.
48041 * kern/device.c: Likewise.
48042 * kern/disk.c: Likewise.
48043 * kern/dl.c: Likewise.
48044 * kern/elf.c: Likewise.
48045 * kern/env.c: Likewise.
48046 * kern/err.c: Likewise.
48047 * kern/file.c: Likewise.
48048 * kern/fs.c: Likewise.
48049 * kern/loader.c: Likewise.
48050 * kern/main.c: Likewise.
48051 * kern/misc.c: Likewise.
48052 * kern/mm.c: Likewise.
48053 * kern/parser.c: Likewise.
48054 * kern/partition.c: Likewise.
48055 * kern/rescue.c: Likewise.
48056 * kern/term.c: Likewise.
48057 * kern/efi/efi.c: Likewise.
48058 * kern/efi/init.c: Likewise.
48059 * kern/efi/mm.c: Likewise.
48060 * kern/i386/dl.c: Likewise.
48061 * kern/i386/efi/init.c: Likewise.
48062 * kern/i386/efi/startup.S: Likewise.
48063 * kern/i386/pc/init.c: Likewise.
48064 * kern/i386/pc/lzo1x.S: Likewise.
48065 * kern/i386/pc/startup.S: Likewise.
48066 * kern/ieee1275/ieee1275.c: Likewise.
48067 * kern/powerpc/cache.S: Likewise.
48068 * kern/powerpc/dl.c: Likewise.
48069 * kern/powerpc/ieee1275/cmain.c: Likewise.
48070 * kern/powerpc/ieee1275/crt0.S: Likewise.
48071 * kern/powerpc/ieee1275/init.c: Likewise.
48072 * kern/powerpc/ieee1275/openfw.c: Likewise.
48073 * kern/sparc64/cache.S: Likewise.
48074 * kern/sparc64/dl.c: Likewise.
48075 * kern/sparc64/ieee1275/init.c: Likewise.
48076 * kern/sparc64/ieee1275/openfw.c: Likewise.
48077 * loader/efi/chainloader.c: Likewise.
48078 * loader/efi/chainloader_normal.c: Likewise.
48079 * loader/i386/efi/linux.c: Likewise.
48080 * loader/i386/efi/linux_normal.c: Likewise.
48081 * loader/i386/pc/chainloader.c: Likewise.
48082 * loader/i386/pc/chainloader_normal.c: Likewise.
48083 * loader/i386/pc/linux.c: Likewise.
48084 * loader/i386/pc/linux_normal.c: Likewise.
48085 * loader/i386/pc/multiboot.c: Likewise.
48086 * loader/i386/pc/multiboot_normal.c: Likewise.
48087 * loader/powerpc/ieee1275/linux.c: Likewise.
48088 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
48089 * normal/arg.c: Likewise.
48090 * normal/cmdline.c: Likewise.
48091 * normal/command.c: Likewise.
48092 * normal/completion.c: Likewise.
48093 * normal/execute.c: Likewise.
48094 * normal/function.c: Likewise.
48095 * normal/lexer.c: Likewise.
48096 * normal/main.c: Likewise.
48097 * normal/menu.c: Likewise.
48098 * normal/menu_entry.c: Likewise.
48099 * normal/misc.c: Likewise.
48100 * normal/parser.y: Likewise.
48101 * normal/script.c: Likewise.
48102 * normal/i386/setjmp.S: Likewise.
48103 * normal/powerpc/setjmp.S: Likewise.
48104 * normal/sparc64/setjmp.S: Likewise.
48105 * partmap/acorn.c: Likewise.
48106 * partmap/amiga.c: Likewise.
48107 * partmap/apple.c: Likewise.
48108 * partmap/gpt.c: Likewise.
48109 * partmap/pc.c: Likewise.
48110 * partmap/sun.c: Likewise.
48111 * term/gfxterm.c: Likewise.
48112 * term/terminfo.c: Likewise.
48113 * term/efi/console.c: Likewise.
48114 * term/i386/pc/console.c: Likewise.
48115 * term/i386/pc/serial.c: Likewise.
48116 * term/i386/pc/vesafb.c: Likewise.
48117 * term/i386/pc/vga.c: Likewise.
48118 * term/ieee1275/ofconsole.c: Likewise.
48119 * util/biosdisk.c: Likewise.
48120 * util/console.c: Likewise.
48121 * util/genmoddep.c: Likewise.
48122 * util/getroot.c: Likewise.
48123 * util/grub-emu.c: Likewise.
48124 * util/grub-mkdevicemap.c: Likewise.
48125 * util/grub-probe.c: Likewise.
48126 * util/lvm.c: Likewise.
48127 * util/misc.c: Likewise.
48128 * util/raid.c: Likewise.
48129 * util/resolve.c: Likewise.
48130 * util/update-grub.in: Likewise.
48131 * util/update-grub_lib.in: Likewise.
48132 * util/grub.d/00_header.in: Likewise.
48133 * util/grub.d/10_hurd.in: Likewise.
48134 * util/grub.d/10_linux.in: Likewise.
48135 * util/i386/efi/grub-install.in: Likewise.
48136 * util/i386/efi/grub-mkimage.c: Likewise.
48137 * util/i386/pc/grub-install.in: Likewise.
48138 * util/i386/pc/grub-mkimage.c: Likewise.
48139 * util/i386/pc/grub-mkrescue.in: Likewise.
48140 * util/i386/pc/grub-setup.c: Likewise.
48141 * util/i386/pc/misc.c: Likewise.
48142 * util/powerpc/ieee1275/grub-install.in: Likewise.
48143 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
48144 * util/powerpc/ieee1275/misc.c: Likewise.
48145 * video/bitmap.c: Likewise.
48146 * video/video.c: Likewise.
48147 * video/i386/pc/vbe.c: Likewise.
48148 * video/i386/pc/vbeblit.c: Likewise.
48149 * video/i386/pc/vbefill.c: Likewise.
48150 * video/i386/pc/vbeutil.c: Likewise.
48151 * video/readers/tga.c: Likewise.
48153 2007-07-02 Robert Millan <rmh@aybabtu.com>
48155 * conf/i386-efi.rmk: Replace obsolete reference to
48156 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
48157 with util/getroot.c.
48158 * conf/powerpc-ieee1275.rmk: Likewise.
48159 * conf/sparc64-ieee1275.rmk: Likewise.
48161 * util/grub-emu.c (main): Fix unchecked pointer handling.
48163 2007-07-02 Robert Millan <rmh@aybabtu.com>
48165 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
48166 invocation to fail, in order to support partition-less media.
48168 * util/i386/pc/grub-install.in: Likewise.
48170 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
48171 which fs or partmap modules are needed (akin to its sister scripts).
48173 Also use grub-probe to get rid of unportable /proc/mounts check.
48175 Print the same informational message that the other scripts do, before
48178 2007-06-23 Robert Millan <rmh@aybabtu.com>
48180 * util/update-grub_lib.in (font_path): New function. Determine whether
48181 a font file can be found and, if so, echo the GRUB path to it.
48183 * util/update-grub.in: Handle multiple terminals depending on user
48184 input, platform availability and font file presence. Propagate
48185 variables of our findings to /etc/grub.d/ children.
48187 * util/grub.d/00_header.in: Handle multiple terminals, based on
48188 environment setup by update-grub.
48190 2007-06-23 Robert Millan <rmh@aybabtu.com>
48192 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
48194 2007-06-21 Robert Millan <rmh@aybabtu.com>
48196 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
48197 indicate end of data section in kernel image.
48198 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
48199 GRUB_KERNEL_MACHINE_DATA_END.
48201 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
48203 * kern/i386/efi/startup.S: Likewise.
48205 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
48206 during image generation. Implement --prefix option to override this
48208 * util/i386/efi/grub-mkimage.c: Likewise.
48210 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
48211 code to make path relative to its root into a separate function.
48213 * util/i386/pc/grub-install.in: Use newly provided
48214 make_system_path_relative_to_its_root() to convert ${grubdir}, then
48215 pass the result to grub-install --prefix.
48217 2007-06-13 Robert Millan <rmh@aybabtu.com>
48219 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
48220 DEFAULT_DEVICE_MAP.
48221 * util/grub-emu.c: Use above definitions from misc.h instead of
48223 * util/grub-mkdevicemap.c: Likewise.
48224 * util/i386/pc/grub-setup.c: Likewise.
48225 * util/grub-probe.c: Likewise.
48226 (probe): Abort with grub_util_error() when either
48227 grub_guess_root_device or grub_util_get_grub_dev fails.
48229 2007-06-12 Robert Millan <rmh@aybabtu.com>
48231 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
48232 "pager" assignment.
48233 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
48235 * util/grub-probe.c (probe): Likewise for "drive_name".
48237 2007-06-11 Robert Millan <rmh@aybabtu.com>
48239 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
48240 not just the cdrom one.
48242 2007-06-11 Robert Millan <rmh@aybabtu.com>
48244 * util/i386/pc/grub-mkrescue.in: Add "set -e".
48245 Add --pkglibdir=DIR option to override pkglibdir.
48246 Mention --image-type=TYPE in help output.
48247 Fix --grub-mkimage (it was a no-op).
48248 Abort gracefully when no parameter is given.
48250 2007-06-11 Robert Millan <rmh@aybabtu.com>
48252 * util/i386/pc/grub-mkrescue.in: New file.
48253 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
48254 * Makefile.in: Handle bin_SCRIPTS.
48256 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
48258 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
48259 list of video modes.
48261 2007-06-06 Robert Millan <rmh@aybabtu.com>
48263 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
48264 file doesn't exist, or if it is in a filesystem grub can't read.
48266 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
48267 not abort if GRUB_DRIVE could not be defined. Rearrange generated
48268 header comment to fit in 80 columns when the variables are resolved.
48270 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
48271 could be identified by update-grub. Remove redundant check for
48272 unifont.pff existence (since convert_system_path_to_grub_path now
48275 2007-06-04 Robert Millan <rmh@aybabtu.com>
48277 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
48279 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
48281 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
48283 2007-06-04 Robert Millan <rmh@aybabtu.com>
48285 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
48287 * include/grub/partition.h: Declare grub_apple_partition_map_init and
48288 grub_apple_partition_map_fini.
48291 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
48292 to access >2 TiB disks).
48294 Print disk->total_sectors with %llu instead of %lu, since this
48295 variable is always 64-bit (prevents wrong disk size from being displayed
48296 on either >2 TiB disk or big-endian CPU).
48298 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
48299 into a generic case that supports all (sane) partition maps.
48301 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
48304 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
48305 and grub_apple_partition_map_fini() after that.
48307 2007-06-01 Robert Millan <rmh@aybabtu.com>
48309 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
48311 * util/grub.d/00_header.in: Only enable gfxterm when
48312 convert_system_path_to_grub_path() succeeds.
48314 2007-05-20 Robert Millan <rmh@aybabtu.com>
48316 * util/update-grub_lib.in: New file.
48317 * DISTLIST: Add update-grub_lib.in.
48318 * conf/common.rmk: Generate update-grub_lib and install it in
48320 * Makefile.in: Add install routine for $(lib_DATA).
48322 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
48323 function provided by update-grub_lib to support arbitrary paths of
48325 * util/update-grub.in: Use convert_system_path_to_grub_path() to
48326 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
48328 2007-05-19 Robert Millan <rmh@aybabtu.com>
48330 * commands/i386/cpuid.c: New module.
48331 * DISTLIST: Add it.
48332 * conf/i386-efi.rmk: Enable cpuid.mod.
48333 * conf/i386-pc.rmk: Likewise.
48335 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48337 * kern/disk.c (grub_disk_read): Check return value of
48340 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48342 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
48344 * disk/raid.c (grub_raid_open): Likewise.
48346 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48348 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
48349 stack instead of on the heap.
48351 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
48352 before doing a read on it.
48354 * configure.ac: Only use -fno-stack-protector for the target
48357 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48359 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
48360 __attribute_ ((unused)) to mode_type argument.
48362 * util/getroot.c (grub_guess_root_device): Fix #endif.
48364 * kern/misc.c (memcmp): Fix prototype.
48366 * include/grub/partition.h [GRUB_UTIL]
48367 (grub_gpt_partition_map_init): Add prototype.
48368 (grub_gpt_partition_map_fini): Likewise.
48370 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
48371 at the right place.
48373 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
48374 (grub_fat_read_data): Likewise.
48375 (grub_fat_find_dir): Likewise.
48377 * font/manager.c (find_glyph): Make table a const.
48378 (grub_font_get_glyph): Remove bitmap from if statement.
48380 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
48382 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
48383 code, first search for device in /dev/mapper, then in /dev.
48384 (grub_util_get_grub_dev): New function.
48385 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
48387 * util/grub-probe.c (probe): Remove check for RAID, call
48388 grub_util_get_grub_dev() instead of
48389 grub_util_biosdisk_get_grub_dev().
48390 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
48391 grub_util_biosdisk_get_grub_dev().
48392 * util/i386/pc/grub-setup.c (main): Likewise.
48394 2007-05-16 Robert Millan <rmh@aybabtu.com>
48396 * DISTLIST: Update for the latest changes.
48397 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
48398 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
48399 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
48400 grub/util/biosdisk.h.
48401 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
48402 grub/util/biosdisk.h.
48404 2007-05-16 Robert Millan <rmh@aybabtu.com>
48406 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
48408 2007-05-16 Robert Millan <rmh@aybabtu.com>
48410 * util/i386/efi/grub-install.in: New.
48411 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
48412 newly added grub-install.
48413 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
48415 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
48416 grub/util/biosdisk.h.
48417 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
48418 grub/util/biosdisk.h.
48420 2007-05-16 Robert Millan <rmh@aybabtu.com>
48422 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
48423 * include/grub/util/biosdisk.h: ... here.
48424 * util/i386/pc/biosdisk.c: Moved to ...
48425 * util/biosdisk.c: ... here.
48426 * util/i386/pc/getroot.c: Moved to ...
48427 * util/getroot.c: ... here.
48428 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
48429 * util/grub-mkdevicemap.c: ... here.
48430 * util/i386/pc/grub-probe.c: Moved to ...
48431 * util/grub-probe.c: ... here.
48433 2007-05-15 Robert Millan <rmh@aybabtu.com>
48435 * util/update-grub.in: Remove duplicated line in grub.cfg header
48438 2007-05-13 Robert Millan <rmh@aybabtu.com>
48440 * util/update-grub.in: Fix a few assumptions about the devices holding
48441 /, /boot and /boot/grub being the same.
48442 * util/grub.d/00_header.in: Likewise.
48443 * util/grub.d/10_hurd.in: Likewise.
48444 * util/grub.d/10_linux.in: Likewise.
48446 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
48447 patterns. Use that to define the `.old' suffix as older than `'.
48449 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
48451 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
48452 the grub.cfg header message.
48454 2007-05-11 Robert Millan <rmh@aybabtu.com>
48456 * util/update-grub.in: Create device.map if it doesn't already exist,
48457 before attempting to run grub-probe.
48458 Check for grub-probe and grub-mkdevicemap with the same code
48459 grub-install is using.
48462 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
48464 * Makefile.in: Add the datarootdir autoconf variable.
48466 2007-05-09 Robert Millan <rmh@aybabtu.com>
48468 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
48469 fail gracefully if dev->disk->partition == NULL.
48471 2007-05-07 Robert Millan <rmh@aybabtu.com>
48473 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
48474 determine partition map module.
48475 * util/i386/pc/grub-install.in: Use this feature to decide which
48476 partition module to load, instead of hardcoding pc and gpt.
48478 2007-05-07 Robert Millan <rmh@aybabtu.com>
48480 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
48481 source directory differs from build directory.
48483 2007-05-05 Robert Millan <rmh@aybabtu.com>
48485 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
48488 2007-05-05 Robert Millan <rmh@aybabtu.com>
48490 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
48492 2007-05-05 Robert Millan <rmh@aybabtu.com>
48494 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
48495 command-line arguments via ${GRUB_CMDLINE_LINUX}.
48497 2007-05-05 Robert Millan <rmh@aybabtu.com>
48499 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
48500 (grub_probe_SOURCES): Likewise.
48501 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
48502 GPT and initialize dos_part and bsd_part accordingly.
48503 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
48505 (main): Activate gpt module for use during partition identification,
48506 and deactivate it afterwards.
48507 * util/i386/pc/grub-install.in: Add gpt module to core.img.
48508 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
48509 partition identification, and deactivate it afterwards.
48511 2007-05-05 Robert Millan <rmh@aybabtu.com>
48513 * term/i386/pc/console.c (grub_console_fini): Call
48514 grub_term_set_current() before grub_term_unregister().
48516 2007-05-04 Robert Millan <rmh@aybabtu.com>
48518 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
48519 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
48520 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
48521 and update-grub_DATA.
48522 * conf/common.rmk: Build and install update-grub components.
48523 * conf/common.mk: Regenerate.
48524 * util/update-grub.in: New. Core of update-grub.
48525 * util/grub.d/00_header.in: New. Generates grub.cfg header.
48526 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
48527 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
48528 * util/grub.d/README: New. Document grub.d directory layout.
48530 2007-05-01 Robert Millan <rmh@aybabtu.com>
48532 * util/grub-emu.c: Move initialization functions
48533 grub_util_biosdisk_init() and grub_init_all() before
48534 grub_util_biosdisk_get_grub_dev(), which relies on them.
48536 2007-04-19 Robert Millan <rmh@aybabtu.com>
48538 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
48541 2007-04-18 Jerone Young <jerone@gmail.com>
48543 * kernel/elf.c: Add missing parenthesis for conditional statement
48546 2007-04-10 Jerone Young <jerone@gmail.com>
48548 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
48549 continue on and look for device node with real device name.
48551 2007-04-10 Jerone Young <jerone@gmail.com>
48553 * configure.ac: Add argument for autoconf to use transformation
48555 * Makefile.in: Add autoconf package transformation code.
48556 * util/i386/pc/grub-install.in: Likewise.
48557 * util/powerpc/ieee1275/grub-install.in: Likewise.
48559 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48561 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
48562 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
48563 (EXT2_REVISION): Likewise.
48564 (EXT2_INODE_SIZE): Likewise.
48565 (struct grub_ext2_block_group): Added a missing member
48567 (grub_ext2_read_inode): Divide by the inode size in a superblock
48568 instead of 128 to obtain INODES_PER_BLOCK.
48569 Use the macro EXT2_INODE_SIZE instead of directly using
48570 SBLOCK->INODE_SIZE.
48572 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48574 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
48575 superblock instead of the structure size to compute an
48576 offset. This fixes the problem that GRUB could not read a
48577 filesystem when inode size is different from 128-byte.
48579 2007-03-05 Marco Gerards <marco@gnu.org>
48581 * normal/main.c (read_config_file): When "menu" is not set, create
48582 an initial context.
48584 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48586 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
48587 (HEAP_LIMIT): New macro.
48588 (grub_claim_heap): Claim memory up to `heaplimit'.
48590 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48592 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
48593 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
48594 (_start): Likewise.
48595 (grub_arch_modules_addr): Return address after `_end'.
48596 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
48597 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
48598 (add_segments): Calculate `_end' from phdr size and location.
48599 (ALIGN_UP): Moved to ...
48600 * include/grub/misc.h: here.
48601 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
48603 (GRUB_IEEE1275_MODULE_BASE): Removed.
48605 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48607 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
48610 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48612 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
48614 (grub_elf64_load_hook_t): Likewise.
48615 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
48618 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48620 * kern/mm.c: Update copyright.
48621 (grub_mm_debug): Correct syntax error.
48622 (grub_mm_dump_free): New function.
48623 (grub_debug_free): Call `grub_free'.
48624 * include/grub/mm.h: Update copyright.
48625 (grub_mm_dump_free): Add declaration.
48627 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48629 * include/grub/ieee1275/ieee1275.h: Update copyright.
48630 * kern/powerpc/ieee1275/init.c: Likewise.
48631 * kern/powerpc/ieee1275/openfw.c: Likewise.
48633 * loader/powerpc/ieee1275/linux.c: Likewise.
48634 * include/grub/elfload.h: Likewise.
48635 * kern/elf.c: Likewise.
48636 (grub_elf32_load): Pass `base' and `size' parameters. Update all
48638 (grub_elf64_load): Likewise.
48639 (grub_elf32_load_segment): Move to a nested function.
48640 (grub_elf64_load_segment): Likewise.
48642 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48644 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
48646 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
48647 (grub_heap_len): Likewise.
48648 (HEAP_SIZE): New macro.
48649 (grub_claim_heap): New function.
48650 (grub_machine_init): Don't claim heap directly. Call
48652 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
48653 (grub_available_iterate): New function.
48655 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
48657 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
48658 * configure.ac: Use it for testing the HOST and TARGET compilers.
48660 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
48662 * Makefile.in (enable_grub_emu): New variable.
48663 * configure.ac (--enable-grub-emu): New option.
48664 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
48665 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
48666 * conf/i386-pc.rmk: Likewise.
48667 * conf/powerpc-ieee1275.rmk: Likewise.
48668 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
48670 2006-12-12 Marco Gerards <marco@gnu.org>
48672 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
48674 * kern/env.c (grub_env_unset): Don't free the member `value' when
48675 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
48678 * normal/main.c (current_menu): Removed.
48679 (free_menu): Unset the `menu' environment variable.
48680 (grub_normal_menu_addentry): Make use of the environment variable
48681 `menu', instead of using the global `current_menu'. Allocate
48682 memory for the sourcecode of this entry.
48683 (read_config_file): New argument `nested', changed all callers.
48684 Only in the case of a new context, initialize a new menu. Set the
48685 `menu' environment variable.
48686 (grub_normal_execute): Don't set and unset the environment
48687 variable `menu' here anymore. Only free the menu when leaving the
48690 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
48693 2006-12-11 Marco Gerards <marco@gnu.org>
48695 * normal/menu_entry.c (run): Fix off by one bug so the last line
48696 is executed. Move the loader check to outside the loop.
48698 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
48700 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
48702 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
48704 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
48705 the number of sectors. Reported by Andrey Shuvikov
48706 <mr_hyro@yahoo.com>.
48708 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
48710 * kern/disk.c (grub_disk_read): When there is a read error, always
48711 try to read only the necessary data.
48713 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
48715 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
48717 [GRUB_UTIL] (grub_raid_fini): Likewise.
48718 [GRUB_UTIL] (grub_lvm_init): Likewise.
48719 [GRUB_UTIL] (grub_lvm_fini): Likewise.
48720 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
48721 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
48722 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
48723 and grub_raid_fini().
48725 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48727 * include/grub/types.h (__unused): Rename to UNUSED.
48728 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
48729 (grub_elf64_size): Likewise.
48731 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48733 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
48734 grub_error_push and grub_error_pop in the error-handling path.
48735 (grub_elf32_load_segment): Only call grub_file_read with non-zero
48738 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48740 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
48741 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48742 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48743 (kernel_elf_SOURCES): Likewise.
48744 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
48745 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
48746 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48747 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48748 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
48749 (elf_mod_SOURCES): New variable.
48750 (elf_mod_CFLAGS): Likewise.
48751 (elf_mod_LDFLAGS): Likewise.
48752 * include/grub/types.h (__unused): New macro.
48753 * include/grub/elfload.h: New file.
48754 * kern/elf.c: Likewise.
48755 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
48756 (ELF32_LOADMASK): New macro.
48757 (ELF64_LOADMASK): Likewise.
48758 (vmlinux): Removed.
48759 (grub_linux_load32): New function.
48760 (grub_linux_load64): Likewise.
48761 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
48762 Use grub_elf_t instead of grub_file_t.
48764 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
48766 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
48767 `catch_result' to struct set_color_args.
48769 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48771 * normal/menu.c: Include grub/script.h.
48772 * normal/menu_entry.c: Likewise.
48773 * include/grub/normal.h: Do not include grub/script.h.
48775 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48777 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
48779 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48781 * kern/disk.c (grub_disk_open): Print debug messages when opening a
48783 (grub_disk_close): Print debug messages when closing a disk.
48784 (grub_disk_read): Print debug messages when disk read fails.
48785 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
48787 * kern/partition.c: Include misc.h.
48788 (grub_partition_iterate): Print debug messages when detecting
48791 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48793 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
48795 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
48797 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
48799 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48800 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
48802 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
48804 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48805 instead of sizeof(lv). Patch by Michael Guntsche.
48807 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48809 * disk/lvm.c: Rename VGS to VG_LIST.
48810 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48811 (grub_lvm_open): Likewise.
48812 Thanks to Michael Guntsche for finding this bug.
48814 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48816 * configure.ac (AC_INIT): Bumped to 1.95.
48818 2006-10-14 Robert Millan <rmh@aybabtu.com>
48820 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48821 with "/dev/.static/dev/md".
48823 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48825 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48826 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48827 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48828 DRIVE_NAME are always freed.
48830 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48831 DOS_PART, as a DOS partition is counted from one instead of zero
48832 now. Reported by Robert Millan.
48834 2006-10-14 Robert Millan <rmh@aybabtu.com>
48836 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48837 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48838 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48839 string returned by grub_guess_root_device.
48840 * util/i386/pc/grub-setup.c: Likewise.
48841 * util/i386/pc/grub-probefs.c: Likewise.
48843 * util/i386/pc/grub-probefs.c: Rename to ...
48844 * util/i386/pc/grub-probe.c: ... this.
48845 * DISTLIST: Remove grub-probefs, add grub-probe.
48846 * conf/i386-efi.rmk: Likewise.
48847 * conf/i386-pc.rmk: Likewise.
48848 * util/i386/pc/grub-install.in: Likewise.
48850 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48851 choose which information we want to print.
48853 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48855 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48856 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48857 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48858 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48859 video/readers/tga.c and video/i386/pc/vbeutil.c.
48861 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48863 Added support for RAID and LVM.
48865 * disk/lvm.c: New file.
48866 * disk/raid.c: Likewise.
48867 * include/grub/lvm.h: Likewise.
48868 * include/grub/raid.h: Likewise.
48869 * include/grub/util/lvm.h: Likewise.
48870 * include/grub/util/raid.h: Likewise.
48871 * util/lvm.c: Likewise.
48872 * util/raid.c: Likewise.
48874 * include/grub/disk.h (grub_disk_dev_id): Add
48875 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48876 (grub_disk_get_size): New prototype.
48877 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48878 returns a partition.
48879 (grub_disk_get_size): New function.
48881 * kern/i386/pc/init.c (make_install_device): Copy the prefix
48882 verbatim if grub_install_dos_part is -2.
48884 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
48887 * util/i386/pc/grub-setup.c (setup): New argument
48888 MUST_EMBED. Force embedding of GRUB when the argument is
48889 true. Close FILE before returning.
48890 (main): Add support for RAID and LVM.
48892 * conf/common.rmk: Add RAID and LVM modules.
48893 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
48895 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
48897 * kern/misc.c (grub_strstr): New function.
48898 * include/grub/misc.h (grub_strstr): New prototype.
48900 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
48902 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
48904 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
48906 * kern/misc.c (grub_strtoull): Guess the base only if not
48909 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48911 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
48914 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48916 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
48918 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
48919 Remove `flags' argument. All callers changed.
48920 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
48921 (IEEE1275_IHANDLE_INVALID): New variable.
48922 (IEEE1275_CELL_INVALID): New variable.
48923 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
48924 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
48925 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
48926 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
48927 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
48928 codes from Open Firmware. All callers updated.
48929 (grub_ieee1275_next_property): Directly return Open Firmware return
48931 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
48932 Standardize error checking from `grub_ieee1275_get_property'.
48933 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
48934 `devalias' to `aliases'. Correct comments. Consolidate error paths.
48936 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48938 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
48939 `instance_to_package_args' to `instance_to_path_args'.
48941 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
48942 `grub_ieee1275_chosen'.
48944 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
48945 `grub_ieee1275_interpret'.
48947 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48949 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
48951 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48953 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
48954 (__cmpdi): Likewise.
48956 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
48957 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
48960 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
48962 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
48963 to type `grub_ssize_t'.
48964 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
48966 2006-09-22 Marco Gerards <marco@gnu.org>
48968 * normal/script.c (grub_script_create_cmdmenu): Skip leading
48971 2006-09-22 Marco Gerards <marco@gnu.org>
48973 * commands/echo.c: New file.
48975 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
48977 * conf/common.rmk (echo_mod_SOURCES): New variable.
48978 (echo_mod_CFLAGS): Likewise.
48979 (echo_mod_LDFLAGS): Likewise.
48981 2006-09-22 Marco Gerards <marco@gnu.org>
48983 * normal/main.c (get_line): Malloc memory instead of using
48984 preallocated memory. Removed the arguments `cmdline' and
48985 `max_len'. Updated all callers.
48987 2006-09-22 Marco Gerards <marco@gnu.org>
48989 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
48990 (normal_mod_DEPENDENCIES): Likewise.
48992 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
48993 (normal_mod_DEPENDENCIES): Likewise.
48995 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
48997 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
48999 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
49001 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
49002 (normal_mod_DEPENDENCIES): Likewise.
49003 * conf/i386-pc.mk: Regenerate.
49004 * conf/i386-efi.mk: Likewise
49005 * conf/common.mk: Likewise.
49006 * conf/powerpc-ieee1275.mk: Likewise.
49007 * conf/sparc64-ieee1275.mk: Likewise.
49009 2006-09-22 Robert Millan <rmh@aybabtu.com>
49011 Sync with i386 version.
49012 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
49013 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
49015 2006-09-21 Robert Millan <rmh@aybabtu.com>
49017 Import from GRUB Legacy (lib/device.c):
49018 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
49019 (init_device_map) [__linux__]: Add support for I2O devices.
49021 2006-09-14 Marco Gerards <marco@gnu.org>
49023 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
49026 2006-09-14 Robert Millan <rmh@aybabtu.com>
49028 * util/i386/pc/grub-install.in: Skip menu.lst when removing
49031 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
49033 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
49034 before adding it to device.map.
49036 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
49038 * genmk.rb: Let GCC generate dependencies the first time it
49039 compiles a file; using the -MD option.
49040 * conf/common.mk: Regenerate.
49041 * conf/i386-pc.mk: Likewise.
49042 * conf/i386-efi.mk: Likewise.
49043 * conf/powerpc-ieee1275.mk: Likewise.
49044 * conf/sparc64-ieee1275.mk: Likewise.
49046 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
49048 Move the prototypes of grub_setjmp and grub_longjmp to
49049 cpu/setjmp.h, so that each architecture may specify different
49052 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
49053 (grub_longjmp): Likewise.
49054 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
49055 (grub_longjmp): Likewise.
49056 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
49057 (grub_longjmp): Likewise.
49059 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
49060 [!GRUB_UTIL] (grub_longjmp): Removed.
49062 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
49064 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
49065 "color!" method does not return any value.
49067 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49069 * include/grub/bitmap.h: New file.
49071 * include/grub/i386/pc/vbeutil.h: Likewise.
49073 * video/bitmap.c: Likewise.
49075 * video/readers/tga.c: Likewise.
49077 * video/i386/pc/vbeutil.c: Likewise.
49079 * commands/videotest.c: Code cleanup and updated to reflect to new
49082 * term/gfxterm.c: Likewise.
49084 * video/video.c: Likewise.
49086 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
49087 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
49088 (bitmap_mod_SOURCES): New entry.
49089 (bitmap_mod_CFLAGS): Likewise.
49090 (bitmap_mod_LDFLAGS): Likewise.
49091 (tga_mod_SOURCES): Likewise.
49092 (tga_mod_CFLAGS): Likewise.
49093 (tga_mod_LDFLAGS): Likewise.
49095 * include/grub/video.h (grub_video_blit_operators): New enum type.
49096 (grub_video_render_target): Changed as forward declaration and moved
49097 actual definition to be video driver specific.
49098 (grub_video_adapter.blit_bitmap): Added blitting operator.
49099 (grub_video_adapter.blit_render_target): Likewise.
49100 (grub_video_blit_bitmap): Likewise.
49101 (grub_video_blit_render_target): Likewise.
49103 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
49104 driver specific render target definition.
49105 (grub_video_vbe_map_rgba): Added driver internal helper.
49106 (grub_video_vbe_unmap_color): Updated to use
49107 grub_video_i386_vbeblit_info.
49108 (grub_video_vbe_get_video_ptr): Likewise.
49110 * include/grub/i386/pc/vbeblit.h
49111 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
49112 grub_video_i386_vbeblit_info.
49113 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
49114 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
49115 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
49116 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
49117 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
49118 (grub_video_i386_vbeblit_index_index): Likewise.
49119 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
49120 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
49121 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
49122 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
49124 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
49127 * video/i386/pc/vbeblit.c: Updated to reflect changes on
49128 include/grub/i386/pc/vbeblit.h.
49130 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
49131 Updated to use grub_video_i386_vbeblit_info.
49132 (grub_video_i386_vbefill_R8G8B8): Likewise.
49133 (grub_video_i386_vbefill_index): Likewise.
49134 (grub_video_i386_vbefill): Added generic filler.
49136 * video/i386/pc/vbefill.c: Updated to reflect changes on
49137 include/grub/i386/pc/vbefill.h.
49139 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
49140 grub_video_i386_vbeblit_info.
49141 (grub_video_vbe_unmap_color): Likewise.
49142 (grub_video_vbe_blit_glyph): Likewise.
49143 (grub_video_vbe_scroll): Likewise.
49144 (grub_video_vbe_draw_pixel): Removed function.
49145 (grub_video_vbe_get_pixel): Likewise.
49146 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
49147 updated code to use it.
49148 (common_blitter): Added common blitter for render target and bitmap.
49149 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
49150 (grub_video_vbe_blit_render_target): Likewise.
49152 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
49154 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
49155 is in text mode if there is no console control protocol instance
49158 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49160 * include/grub/video.h: Code cleanup.
49162 * include/grub/i386/pc/vbe.h: Likewise.
49164 * video/i386/pc/vbe.c: Likewise.
49166 * video/i386/pc/vbeblit.c: Likewise.
49168 * video/i386/pc/vbefill.c: Likewise.
49170 * video/video.c: Likewise. Also added more comments.
49172 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49174 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
49175 (struct grub_biosdisk_dap): Likewise.
49177 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
49178 linkage settings for all functions.
49180 2006-07-12 Marco Gerards <marco@gnu.org>
49182 * configure.ac (--enable-mm-debug): Fix typo.
49184 * genkernsyms.sh.in: Use proper quoting for `CC'.
49186 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
49188 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
49189 (normal_mod_ASFLAGS): Remove "-m32".
49191 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
49193 * util/misc.c: Include config.h.
49194 [!HAVE_MEMALIGN]: Do not include malloc.h.
49195 (grub_memalign): Use posix_memalign, if present. Then, use
49196 memalign, if present. Otherwise, emit an error.
49198 * util/grub-emu.c: Do not include malloc.h.
49200 * include/grub/util/misc.h: Include unistd.h. This is required for
49201 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
49202 D. Eades III <hde@foobar-qux.org>.
49204 * configure.ac (AC_GNU_SOURCE): Added.
49205 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
49208 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
49210 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
49211 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
49213 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
49215 * include/grub/types.h (grub_host_addr_t): Rename to
49216 grub_target_addr_t.
49217 (grub_host_off_t): Rename to grub_target_off_t.
49218 (grub_host_size_t): Rename to grub_target_size_t.
49219 (grub_host_ssize_t): Rename to grub_target_ssize_t.
49220 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
49222 * include/grub/kernel.h (struct grub_module_header): Change type
49223 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
49224 (grub_module_info): Likewise.
49226 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49228 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
49229 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
49230 Velazquez <jesus.velazquez@gmail.com>.
49232 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49234 Count partitions from 1 instead of 0 in the string representation
49235 of partitions. Still use 0-based internally.
49237 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
49238 (sun_partition_map_iterate): Use grub_partition_t instead of
49239 struct grub_partition *. Cast DESC->START_CYLINDER to
49240 grub_uint64_t after converting the endian.
49241 (sun_partition_map_probe): Subtract 1 for PARTNUM.
49242 (sun_partition_map_get_name): Add 1 to P->INDEX.
49244 * partmap/pc.c (grub_partition_parse): Subtract 1 for
49246 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
49248 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
49249 zero instead of one.
49250 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
49251 (gpt_partition_map_get_name): Add 1 into P->INDEX.
49253 * partmap/apple.c (apple_partition_map_iterate): Change the type
49254 of POS to unsigned.
49255 (apple_partition_map_probe): Subtract 1 for PARTNUM.
49256 (apple_partition_map_get_name): Add 1 into P->INDEX.
49258 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
49259 of POS to unsigned.
49260 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
49261 calculate the offset of a partition.
49262 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
49263 (amiga_partition_map_get_name): Add 1 into P->INDEX.
49265 * partmap/acorn.c (acorn_partition_map_find): Change the type of
49266 SECTOR to grub_disk_addr_t.
49267 (acorn_partition_map_iterate): Likewise.
49268 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
49269 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
49271 (acorn_partition_map_get_name): Add 1 into P->INDEX.
49273 * kern/i386/pc/init.c (make_install_device): Add 1 into
49274 GRUB_INSTALL_DOS_PART.
49276 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
49279 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49281 Clean up the code to support 64-bit addressing in disks and
49282 files. This change is not enough for filesystems yet.
49284 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
49285 type of "start" to grub_uint64_t.
49286 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
49287 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
49288 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
49291 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
49292 to grub_disk_addr_t.
49294 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
49297 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49299 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
49302 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
49304 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
49306 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
49308 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
49309 to grub_off_t, to detect an error from grub_file_seek.
49310 (grub_multiboot_load_elf32): Likewise.
49312 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
49313 maximum unsigned long value when an overflow is detected.
49314 (grub_strtoull): New function.
49315 (grub_divmod64): Likewise.
49316 (grub_lltoa): use grub_divmod64.
49318 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
49320 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
49321 the pointer to next character. Use grub_strtoull instead of
49323 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
49324 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
49327 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
49328 return value is signed.
49329 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
49330 test if OFFSET is less than zero, as OFFSET is unsigned now.
49332 * kern/disk.c (struct grub_disk_cache): Change the type of
49333 "sector" to grub_disk_addr_t.
49334 (grub_disk_cache_get_index): Change the type of SECTOR to
49335 grub_disk_addr_t. Calculate the hash with SECTOR casted to
49336 unsigned after shifting.
49337 (grub_disk_cache_invalidate): Change the type of SECTOR to
49339 (grub_disk_cache_unlock): Likewise.
49340 (grub_disk_cache_store): Likewise.
49341 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
49342 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
49343 grub_disk_addr_t and grub_uint64_t, respectively.
49344 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
49345 body, as the value of OFFSET is tweaked by
49346 grub_disk_check_range. Change the types of START_SECTOR, LEN and
49347 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
49349 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
49350 body, as the value of OFFSET is tweaked by
49351 grub_disk_check_range. Change the types of LEN and N to
49354 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
49355 and "saved_offset" to grub_off_t.
49356 (test_header): Cast BUF to char *.
49357 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
49359 (grub_gzio_read): Change the types of OFFSET and SIZE to
49360 grub_off_t and grub_size_t, respectively.
49362 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
49364 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
49365 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
49366 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
49367 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
49368 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
49370 * include/grub/types.h (grub_off_t): Unconditionally set to
49372 (grub_disk_addr_t): Changed to grub_uint64_t.
49374 * include/grub/partition.h (struct grub_partition): Change the
49375 types of "start", "len" and "offset" to grub_disk_addr_t,
49376 grub_uint64_t and grub_disk_addr_t, respectively.
49377 (grub_partition_get_start): Return grub_disk_addr_t.
49378 (grub_partition_get_len): Return grub_uint64_t.
49380 * include/grub/misc.h (grub_strtoull): New prototype.
49381 (grub_divmod64): Likewise.
49383 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
49384 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
49385 grub_off_t, respectively.
49386 All callers and references changed.
49388 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
49389 grub_size_t in "read".
49390 All callers and references changed.
49392 * include/grub/file.h (struct grub_file): Change the types of
49393 "offset" and "size" to grub_off_t and grub_off_t,
49394 respectively. Change the type of SECTOR to grub_disk_addr_t in
49396 (grub_file_read): Change the type of LEN to grub_size_t.
49397 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
49399 (grub_file_size): Return grub_off_t.
49400 (grub_file_tell): Likewise.
49401 All callers and references changed.
49403 * include/grub/disk.h (struct grub_disk_dev): Change the types of
49404 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
49406 (struct grub_disk): Change the type of "total_sectors" to
49407 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
49409 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
49410 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
49411 (grub_disk_write): Likewise.
49412 All callers and references changed.
49414 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
49415 char * for grub_strncmp to silence gcc.
49416 (grub_iso9660_mount): Likewise.
49417 (grub_iso9660_mount): Likewise.
49418 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
49420 (grub_iso9660_iterate_dir): Likewise.
49421 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
49423 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
49424 LEN to grub_disk_addr_t and grub_size_t, respectively.
49426 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
49428 * fs/jfs.c (grub_jfs_read_file): Likewise.
49430 * fs/minix.c (grub_jfs_read_file): Likewise.
49432 * fs/sfs.c (grub_jfs_read_file): Likewise.
49434 * fs/ufs.c (grub_jfs_read_file): Likewise.
49436 * fs/xfs.c (grub_jfs_read_file): Likewise.
49438 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
49439 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
49442 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
49443 BLKNR to -1 instead of returning GRUB_ERRNO.
49444 (grub_ext2_read_file): Change the types of SECTOR and
49445 LEN to grub_disk_addr_t and grub_size_t, respectively.
49447 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
49448 LEN to grub_disk_addr_t and grub_size_t, respectively.
49450 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
49453 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
49454 string. Do not cast SECTOR explicitly.
49456 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
49457 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
49458 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
49459 grub_disk_addr_t and grub_size_t, respectively. If the sector is
49460 over 2TB and LBA mode is not supported, raise an error.
49461 (get_safe_sectors): New function.
49462 (grub_biosdisk_read): Use get_safe_sectors.
49463 (grub_biosdisk_write): Likewise.
49465 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
49466 (grub_efidisk_write): Likewise.
49468 * disk/loopback.c (delete_loopback): Cosmetic changes.
49469 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
49471 (grub_loopback_open): Likewise.
49472 (grub_loopback_read): Likewise. Also, change the type of POS to
49473 grub_off_t, and fix the usage of grub_memset.
49475 * commands/i386/pc/play.c: Include grub/machine/time.h.
49477 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
49480 * commands/configfile.c: Include grub/env.h.
49482 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
49483 GRUB_ERRNO directly instead. Change the type of POS to
49484 grub_off_t. Follow the coding standard.
49486 * commands/blocklist.c: Include grub/partition.h.
49487 (grub_cmd_blocklist): Return an error if the underlying device is
49488 not a disk. Take the starting sector of a partition into account,
49489 if a partition is used.
49491 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
49493 (lba_mode): Support 64-bit addresses.
49494 (chs_mode): Likewise.
49495 (copy_buffer): Adapted to the new offsets of a length field and a
49497 (blocklist_default_start): Allocate 64-bit space.
49499 * boot/i386/pc/boot.S (force_lba): Removed.
49500 (boot_drive): Moved to under KERNEL_SECTOR.
49501 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
49503 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
49505 (lba_mode): Refactored to support a 64-bit address. More size
49507 (setup_sectors): Likewise.
49509 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49511 * DISTLIST: Added include/grub/i386/linux.h. Removed
49512 include/grub/i386/pc/linux.h
49514 * configure.ac (AC_INIT): Bumped to 1.94.
49516 * config.guess: Updated from gnulib.
49517 * config.sub: Likewise.
49518 * install-sh: Likewise.
49519 * mkinstalldirs: Likewise.
49521 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49523 * conf/common.rmk (grub_modules_init.lst): Depended on
49524 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
49527 * genmk.rb (PModule::rule): Reverted the previous change.
49529 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49531 * conf/common.rmk (grub_modules_init.lst): Depends on
49532 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
49533 that the target does not exist before producing.
49534 (grub_modules_init.h): Remove the target before generating.
49535 (grub_emu_init.c): Likewise.
49537 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
49539 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
49541 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
49542 for the target-specific tests. Make sure that we also have the
49543 up-to-date target variables for those tests.
49545 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49547 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
49548 (PModule::rule): Likewise.
49550 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49552 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
49553 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
49554 target-specific flags should be prefixed.
49555 (PModule::rule): Likewise.
49557 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
49559 * configure.ac (CMP): Check if cmp is available explicitly.
49561 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
49563 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
49564 (target_cpu): New variable.
49565 (pkglibdir): Use target_cpu instead of host_cpu.
49567 * util/i386/pc/grub-install.in (host_cpu): Removed.
49568 (target_cpu): New variable.
49569 (pkglibdir): Use target_cpu instead of host_cpu.
49571 * util/genmoddep.c: Removed.
49573 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
49574 instead of GRUB_HOST_SIZEOF_VOID_P.
49575 * kern/dl.c: Likewise.
49577 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
49579 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49580 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49581 (GRUB_TARGET_SIZEOF_LONG): ... this.
49582 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49583 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49584 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49586 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49587 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49588 (GRUB_TARGET_SIZEOF_LONG): ... this.
49589 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49590 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49591 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49593 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49594 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49595 (GRUB_TARGET_SIZEOF_LONG): ... this.
49596 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49597 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49599 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
49600 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
49601 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
49602 instead of GRUB_HOST_SIZEOF_LONG.
49603 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
49604 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
49605 GRUB_CPU_WORDS_BIGENDIAN.
49606 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
49607 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
49610 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
49611 (genmoddep_SOURCES): Likewise.
49612 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
49613 (genmoddep_SOURCES): Likewise.
49614 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
49615 (genmoddep_SOURCES): Likewise.
49616 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
49618 (genmoddep_SOURCES): Likewise.
49620 * genmoddep.awk: New file.
49622 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
49623 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
49624 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
49625 (PModule::rule): Likewise.
49626 (Program::rule): Likewise.
49627 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
49628 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
49631 * configure.ac: Rewritten intensively to use host and target
49632 instead of build and host, respectively.
49634 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
49635 (host_cpu): Removed.
49636 (target_cpu): New variable.
49637 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
49638 (BUILD_CC): Removed.
49639 (BUILD_CFLAGS): Likewise.
49640 (BUILD_CPPFLAGS): Likewise.
49641 (TARGET_CC): New variable.
49642 (TARGET_CFLAGS): Likewise.
49643 (TARGET_CPPFLAGS): Likewise.
49644 (TARGET_LDFLAGS): Likewise.
49646 (include): Use target_cpu instead of host_cpu.
49647 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
49649 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
49651 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
49653 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
49654 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
49655 field 'false' to 'exec_on_false'.
49656 (grub_script_create_cmdif): Renamed argument names to reflect above
49659 * normal/execute.c (grub_script_execute_cmdif): Likewise.
49661 * normal/script.c (grub_script_create_cmdif): Likewise.
49663 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
49665 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
49667 (grub_hfsplus_btree_recptr): Likewise.
49668 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
49669 FILEBLOCK both to pass a block number and store next block
49671 (grub_hfsplus_read_block): Rewritten heavily to support an extent
49672 overflow file correctly. Specify errors appropriately, because
49673 fshelp expects that GRUB_ERRNO is set when fails. Reuse
49674 grub_hfsplus_btree_recptr to get the pointer to a found key.
49675 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
49678 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
49680 (_linux_mod_SOURCES): New variable.
49681 (_linux_mod_CFLAGS): Likewise.
49682 (_linux_mod_LDFLAGS): Likewise.
49683 (linux_mod_SOURCES): Likewise.
49684 (linux_mod_CFLAGS): Likewise.
49685 (linux_mod_LDFLAGS): Likewise.
49687 * DISTLIST: Added loader/i386/efi/linux.c,
49688 loader/i386/efi/linux_normal.c and
49689 include/grub/i386/efi/loader.h.
49691 * loader/i386/efi/linux.c: New file.
49692 * loader/i386/efi/linux_normal.c: Likewise.
49693 * include/grub/i386/efi/loader.h: Likewise.
49695 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
49697 * commands/blocklist.c: New file.
49699 * DISTLIST: Added commands/blocklist.c.
49701 * term/efi/console.c (grub_console_highlight_color): Use a lighter
49702 color for the background, and a darker color for the foreground.
49703 (grub_console_checkkey): Return READ_KEY.
49704 (grub_console_cls): Set the background to
49705 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
49707 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
49709 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
49710 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
49712 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
49715 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
49716 BG. The spec is wrong again.
49718 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
49720 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
49722 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49723 commands/blocklist.c.
49724 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49726 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
49727 (blocklist_mod_SOURCES): New variable.
49728 (blocklist_mod_CFLAGS): Likewise.
49729 (blocklist_mod_LDFLAGS): Likewise.
49731 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
49733 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
49735 (lba_mode): Use %eax more intensively to reduce the code size.
49737 2006-05-20 Marco Gerards <marco@gnu.org>
49739 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
49741 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
49743 (script): Accept leading newlines.
49744 (newlines): New rule to describe 0 or more newlines.
49745 (commands): Accept `command' with trailing newline. Fixed the
49746 order in which arguments were passed to `grub_script_add_cmd'.
49747 Accept commands separated by newlines.
49748 (function): Changed to accept newlines.
49749 (menuentry) Rewritten.
49751 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
49752 front of the list, instead of to the end.
49754 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
49756 * util/i386/pc/grub-install.in (bindir): New variable.
49757 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
49758 Shaver <lbgwjl@gmail.com>.
49760 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
49762 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
49763 grub/machine/linux.h
49764 * loader/i386/pc/linux.c: Likewise.
49766 * include/grub/i386/pc/linux.h: Moved to ...
49767 * include/grub/i386/linux.h: ... here.
49769 * include/grub/i386/linux.h (struct linux_kernel_params): New
49772 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
49774 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
49776 (grub_video_vbe_blit_glyph): Likewise.
49777 (grub_video_vbe_blit_bitmap): Likewise.
49778 (grub_video_vbe_blit_render_target): Likewise.
49780 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
49782 * configure.ac (--with-platform): Properly quote the square
49785 2006-05-08 Marco Gerards <marco@gnu.org>
49787 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
49789 (kernel_elf_HEADERS): ...to this. Updated all users.
49790 (grubof_symlist.c): Renamed from this...
49791 (kernel_elf_symlist.c): ...to this. Updated all users.
49792 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49793 (grubof_SOURCES): Renamed from this...
49794 (kernel_elf_SOURCES): ...to this.
49795 (grubof_HEADERS): Renamed from this...
49796 (kernel_elf_HEADERS): ...to this.
49797 (grubof_CFLAGS): Renamed from this...
49798 (kernel_elf_CFLAGS): ...to this.
49799 (grubof_ASFLAGS): Renamed from this...
49800 (kernel_elf_ASFLAGS): ...to this.
49801 (grubof_LDFLAGS): Renamed from this...
49802 (kernel_elf_LDFLAGS): ...to this.
49804 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49806 (kernel_elf_HEADERS): ...to this. Updated all users.
49807 (grubof_symlist.c): Renamed from this...
49808 (kernel_elf_symlist.c): ...to this. Updated all users.
49809 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49810 (grubof_SOURCES): Renamed from this...
49811 (kernel_elf_SOURCES): ...to this.
49812 (grubof_HEADERS): Renamed from this...
49813 (kernel_elf_HEADERS): ...to this.
49814 (grubof_CFLAGS): Renamed from this...
49815 (kernel_elf_CFLAGS): ...to this.
49816 (grubof_ASFLAGS): Renamed from this...
49817 (kernel_elf_ASFLAGS): ...to this.
49818 (grubof_LDFLAGS): Renamed from this...
49819 (kernel_elf_LDFLAGS): ...to this.
49821 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49822 `kernel.elf' instead of `grubof'.
49824 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49826 Add --with-platform to configure. Use pkglibdir instead of
49827 pkgdatadir. This is reported by Roger Leigh.
49829 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49830 (host_vendor): Likewise.
49831 (host_os): Likewise.
49832 (pkgdatadir): Likewise.
49833 (platform): New variable.
49834 (pkglibdir): Likewise.
49835 Use PKGLIBDIR instead of PKGDATADIR.
49837 * util/i386/pc/grub-install.in (datadir): Removed.
49838 (host_vendor): Likewise.
49839 (host_os): Likewise.
49840 (pkgdatadir): Likewise.
49841 (platform): New variable.
49842 (pkglibdir): Likewise.
49843 Use PKGLIBDIR instead of PKGDATADIR.
49845 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49846 instead of GRUB_DATADIR.
49848 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49850 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49853 * configure.ac (--with-platform): New option.
49854 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49856 * Makefile.in: Include a makefile based on PLATFORM instead of
49858 (pkgdatadir): Not appended by the machine type.
49859 (pkglibdir): Appended by the machine type.
49860 (host_vendor): Removed.
49861 (platform): New variable.
49862 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49863 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49864 (uninstall): Likewise.
49866 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49868 Use the environment context in the menu. Remove the commands
49869 "default" and "timeout", and use variables instead.
49871 * normal/menu.c: Include grub/env.h.
49872 (print_entry): Cast TITLE to silence gcc.
49873 (get_timeout): New function.
49874 (set_timeout): Likewise.
49875 (get_entry_number): Likewise.
49876 (run_menu): Use a default entry, a fallback entry and a timeout
49877 in the environment variables "default", "fallback" and
49878 "timeout". Also, tweak the default entry if it is not within the
49879 current menu entries.
49880 (grub_menu_run): Use a fallback entry in the environment variable
49883 * normal/main.c (read_config_file): Do not initialize
49884 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
49886 (grub_normal_execute): Use a data slot to store the menu.
49888 * include/grub/normal.h (struct grub_menu): Removed default_entry,
49889 fallback_entry and timeout.
49890 (struct grub_menu_list): Removed.
49891 (grub_menu_list_t): Likewise.
49892 (struct grub_context): Likewise.
49893 (grub_context_t): Likewise.
49894 (grub_context_get): Likewise.
49895 (grub_context_get_current_menu): Likewise.
49896 (grub_context_push_menu): Likewise.
49897 (grub_context_pop_menu): Likewise.
49898 (grub_default_init): Likewise.
49899 (grub_default_fini): Likewise.
49900 (grub_timeout_init): Likewise.
49901 (grub_timeout_fini): Likewise.
49903 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
49905 (normal_mod_SOURCES): Removed normal/context.c.
49907 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
49908 commands/default.c, commands/timeout.c and normal/context.c.
49909 (normal_mod_SOURCES): Removed normal/context.c.
49911 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
49912 commands/timeout.c and normal/context.c.
49913 (normal_mod_SOURCES): Removed normal/context.c.
49915 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
49916 commands/default.c, commands/timeout.c and normal/context.c.
49917 (normal_mod_SOURCES): Removed normal/context.c.
49919 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
49921 (default_mod_SOURCES): Removed.
49922 (default_mod_CFLAGS): Likewise.
49923 (default_mod_LDFLAGS): Likewise.
49924 (timeout_mod_SOURCES): Removed.
49925 (timeout_mod_CFLAGS): Likewise.
49926 (timeout_mod_LDFLAGS): Likewise.
49928 * DISTLIST: Removed commands/default.c, commands/timeout.c and
49931 * commands/default.c: Removed.
49932 * commands/timeout.c: Likewise.
49933 * normal/context.c: Likewise.
49935 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
49937 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
49939 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
49941 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
49942 "next" to "prev" for readability.
49943 (struct grub_env_sorted_var): New struct.
49944 (grub_env_context): Renamed to ...
49945 (initial_context): ... this.
49946 (grub_env_var_context): Renamed to ...
49947 (current_context): ... this.
49948 (grub_env_find): Look only at CURRENT_CONTEXT.
49949 (grub_env_context_open): Rewritten to copy exported variables from
49951 (grub_env_context_close): Rewritten according to the new
49952 scheme. Also, add an assertion to prevent the initial context from
49954 (grub_env_insert): Removed the code for the sorted list.
49955 (grub_env_remove): Likewise.
49956 (grub_env_export): Simply mark the variable with
49957 GRUB_ENV_VAR_GLOBAL.
49958 (grub_env_set): A cosmetic change for naming consistency.
49959 (grub_env_get): Likewise.
49960 (grub_env_unset): Likewise.
49961 (grub_env_iterate): Rewritten to sort variables within this
49963 (grub_register_variable_hook): Fixed for naming consistency. Call
49964 grub_env_find again, only if NAME is not found at the first time.
49965 (mangle_data_slot_name): New function.
49966 (grub_env_set_data_slot): Likewise.
49967 (grub_env_get_data_slot): Likewise.
49968 (grub_env_unset_data_slot): Likewise.
49970 * include/grub/env.h (grub_env_var_type): New enum.
49971 (GRUB_ENV_VAR_LOCAL): New constant.
49972 (GRUB_ENV_VAR_GLOBAL): Likewise.
49973 (GRUB_ENV_VAR_DATA): Likewise.
49974 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
49976 (grub_env_set): Replace VAR with NAME for consistency.
49977 (grub_register_variable_hook): Likewise.
49978 (grub_env_export): Specify the name of the argument.
49979 (grub_env_set_data_slot): New prototype.
49980 (grub_env_get_data_slot): Likewise.
49981 (grub_env_unset_data_slot): Likewise.
49983 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49985 Extend the loader so that GRUB can accept a loader which comes
49986 back to GRUB when a loaded image exits. Also, this change adds
49987 support for a chainloader on EFI.
49989 * term/efi/console.c: Include grub/misc.h.
49990 (grub_console_checkkey): Display a scan code on the top for
49991 debugging. This will be removed once the EFI port gets stable.
49992 Correct the scan code mapping.
49994 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
49995 allocate memory from larger regions, in order to reduce the number
49996 of allocated regions. Otherwise, the MacOSX loader panics.
49997 (filter_memory_map): Avoid less than 1MB for compatibility with
49999 (add_memory_regions): Allocate from the tail of a region, if
50000 possible, to avoid allocating a region near to 1MB, for the MacOSX
50003 * kern/efi/init.c (grub_efi_set_prefix): Specify
50004 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
50006 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
50007 argument IMAGE_HANDLE and specify it to get a loaded image.
50008 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
50009 grub_efi_get_loaded_image.
50010 (grub_efi_get_filename): Divide the length by the size of
50012 (grub_efi_get_device_path): New function.
50013 (grub_efi_print_device_path): Print End Device Path nodes. Divide
50014 the length by the size of grub_efi_char16_t for a file path device
50017 * kern/loader.c (grub_loader_noreturn): New variable.
50018 (grub_loader_set): Accept a new argument NORETURN. Set
50019 GRUB_LOADER_NORETURN to NORETURN.
50020 All callers changed.
50021 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
50024 * include/grub/efi/efi.h (grub_efi_get_device_path): New
50026 (grub_efi_get_loaded_image): Take an argument to specify an image
50029 * include/grub/loader.h (grub_loader_set): Added one more argument
50032 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
50033 instead of grub_efi_open_protocol.
50034 (grub_efidisk_get_device_name): Likewise.
50035 (grub_efidisk_close): Print a newline.
50036 (grub_efidisk_get_device_handle): Fixed to use
50037 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
50038 GRUB_EFI_DEVICE_PATH_TYPE.
50040 * disk/efi/efidisk.c (device_path_guid): Moved to ...
50041 * kern/efi/efi.c (device_path_guid): ... here.
50043 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
50045 (kernel_mod_HEADERS): Added efi/disk.h.
50046 (_chain_mod_SOURCES): New variable.
50047 (_chain_mod_CFLAGS): Likewise.
50048 (_chain_mod_LDFLAGS): Likewise.
50049 (chain_mod_SOURCES): Likewise.
50050 (chain_mod_CFLAGS): Likewise.
50051 (chain_mod_LDFLAGS): Likewise.
50053 * DISTLIST: Added include/grub/efi/chainloader.h,
50054 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
50056 * include/grub/efi/chainloader.h: New file.
50057 * loader/efi/chainloader.c: Likewise.
50058 * loader/efi/chainloader_normal.c: Likewise.
50060 2006-04-30 Marco Gerards <marco@gnu.org>
50062 * commands/configfile.c (grub_cmd_source): New function.
50063 (GRUB_MOD_INIT): Register the commands `source' and `.'.
50064 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
50066 2006-04-30 Marco Gerards <marco@gnu.org>
50068 * normal/execute.c (grub_script_execute_cmd): Change the return
50069 type to `grub_err_t'. Correctly return the error.
50070 (grub_script_execute_cmdline): In case a command line is not a
50071 command or a function, try to interpret it as an assignment.
50073 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
50075 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
50076 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
50077 skip a node whose name is obviously invalid as UTF-16,
50078 i.e. contains a NUL character. Stop the iteration when the last
50079 directory entry is found. Instead of using the return value of
50080 grub_hfsplus_btree_iterate_node, store the value in RET and use
50081 it, because the iterator can be stopped by the last directory
50084 2006-04-30 Marco Gerards <marco@gnu.org>
50086 * include/grub/env.h (grub_env_export): New prototype. Reported
50087 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
50089 2006-04-30 Marco Gerards <marco@gnu.org>
50091 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
50092 size of the extents in a catalog file record.
50094 2006-04-29 Marco Gerards <marco@gnu.org>
50096 * commands/configfile.c (grub_cmd_configfile): Execute the
50097 configfile within its own context.
50099 * include/grub/env.h (grub_env_context_open): New prototype.
50100 (grub_env_context_close): Likewise.
50102 * kern/env.c (grub_env): Removed.
50103 (grub_env_sorted): Likewise.
50104 (grub_env_context): New variable.
50105 (grub_env_var_context): Likewise.
50106 (grub_env_find): Search both the active context and the global
50108 (grub_env_context_open): New function.
50109 (grub_env_context_close): Likewise.
50110 (grub_env_insert): Likewise.
50111 (grub_env_remove): Likewise.
50112 (grub_env_export): Likewise.
50113 (grub_env_set): Changed to use helper functions to avoid code
50115 (grub_env_iterate): Rewritten so both the current context and the
50116 global context are being used.
50118 * normal/command.c (export_command): New function.
50119 (grub_command_init): Register the `export' function.
50121 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
50123 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
50124 explicitly to suppress gcc's warnings.
50125 * fs/fat.c (grub_fat_find_dir): Likewise.
50126 (grub_fat_label): Likewise.
50127 * fs/xfs.c (grub_xfs_read_inode): Likewise.
50128 (grub_xfs_mount): Likewise.
50129 (grub_xfs_label): Likewise.
50130 * fs/affs.c (grub_affs_mount): Likewise.
50131 (grub_affs_label): Likewise.
50132 (grub_affs_iterate_dir): Likewise.
50133 * fs/sfs.c (grub_sfs_mount): Likewise.
50134 (grub_sfs_iterate_dir): Likewise.
50135 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
50136 * fs/hfs.c (grub_hfs_mount): Likewise.
50137 (grub_hfs_cmp_catkeys): Likewise.
50138 (grub_hfs_find_dir): Likewise.
50139 (grub_hfs_dir): Likewise.
50140 (grub_hfs_label): Likewise.
50141 * fs/jfs.c (grub_jfs_mount): Likewise.
50142 (grub_jfs_opendir): Likewise.
50143 (grub_jfs_getent): Likewise.
50144 (grub_jfs_lookup_symlink): Likewise.
50145 (grub_jfs_label): Likewise.
50146 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
50147 (grub_hfsplus_iterate_dir): Likewise.
50148 (grub_hfsplus_btree_iterate_node): Made static.
50150 * util/grub-emu.c (prefix): New variable.
50151 (grub_machine_set_prefix): New function.
50152 (main): Do not set the environment variable "prefix" here. Only
50153 set PREFIX, which is used later by grub_machine_set_prefix.
50155 * include/grub/video.h: Do not include grub/symbol.h.
50156 (grub_video_register): Not exported. This symbol is not defined in
50158 (grub_video_unregister): Likewise.
50159 (grub_video_iterate): Likewise.
50160 (grub_video_setup): Likewise.
50161 (grub_video_restore): Likewise.
50162 (grub_video_get_info): Likewise.
50163 (grub_video_get_blit_format): Likewise.
50164 (grub_video_set_palette): Likewise.
50165 (grub_video_get_palette): Likewise.
50166 (grub_video_set_viewport): Likewise.
50167 (grub_video_get_viewport): Likewise.
50168 (grub_video_map_color): Likewise.
50169 (grub_video_map_rgb): Likewise.
50170 (grub_video_map_rgba): Likewise.
50171 (grub_video_fill_rect): Likewise.
50172 (grub_video_blit_glyph): Likewise.
50173 (grub_video_blit_bitmap): Likewise.
50174 (grub_video_blit_render_target): Likewise.
50175 (grub_video_scroll): Likewise.
50176 (grub_video_swap_buffers): Likewise.
50177 (grub_video_create_render_target): Likewise.
50178 (grub_video_delete_render_target): Likewise.
50179 (grub_video_set_active_render_target): Likewise.
50181 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
50183 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
50185 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
50186 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50187 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50188 instead of $(srcdir)/genkernsyms.sh.
50190 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
50191 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50192 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50193 instead of $(srcdir)/genkernsyms.sh.
50195 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
50196 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50197 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50198 instead of $(srcdir)/genkernsyms.sh.
50200 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
50201 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50202 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50203 instead of $(srcdir)/genkernsyms.sh.
50205 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
50208 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
50210 (gensymlist.sh): New target.
50211 (genkernsyms.sh): Likewise.
50213 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
50214 genkernsyms.sh.in and gensymlist.sh.in.
50216 * genkernsyms.sh: Removed.
50217 * gensymlist.sh: Likewise.
50219 * genkernsyms.sh.in: New file.
50220 * gensymlist.sh.in: Likewise.
50222 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50224 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
50225 clobber "prefix", since we may have already set it manually.
50227 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50229 * kern/misc.c (abort): New alias for grub_abort.
50231 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
50233 A new machine-specific function "grub_machine_set_prefix" is
50234 defined. This is called after loading modules, so that a prefix
50235 initialization can use modules. Also, this change adds an
50236 intensive debugging feature for the memory manager via the
50237 configure option "--enable-mm-debug".
50239 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
50242 * kern/sparc64/ieee1275/init.c (abort): Removed.
50243 (grub_stop): Likewise.
50244 (grub_exit): New function.
50245 (grub_set_prefix): Renamed to ...
50246 (grub_machine_set_prefix): ... this.
50247 (grub_machine_init): Do not call grub_set_prefix.
50249 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
50250 (grub_machine_set_prefix): ... this.
50251 (grub_machine_init): Do not call grub_set_prefix.
50253 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
50254 (grub_machine_init): Do not set the prefix here.
50256 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
50258 * kern/efi/init.c: Include grub/mm.h.
50259 (grub_efi_set_prefix): New function.
50261 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
50262 (grub_efi_get_filename): New function.
50263 (grub_print_device_path): Renamed to ...
50264 (grub_efi_print_device_path): ... this.
50266 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
50267 [MM_DEBUG] (grub_realloc): Likewise.
50268 [MM_DEBUG] (grub_free): Likewise.
50269 [MM_DEBUG] (grub_memalign): Likewise.
50270 [MM_DEBUG] (grub_mm_debug): New variable.
50271 [MM_DEBUG] (grub_debug_malloc): New function.
50272 [MM_DEBUG] (grub_debug_free): New function.
50273 [MM_DEBUG] (grub_debug_realloc): New function.
50274 [MM_DEBUG] (grub_debug_memalign): New function.
50276 * kern/misc.c (grub_abort): Print a newline to distinguish
50279 * kern/main.c (grub_main): Call grub_machine_set_prefix and
50280 grub_set_root_dev after loading modules. This is necessary when
50281 setting a prefix depends on modules.
50283 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
50284 (grub_efi_print_device_path): ... this.
50285 (grub_efi_get_filename): New prototype.
50286 (grub_efi_set_prefix): Likewise.
50288 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
50290 (grub_efidisk_get_device_handle): New prototype.
50291 (grub_efidisk_get_device_name): Likewise.
50293 * include/grub/mm.h: Include config.h.
50294 (MM_DEBUG): Removed.
50295 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
50296 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
50297 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
50298 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
50299 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
50300 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
50301 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
50302 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
50303 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
50305 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
50307 * disk/efi/efidisk.c: Include grub/partition.h.
50308 (iterate_child_devices): New function.
50309 (add_device): First, compare only last device path nodes, so that
50310 devices are sorted by the types.
50311 (grub_efidisk_get_device_handle): New function.
50312 (grub_efidisk_get_device_name): Likewise.
50314 * configure.ac (--enable-mm-debug): New option to enable the
50315 memory manager debugging feature. This makes the binary much
50316 bigger, so is disabled by default.
50318 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
50320 Use grub_abort instead of grub_stop, and grub_exit must be
50321 define in each architecture now. Also, this change adds support
50324 * util/i386/pc/grub-probefs.c: Include grub/term.h.
50325 (grub_getkey): New function.
50326 (grub_term_get_current): Likewise.
50328 * util/i386/pc/grub-setup.c: Include grub/term.h.
50329 (grub_getkey): New function.
50330 (grub_term_get_current): Likewise.
50332 * util/misc.c (grub_stop): Renamed to ...
50333 (grub_exit): ... this.
50335 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
50336 (grub_exit): ... this.
50337 (grub_machine_init): Use grub_abort instead of abort.
50338 (grub_stop): Removed.
50340 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
50343 * kern/i386/pc/startup.S (grub_exit): New function.
50344 (cold_reboot): New label.
50346 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
50347 (grub_efi_init): Call grub_efidisk_init.
50348 (grub_efi_fini): Call grub_efidisk_fini.
50350 * kern/efi/efi.c: Include grub/mm.h.
50351 (grub_efi_console_control_guid): Renamed to ...
50352 (console_control_guid): ... this.
50353 (grub_efi_loaded_image_guid): Renamed to ...
50354 (loaded_image_guid): ... this.
50355 (grub_efi_locate_handle): New function.
50356 (grub_efi_open_protocol): Likewise.
50357 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
50358 GRUB_EFI_CONSOLE_CONTROL_GUID.
50359 (grub_efi_exit): Removed.
50360 (grub_stop): Likewise.
50361 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
50362 (grub_exit): New function.
50363 (grub_print_device_path): Likewise.
50365 * kern/rescue.c (grub_rescue_cmd_exit): New function.
50366 (grub_enter_rescue_mode): Register "exit".
50368 * kern/misc.c (grub_real_dprintf): A cosmetic change.
50369 (grub_abort): New function.
50371 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
50373 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
50375 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
50377 * include/grub/efi/efi.h (grub_efi_exit): Removed.
50378 (grub_print_device_path): New prototype.
50379 (grub_efi_locate_handle): Likewise.
50380 (grub_efi_open_protocol): Likewise.
50382 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
50383 * disk/efi/efidisk.c: Likewise.
50385 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
50387 * include/grub/efi/console_control.h
50388 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
50390 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
50391 last 8 bytes as an array.
50392 (GRUB_EFI_DISK_IO_GUID): New macro.
50393 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
50394 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
50395 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
50397 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
50398 (struct grub_efi_device_path): Rename the member "sub_type" to
50400 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
50401 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
50402 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
50403 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
50404 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
50405 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
50406 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
50407 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
50408 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
50409 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
50410 (struct grub_efi_pci_device_path): New structure.
50411 (grub_efi_pci_device_path_t): New type.
50412 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
50413 (struct grub_efi_pccard_device_path): New structure.
50414 (grub_efi_pccard_device_path_t): New type.
50415 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
50416 (struct grub_efi_memory_mapped_device_path): New structure.
50417 (grub_efi_memory_mapped_device_path_t): New type.
50418 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
50419 (struct grub_efi_vendor_device_path): New structure.
50420 (grub_efi_vendor_device_path_t): New type.
50421 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
50422 (struct grub_efi_controller_device_path): New structure.
50423 (grub_efi_controller_device_path_t): New type.
50424 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
50425 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
50426 (struct grub_efi_acpi_device_path): New structure.
50427 (grub_efi_acpi_device_path_t): New type.
50428 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
50429 (struct grub_efi_expanded_acpi_device_path): New structure.
50430 (grub_efi_expanded_acpi_device_path_t): New type.
50431 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
50432 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
50433 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
50434 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
50435 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
50436 (struct grub_efi_atapi_device_path): New structure.
50437 (grub_efi_atapi_device_path_t): New type.
50438 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
50439 (struct grub_efi_fibre_channel_device_path): New structure.
50440 (grub_efi_fibre_channel_device_path_t): New type.
50441 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
50442 (struct grub_efi_1394_device_path): New structure.
50443 (grub_efi_1394_device_path_t): New type.
50444 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
50445 (struct grub_efi_usb_device_path): New structure.
50446 (grub_efi_usb_device_path_t): New type.
50447 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
50448 (struct grub_efi_usb_class_device_path): New structure.
50449 (grub_efi_usb_class_device_path_t): New type.
50450 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
50451 (struct grub_efi_i2o_device_path): New structure.
50452 (grub_efi_i2o_device_path_t): New type.
50453 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
50454 (struct grub_efi_mac_address_device_path): New structure.
50455 (grub_efi_mac_address_device_path_t): New type.
50456 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
50457 (struct grub_efi_ipv4_device_path): New structure.
50458 (grub_efi_ipv4_device_path_t): New type.
50459 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
50460 (struct grub_efi_ipv6_device_path): New structure.
50461 (grub_efi_ipv6_device_path_t): New type.
50462 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
50463 (struct grub_efi_infiniband_device_path): New structure.
50464 (grub_efi_infiniband_device_path_t): New type.
50465 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
50466 (struct grub_efi_uart_device_path): New structure.
50467 (grub_efi_uart_device_path_t): New type.
50468 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
50469 (struct grub_efi_vendor_messaging_device_path): New structure.
50470 (grub_efi_vendor_messaging_device_path_t): New type.
50471 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
50472 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
50473 (struct grub_efi_hard_drive_device_path): New structure.
50474 (grub_efi_hard_drive_device_path_t): New type.
50475 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
50476 (struct grub_efi_cdrom_device_path): New structure.
50477 (grub_efi_cdrom_device_path_t): New type.
50478 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
50479 (struct grub_efi_vendor_media_device_path): New structure.
50480 (grub_efi_vendor_media_device_path_t): New type.
50481 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
50482 (struct grub_efi_file_path_device_path): New structure.
50483 (grub_efi_file_path_device_path_t): New type.
50484 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
50485 (struct grub_efi_protocol_device_path): New structure.
50486 (grub_efi_protocol_device_path_t): New type.
50487 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
50488 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
50489 (struct grub_efi_bios_device_path): New structure.
50490 (grub_efi_bios_device_path_t): New type.
50491 (struct grub_efi_disk_io): New structure.
50492 (grub_efi_disk_io_t): New type.
50493 (struct grub_efi_block_io_media): New structure.
50494 (grub_efi_block_io_media_t): New type.
50495 (struct grub_efi_block_io): New structure.
50496 (grub_efi_block_io_t): New type.
50498 * include/grub/misc.h (grub_stop): Removed.
50499 (grub_exit): New prototype.
50500 (grub_abort): Likewise.
50502 * include/grub/disk.h (enum grub_disk_dev_id): Added
50503 GRUB_DISK_DEVICE_EFIDISK_ID.
50505 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
50506 disk/efi/efidisk.c.
50507 (kernel_syms.lst): Remove the target if an error occurs.
50509 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
50511 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
50512 as it was simply too buggy.
50514 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
50516 * kern/misc.c (grub_lltoa): New function.
50517 (grub_vsprintf): Added support for the long long suffix,
50520 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
50522 * Makefile.in (LDFLAGS): Add variable.
50523 (LD): Remove variable.
50524 * configure.ac: Add -m32 to LDFLAGS.
50525 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
50526 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
50527 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
50528 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
50529 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
50531 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
50532 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
50533 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
50535 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
50537 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
50538 length for unknown glyph.
50540 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50542 Add support for pre-loaded modules into the EFI port.
50544 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
50545 completely. Accept one more argument DIR. The caller has changed.
50547 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
50549 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
50550 (grub_efi_loaded_image_guid): New variable.
50551 (grub_efi_get_loaded_image): New function.
50552 (grub_arch_modules_addr): Likewise.
50554 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
50557 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
50558 (struct grub_efi_loaded_image): New structure.
50559 (grub_efi_loaded_image_t): New type.
50561 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50563 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
50564 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
50565 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
50567 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
50569 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
50571 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
50573 * DISTLIST: Added include/grub/efi/console.h,
50574 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
50575 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50577 * include/grub/efi/console.h: New file.
50578 * include/grub/efi/time.h: Likewise.
50579 * include/grub/i386/efi/kernel.h: Likewise.
50580 * kern/efi/init.c: Likewise.
50581 * kern/efi/mm.c: Likewise.
50582 * term/efi/console.c: Likewise.
50584 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
50585 (grub_stop): Removed.
50586 (grub_get_rtc): Likewise.
50587 (grub_machine_init): Simply call grub_efi_init.
50588 (grub_machine_fini): Call grub_efi_fini.
50590 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
50591 (grub_efi_output_string): Removed.
50592 (grub_efi_stall): New function.
50593 (grub_stop): Likewise.
50594 (grub_get_rtc): Likewise.
50596 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
50597 (grub_efi_stall): New prototype.
50598 (grub_efi_allocate_pages): Likewise.
50599 (grub_efi_free_pages): Likewise.
50600 (grub_efi_get_memory_map): Likewise.
50601 (grub_efi_mm_init): Likewise.
50602 (grub_efi_mm_fini): Likewise.
50603 (grub_efi_init): Likewise.
50604 (grub_efi_fini): Likewise.
50606 * include/grub/i386/efi/time.h: Do not include
50607 grub/symbol.h. Include grub/efi/time.h.
50608 (GRUB_TICKS_PER_SECOND): Removed.
50609 (grub_get_rtc): Likewise.
50611 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
50612 Added padding. The EFI spec is buggy.
50613 (GRUB_EFI_BLACK): New macro.
50614 (GRUB_EFI_BLUE): Likewise.
50615 (GRUB_EFI_GREEN): Likewise.
50616 (GRUB_EFI_CYAN): Likewise.
50617 (GRUB_EFI_RED): Likewise.
50618 (GRUB_EFI_MAGENTA): Likewise.
50619 (GRUB_EFI_BROWN): Likewise.
50620 (GRUB_EFI_LIGHTGRAY): Likewise.
50621 (GRUB_EFI_BRIGHT): Likewise.
50622 (GRUB_EFI_DARKGRAY): Likewise.
50623 (GRUB_EFI_LIGHTBLUE): Likewise.
50624 (GRUB_EFI_LIGHTGREEN): Likewise.
50625 (GRUB_EFI_LIGHTCYAN): Likewise.
50626 (GRUB_EFI_LIGHTRED): Likewise.
50627 (GRUB_EFI_LIGHTMAGENTA): Likewise.
50628 (GRUB_EFI_YELLOW): Likewise.
50629 (GRUB_EFI_WHITE): Likewise.
50630 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
50631 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
50632 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
50633 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
50634 (GRUB_EFI_BACKGROUND_RED): Likewise.
50635 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
50636 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
50637 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
50638 (GRUB_EFI_TEXT_ATTR): Likewise.
50640 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
50641 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50642 (kernel_mod_HEADERS): Added efi/time.h.
50644 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
50646 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
50647 include/grub/efi/api.h, include/grub/efi/console_control.h,
50648 include/grub/efi/efi.h, include/grub/efi/pe32.h,
50649 include/grub/i386/efi/time.h, kern/efi/efi.c,
50650 kern/i386/efi/init.c, kern/i386/efi/startup.S,
50651 and util/i386/efi/grub-mkimage.c.
50653 * Makefile.in (RMKFILES): Added i386-efi.rmk.
50655 * genmk.rb (PModule#rule): Do not export symbols if
50656 #{prefix}_EXPORTS is set to "no".
50658 * conf/i386-efi.mk: New file.
50659 * conf/i386-efi.rmk: Likewise.
50660 * include/grub/efi/api.h: Likewise.
50661 * include/grub/efi/console_control.h: Likewise.
50662 * include/grub/efi/efi.h: Likewise.
50663 * include/grub/efi/pe32.h: Likewise.
50664 * include/grub/i386/efi/time.h: Likewise.
50665 * kern/efi/efi.c: Likewise.
50666 * kern/i386/efi/init.c: Likewise.
50667 * kern/i386/efi/startup.S: Likewise.
50668 * util/i386/efi/grub-mkimage.c: Likewise.
50670 2006-04-17 Marco Gerards <marco@gnu.org>
50672 * include/grub/script.h: Include <grub/parser.h> and
50673 "grub_script.tab.h".
50674 (struct grub_lexer_param): New struct.
50675 (struct grub_parser_param): Likewise.
50676 (grub_script_create_arglist): Pass the state in an argument.
50677 (grub_script_add_arglist): Likewise.
50678 (grub_script_create_cmdline): Likewise.
50679 (grub_script_create_cmdblock): Likewise.
50680 (grub_script_create_cmdif): Likewise.
50681 (grub_script_create_cmdmenu): Likewise.
50682 (grub_script_add_cmd): Likewise.
50683 (grub_script_arg_add): Likewise.
50684 (grub_script_lexer_ref): Likewise.
50685 (grub_script_lexer_deref): Likewise.
50686 (grub_script_lexer_record_start): Likewise.
50687 (grub_script_lexer_record_stop): Likewise.
50688 (grub_script_mem_record): Likewise.
50689 (grub_script_mem_record_stop): Likewise.
50690 (grub_script_malloc): Likewise.
50691 (grub_script_yylex): Likewise.
50692 (grub_script_yyparse): Likewise.
50693 (grub_script_yyerror): Likewise.
50694 (grub_script_yylex): Likewise.
50695 (grub_script_lexer_init): Return the state.
50697 * normal/lexer.c (grub_script_lexer_state): Removed variable.
50698 (grub_script_lexer_done): Likewise.
50699 (grub_script_lexer_getline): Likewise.
50700 (grub_script_lexer_refs): Likewise.
50701 (script): Likewise.
50702 (newscript): Likewise.
50703 (record): Likewise.
50704 (recording): Likewise.
50705 (recordpos): Likewise.
50706 (recordlen): Likewise.
50707 (grub_script_lexer_init): Return the state instead of setting
50709 (grub_script_lexer_ref): Use the newly added argument for state
50710 instead of globals.
50711 (grub_script_lexer_deref): Likewise.
50712 (grub_script_lexer_record_start): Likewise.
50713 (grub_script_lexer_record_stop): Likewise.
50714 (recordchar): Likewise.
50715 (nextchar): Likewise.
50716 (grub_script_yylex2): Likewise.
50717 (grub_script_yylex): Likewise.
50718 (grub_script_yyerror): Likewise.
50720 * normal/parser.y (func_mem): Removed variable.
50721 (menu_entry): Likewise.
50723 (%lex-param): New parser option.
50724 (%parse-param): Likewise.
50725 (script): Always return the AST.
50726 (argument): Pass the state around.
50727 (arguments): Likewise.
50728 (grubcmd): Likewise.
50729 (commands): Likewise.
50730 (function): Likewise.
50731 (menuentry): Likewise.
50732 (if_statement): Likewise.
50735 * normal/script.c (grub_script_memused): Removed variable.
50736 (grub_script_parsed): Likewise.
50737 (grub_script_malloc): Added a state argument. Use that instead of
50739 (grub_script_mem_record): Likewise.
50740 (grub_script_mem_record_stop): Likewise.
50741 (grub_script_arg_add): Likewise.
50742 (grub_script_add_arglist): Likewise.
50743 (grub_script_create_cmdline): Likewise.
50744 (grub_script_create_cmdif): Likewise.
50745 (grub_script_create_cmdmenu): Likewise.
50746 (grub_script_add_cmd): Likewise.
50747 (grub_script_parse): Setup the state before calling the parser.
50749 2006-04-16 Marco Gerards <marco@gnu.org>
50751 * normal/command.c (grub_command_init): Remove the title command.
50753 * normal/lexer.c (grub_script_yylex): Renamed from this...
50754 (grub_script_yylex2): ... to this.
50755 (grub_script_yylex): New function. Temporary
50756 introduced to filter some tokens.
50757 (grub_script_yyerror): Print a newline.
50759 * normal/main.c (read_config_file): Output information about the
50760 lines that contain errors. Wait for a key after all lines have
50761 been processed. Don't return an empty menu.
50763 * normal/parser.y (func_mem): Don't initialize.
50764 (menu_entry): Likewise.
50765 (err): New variable.
50766 (script): Don't return anything when an error was encountered.
50767 (ws, returns): Removed rules.
50768 (argument): Disabled concatenated variable support.
50769 (arguments): Remove explicit separators.
50770 (grubcmd): Likewise.
50771 (function): Likewise.
50772 (menuentry): Likewise.
50774 (commands): Likewise. Add error handling.
50776 * normal/script.c (grub_script_create_cmdline): If
50777 `grub_script_parsed' is 0, assume the parser encountered an error.
50779 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
50781 * configure.ac: Add support for EFI. Fix the typo
50782 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
50784 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50786 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
50787 foreign multibyte characters should be shown correctly.
50789 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50791 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
50793 (read_config_file): Made it to close file before returning.
50795 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
50797 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
50798 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
50799 video/i386/pc/vbefill.c.
50801 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
50802 video/i386/pc/vbefill.c.
50804 * include/grub/video.h (grub_video_blit_format): New enum.
50805 (grub_video_mode_info): Added new member blit_format.
50806 (grub_video_get_blit_format): New function prototype.
50808 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50809 function prototype.
50810 (grub_video_vbe_map_rgb): Likewise.
50811 (grub_video_vbe_unmap_color): Likewise.
50813 * include/grub/i386/pc/vbeblit.h: New file.
50815 * include/grub/i386/pc/vbefill.h: New file.
50817 * video/video.c (grub_video_get_blit_format): New function.
50818 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50819 (grub_video_vbe_map_rgb): Likewise.
50820 (grub_video_vbe_unmap_color): Likewise.
50822 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50824 (grub_video_vbe_blit_render_target): Changed to use more optimized
50826 (grub_video_vbe_setup): Added detection for optimized settings.
50827 (grub_video_vbe_create_render_target): Likewise.
50829 * video/i386/pc/vbeblit.c: New file.
50831 * video/i386/pc/vbefill.c: New file.
50833 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50835 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50838 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50839 parsing to support both hex and dec ranges. If filename was missing
50840 show usage information.
50842 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50844 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50845 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50847 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50848 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50849 (video_mod_SOURCES): Added.
50850 (video_mod_CFLAGS): Likewise.
50851 (video_mod_LDFLAGS): Likewise.
50852 (gfxterm_mod_SOURCES): Likewise.
50853 (gfxterm_mod_CFLAGS): Likewise.
50854 (gfxterm_mod_LDFLAGS): Likewise.
50855 (videotest_mod_SOURCES): Likewise.
50856 (videotest_mod_CFLAGS): Likewise.
50857 (videotest_mod_LDFLAGS): Likewise.
50858 (vesafb_mod_SOURCES): Removed.
50859 (vesafb_mod_CFLAGS): Likewise.
50860 (vesafb_mod_LDFLAGS): Likewise.
50861 (vga_mod_SOURCES): Likewise.
50862 (vga_mod_CFLAGS): Likewise.
50863 (vga_mod_LDFLAGS): Likewise.
50865 * commands/videotest.c: New file.
50867 * font/manager.c (fill_with_default_glyph): Modified to use
50869 (grub_font_get_glyph): Likewise.
50870 (fontmanager): Renamed from this...
50871 (font_manager): ... to this.
50873 * include/grub/font.h (grub_font_glyph): Added new structure.
50874 (grub_font_get_glyph): Modified to use grub_font_glyph.
50876 * include/grub/misc.h (grub_abs): Added as inline function.
50878 * include/grub/video.h: New file.
50880 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
50881 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
50882 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
50883 (grub_vbe_get_controller_info): Renamed from this...
50884 (grub_vbe_bios_get_controller_info): ... to this.
50885 (grub_vbe_get_mode_info): Renamed from this...
50886 (grub_vbe_bios_get_mode_info): ... to this.
50887 (grub_vbe_set_mode): Renamed from this...
50888 (grub_vbe_bios_set_mode): ... to this.
50889 (grub_vbe_get_mode): Renamed from this...
50890 (grub_vbe_bios_get_mode): ... to this.
50891 (grub_vbe_set_memory_window): Renamed from this...
50892 (grub_vbe_bios_set_memory_window): ... to this.
50893 (grub_vbe_get_memory_window): Renamed from this...
50894 (grub_vbe_bios_get_memory_window): ... to this.
50895 (grub_vbe_set_scanline_length): Renamed from this...
50896 (grub_vbe_set_scanline_length): ... to this.
50897 (grub_vbe_get_scanline_length): Renamed from this...
50898 (grub_vbe_bios_get_scanline_length): ... to this.
50899 (grub_vbe_set_display_start): Renamed from this...
50900 (grub_vbe_bios_set_display_start): ... to this.
50901 (grub_vbe_get_display_start): Renamed from this...
50902 (grub_vbe_bios_get_display_start): ... to this.
50903 (grub_vbe_set_palette_data): Renamed from this...
50904 (grub_vbe_bios_set_palette_data): ... to this.
50905 (grub_vbe_set_pixel_rgb): Removed.
50906 (grub_vbe_set_pixel_index): Likewise.
50908 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
50910 (grub_vbe_bios_get_controller_info): ... to this.
50911 (grub_vbe_get_mode_info): Renamed from this...
50912 (grub_vbe_bios_get_mode_info): ... to this.
50913 (grub_vbe_set_mode): Renamed from this...
50914 (grub_vbe_bios_set_mode): ... to this.
50915 (grub_vbe_get_mode): Renamed from this...
50916 (grub_vbe_bios_get_mode): ... to this.
50917 (grub_vbe_set_memory_window): Renamed from this...
50918 (grub_vbe_bios_set_memory_window): ... to this.
50919 (grub_vbe_get_memory_window): Renamed from this...
50920 (grub_vbe_bios_get_memory_window): ... to this.
50921 (grub_vbe_set_scanline_length): Renamed from this...
50922 (grub_vbe_set_scanline_length): ... to this.
50923 (grub_vbe_get_scanline_length): Renamed from this...
50924 (grub_vbe_bios_get_scanline_length): ... to this.
50925 (grub_vbe_set_display_start): Renamed from this...
50926 (grub_vbe_bios_set_display_start): ... to this.
50927 (grub_vbe_get_display_start): Renamed from this...
50928 (grub_vbe_bios_get_display_start): ... to this.
50929 (grub_vbe_set_palette_data): Renamed from this...
50930 (grub_vbe_bios_set_palette_data): ... to this.
50931 (grub_vbe_bios_get_controller_info): Fixed problem with registers
50932 getting corrupted after calling it. Added more pushes and pops.
50933 (grub_vbe_bios_set_mode): Likewise.
50934 (grub_vbe_bios_get_mode): Likewise.
50935 (grub_vbe_bios_get_memory_window): Likewise.
50936 (grub_vbe_bios_set_scanline_length): Likewise.
50937 (grub_vbe_bios_get_scanline_length): Likewise.
50938 (grub_vbe_bios_get_display_start): Likewise.
50939 (grub_vbe_bios_set_palette_data): Likewise.
50941 * normal/cmdline.c (cl_set_pos): Refresh the screen.
50942 (cl_insert): Likewise.
50943 (cl_delete): Likewise.
50945 * term/gfxterm.c: New file.
50947 * term/i386/pc/vesafb.c: Removed file.
50949 * video/video.c: New file.
50951 * video/i386/pc/vbe.c (real2pm): Added new function.
50952 (grub_video_vbe_draw_pixel): Likewise.
50953 (grub_video_vbe_get_video_ptr): Likewise.
50954 (grub_video_vbe_get_pixel): Likewise
50955 (grub_video_vbe_init): Likewise.
50956 (grub_video_vbe_fini): Likewise.
50957 (grub_video_vbe_setup): Likewise.
50958 (grub_video_vbe_get_info): Likewise.
50959 (grub_video_vbe_set_palette): Likewise.
50960 (grub_video_vbe_get_palette): Likewise.
50961 (grub_video_vbe_set_viewport): Likewise.
50962 (grub_video_vbe_get_viewport): Likewise.
50963 (grub_video_vbe_map_color): Likewise.
50964 (grub_video_vbe_map_rgb): Likewise.
50965 (grub_video_vbe_map_rgba): Likewise.
50966 (grub_video_vbe_unmap_color): Likewise.
50967 (grub_video_vbe_fill_rect): Likewise.
50968 (grub_video_vbe_blit_glyph): Likewise.
50969 (grub_video_vbe_blit_bitmap): Likewise.
50970 (grub_video_vbe_blit_render_target): Likewise.
50971 (grub_video_vbe_scroll): Likewise.
50972 (grub_video_vbe_swap_buffers): Likewise.
50973 (grub_video_vbe_create_render_target): Likewise.
50974 (grub_video_vbe_delete_render_target): Likewise.
50975 (grub_video_vbe_set_active_render_target): Likewise.
50976 (grub_vbe_set_pixel_rgb): Remove function.
50977 (grub_vbe_set_pixel_index): Likewise.
50978 (index_color_mode): Remove static variable.
50979 (active_mode): Likewise.
50980 (framebuffer): Likewise.
50981 (bytes_per_scan_line): Likewise.
50982 (grub_video_vbe_adapter): Added new static variable.
50983 (framebuffer): Likewise.
50984 (render_target): Likewise.
50985 (initial_mode): Likewise.
50986 (mode_in_use): Likewise.
50987 (mode_list): Likewise.
50989 2006-03-10 Marco Gerards <marco@gnu.org>
50991 * configure.ac (AC_INIT): Bumped to 1.93.
50993 * DISTLIST: Added `include/grub/hfs.h'.
50995 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
50997 * boot/i386/pc/boot.S (general_error): Before looping, try INT
50998 18H, which might help the BIOS falling back to next boot media.
51000 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
51002 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
51003 Poe Chen <poe.poechen@gmail.com>.
51005 2006-01-17 Marco Gerards <marco@gnu.org>
51007 * include/grub/normal.h: Include <grub/script.h>.
51008 (grub_command_list): Removed struct.
51009 (grub_command_list_t): Removed type.
51010 (grub_menu_entry): Remove members `num' and `command_list'. Add
51011 members `commands' and `sourcecode'.
51012 * include/grub/script.h: Add inclusion guards.
51013 (grub_script_cmd_menuentry): New struct.
51014 (grub_script_execute_menuentry): New prototype.
51015 (grub_script_lexer_record_start): Likewise.
51016 (grub_script_lexer_record_stop): Likewise.
51017 * normal/execute.c (grub_script_execute_menuentry): New function.
51018 * normal/lexer.c (record, recording, recordpos, recordlen): New
51020 (grub_script_lexer_record_start): New function.
51021 (grub_script_lexer_record_stop): Likewise.
51022 (recordchar): Likewise.
51023 (nextchar): Likewise.
51024 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
51025 2048 as the buffer size. Add the tokens `menuentry' and `@'.
51026 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
51027 (current_menu): New variable.
51028 (free_menu): Mainly rewritten.
51029 (grub_normal_menu_addentry): New function.
51030 (read_config_file): Rewritten.
51031 * normal/menu.c (run_menu_entry): Mainly rewritten.
51032 * normal/menu_entry.c (make_screen): Rewritten the code to insert
51034 (run): Mainly rewritten.
51035 * normal/parser.y (menu_entry): New variable.
51036 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
51037 (menuentry): New rule.
51038 (command): Add `menuentry'.
51039 (if_statement): Allow additional returns before `fi'.
51040 * normal/script.c (grub_script_create_cmdmenu): New function.
51042 2006-01-03 Marco Gerards <marco@gnu.org>
51044 * INSTALL: GNU Bison is required.
51045 * configure.ac: Rewritten the test to detect Bison.
51046 * Makefile.in (YACC): New variable. Reported by Xun Sun
51047 <xun.sun.cn@gmail.com>.
51049 2006-01-03 Marco Gerards <marco@gnu.org>
51051 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
51052 the HFS+ filesystem to filesystem blocks.
51053 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
51054 GCC warning is silenced.
51056 2006-01-03 Marco Gerards <marco@gnu.org>
51058 * partmap/apple.c (apple_partition_map_iterate): Convert the data
51059 read from disk from big endian to host byte order.
51061 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
51063 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
51065 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
51066 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
51067 embedded HFS+ filesystem.
51068 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
51069 (grub_hfs_sblock): Move from here...
51070 * include/grub/hfs.h: To here... New file.
51071 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
51073 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
51075 (grub_hfsplus_volheader): Change type of member `magic' to
51077 (grub_hfsplus_data): Add new member `embedded_offset'.
51078 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
51080 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
51081 Calculate the offset.
51083 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51085 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
51087 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
51089 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51091 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
51092 ENV->NAME is NULL after allocating ENV->VALUE.
51094 2005-12-25 Marco Gerards <marco@gnu.org>
51096 * kern/env.c (grub_env_set): Rewritten the error handling code.
51098 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51100 * geninit.sh: Made more robust, and more portable.
51102 2005-12-25 Marco Gerards <marco@gnu.org>
51104 Add support for Apple HFS+ filesystems.
51106 * fs/hfsplus.c: New file.
51108 * DISTLIST: Added `fs/hfsplus.c'.
51110 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
51111 (hfsplus_mod_SOURCES): New variable.
51112 (hfsplus_mod_CFLAGS): Likewise.
51113 (hfsplus_mod_LDFLAGS): Likewise.
51114 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
51115 (grub_setup_SOURCES): Likewise.
51116 (grub_mkdevicemap_SOURCES): Likewise.
51117 (grub_emu_SOURCES): Likewise.
51118 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
51120 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
51122 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
51124 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51126 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
51127 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
51128 include/grub/parser.h, include/grub/script.h, kern/parser.c,
51129 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
51130 normal/lexer.c, normal/parser.y, normal/script.c, and
51132 Removed kern/sparc64/cache.c.
51134 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
51135 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
51138 * configure.ac (AC_INIT): Bumped to 1.92.
51140 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
51142 * kern/err.c (grub_error_push): Added new function to support error
51144 (grub_error_pop): Likewise.
51145 (grub_error_stack_items): New local variable to support error stacks.
51146 (grub_error_stack_pos): Likewise.
51147 (grub_error_stack_assert): Likewise.
51148 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
51150 (grub_print_error): Added support to print errors from error stack.
51152 * include/grub/err.h (grub_error_push): Added function prototype.
51153 (grub_error_pop): Likewise.
51155 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
51157 * configure.ac: Accept `powerpc64' as host_cpu.
51158 (amd64): Rename to `biarch32'.
51160 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
51161 non-cacheline-aligned addresses.
51163 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
51164 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
51165 if `size' is non-zero.
51167 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
51169 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
51170 and `cd' to make sure the filename is not prefixed with a
51172 (pkgdata_MODULES): Add `gpt.mod'.
51173 (gpt_mod_SOURCES): New variable.
51174 (gpt_mod_CFLAGS): Likewise.
51175 (gpt_mod_LDFLAGS): Likewise.
51177 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
51179 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
51182 * partmap/gpt.c: New file.
51184 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
51185 GPT partition map is detected.
51187 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
51189 * commands/i386/pc/play.c: New file.
51190 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
51191 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
51194 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
51196 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
51197 ((unused))' to silence gcc warning.
51199 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
51201 * configure.ac: Correct `AC_PROG_YACC' test.
51203 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51205 * util/powerpc/ieee1275/grub-install.in: Run the mount point
51206 check before installing files.
51208 2005-11-22 Mike Small <smallm@panix.com>
51210 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
51211 number regex so multidigit numbers are recognized correctly.
51213 2005-11-22 Mike Small <smallm@panix.com>
51215 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
51216 debugging message before attempting to claim memory.
51217 (grub_rescue_cmd_initrd): Add a claim debugging message and try
51218 multiple addresses in case of failure.
51220 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51222 * term/tparm.c (get_space): Remove empty `if' statement.
51224 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
51226 * kern/parser.c (check_varstate): Rename `state' to 's'.
51228 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51230 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
51231 variable definitions to the beginning of each function. Sort stack
51233 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
51234 `buf' argument to `char *'.
51236 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51238 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
51239 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51240 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51241 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51242 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51243 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51244 configfile.mod, search.mod, gzio.mod and test.mod.
51245 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51246 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51247 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51248 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51249 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51250 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51251 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51252 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51253 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51254 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51255 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51256 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51257 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51258 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51259 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51260 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51261 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51262 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51263 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51264 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51265 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51266 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51267 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
51269 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
51271 (pkgdata_MODULES): Add test.mod.
51273 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51275 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
51276 appending to variables with "+=".
51277 (PModule): Use full pathname to generate *.lst filenames.
51279 * Makefile.in: Fixed list rules moved from genmk.rb.
51280 (.DELETE_ON_ERROR): New special target.
51281 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
51283 * conf/i386-pc.rmk: Include conf/common.mk.
51284 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51285 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51286 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51287 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51288 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51289 configfile.mod, search.mod, gzio.mod and test.mod.
51290 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51291 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51292 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51293 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51294 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51295 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51296 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51297 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51298 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51299 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51300 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51301 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51302 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51303 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51304 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51305 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51306 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51307 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51308 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51309 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51310 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51311 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51312 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
51314 * conf/common.rmk: ... to here. New file.
51316 * conf/common.mk: New file.
51318 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
51320 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
51321 (grub_script.tab.c): ... here.
51323 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
51324 (grub_script.tab.c): ... here.
51326 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
51327 (grub_script.tab.c): ... here.
51329 * normal/command.c (grub_command_find): Fixed a memory leak of
51330 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
51332 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51334 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
51335 "@" which marks the start of a comment on ARM.
51336 (VARIABLE): Likewise.
51338 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51340 Add support for Linux/ADFS partition tables.
51342 * partmap/acorn.c: New file.
51344 * include/grub/acorn_filecore.h: Likewise.
51346 * DISTLIST: Added `partmap/acorn.c' and
51347 `include/grub/acorn_filecore.h'.
51349 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51351 (pkgdata_MODULES): Add `acorn.mod'.
51352 (acorn_mod_SOURCES): New variable.
51353 (acorn_mod_CFLAGS): Likewise.
51355 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51357 (pkgdata_MODULES): Add `acorn.mod'.
51358 (acorn_mod_SOURCES): New variable.
51359 (acorn_mod_CFLAGS): Likewise.
51361 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
51362 (pkgdata_MODULES): Add `acorn.mod'.
51363 (acorn_mod_SOURCES): New variable.
51364 (acorn_mod_CFLAGS): Likewise.
51365 (acorn_mod_LDFLAGS): Likewise.
51367 * include/types.h (grub_disk_addr_t): New typedef.
51369 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
51371 * geninit.sh: New file.
51373 * geninitheader.sh: Likewise.
51375 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
51376 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
51377 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
51378 * commands/configfile.c (grub_configfile_init)
51379 (grub_configfile_fini): Likewise.
51380 * commands/default.c (grub_default_init, grub_default_fini):
51382 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
51383 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
51384 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
51385 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
51387 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
51388 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
51390 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
51391 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
51393 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
51395 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
51397 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
51398 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
51399 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
51400 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
51401 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
51402 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
51403 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
51404 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
51405 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
51406 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
51407 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
51408 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
51409 * partmap/amiga.c (grub_amiga_partition_map_init)
51410 (grub_amiga_partition_map_fini): Likewise.
51411 * partmap/apple.c (grub_apple_partition_map_init)
51412 (grub_apple_partition_map_fini): Likewise.
51413 * partmap/pc.c (grub_pc_partition_map_init)
51414 (grub_pc_partition_map_fini): Likewise.
51415 * partmap/sun.c (grub_sun_partition_map_init,
51416 grub_sun_partition_map_fini): Likewise.
51417 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
51420 * util/grub-emu.c: Include <grub_modules_init.h>.
51421 (main): Don't initialize and de-initialize any modules directly,
51422 use `grub_init_all' and `grub_fini_all' instead.
51424 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
51425 `grub_vesafb_mod_init'.
51426 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
51428 * term/i386/pc/vga.c (grub_vga_init): Renamed to
51429 `grub_vga_mod_init'. Updated all users.
51430 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
51432 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
51433 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
51436 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
51437 Generate a function to initialize the module in utilities.
51438 Updated all callers.
51439 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
51440 initialize the module in utilities. Updated all callers.
51442 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51444 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
51445 escape sequence and a literal ^L to clear the screen.
51447 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
51448 when returning from Open Firmware.
51450 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51452 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
51453 (grub_ofconsole_height): Likewise.
51454 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
51455 manually insert a '\n'.
51456 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
51457 `grub_ofconsole_height'. Return early if these are already set.
51459 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
51461 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51462 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
51463 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
51464 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
51465 and `normal/script.c'.
51466 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51467 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51468 (test_mod_SOURCES): New variable.
51469 (test_mod_CFLAGS): Likewise.
51470 (test_mod_LDFLAGS): Likewise.
51471 (pkgdata_MODULES): Add `test.mod'.
51472 (grub_script.tab.c): New rule.
51473 (grub_script.tab.h): Likewise.
51475 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
51477 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51478 `commands/test.c', `normal/execute.c', `normal/lexer.c',
51479 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51480 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51481 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51482 (test_mod_SOURCES): New variable.
51483 (test_mod_CFLAGS): Likewise.
51484 (pkgdata_MODULES): Add `test.mod'.
51485 (grub_script.tab.c): New rule.
51486 (grub_script.tab.h): Likewise.
51488 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
51490 Add initial scripting support.
51492 * commands/test.c: New file.
51493 * include/grub/script.h: Likewise.
51494 * normal/execute.c: Likewise.
51495 * normal/function.c: Likewise.
51496 * normal/lexer.c: Likewise.
51497 * normal/parser.y: Likewise.
51498 * normal/script.c: Likewise.
51500 * configure.ac: Add `AC_PROG_YACC' test.
51502 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
51503 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
51504 `normal/function.c' and `normal/script.c'.
51505 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51506 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51507 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
51509 (pkgdata_MODULES): Add `test.mod'.
51510 (grub_script.tab.c): New rule.
51511 (grub_script.tab.h): Likewise.
51513 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
51515 * include/grub/normal.h (grub_test_init): New prototype.
51516 (grub_test_fini): Likewise.
51518 * normal/command.c: Include <grub/script.h>.
51519 (grub_command_execute): Rewritten.
51521 * util/grub-emu.c (main): Call `grub_test_init' and
51524 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51526 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
51528 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
51529 there are no pending characters.
51531 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51533 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
51534 `grub_strndup' to drop device arguments. Replace unnecessary
51535 `grub_strndup' with `grub_strdup'.
51537 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51539 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
51540 `debug' environment variable has been set.
51542 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
51544 * Makefile.in (install-local): Use $(DATA).
51545 (uninstall): Likewise.
51546 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
51547 (sbin_UTILITIES): ... to here.
51548 (sbin_SCRIPTS): New variable.
51549 (grub_install_SOURCES): New variable.
51550 * util/powerpc/ieee1275/grub-install.in: New file.
51551 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
51553 (add_segments): Call `grub_util_get_path'.
51555 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
51557 From Timothy Baldwin:
51558 * commands/ls.c (grub_ls_list_files): Close FILE with
51560 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
51562 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
51564 * include/grub/parser.h: New file.
51566 * kern/parser.c: Likewise.
51568 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
51569 (grub_setup_SOURCES): Likewise.
51570 (grub_probefs_SOURCES): Likewise.
51571 (grub_emu_SOURCES): Likewise.
51572 (kernel_img_HEADERS): Add `parser.h'.
51574 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51575 (grub_emu_SOURCES): Add `kern/parser.c'.
51576 (grubof_SOURCES): Likewise.
51578 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51579 (grubof_SOURCES): Add `kern/parser.c'.
51581 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
51583 * kern/misc.c (grub_split_cmdline): Removed function.
51585 * kern/rescue.c: Include <grub/parser.h>.
51586 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
51587 of `grub_split_cmdline'.
51589 * normal/command.c: Include <grub/parser.h>.
51590 (grub_command_execute): Use `grub_parser_split_cmdline' instead
51591 of `grub_split_cmdline'.
51593 * normal/completion.c: Include <grub/parser.h>.
51594 (cmdline_state): New variable.
51595 (iterate_dir): End the filename with a quote depending on the
51596 command line state.
51597 (get_state): new function.
51598 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
51599 split the arguments and determine the current argument. When the
51600 argument string is not quoted, escape all spaces.
51602 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51604 * normal/sparc64/setjmp.S: New file.
51606 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51608 * include/grub/sparc64/libgcc.h: New file.
51609 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
51610 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
51611 normal/sparc64/setjmp.c.
51613 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51615 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
51616 * kern/sparc64/cache.S: New file.
51617 * kern/sparc64/cache.c: Removed.
51618 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
51619 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
51621 (COMMON_LDFLAGS): Add -melf64_sparc.
51622 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
51623 (grubof_SOURCES): Use cache.S instead of cache.c.
51624 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
51625 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
51626 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
51628 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
51629 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
51630 (linux_mod_CFLAGS): Commented out.
51631 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
51632 out because module isn't built.
51633 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
51634 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
51635 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
51636 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
51637 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
51638 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51639 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51640 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
51641 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
51642 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
51643 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51644 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51645 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
51646 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
51648 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
51650 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
51651 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
51652 longer, because HFS should not be used on PC.
51654 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51656 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
51657 consistently within the loop.
51659 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
51661 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
51662 directory can not be read.
51664 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51666 * configure.ac (AC_INIT): Increase the version number to 1.91.
51668 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
51669 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
51670 term/i386/pc/serial.c.
51672 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51674 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
51675 file size must be permitted.
51677 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
51678 between %ah and %al.
51680 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51682 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
51684 Call the hook with a NUL-terminated filename.
51685 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
51688 * kern/term.c (cursor_state): New variable.
51689 (grub_term_set_current): Reset the cursor state on a new
51691 (grub_setcursor): Rewritten to use CURSOR_STATE.
51692 (grub_getcursor): New function.
51694 * include/grub/term.h (grub_getcursor): New prototype.
51696 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
51697 integers on ARM. Reported by Timothy Baldwin
51698 <T.E.Baldwin99@members.leeds.ac.uk>.
51700 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
51702 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
51704 (grub_sfs_dir): Likewise.
51706 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
51708 Add support for the SFS filesystem.
51710 * fs/sfs.c: New file.
51712 * DISTLIST: Added `fs/sfs.c'.
51714 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
51715 (grub_probefs_SOURCES): Likewise.
51716 (grub_emu_SOURCES): Likewise.
51717 (pkgdata_MODULES): Add `sfs.mod'.
51718 (sfs_mod_SOURCES): New variable.
51719 (sfs_mod_CFLAGS): Likewise.
51720 (sfs_mod_LDFLAGS): Likewise.
51722 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
51723 (pkgdata_MODULES): Add `sfs.mod'.
51724 (sfs_mod_SOURCES): New variable.
51725 (sfs_mod_CFLAGS): Likewise.
51727 * util/grub-emu.c (main): Call `grub_sfs_init' and
51730 * include/grub/fs.h (grub_sfs_init): New prototype.
51731 (grub_sfs_fini): Likewise.
51733 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
51735 Add support for the AFFS filesystem.
51737 * fs/affs.c: New file.
51739 * DISTLIST: Added `fs/affs.c'.
51741 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
51742 (grub_probefs_SOURCES): Likewise.
51743 (grub_emu_SOURCES): Likewise.
51744 (pkgdata_MODULES): Add `affs.mod'.
51745 (affs_mod_SOURCES): New variable.
51746 (affs_mod_CFLAGS): Likewise.
51747 (affs_mod_LDFLAGS): Likewise.
51749 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
51750 (pkgdata_MODULES): Add `affs.mod'.
51751 (affs_mod_SOURCES): New variable.
51752 (affs_mod_CFLAGS): Likewise.
51754 * util/grub-emu.c (main): Call `grub_affs_init' and
51757 * include/grub/fs.h (grub_affs_init): New prototype.
51758 (grub_affs_fini): Likewise.
51760 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51762 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
51764 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51766 * configure.ac: Accept `x86_64' as host_cpu. In that case add
51769 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
51772 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
51773 (COMMON_LDFLAGS): New variable.
51774 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
51775 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
51776 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
51777 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
51778 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
51779 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
51780 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
51781 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
51782 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
51783 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
51784 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51785 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51786 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
51787 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
51788 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
51790 (normal_mod_ASFLAGS): Add `-m32'.
51792 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
51793 (grub_host_size_t, grub_host_ssize_t): New types.
51794 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
51795 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
51796 `GRUB_HOST_SIZEOF_VOID_P'.
51798 * include/grub/kernel.h (struct grub_module_header): Type of
51799 member offset changed to `grub_host_off_t'. Type of member size
51800 changed to `grub_host_size_t'.
51801 (struct grub_module_info): Type of member offset changed to
51802 `grub_host_off_t'. Type of member size changed to
51803 `grub_host_size_t'.
51805 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51807 Make GRUB's kernel compliant to Multiboot Specification.
51809 * kern/i386/pc/startup.S (multiboot_header): New label.
51810 (multiboot_entry): Likewise.
51811 (multiboot_trampoline): Likewise.
51813 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51814 Increased to 0x4A0.
51816 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51817 put parentheses after a question mark.
51818 [!GRUB_UTIL] (my_mod): New variable.
51820 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51822 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
51824 Adds support for the XFS filesystem. Btrees are not supported
51827 * fs/xfs.c: New file.
51829 * DISTLIST: Added `fs/xfs.c'.
51831 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51832 (grub_probefs_SOURCES): Likewise.
51833 (grub_emu_SOURCES): Likewise.
51834 (pkgdata_MODULES): Add `xfs.mod'.
51835 (xfs_mod_SOURCES): New variable.
51836 (xfs_mod_CFLAGS): Likewise.
51838 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51839 (pkgdata_MODULES): Add `xfs.mod'.
51840 (xfs_mod_SOURCES): New variable.
51841 (xfs_mod_CFLAGS): Likewise.
51843 * util/grub-emu.c (main): Call `grub_xfs_init' and
51846 * include/grub/fs.h (grub_xfs_init): New prototype.
51847 (grub_xfs_fini): Likewise.
51850 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51852 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51853 color modes, allow greater than 16 colors to be configured as
51856 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51858 * normal/completion.c (complete_arguments): Add the qualifier
51859 const into OPTIONS.
51861 From Omniflux <omniflux+lists@omniflux.com>:
51862 * include/grub/terminfo.h: New file.
51863 * include/grub/tparm.h: Likewise.
51864 * include/grub/i386/pc/serial.h: Likewise.
51865 * term/terminfo.c: Likewise.
51866 * term/tparm.c: Likewise.
51867 * term/i386/pc/serial.c: Likewise.
51868 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51870 (terminfo_mod_SOURCES): New variable.
51871 (terminfo_mod_CFLAGS): Likewise.
51872 (serial_mod_SOURCES): Likewise.
51873 (serial_mod_CFLAGS): Likewise.
51875 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51877 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51878 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
51879 and kern/powerpc/ieee1275/cmain.c, respectively.
51881 * boot/powerpc/ieee1275/crt0.S: Moved to ...
51882 * kern/powerpc/ieee1275/crt0.S: ... here.
51884 * boot/powerpc/ieee1275/cmain.c: Moved to ...
51885 * kern/powerpc/ieee1275/cmain.c: ... here.
51887 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
51888 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
51889 instead of boot/powerpc/ieee1275/crt0.S and
51890 boot/powerpc/ieee1275/cmain.c, respectively.
51892 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
51893 sectors. It was not used anyway.
51895 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51897 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
51898 `unused parameter' warning.
51900 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51902 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
51904 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
51907 2005-08-28 Marco Gerards <metgerards@student.han.nl>
51909 * include/grub/normal.h (enum grub_completion_type): Added
51910 `GRUB_COMPLETION_TYPE_ARGUMENT'.
51912 * normal/cmdline.c (print_completion): Handle
51913 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
51914 * normal/menu_entry.c (store_completion): Likewise.
51916 * normal/completion.c (complete_arguments): New function.
51917 (grub_normal_do_completion): Call `complete_arguments' when the
51918 current words start with a dash.
51920 2005-08-27 Marco Gerards <metgerards@student.han.nl>
51922 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
51923 `gzio.mod' instead of `io.mod').
51925 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
51927 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
51928 (DISTDIRS): Added io and video.
51929 Rewrite the search routine to make an output consistently.
51931 * DISTLIST: Added conf/sparc64-ieee1275.mk,
51932 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
51933 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
51934 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
51935 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
51936 util/powerpc/ieee1275/misc.c.
51938 * include/grub/gzio.h: New file.
51939 * io/gzio.c: Likewise.
51941 * kern/file.c (grub_file_close): Call grub_device_close only if
51942 FILE->DEVICE is not NULL.
51944 * include/grub/mm.h [!NULL] (NULL): New macro.
51946 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
51948 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
51949 (pkgdata_MODULES): Added gzio.mod.
51950 (gzio_mod_SOURCES): New variable.
51951 (gzio_mod_CFLAGS): Likewise.
51953 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
51954 (pkgdata_MODULES): Added gzio.mod.
51955 (gzio_mod_SOURCES): New variable.
51956 (gzio_mod_CFLAGS): Likewise.
51958 * commands/cat.c: Include grub/gzio.h.
51959 (grub_cmd_cat): Use grub_gzfile_open instead of
51962 * commands/cmp.c: Include grub/gzio.h.
51963 (grub_cmd_cmp): Use grub_gzfile_open instead of
51966 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
51967 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
51969 (grub_rescue_cmd_module): Likewise.
51971 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51973 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
51974 kern/sparc64/ieee1275/init.c because it contains _start.
51975 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
51977 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51979 * configure.ac: Add support for sparc64 host with ieee1275
51981 * configure: Generated from configure.ac.
51982 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
51984 (grub_ofdisk_read): Likewise.
51985 (grub_ofdisk_open): Use %p to print pointer values, and cast the
51986 pointers as (void *) to remove a warning.
51987 (grub_ofdisk_close): Likewise.
51988 (grub_ofdisk_read): Likewise.
51989 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
51990 returns, so make it return void to remove a warning.
51991 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
51992 Corresponding prototype change.
51993 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
51994 values, and cast the pointers as (void *) to remove a warning.
51995 (grub_mm_dump): Likewise.
51996 * conf/sparc64-ieee1275.mk: New file.
51997 * conf/sparc64-ieee1275.rmk: Likewise.
51998 * include/grub/sparc64/setjmp.h: Likewise.
51999 * include/grub/sparc64/types.h: Likewise.
52000 * include/grub/sparc64/ieee1275/console.h: Likewise.
52001 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
52002 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
52003 * include/grub/sparc64/ieee1275/time.h: Likewise.
52004 * kern/sparc64/cache.c: Likewise.
52005 * kern/sparc64/dl.c: Likewise.
52006 * kern/sparc64/ieee1275/init.c: Likewise.
52007 * kern/sparc64/ieee1275/openfw.c: Likewise.
52009 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
52011 * util/console.c (grub_ncurses_putchar): If C is greater than
52012 0x7f, set C to a question mark.
52013 (grub_ncurses_getcharwidth): New function.
52014 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
52017 * normal/menu.c (print_entry): Made aware of Unicode. First,
52018 convert TITLE to UCS-4, and predict the cursor position by
52021 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
52023 * kern/misc.c (grub_utf16_to_utf8): Likewise.
52025 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52027 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
52028 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
52031 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
52032 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
52033 grub_strcpy and grub_strlen. Take it into account that a space
52034 character is inserted as a delimiter.
52036 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52038 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
52039 invalid magic in the error.
52041 * commands/search.c: New file.
52043 * util/grub-emu.c (main): Call grub_search_init and
52046 * kern/rescue.c (grub_rescue_print_disks): Removed.
52047 (grub_rescue_print_devices): New function.
52048 (grub_rescue_cmd_ls): Use grub_device_iterate with
52049 grub_rescue_print_devices instead of grub_disk_dev_iterate with
52050 grub_rescue_print_disks.
52052 * kern/partition.c (grub_partition_iterate): Return the result of
52053 PARTMAP->ITERATE instead of GRUB_ERRNO.
52055 * kern/device.c: Include grub/partition.h.
52056 (grub_device_iterate): New function.
52058 * include/grub/partition.h (grub_partition_iterate): Return int
52059 instead of grub_err_t.
52061 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
52063 [GRUB_UTIL] (grub_search_fini): Likewise.
52065 * include/grub/device.h (grub_device_iterate): New prototype.
52067 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52069 (pkgdata_MODULES): Added search.mod.
52070 (search_mod_SOURCES): New variable.
52071 (search_mod_CFLAGS): Likewise.
52073 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
52074 (pkgdata_MODULES): Added search.mod.
52075 (search_mod_SOURCES): New variable.
52076 (search_mod_CFLAGS): Likewise.
52078 * commands/ls.c (grub_ls_list_disks): Renamed to ...
52079 (grub_ls_list_devices): ... this, and use grub_device_iterate.
52080 All callers changed.
52082 * DISTLIST: Added commands/search.c.
52084 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52086 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
52088 (grub_getcharwidth): New function.
52090 * kern/misc.c (grub_utf8_to_ucs4): New function.
52092 * include/grub/term.h (struct grub_term): Added a new member
52094 (grub_getcharwidth): New prototype.
52096 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
52098 * term/i386/pc/console.c (map_char): New function. Segregated from
52099 grub_console_putchar.
52100 (grub_console_putchar): Use map_char.
52101 (grub_console_getcharwidth): New function.
52102 (grub_console_term): Specified grub_console_getcharwidth as
52105 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
52106 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
52108 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
52110 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
52111 on grub_strtoul completely.
52112 (write_char): Declare local variables in the beginning of the
52114 (grub_vesafb_getcharwidth): New function.
52115 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
52118 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
52120 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
52121 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
52122 commands/i386/pc/vbetest.c.
52124 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
52125 call grub_vbe_get_controller_info again, because the returned
52126 information is volatile.
52127 (grub_vbe_set_video_mode): Mostly rewritten.
52128 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
52129 grub_vbe_status_t correctly.
52130 (grub_vbe_get_video_mode_info): Likewise.
52131 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
52132 several if statements.
52134 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
52135 * commands/i386/pc/vbeinfo.c: ... this.
52137 * commands/i386/pc/vbe_test.c: Renamed to ...
52138 * commands/i386/pc/vbetest.c: ... this.
52140 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
52142 (grub_cmd_vbeinfo): ... this. Save video modes before
52143 iterating. Skip a video mode, if it is not available, not enough
52144 information is given or it is monochrome. Show the memory
52145 model. Leave the interpretation of MODEVAR to grub_strtoul
52147 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
52148 (GRUB_MOD_FINI): Likewise.
52150 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
52151 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
52152 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
52153 duplicated grub_env_get. Leave the interpretation of MODEVAR to
52154 grub_strtoul completely.
52155 (real2pm): Removed.
52156 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
52157 (GRUB_MOD_FINI): Likewise.
52159 * normal/misc.c: Include grub/mm.h.
52161 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
52162 vbe_list_modes with vbetest.mod and vbeinfo.mod.
52163 (vbe_list_modes_mod_SOURCES): Removed.
52164 (vbe_list_modes_mod_CFLAGS): Likewise.
52165 (vbe_test_mod_SOURCES): Likewise.
52166 (vbe_test_mod_CFLAGS): Likewise.
52167 (vbeinfo_mod_SOURCES): New variable.
52168 (vbeinfo_mod_CFLAGS): Likewise.
52169 (vbetest_mod_SOURCES): Likewise.
52170 (vbetest_mod_CFLAGS): Likewise.
52172 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
52174 * normal/misc.c: New file.
52176 * DISTLIST: Added normal/misc.c.
52178 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
52179 DISK to HOOK. Call HOOK with DISK.
52180 * partmap/apple.c (apple_partition_map_iterate): Likewise.
52181 * partmap/pc.c (pc_partition_map_iterate): Likewise.
52182 * partmap/sun.c (sun_partition_map_iterate): Likewise.
52184 * normal/menu_entry.c (struct screen): Added a new member
52185 "completion_shown".
52186 (completion_buffer): New global variable.
52187 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
52188 (store_completion): New function.
52189 (complete): Likewise.
52190 (clear_completions): Likewise.
52191 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
52192 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
52193 a tab, call complete.
52195 * normal/completion.c (disk_dev): Removed.
52196 (print_simple_completion): Likewise.
52197 (print_partition_completion): Likewise.
52198 (print_func): New global variable.
52199 (add_completion): Do not take the arguments WHAT or PRINT any
52200 longer. Added a new argument TYPE. Instead of printing directly,
52201 call PRINT_FUNC if not NULL.
52202 All callers changed.
52203 (complete_device): Use a local variable DEV instead of
52204 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
52205 (grub_normal_do_completion): Take a new argument HOOK. Do not
52206 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
52207 empty string, return NULL instead.
52208 All callers changed.
52210 * normal/cmdline.c (print_completion): New function.
52212 * kern/partition.c (grub_partition_iterate): Add an argument DISK
52214 All callers changed.
52216 * kern/disk.c (grub_print_partinfo): Removed.
52218 * include/grub/partition.h (struct grub_partition_map): Add a new
52219 argument DISK into HOOK of ITERATE.
52220 (grub_partition_iterate): Add a new argument DISK to HOOK.
52222 * include/grub/normal.h (enum grub_completion_type): New enum.
52223 (grub_completion_type_t): New type.
52224 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
52225 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
52226 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
52227 (GRUB_COMPLETION_TYPE_FILE): Likewise.
52228 (grub_normal_do_completion): Added a new argument HOOK.
52229 (grub_normal_print_device_info): New prototype.
52231 * include/grub/disk.h (grub_print_partinfo): Removed.
52233 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
52234 (normal_mod_SOURCES): Likewise.
52235 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
52236 (normal_mod_SOURCES): Likewise.
52238 * commands/ls.c (grub_ls_list_disks): Use
52239 grub_normal_print_device_info instead of grub_print_partinfo. Free
52241 (grub_ls_list_files): Use grub_normal_print_device_info instead of
52242 duplicating the code.
52244 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52246 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
52247 follow GCS more precisely.
52248 * commands/i386/pc/vbe_test.c: Likewise.
52249 * include/grub/i386/pc/vbe.h: Likewise.
52250 * term/i386/pc/vesafb.c: Likewise.
52251 * video/i386/pc/vbe.c: Likewise.
52253 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52255 * DISTLIST: Added term/i386/pc/vesafb.c
52256 DISTLIST: Added video/i386/pc/vbe.c
52257 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
52258 DISTLIST: Added commands/i386/pc/vbe_test.c.
52259 * commands/i386/pc/vbe_list_modes.c: New file.
52260 * commands/i386/pc/vbe_test.c: Likewise.
52261 * term/i386/pc/vesafb.c: Likewise.
52262 * video/i386/pc/vbe.c: Likewise.
52263 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
52264 (grub_vbe_probe) Added prototype.
52265 (grub_vbe_set_video_mode) Likewise.
52266 (grub_vbe_get_video_mode) Likewise.
52267 (grub_vbe_get_video_mode_info) Likewise.
52268 (grub_vbe_set_pixel_rgb) Likewise.
52269 (grub_vbe_set_pixel_index) Likewise.
52270 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
52271 (pkgdata_MODULES): Added vesafb.mod.
52272 (pkgdata_MODULES): Added vbe_list_modes.mod.
52273 (pkgdata_MODULES): Added vbe_test.mod.
52274 (vbe_mod_SOURCES): Added.
52275 (vbe_mod_CFLAGS): Likewise.
52276 (vesafb_mod_SOURCES): Likewise.
52277 (vesafb_mod_CFLAGS): Likewise.
52278 (vbe_list_modes_mod_SOURCES): Likewise.
52279 (vbe_list_modes_mod_CFLAGS): Likewise.
52280 (vbe_test_mod_SOURCES): Likewise.
52281 (vbe_test_mod_CFLAGS): Likewise.
52283 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
52285 * normal/command.c (grub_command_execute): If INTERACTIVE is
52286 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
52287 CMDLINE. Disable the pager if INTERACTIVE is true.
52288 All callers are changed.
52290 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
52291 before reading a config file.
52292 * normal/main.c (read_config_file): Even if a command is not
52293 found, register it if it is within an entry.
52295 * util/grub-emu.c: Include sys/types.h and unistd.h.
52296 (options): Added --hold.
52297 (struct arguments): Added a new member "hold".
52298 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
52300 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
52301 cleared by a debugger, if it is not zero.
52303 * include/grub/normal.h (grub_command_execute): Add an argument
52306 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
52308 * DISTLIST: Added include/grub/i386/pc/vbe.h.
52310 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
52312 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
52313 program with another one, because the old one didn't detect a bug
52314 in gcc-3.4. Always use regparm 2, because the new test is still
52315 not enough for gcc-4.0. Someone must investigate a simple test
52316 case which detects a bug in gcc-4.0.
52318 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
52320 * DISTLIST: Added normal/completion.c.
52322 * normal/completion.c: New file.
52324 * term/i386/pc/console.c (grub_console_getwh): New function.
52325 (grub_console_term): Assign grub_console_getwh to getwh.
52327 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
52328 function is defined in normal/completion.c as
52329 grub_normal_do_completion.
52330 (grub_cmdline_get): Use grub_normal_do_completion instead of
52333 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
52334 returns non-zero, otherwise return 0.
52335 (grub_partition_iterate): First, probe the partition map. Then,
52336 call ITERATE only for this partition map.
52338 * kern/misc.c (grub_strncmp): Rewritten.
52340 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
52341 returns non-zero. Otherwise return 0.
52343 * include/grub/partition.h (grub_partition_map_iterate): Return
52344 int instead of void.
52346 * include/grub/normal.h (grub_normal_do_completion): New prototype.
52348 * include/grub/misc.h (grub_strncmp): Change the type of N to
52351 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
52354 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
52355 unsigned explicitly before comparing it with I.
52357 * kern/main.c (grub_env_write_root): Add the attribute unused into
52360 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52361 normal/completion.c.
52362 (normal_mod_SOURCES): Likewise.
52363 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
52364 (normal_mod_SOURCES): Likewise.
52366 * normal/command.c (grub_iterate_commands): If ITERATE returns
52367 non-zero, return one immediately.
52369 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
52371 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
52372 * kern/i386/pc/startup.S: Updated Global Descriptor table's
52374 (grub_vbe_get_controller_info): New function.
52375 (grub_vbe_get_mode_info): Likewise.
52376 (grub_vbe_set_mode): Likewise.
52377 (grub_vbe_get_mode): Likewise.
52378 (grub_vbe_set_memory_window): Likewise.
52379 (grub_vbe_get_memory_window): Likewise.
52380 (grub_vbe_set_scanline_length): Likewise.
52381 (grub_vbe_get_scanline_length): Likewise.
52382 (grub_vbe_set_display_start): Likewise.
52383 (grub_vbe_get_display_start): Likewise.
52384 (grub_vbe_set_palette_data): Likewise.
52385 * include/grub/i386/pc/vbe.h: New file.
52387 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52389 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52390 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
52391 * DISTLIST: Likewise.
52392 * kern/ieee1275/of.c: Moved to ...
52393 * kern/ieee1275/ieee1275.c: ... here.
52395 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52397 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
52398 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
52399 Pass 0 as `end' parameter to grub_strtoul().
52401 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52403 * include/grub/powerpc/ieee1275/console.h: Do not include
52404 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
52406 (grub_console_cur_color): Remove i386-specific prototype.
52407 (grub_console_real_putchar): Likewise.
52408 (grub_console_checkkey): Likewise.
52409 (grub_console_getkey): Likewise.
52410 (grub_console_getxy): Likewise.
52411 (grub_console_gotoxy): Likewise.
52412 (grub_console_cls): Likewise.
52413 (grub_console_setcursor): Likewise.
52414 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
52415 Include <grub/machine/console.h>.
52416 * term/ieee1275/ofconsole.c: Likewise.
52418 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
52420 * Makefile.in (LIBLZO): New variable.
52422 * configure.ac: Check for LZO version 2.
52424 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
52425 lzo/lzo1x.h instead of lzo1x.h.
52427 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
52430 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
52431 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
52433 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
52434 copying the data from PARTITION to P.
52436 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52438 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
52439 negative, unload the module.
52441 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
52442 map is "pc_partition_map" but not "pc".
52443 (usage): Fix the description. The options are --boot-image and
52444 --core-image but not --boot-file or --core-file.
52445 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
52446 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
52449 * util/i386/pc/grub-install.in: Do not specify --boot-file or
52450 --core-file. Specify INSTALL_DEVICE as an argument.
52452 * util/console.c: Include config.h.
52453 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
52454 [HAVE_NCURSES_H]: Include ncurses.h.
52455 [HAVE_CURSES_H]: Include curses.h.
52456 [!A_NORMAL] (A_NORMAL): Defined as zero.
52457 [!A_STANDOUT] (A_STANDOUT): Likewise.
52459 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
52461 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
52463 * configure.ac: Check for curses libraries and headers.
52465 * Makefile.in (LIBCURSES): New variable.
52467 * genmk.rb (Script::rule): Set the executable bits.
52469 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
52470 name of the PC partition map is "pc_partition_map" but not "pc".
52472 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52474 * util/i386/pc/grub-install.in (grub_probefs): New variable.
52475 (modules): Likewise.
52476 (usage): Added descriptions for --modules and --grub-probefs.
52477 Handle --modules and --grub-probefs. Save the arguments in MODULES
52478 and GRUB_PROBEFS, respectively.
52479 Auto-detect a filesystem module against GRUBDIR. If the result is
52480 empty and modules are not specified explicitly, abort the
52481 installation. Add the result to MODULES.
52483 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
52484 disk/powerpc/ieee1275/ofdisk.c,
52485 include/grub/powerpc/ieee1275/init.h and
52486 term/powerpc/ieee1275/ofconsole.c.
52487 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
52488 term/ieee1275/ofconsole.c.
52490 * include/grub/powerpc/ieee1275/console.h: Resurrected.
52492 * COPYING: Upgraded to the latest version. Only the address of the
52493 FSF office has changed.
52495 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52497 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52498 kern/ieee1275.c with kern/ieee1275/of.c.
52500 * kern/ieee1275.c: Moved to ...
52501 * kern/ieee1275/of.c: ... here.
52503 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
52505 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
52508 * config.guess: Updated to the latest version from gnulib.
52509 * config.sub: Likewise.
52510 * install.sh: Likewise.
52511 * mkinstalldirs: Likewise.
52513 * include/grub/console.h: Removed. This file is arch-specific. Do
52514 not put this in include/grub.
52516 * include/grub/i386/pc/console.h: Resurrected.
52518 * util/console.c: Include grub/machine/console.h instead of
52520 * util/grub-emu.c: Likewise.
52522 2005-08-04 Marco Gerards <metgerards@student.han.nl>
52524 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
52527 From Vincent Pelletier <subdino2004@yahoo.fr>
52528 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
52529 Redefined to use grub_getwh.
52530 (grub_term): New member named getwh.
52531 (grub_getwh): New prototype.
52532 * kern/term.c (grub_getwh): New function.
52533 * term/i386/pc/console.c (grub_console_getwh): New function.
52534 (grub_console_term): New member `getwh'.
52535 * term/i386/pc/vga.c (grub_vga_getwh): New function.
52536 (grub_vga_term): New member `getwh'.
52537 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
52539 (grub_ofconsole_getw): New function.
52540 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
52541 (grub_ofconsole_term): New field named getwh and new initial
52544 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
52546 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
52547 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
52548 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
52549 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
52550 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
52551 of <grub/machine/ieee1275.h>.
52552 * commands/ieee1275/reboot.c: Likewise.
52553 * boot/powerpc/ieee1275/ieee1275.c: Move ...
52554 * kern/ieee1275.c: ... to here. All users updated. Change all
52555 parameter structs to use new type `grub_ieee1275_cell_t'.
52556 * term/powerpc/ieee1275/ofconsole.c: Move ...
52557 * term/ieee1275/ofconsole.c: ... to here. All users updated.
52558 * disk/powerpc/ieee1275/ofdisk.c: Move ...
52559 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
52560 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
52562 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
52563 Remove unused prototypes. All users updated.
52564 * include/grub/powerpc/ieee1275/console.h: Removed.
52565 * include/grub/powerpc/ieee1275/ieee1275.h: Define
52566 `grub_ieee1275_cell_t'.
52567 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
52568 Cast comparisons with -1 to the correct type.
52569 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
52570 type to match `grub_ieee1275_entry_fn'.
52572 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
52574 * DISTLIST: Added util/i386/pc/grub-probefs.c.
52576 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
52577 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
52579 (grub_probefs_SOURCES): New variable.
52581 * util/i386/pc/grub-probefs.c: New file.
52583 * util/i386/pc/grub-setup.c (main): Call
52584 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
52585 grub_hfs_init and grub_jfs_init to initialize the system. Call
52586 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
52587 grub_pc_partition_map_fini to finish the system.
52589 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
52591 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
52593 (grub_multiboot_load_elf32): Likewise.
52594 (grub_multiboot_is_elf64): Likewise.
52595 (grub_multiboot_load_elf64): Likewise.
52596 (grub_multiboot_load_elf): Likewise.
52597 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
52598 an ELF32 or ELF64 file.
52599 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
52601 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
52602 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
52603 NULL before calling FS->LABEL.
52604 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
52605 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
52606 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
52607 before calling FS->LABEL.
52609 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
52611 * util/i386/pc/grub-install.in (datadir): New variable.
52613 (pkgdatadir): New variable.
52614 (pkglibdir): Removed.
52616 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
52618 * DISTLIST: Added util/i386/pc/grub-install.in.
52620 * util/i386/pc/grub-install.in: New file.
52622 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
52623 (grub_install_SOURCES): Likewise.
52625 * genmk.rb: Added support for scripts.
52626 (Script): New class.
52627 (scripts): New variable.
52629 * Makefile.in (install-local): Install sbin_SCRIPTS by
52631 (uninstall): Remove sbin_SCRIPTS.
52633 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
52634 device, try to get a GRUB device by
52635 grub_util_biosdisk_get_grub_dev.
52638 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
52639 description for --device-map.
52641 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52643 Change the semantics of variable hooks. They now return strings
52644 instead of error values.
52646 * util/i386/pc/grub-setup.c: Include grub/env.h.
52647 (setup): Use grub_device_set_root instead of grub_env_set.
52649 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
52650 grub_env_get instead of grub_device_set_root and
52651 grub_device_get_root, respectively.
52653 * kern/main.c (grub_env_write_root): New function.
52654 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
52655 grub_env_set instead of grub_device_set_root.
52657 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
52659 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
52660 rather than calling ENV->WRITE_HOOK afterwards.
52661 (grub_env_get): Return the result of ENV->READ_HOOK rather than
52662 passing a pointer of a pointer.
52663 (grub_register_variable_hook): Change the types of "read_hook" and
52664 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
52666 Allocate the default empty string on the heap, because this string
52667 may be freed later.
52669 * kern/device.c: Include grub/env.h.
52670 (grub_device_set_root): Removed.
52671 (grub_device_get_root): Likewise.
52672 (grub_device_open): Use grub_env_get instead of
52673 grub_device_get_root.
52675 * include/grub/env.h (grub_env_read_hook_t): New type.
52676 (grub_env_write_hook_t): Likewise.
52677 (grub_env_var): Change the types of "read_hook" and "write_hook"
52678 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
52679 (grub_register_variable_hook): Likewise.
52681 * include/grub/device.h (grub_device_set_root): Removed.
52682 (grub_device_set_root): Likewise.
52684 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
52685 make sure that DIRNAME terminates with '/', so that
52686 grub_fat_find_dir will fail if PATH is not a directory.
52688 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
52690 Use the qualifier auto for print_files and print_files_long.
52691 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
52693 Put a newline only if there is no error.
52694 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
52697 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52699 * kern/partition.c (grub_partition_probe): Initialize PART to
52700 NULL. Otherwise, when no partition map is registered, this returns
52703 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
52705 * partmap/apple.c (apple_partition_map_iterate): Check if POS
52706 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
52709 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
52711 * commands/ls.c (grub_ls_list_disks): Print the filesystem
52712 information on each device, if it does not have partitions. Print
52713 "Device" instead of "Disk", because this function is not specific
52716 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
52717 static to ensure that it is put on the memory rather than a
52720 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52722 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
52723 (grub_cat_init): Likewise.
52724 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
52725 (options): Likewise.
52726 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
52727 (grub_configfile_init): Likewise.
52728 * font/manager.c (GRUB_MOD_INIT): Likewise.
52729 * commands/help.c (GRUB_MOD_INIT): Likewise.
52730 (grub_help_init): Likewise.
52731 * normal/command.c (grub_command_init): Likewise.
52732 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
52733 * disk/loopback.c (grub_loop_init): Likewise.
52734 (GRUB_MOD_INIT): Likewise.
52735 * commands/ls.c (grub_ls_init): Likewise.
52736 (GRUB_MOD_INIT): Likewise.
52737 (options): Likewise.
52738 * commands/boot.c (grub_boot_init): Likewise.
52739 (GRUB_MOD_INIT): Likewise.
52740 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
52741 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
52742 (GRUB_MOD_INIT): Likewise.
52743 * commands/cmp.c (grub_cmp_init): Likewise.
52744 (GRUB_MOD_INIT): Likewise.
52746 * normal/arg.c: Use <> instead of "" to include header files.
52747 (SHORT_ARG_HELP): New macro.
52748 (SHORT_ARG_USAGE): Likewise.
52749 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
52750 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
52752 (find_short): Check if C is 'h' or 'u' explicitly.
52753 (grub_arg_show_help): Use space characters instead of tabs. Treat
52754 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
52755 are shown with --help and --usage only if they are not used for
52756 the command itself.
52757 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
52760 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
52761 const into "longarg". Change the type of "shortarg" to int.
52763 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52765 * boot/i386/pc/boot.S (boot_drive_check): New label.
52767 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
52770 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
52771 which do not pass a boot drive correctly. Copied from GRUB Legacy.
52773 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52775 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
52776 When turning off Gate A20, skip the check and return immediately,
52777 because this is not fatal usually.
52779 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52781 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
52782 be 0x7C00 instead of 0x8000.
52784 * boot/i386/pc/pxeboot.S: Rewritten.
52786 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
52788 (gate_a20_check_state): Read a byte from 0x108000. Invert the
52791 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
52793 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
52794 robustness. This routine now supports a BIOS call and System
52795 Control Port A to modify the gate A20.
52797 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
52798 Increased to 0x440.
52800 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
52802 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
52803 device path and resulting ihandle.
52804 (grub_ofdisk_close): dprintf the ihandle being closed.
52805 (grub_ofdisk_read): dprintf function parameters.
52806 * kern/mm.c (grub_mm_init_region): Likewise.
52807 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52808 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52809 size, and boot arguments.
52810 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52811 before loading into memory.
52812 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52813 before loading into memory.
52815 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52817 * kern/mm.c: Added much documentation.
52818 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52819 8, set to 5 instead of 8.
52821 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52823 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52825 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52826 (grub_mkdevicemap_SOURCES): New variable.
52828 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52829 lib/device.c of GRUB Legacy.
52831 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52833 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52834 instead of PATH is NULL.
52836 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52838 * commands/cmp.c (BUFFER_SIZE): New macro.
52839 (grub_cmd_cmp): Close the right file at the right time. Compare
52840 only data just read. Don't report files of different size as
52841 identical. Dynamically allocate buffers. Move variable
52842 declarations at the beginning of function.
52844 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
52846 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52849 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52851 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52852 when backspace is pressed at beginning of line.
52854 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
52856 * DISTLIST: Added genfslist.sh.
52858 * normal/main.c (fs_module_list): New variable.
52859 (autoload_fs_module): New function.
52860 (read_fs_list): Likewise.
52861 (grub_normal_execute): Call read_fs_list.
52863 * kern/fs.c (grub_fs_autoload_hook): New variable.
52864 (grub_fs_probe): Added support for auto-loading.
52866 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52867 (grub_fs_module_list_t): New type.
52869 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52870 (grub_fs_autoload_hook): New prototype.
52872 * genfslist.sh: New file.
52874 * genmk.rb: Added a rule to generate a filesystem list.
52876 2005-06-30 Marco Gerards <metgerards@student.han.nl>
52878 * configure.ac: Fix the test for cross-compiling.
52880 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
52881 define GRUB_UTIL anymore.
52883 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
52884 so this function works on other systems than just big endian.
52885 (load_modules): Likewise.
52886 (add_segments): Likewise.
52888 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
52890 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
52891 contains `l' modifier, get a long from va_arg().
52893 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
52895 * kern/mm.c (grub_free): If the next free block which is being
52896 merged is the first free block, set the first block to the block
52898 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
52900 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52902 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
52903 `grub_ieee1275_chosen'.
52905 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52907 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
52908 (grub_ieee1275_chosen): New variable.
52909 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
52911 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
52912 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52913 Rename first argument to `phandle' for consistency.
52914 (grub_ieee1275_get_property_length): Likewise.
52915 (grub_ieee1275_next_property): Likewise. Change type of first argument
52916 to grub_ieee1275_phandle_t.
52917 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
52918 Move export next to declaration.
52919 (grub_ieee1275_chosen): New variable.
52920 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
52921 Correct cosmetic typo.
52922 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
52923 `grub_ieee1275_chosen'.
52924 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
52925 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
52926 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
52927 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
52928 `grub_ieee1275_chosen'.
52930 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
52932 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
52934 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
52935 /chosen/bootargs as "variable=value" pairs.
52937 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
52939 * include/grub/misc.h (grub_dprintf): New macro.
52940 (grub_real_dprintf): New prototype.
52941 (grub_strword): Likewise.
52942 (grub_iswordseparator): Likewise.
52943 * kern/misc.c (grub_real_dprintf): New function.
52944 (grub_strword): Likewise.
52945 (grub_iswordseparator): Likewise.
52947 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
52949 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
52950 (roundup): Remove macro.
52951 (grub_ieee1275_flags): Make static.
52952 (grub_ieee1275_realmode): Remove.
52953 (grub_ieee1275_test_flag): New function.
52954 (grub_ieee1275_set_flag): Likewise.
52955 (find_options): Rename to `grub_ieee1275_find_options'; update
52956 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
52957 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
52958 (cmain): New prototype.
52959 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
52960 `grub_ieee1275_flags' directly.
52961 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
52962 machine/biosdisk.h.
52963 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
52964 Don't include grub/machine/init.h.
52965 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
52966 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
52968 (grub_ieee1275_realmode): Likewise.
52969 (grub_ieee1275_flag): New enum.
52970 (grub_ieee1275_test_flag): New prototype.
52971 (grub_ieee1275_set_flag): New prototype.
52972 * include/grub/powerpc/ieee1275/init.h: Remove file.
52973 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
52974 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
52975 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
52976 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
52978 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
52979 `grub_ieee1275_test_flag'.
52980 (grub_ieee1275_encode_devname): Likewise.
52982 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
52984 * include/grub/powerpc/ieee1275/ieee1275.h
52985 (grub_ieee1275_encode_devname): New prototype.
52986 (grub_ieee1275_get_filename): Likewise.
52987 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
52989 (grub_set_prefix): Likewise.
52990 (grub_machine_init): Call grub_set_prefix.
52991 * kern/powerpc/ieee1275/openfw.c: Fix typos.
52992 (grub_parse_type): New enum.
52993 (grub_ieee1275_get_devargs): New function.
52994 (grub_ieee1275_get_devname): Likewise.
52995 (grub_ieee1275_parse_args): Likewise.
52996 (grub_ieee1275_get_filename): Likewise.
52997 (grub_ieee1275_encode_devname): Likewise.
52999 2005-03-30 Marco Gerards <metgerards@student.han.nl>
53001 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
53002 `grub_loader_unset'.
53004 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
53006 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
53007 instead of grub_ieee1275_interpret.
53008 (grub_halt_init): New function.
53009 (grub_halt_fini): Likewise.
53010 (GRUB_MOD_INIT): Correct message grammar.
53011 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
53012 instead of grub_ieee1275_interpret.
53013 (grub_reboot_init): New function.
53014 (grub_reboot_fini): Likewise.
53015 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
53016 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
53017 util/i386/pc/misc.c with commands/ieee1275/halt.c,
53018 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
53019 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
53021 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
53023 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
53025 (grub_halt): Likewise.
53026 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
53027 (cmain): Remove __attribute__((unused)).
53028 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
53029 (grub_heap_len): Likewise.
53030 (grub_machine_fini): New function.
53031 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
53032 (grub_halt): Likewise.
53033 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
53035 * util/powerpc/ieee1275/misc.c: New file.
53037 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
53039 * DISTLIST: New file.
53040 * gendistlist.sh: Likewise.
53042 * Makefile.in (COMMON_DISTFILES): Removed.
53043 (BOOT_DISTFILES): Likewise.
53044 (CONF_DISTFILES): Likewise.
53045 (DISK_DISTFILES): Likewise.
53046 (FS_DISTFILES): Likewise.
53047 (INCLUDE_DISTFILES): Likewise.
53048 (KERN_DISTFILES): Likewise.
53049 (LOADER_DISTFILES): Likewise.
53050 (TERM_DISTFILES): Likewise.
53051 (UTIL_DISTFILES): Likewise.
53052 (DISTFILES): Likewise.
53053 (uninstall): Uninstall files in $(pkgdata_DATA).
53054 (DISTLIST): New target.
53055 (distdir): Use the contents of the file DISTLIST to get a list of
53058 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
53060 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
53061 descriptor. This is ported from GRUB Legacy.
53063 * gencmdlist.sh: Added an extra semicolon to make it work with
53064 old sed versions. Reported by Robert Bihlmeyer
53065 <robbe@orcus.priv.at>.
53067 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
53069 Automatic loading of commands is supported.
53071 * normal/main.c (read_command_list): New function.
53072 (grub_normal_execute): Call read_command_list.
53074 * normal/command.c (grub_register_command): Return zero or CMD.
53075 Allocate CMD->NAME from the heap.
53076 Initialize CMD->MODULE_NAME to zero.
53077 Find the same name as well. If the same command is found and it is
53078 a dummy command, overwrite members. If it is not a dummy command,
53080 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
53081 (grub_command_find): If a dummy command is found, load a module
53082 and retry to find a command only once.
53084 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
53085 make sure that each command is loaded.
53087 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
53089 (struct grub_command): Remove const from the member `name'.
53090 Add a new member `module_name'.
53091 (grub_register_command): Return grub_command_t.
53093 * commands/help.c (grub_cmd_help): Call grub_command_find to make
53094 sure that each command is loaded.
53096 * genmk.rb (PModule::rule): Specify a module name without the
53097 suffix ".mod" to gencmdlist.sh.
53099 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53101 * gencmdlist.sh: New file.
53103 * genmk.rb (PModule::rule): Generate a rule for a command list.
53105 Generate command.lst from $(COMMANDFILES).
53107 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
53108 (DATA): Added $(pkgdata_DATA).
53109 (install-local): Install files in $(pkgdata_DATA).
53111 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53113 * term/i386/pc/vga.c (debug_command): Removed.
53114 (GRUB_MOD_INIT): Do not register the command "debug".
53116 From Hollis Blanchard:
53117 * commands/configfile.c: New file.
53118 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53119 commands/configfile.c.
53120 (pkgdata_MODULES): Added configfile.mod.
53121 (configfile_mod_SOURCES): New variable.
53122 (configfile_mod_CFLAGS): Likewise.
53123 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
53124 commands/configfile.c.
53125 (pkgdata_MODULES): Added configfile.mod.
53126 (configfile_mod_SOURCES): New variable.
53127 (configfile_mod_CFLAGS): Likewise.
53128 * util/grub-emu.c (main): Call grub_configfile_init and
53129 grub_configfile_fini.
53130 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
53132 [GRUB_UTIL] (grub_configfile_fini): Likewise.
53134 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53136 * normal/arg.c (grub_arg_show_help): Do not show the bug report
53139 * commands/help.c (grub_cmd_help): Do not print newlines after
53140 the last command in print_command_help.
53142 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53144 * commands/default.h: New file.
53145 * commands/timeout.h: Likewise.
53146 * normal/context.c: Likewise.
53148 * util/misc.c: Do not include sys/times.h.
53149 Include sys/time.h and grub/machine/time.h.
53150 (grub_get_rtc): Rewritten with gettimeofday.
53152 * util/grub-emu.c (main): Call grub_default_init and
53153 grub_timeout_init before grub_normal_init, and call
53154 grub_timeout_fini and grub_default_fini after grub_main.
53156 * util/console.c (grub_ncurses_checkkey): Return the read
53159 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
53162 * normal/main.c (read_config_file): Push MENU. If this fails,
53163 print an error and wait for a user input.
53164 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
53165 If a menu is empty or an error occurs, pop MENU.
53166 (grub_normal_execute): Pop and free MENU after grub_menu_run
53169 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
53171 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
53173 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53175 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
53177 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53180 * include/grub/normal.h (struct grub_menu_list): New struct.
53181 (grub_menu_list_t): New type.
53182 (struct grub_context): New struct.
53183 (grub_context_t): New type.
53184 (grub_register_command): Got rid of EXPORT_FUNC.
53185 (grub_unregister_command): Likewise.
53186 (grub_context_get): New prototype.
53187 (grub_context_get_current_menu): Likewise.
53188 (grub_context_push_menu): Likewise.
53189 (grub_context_pop_menu): Likewise.
53190 [GRUB_UTIL] (grub_default_init): Likewise.
53191 [GRUB_UTIL] (grub_default_fini): Likewise.
53192 [GRUB_UTIL] (grub_timeout_init): Likewise.
53193 [GRUB_UTIL] (grub_timeout_fini): Likewise.
53195 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
53196 commands/timeout.c and normal/context.c.
53197 (pkgdata_MODULES): Added default.mod and timeout.mod.
53198 (normal_mod_SOURCES): Added normal/context.c.
53199 (default_mod_SOURCES): New variable.
53200 (default_mod_CFLAGS): Likewise.
53201 (timeout_mod_SOURCES): Likewise.
53202 (timeout_mod_CFLAGS): Likewise.
53203 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
53205 (pkgdata_MODULES): Added default.mod and timeout.mod.
53206 (normal_mod_SOURCES): Added normal/context.c.
53207 (default_mod_SOURCES): New variable.
53208 (default_mod_CFLAGS): Likewise.
53209 (timeout_mod_SOURCES): Likewise.
53210 (timeout_mod_CFLAGS): Likewise.
53212 * Makefile.in (all-local): Added $(MKFILES).
53214 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
53216 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
53217 (grub_emu_SOURCES): Likewise.
53218 (pkgdata_MODULES): Add `sun.mod'.
53219 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53220 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53222 (pkgdata_MODULES): Add `sun.mod'.
53223 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53224 * include/grub/partition.h (grub_sun_partition_map_init): New
53226 (grub_sun_partition_map_fini): Likewise.
53227 * partmap/sun.c: New file.
53228 * util/grub-emu.c (main): Initialize and de-initialize the sun
53229 partitionmap support.
53231 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
53233 This implements an Emacs-like menu entry editor.
53235 * normal/menu_entry.c: New file.
53237 * util/console.c (grub_ncurses_putchar): Translate some Unicode
53238 characters to ASCII.
53239 (saved_char): New variable.
53240 (grub_ncurses_checkkey): Rewritten completely.
53241 (grub_ncurses_getkey): Likewise.
53242 (grub_ncurses_init): Call raw instead of cbreak.
53244 * normal/menu.c (print_entry): Do not put a space.
53245 (init_page): Renamed to ...
53246 (grub_menu_init_page): ... this. All callers changed.
53247 (edit_menu_entry): Removed.
53248 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
53250 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
53252 * kern/misc.c (grub_vprintf): Call grub_refresh.
53254 * normal/menu.c (DISP_LEFT): Renamed to ...
53255 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
53256 * normal/menu.c (DISP_UP): Renamed to ...
53257 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
53258 * normal/menu.c (DISP_RIGHT): Renamed to ...
53259 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
53260 * normal/menu.c (DISP_DOWN): Renamed to ...
53261 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
53262 * normal/menu.c (DISP_HLINE): Renamed to ...
53263 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
53264 * normal/menu.c (DISP_VLINE): Renamed to ...
53265 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
53266 * normal/menu.c (DISP_UL): Renamed to ...
53267 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
53268 * normal/menu.c (DISP_UR): Renamed to ...
53269 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
53270 * normal/menu.c (DISP_LL): Renamed to ...
53271 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
53272 * normal/menu.c (DISP_LR): Renamed to ...
53273 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
53274 * normal/menu.c (TERM_WIDTH): Renamed to ...
53275 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
53276 * normal/menu.c (TERM_HEIGHT): Renamed to ...
53277 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
53278 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
53279 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
53280 * normal/menu.c (TERM_MARGIN): Renamed to ...
53281 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
53282 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
53283 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
53284 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
53285 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
53286 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
53287 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
53288 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
53289 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
53290 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
53291 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
53292 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
53293 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
53294 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
53295 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
53296 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
53297 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
53298 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
53299 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
53300 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
53301 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
53302 All callers changed.
53304 * include/grub/normal.h: New prototype.
53306 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53307 normal/menu_entry.c.
53308 (normal_mod_SOURCES): Likewise.
53309 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
53310 (normal_mod_SOURCES): Likewise.
53312 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
53314 * include/grub/normal.h (grub_halt_init): New prototype.
53315 (grub_halt_fini): Likewise.
53316 (grub_reboot_init): Likewise.
53317 (grub_reboot_fini): Likewise.
53319 * util/grub-emu.c: Include signal.h.
53320 (main_env): New global variable.
53321 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
53323 (grub_machine_fini): New function.
53324 (main): Call grub_halt_init and grub_reboot_init before
53325 grub_main, and grub_reboot_fini and grub_halt_fini after it.
53326 Call setjmp with MAIN_ENV to go back afterwards.
53327 Call grub_machine_fini right before return.
53329 * include/grub/util/misc.h: Include setjmp.h.
53330 (main_env): New prototype.
53332 * include/grub/kernel.h (grub_machine_fini): New prototype.
53333 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
53334 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
53336 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
53337 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
53338 * term/i386/pc/console.c (grub_console_fini): Likewise.
53340 * util/i386/pc/misc.c: New file.
53342 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53343 util/i386/pc/misc.c, commands/i386/pc/halt.c and
53344 commands/i386/pc/reboot.c.
53346 2005-02-14 Guillem Jover <guillem@hadrons.org>
53348 * include/grub/dl.h (grub_dl_check_header): New prototype.
53349 (grub_arch_dl_check_header): Change return type to grub_err_t,
53350 remove size parameter and export function. Update all callers.
53351 * kern/dl.c (grub_dl_check_header): New function.
53352 (grub_dl_load_core): Use `grub_dl_check_header' instead of
53353 `grub_arch_dl_check_header'. Check ELF type. Check if sections
53354 are inside the core.
53355 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
53356 independent ELF header checks.
53357 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53358 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
53359 `grub_dl_check_header' instead of explicit checks. Check for the
53361 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
53362 `grub_dl_check_header' instead of explicit checks. Remove arch
53363 specific ELF header checks.
53365 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
53368 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
53370 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
53371 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
53373 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
53375 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
53376 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
53377 (part_map_iterate): Clear `grub_errno' and return 0 if
53378 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
53379 * partmap/amiga.c (amiga_partition_map_iterate): Return
53380 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
53381 * partmap/apple.c (apple_partition_map_iterate): Likewise.
53383 2005-02-01 Guillem Jover <guillem@hadrons.org>
53385 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
53388 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53390 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
53392 (grub_rescue_cmd_linux): New prototype.
53393 (grub_rescue_cmd_initrd): Likewise.
53394 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
53396 (grub_linux_release_mem): Release the memory for the initrd.
53397 (grub_load_linux): Renamed from this...
53398 (grub_rescue_cmd_linux): ...To this. Changed all callers.
53399 Changed `entry' not to be static. Loop over memory regions to
53400 find another one when the default fails.
53401 (grub_rescue_cmd_initrd): New function.
53402 (grub_linux_init): Remove function.
53403 (grub_linux_fini): Likewise.
53404 (GRUB_MOD_INIT): Register `initrd'.
53405 (GRUB_MOD_FINI): Unregister `initrd'.
53406 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
53408 (grub_linux_normal_fini): Likewise.
53409 (GRUB_MOD_INIT): Register `initrd'.
53410 (GRUB_MOD_FINI): Unregister `initrd'.
53412 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53414 * commands/help.c: New file.
53415 * normal/arg.c (show_help): Renamed to...
53416 (grub_arg_show_help): ... this.
53417 * commands/i386/pc/halt.c: New file.
53418 * commands/i386/pc/reboot.c: Likewise.
53419 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
53420 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
53421 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
53422 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
53424 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53426 (pkgdata_MODULES): Add `help.mod'.
53427 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
53428 * grub/i386/pc/init.h (grub_reboot): New prototype.
53429 (grub_halt): Likewise.
53430 * include/grub/normal.h (grub_arg_show_help): New prototype.
53431 (grub_help_init): Likewise.
53432 (grub_help_fini): Likewise.
53433 * util/grub-emu.c (main): Initialize and deinitialize the help
53436 * normal/cmdline.c (grub_cmdline_get): Doc fix.
53438 * normal/command.c (grub_command_init): Fixed the description of
53439 the `set' and `unset' commands.
53441 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53443 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
53445 * commands/ieee1275/halt.c: New file.
53446 * commands/ieee1275/reboot.c: Likewise.
53447 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
53448 `__attribute__ ((unused))'. Some GCS related fixed.
53449 (grub_suspend_init) [GRUB_UTIL]: Function removed.
53450 (grub_suspend_fini): Likewise.
53451 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
53453 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
53454 (halt_mod_CFLAGS): New variables.
53455 * include/grub/powerpc/ieee1275/ieee1275.h
53456 (grub_ieee1275_interpret): New prototype.
53458 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
53460 * include/grub/misc.h (memmove): New prototype.
53461 (memcpy): Likewise.
53463 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
53465 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
53466 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
53468 2005-01-22 Marco Gerards <metgerards@student.han.nl>
53470 * kern/misc.c (grub_strndup): Function rewritten.
53472 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
53474 * normal/menu.c (TERM_WIDTH): Macro redefined.
53475 (TERM_TOP_BORDER_Y): Likewise.
53476 (draw_border): Replaced while-loop by a for-loop. Make the number
53477 of lines consistent with the number of lines displayed in
53478 print_entries. Added a margin below the rectangle.
53479 (print_entry): Make the entry fit in the rectangle.
53480 (print_entries): Display the scroll arrows next to the right
53483 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53485 * fs/minix.c (grub_minix_find_file): Reserve more space for
53486 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
53487 `grub_strncpy' to copy `path' into it.
53489 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53491 Add the loopback device, a device via which files can be accessed
53494 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
53495 (pkgdata_MODULES): Add loopback.mod.
53496 (loopback_mod_SOURCES): New variable.
53497 (loopback_mod_CFLAGS): Likewise.
53498 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53500 (pkgdata_MODULES): Add loopback.mod.
53501 (loopback_mod_SOURCES): New variable.
53502 (loopback_mod_CFLAGS): Likewise.
53503 * disk/loopback.c: new file.
53504 * include/grub/normal.h (grub_loop_init): New prototype.
53505 (grub_loop_fini): New prototype.
53506 * util/grub-emu.c (main): Initialize and de-initialize loopback
53508 * include/grub/disk.h (grub_disk_dev_id): Add
53509 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
53511 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
53513 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
53515 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
53516 (suspend_mod_SOURCES): New variable.
53517 (suspend_mod_CFLAGS): Likewise.
53518 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
53520 * commands/ieee1275/suspend.c: New file.
53522 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
53524 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
53525 ((unused))' to `__attribute__ ((used))'.
53526 (GRUB_MOD_FINI): Likewise.
53527 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
53528 * genmk.rb (PModule): Assign space to common symbols when linking
53531 2005-01-20 Marco Gerards <metgerards@student.han.nl>
53533 * include/grub/mm.h (grub_mm_init_region): Change the type of the
53534 `unsigned' arguments to `grub_size_t'.
53535 (grub_malloc): Likewise.
53536 (grub_realloc): Likewise.
53537 (grub_memalign): Likewise.
53538 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
53539 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53540 * util/misc.c (grub_malloc): Likewise.
53541 (grub_realloc): Likewise.
53542 * kern/mm.c (get_header_from_pointer): Change the casts to
53543 `unsigned' into a cast to `grub_size_t'.
53545 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
53546 point to `currnode' when `currnode' is changed.
53548 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
53549 Schottelius <nico-linux@schottelius.org>.
53551 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
53553 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
53554 (note_path): Remove variable.
53555 (GRUB_IEEE1275_NOTE_NAME): New macro.
53556 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
53557 (grub_ieee1275_note_hdr): New structure.
53558 (grub_ieee1275_note_desc): Likewise.
53559 (grub_ieee1275_note): Likewise.
53560 (load_note): Remove `dir' argument. All callers updated. Remove
53561 `note_img' and `path'. Do not load a file from `note_path'.
53562 Initialize a struct grub_ieee1275_note and write that to `out'.
53563 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
53565 2005-01-05 Marco Gerards <metgerards@student.han.nl>
53567 * util/misc.c (grub_util_read_image): Revert last change. It
53568 called `grub_util_read_at', which seeks from the beginning of the
53571 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
53573 * TODO: Add note about endianness in grub-mkimage.
53574 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
53576 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
53577 (grub_mkimage_SOURCES): New target.
53578 * include/grub/kernel.h (grub_start_addr): Remove variable.
53579 (grub_end_addr): Likewise.
53580 (grub_total_module_size): Likewise.
53581 (grub_kernel_image_size): Likewise.
53582 (GRUB_MODULE_MAGIC): New constant.
53583 (grub_module_info): New structure.
53584 (grub_arch_modules_addr): New prototype.
53585 (grub_get_end_addr): Remove prototype.
53586 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
53587 * include/grub/powerpc/ieee1275/kernel.h: New file.
53588 * include/grub/util/misc.h (grub_util_get_fp_size): New
53590 (grub_util_read_at): Likewise.
53591 (grub_util_write_image_at): Likewise.
53592 * kern/main.c (grub_get_end_addr): Remove function.
53593 (grub_load_modules): Call grub_arch_modules_addr instead of using
53594 grub_end_addr. Look for a grub_module_info struct in memory. Use
53595 the grub_module_info fields instead of calling grub_get_end_addr
53596 as loop conditions. Move grub_add_unused_region code here.
53597 (grub_add_unused_region): Remove function.
53598 * kern/i386/pc/init.c: Include grub/cache.h.
53599 (grub_machine_init): Remove call to grub_get_end_addr. Remove
53600 one call to add_mem_region.
53601 (grub_arch_modules_addr): New function.
53602 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
53603 (grub_total_module_size): Likewise.
53604 Include grub/machine/kernel.h.
53605 (grub_arch_modules_addr): New function.
53606 * util/grub-emu.c (grub_end_addr): Remove variable.
53607 (grub_total_module_size): Likewise.
53608 (grub_arch_modules_addr): New function.
53609 * util/misc.c: Include unistd.h.
53610 (grub_util_get_fp_size): New function.
53611 (grub_util_read_at): Likewise.
53612 (grub_util_write_image_at): Likewise.
53613 (grub_util_read_image): Call grub_util_read_at.
53614 (grub_util_write_image): Call grub_util_write_image_at.
53615 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
53616 additional memory in kernel_img for a struct grub_module_info.
53617 Fill in that grub_module_info.
53618 * util/powerpc/ieee1275/grub-mkimage.c: New file.
53620 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53622 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
53624 * include/grub/powerpc/ieee1275/ieee1275.h
53625 (grub_ieee1275_milliseconds): New prototype.
53626 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
53628 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
53629 grub_ieee1275_milliseconds.
53631 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53633 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
53635 (find_options): New function.
53636 (cmain): Call find_options.
53637 * include/grub/powerpc/ieee1275/ieee1275.h
53638 (grub_ieee1275_realmode): New extern variable.
53639 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
53640 grub_map if grub_ieee1275_realmode is false.
53642 2004-12-29 Marco Gerards <metgerards@student.han.nl>
53644 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
53645 lines are inserted and make it work like readline. Reported by
53646 Vincent Pelletier <subdino2004@yahoo.fr>.
53648 2004-12-28 Marco Gerards <metgerards@student.han.nl>
53650 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
53652 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
53653 `kern/powerpc/cache.S'.
53655 2004-12-27 Marco Gerards <metgerards@student.han.nl>
53657 * genmk.rb: Handle the `Program' class in the main loop. Written
53658 by Johan Rydberg <jrydberg@gnu.org>.
53659 (Program): New class.
53660 (programs): New variable.
53661 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
53662 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
53663 instead of "grub/kernel.h". Include <grub/machine/init.h>.
53664 (help_arch): Function removed.
53665 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
53666 `powerpc/libgcc.h' and `loader.h'.
53667 (pkgdata_PROGRAMS): New variable.
53668 (sbin_UTILITIES): Variable removed.
53669 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
53670 (grubof_SOURCES): Variable re-defined so it only includes the
53671 core functionality.
53672 (grubof_CFLAGS): Remove `-DGRUBOF'.
53673 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
53674 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
53675 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
53676 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
53677 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
53678 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
53679 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
53680 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
53681 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
53682 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
53683 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
53684 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
53685 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
53686 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
53687 (pc_mod_CFLAGS): New variables.
53688 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
53689 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
53690 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
53691 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
53693 * include/grub/i386/pc/init.h (grub_os_area_addr)
53694 (rub_os_area_size): ... to here.
53695 * include/grub/powerpc/ieee1275/ieee1275.h
53696 (grub_ieee1275_entry_fn): Export symbol.
53697 * include/grub/powerpc/ieee1275/init.h: New file.
53698 * include/grub/powerpc/libgcc.h: Likewise.
53699 * include/grub/cache.h: Likewise.
53700 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
53701 <hollis@penguinppc.org>.
53702 * kern/dl.c: Include <grub/cache.h>.
53703 (grub_dl_flush_cache): New function.
53704 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
53706 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
53707 (grub_console_init): Removed prototypes.
53708 (grub_machine_init): Don't initialize the modules anymore.
53709 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
53711 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
53712 Macro undef removed.
53713 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
53714 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
53715 relocation `R_PPC_REL32'. Return an error when the relocation is
53717 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
53718 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
53719 * util/misc.c (grub_arch_sync_caches): Likewise.
53721 2004-12-19 Marco Gerards <metgerards@student.han.nl>
53723 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
53724 `symlist.c', add `grubof_symlist.c'.
53725 (symlist.c): Variable removed.
53726 (grubof_HEADERS): Variable added.
53727 (grubof_symlist.c): New target.
53728 (kernel_syms.lst): Use `grubof_HEADERS' instead of
53729 `kernel_img_HEADERS'.
53730 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
53731 * kern/powerpc/dl.c: New file.
53732 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
53734 (grub_arch_dl_relocate_symbols): Likewise.
53735 (grub_register_exported_symbols): Likewise.
53737 2004-12-13 Marco Gerards <metgerards@student.han.nl>
53739 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
53740 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
53741 to fail instead. Reported by Vincent Pelletier
53742 <subdino2004@yahoo.fr>.
53744 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
53745 it is not allocated. Reported by Vincent Pelletier
53746 <subdino2004@yahoo.fr>.
53748 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
53749 output so the output looks better.
53751 2004-12-04 Marco Gerards <metgerards@student.han.nl>
53753 Modulize the partition map support and add support for the amiga
53756 * commands/ls.c: Include <grub/partition.h> instead of
53757 <grub/machine/partition.h>.
53758 * kern/disk.c: Likewise.
53759 * kern/rescue.c: Likewise.
53760 * loader/i386/pc/chainloader.c: Likewise.
53761 * normal/cmdline.c: Likewise.
53762 * kern/powerpc/ieee1275/init.c: Likewise.
53763 (grub_machine_init): Call `grub_pc_partition_map_init',
53764 `grub_amiga_partition_map_init' and
53765 `grub_apple_partition_map_init'.
53766 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
53767 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
53768 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
53769 `partition.h' and `pc_partition.h'.
53770 (grub_setup_SOURCES): Remove
53771 `disk/i386/pc/partition.c'. Add `kern/partition.c',
53772 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53773 (grub_emu_SOURCES): Likewise.
53774 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
53775 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
53776 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
53777 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53778 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
53779 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53780 (grubof_SOURCES): Likewise.
53781 * disk/i386/pc/partition.c: File removed.
53782 * disk/powerpc/ieee1275/partition.c: Likewise.
53783 * include/grub/powerpc/ieee1275/partition.h: Likewise.
53784 * include/grub/i386/pc/partition.h: Likewise.
53785 * kern/partition.c: New file.
53786 * partmap/amiga.c: Likewise.
53787 * partmap/apple.c: Likewise.
53788 * partmap/pc.c: Likewise.
53789 * include/grub/partition.h: Likewise..
53790 * include/grub/pc_partition.h: Likewise.
53791 * util/grub-emu.c: Include <grub/partition.h> instead of
53792 <grub/machine/partition.h>.
53793 (main): Call `grub_pc_partition_map_init',
53794 `grub_amiga_partition_map_init' and
53795 `grub_apple_partition_map_init' and deinitialize afterwards.
53796 * util/i386/pc/biosdisk.c: Include `#include
53797 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53798 `<grub/machine/partition.h>'.
53799 * util/i386/pc/grub-setup.c: Likewise.
53800 * util/i386/pc/biosdisk.c: Likewise.
53801 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
53802 partition information in case of a PC partition.
53803 * util/i386/pc/grub-setup.c: Include `#include
53804 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53805 `<grub/machine/partition.h>'.
53806 (setup): Only access the PC specific partition information in case
53809 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
53811 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53812 (grub_longjmp): Likewise.
53813 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53815 * normal/powerpc/setjmp.S: New file.
53816 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53817 `normal/powerpc/setjmp.S'.
53818 (grubof_CFLAGS): Add `-DGRUBOF'.
53819 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53820 [GRUB_UTIL && !GRUBOF].
53822 2004-11-16 Marco Gerards <metgerards@student.han.nl>
53824 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53825 property named `name'. Correctly handle the error returned by
53826 `grub_ieee1275_finddevice' if a device can not be opened.
53828 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53830 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53831 `actual' for negativity.
53832 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53835 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53837 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53838 (PAGE_OFFSET): New macro.
53839 (CRTC_ADDR_PORT): Likewise.
53840 (CRTC_DATA_PORT): Likewise.
53841 (START_ADDR_HIGH_REGISTER): Likewise.
53842 (START_ADDR_LOW_REGISTER): Likewise.
53843 (GRAPHICS_ADDR_PORT): Likewise.
53844 (GRAPHICS_DATA_PORT): Likewise.
53845 (READ_MAP_REGISTER): Likewise.
53846 (INPUT_STATUS1_REGISTER): Likewise.
53847 (INPUT_STATUS1_VERTR_BIT): Likewise.
53848 (page): New variable.
53849 (wait_vretrace): New function.
53850 (set_read_map): Likewise.
53851 (set_start_address): Likewise.
53852 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53854 (check_vga_mem): Take the page into account.
53855 (write_char): Likewise.
53856 (write_cursor): Likewise.
53857 (scroll_up): Likewise. Copy the page to the page that is not
53858 shown and switch between both pages.
53859 (grub_vga_putchar): Fix off by one error.
53860 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53863 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53865 Add support for iso9660 (including rockridge).
53867 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53868 (iso9660_mod_SOURCES): New variable.
53869 (iso9660_mod_CFLAGS): Likewise.
53870 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53871 * include/grub/fs.h (grub_iso9660_init): New prototype.
53872 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53873 * fs/iso9660.c: New file.
53875 * include/grub/misc.h (grub_strncat): New prototype.
53876 * kern/misc.c (grub_strncat): New function.
53878 * fs/hfs.c (grub_hfs_mount): Translate the error
53879 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
53880 * fs/jfs.c (grub_jfs_mount): Likewise.
53881 * fs/ufs.c (grub_ufs_mount): Likewise.
53883 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
53885 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
53886 which initialized BAT registers.
53887 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
53888 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53890 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
53891 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53893 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
53894 (grub_mapclaim): Likewise.
53895 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
53896 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
53899 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
53901 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
53902 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
53903 -ffreestanding and -msoft-float.
53905 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
53907 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
53908 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
53909 set in grub_ieee1275_flags.
53911 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
53913 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
53915 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
53916 grub_console_init first.
53917 Change the memory range used for grub_ieee1275_claim and
53918 grub_mm_init_region.
53919 Print an error message if the claim fails.
53920 Include <grub/misc.h>.
53922 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
53924 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
53925 Call grub_children_iterate for device nodes of type `scsi',
53927 (grub_ofdisk_open): Remove manual device alias resolution.
53928 Fix memory leak when device cannot be opened.
53929 * include/grub/powerpc/ieee1275/ieee1275.h
53930 (grub_children_iterate): New prototype.
53931 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
53933 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53934 Return -1 if args.size was -1.
53936 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53938 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
53939 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
53940 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
53941 Open Firmware's memory for it; claim memory from _start to _end.
53942 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
53943 (_end): New extern.
53944 (_start): Zero BSS from __bss_start to _end.
53945 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53947 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
53949 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53951 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
53952 -1 if args.base was -1.
53954 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
53956 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
53957 escape sequence instead of a literal ^L. Also call
53958 grub_ofconsole_gotoxy.
53960 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
53962 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
53963 void * arguments to grub_addr_t. All callers updated. Also make
53964 the `result' argument optional.
53965 (grub_ieee1275_release): change void * arguments to grub_addr_t.
53966 All callers updated.
53968 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
53970 * commands/ls.c (grub_ls_list_files): Use the string following the
53971 initial ')', if present, as the filesystem path.
53972 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
53974 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
53976 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
53978 Make the source code of the menu interface more readable.
53980 * normal/menu.c: Include grub/mm.h.
53981 (TERM_WIDTH): New macro.
53982 (TERM_HEIGHT): Likewise.
53983 (TERM_INFO_HEIGHT): Likewise.
53984 (TERM_MARGIN): Likewise.
53985 (TERM_SCROLL_WIDTH): Likewise.
53986 (TERM_TOP_BORDER_Y): Likewise.
53987 (TERM_LEFT_BORDER_X): Likewise.
53988 (TERM_BORDER_WIDTH): Likewise.
53989 (TERM_MESSAGE_HEIGHT): Likewise.
53990 (TERM_BORDER_HEIGHT): Likewise.
53991 (TERM_NUM_ENTRIES): Likewise.
53992 (TERM_FIRST_ENTRY_Y): Likewise.
53993 (TERM_ENTRY_WIDTH): Likewise.
53994 (TERM_CURSOR_X): Likewise.
53995 (draw_border): Use macros instead of magic numbers.
53996 (print_entry): Likewise.
53997 (print_entries): Likewise.
53998 (run_menu): Likewise. Also, handle the key 'e'.
53999 (run_menu_entry): Ignore empty command lines.
54000 (print_message): Added a new argument EDIT. If EDIT is true,
54001 print a different message.
54002 (init_page): Likewise.
54003 (edit_menu_entry): New function. Not implemented yet.
54005 2004-09-17 Marco Gerards <metgerards@student.han.nl>
54007 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
54008 can be loaded from normal mode.
54010 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
54012 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
54013 (multiboot_mod_CFLAGS): New variables.
54014 * loader/i386/pc/linux_normal.c: New file.
54015 * loader/i386/pc/multiboot_normal.c: Likewise.
54017 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
54018 attribute `unused'.
54020 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
54021 `fdiro' to read the mode information from instead of `diro'.
54023 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
54024 looking up a symlink.
54026 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
54028 * normal/command.c (grub_command_execute): Don't parse the
54029 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
54030 flags of the command.
54032 * normal/menu.c (grub_menu_run): Fix typo.
54034 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
54036 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
54038 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
54039 `y + 1' instead of `y - 1'.
54041 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
54043 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
54045 From Hollis Blanchard <hollis@penguinppc.org>:
54046 * kern/misc.c (memmove): New alias for grub_memmove.
54047 (memcmp): New alias for grub_memcmp.
54048 (memset): New alias for grub_memset.
54049 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
54050 Change "int handle" to "grub_ieee1275_phandle_t handle".
54051 * include/grub/powerpc/ieee1275/ieee1275.h
54052 (grub_ieee1275_get_property): Likewise.
54054 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
54056 Added normal mode command `chainloader' as module chain.mod, which
54057 depends on normal.mod and _chain.mod.
54059 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
54060 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
54061 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
54063 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
54064 but arguments parsing moved to ...
54065 (grub_chainloader_cmd): ... here. New function.
54066 * include/grub/i386/pc/chainloader.h: New file.
54067 * loader/i386/pc/chainloader_normal.c: Likewise.
54069 2004-09-11 Marco Gerards <metgerards@student.han.nl>
54071 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
54072 (grub_mkimage_LDFLAGS): Likewise.
54073 (grub_emu_SOURCES): Likewise.
54074 (kernel_img_HEADERS): Added fshelp.h.
54075 * fs/ext2.c: Include <grub/fshelp.h>.
54076 (FILETYPE_REG): New macro.
54077 (FILETYPE_INO_REG): Likewise.
54078 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
54080 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
54082 (grub_fshelp_node): New struct.
54083 (grub_ext2_data): Added member `diropen'. Changed member `inode'
54085 (grub_ext2_get_file_block): Removed function.
54086 (grub_ext2_read_block): New function.
54087 (grub_ext2_read_file): Replaced parameter `data' by `node'.
54088 This function was written.
54089 (grub_ext2_mount): Read the root inode. Create a diropen struct.
54090 (grub_ext2_find_file): Removed function.
54091 (grub_ext2_read_symlink): New function.
54092 (grub_ext2_iterate_dir): Likewise.
54093 (grub_ext2_open): Rewritten.
54094 (grub_ext2_dir): Rewritten.
54095 * include/grub/fshelp.h: New file.
54096 * fs/fshelp.c: Likewise.
54098 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
54100 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
54101 (print_message): Add a missing newline.
54102 (run_menu): Added timeout support.
54103 (run_menu_entry): New local function.
54104 (grub_menu_run): Added support for booting.
54106 * kern/loader.c (grub_loader_is_loaded): New function.
54108 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
54109 (grub_get_rtc): Exported.
54111 * include/grub/i386/pc/time.h: Include grub/symbol.h.
54112 (grub_get_rtc): Exported.
54114 * include/grub/normal.h (struct grub_command_list): Remove
54115 constant from the member `command'.
54117 * include/grub/loader.h (grub_loader_is_loaded): Declared.
54119 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
54121 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
54123 2004-08-28 Marco Gerards <metgerards@student.han.nl>
54125 Add support for the JFS filesystem.
54127 * fs/jfs.c: New file.
54128 * include/grub/fs.h (grub_jfs_init): New prototype.
54129 (grub_jfs_fini): New prototype.
54130 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
54131 (grub_emu_SOURCES): Likewise.
54132 (pkgdata_MODULES): Add jfs.mod.
54133 (jfs_mod_SOURCES): New variable.
54134 (jfs_mod_CFLAGS): Likewise.
54135 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
54136 (grubof_SOURCES): Likewise.
54137 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
54139 * fs/fat.c (grub_fat_find_dir): Convert the filename little
54140 endian to the host endian.
54141 (grub_fat_utf16_to_utf8): Move function from there...
54142 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
54143 the endianness of the source string anymore.
54144 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
54146 2004-08-24 Marco Gerards <metgerards@student.han.nl>
54148 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
54149 (grub_boot_fini) [GRUB_UTIL]: Likewise.
54150 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
54151 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
54153 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
54154 (grub_hfs_iterate_dir): Make the function static. Add prototypes
54155 for `node_found' and `it_dir'.
54156 (grub_hfs_dir): Add prototype for `dir_hook'.
54158 * fs/minix.c (grub_minix_get_file_block): Add prototype for
54159 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
54160 and `indir32' to silence a gcc warning.
54162 * include/grub/fs.h (grub_hfs_init): New prototype.
54163 (grub_hfs_fini): Likewise.
54166 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
54168 Each disk device has its own id now. This is useful to make use
54169 of multiple disk devices.
54171 * include/grub/disk.h (grub_disk_dev_id): New enum.
54172 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
54173 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
54175 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
54176 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54178 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
54179 GRUB_DISK_DEVICE_OFDISK_ID as an id.
54181 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
54182 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54184 * include/grub/disk.h (struct grub_disk_dev): Added a new member
54185 "id" which is used by the cache manager.
54187 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
54190 2004-08-18 Marco Gerards <metgerards@student.han.nl>
54192 * fs/hfs.c: New file.
54193 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
54194 (grub_emu_SOURCES): Likewise.
54195 (pkgdata_MODULES): Add hfs.mod.
54196 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
54197 (grubof_SOURCES): Likewise.
54198 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
54200 * include/grub/misc.h (grub_strncasecmp): Add prototype.
54201 * kern/misc.c (grub_strncasecmp): Add function.
54203 2004-08-14 Marco Gerards <metgerards@student.han.nl>
54205 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
54208 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
54209 (grub_ext2_dir): In case the directory entry type is unknown, read
54212 2004-08-02 Peter Bruin <pjbruin@dds.nl>
54214 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
54215 grub_load_linux instead of grub_rescue_cmd_linux as second
54216 argument of grub_rescue_register_command.
54218 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
54220 2004-07-27 Marco Gerards <metgerards@student.han.nl>
54222 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
54224 * commands/boot.c: Remove the check for `GRUB_UTIL'.
54225 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
54226 `loader/powerpc/ieee1275/linux.c',
54227 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
54228 * include/grub/powerpc/ieee1275/ieee1275.h
54229 (grub_ieee1275_release): New prototype.
54230 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
54231 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
54232 normal, boot, linux and linux_normal.
54233 * loader/powerpc/ieee1275/linux.c: New file.
54234 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
54236 2004-07-12 Marco Gerards <metgerards@student.han.nl>
54238 * normal/arg.c (grub_arg_parse): Correct error handling after
54239 reallocating the argumentlist (check if `argl' is not null instead
54240 of checking if `args' is not null).
54241 * kern/mm.c (grub_realloc): Return the same pointer when using the
54242 same region, instead of returning the header address.
54244 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54246 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
54247 one block instead of two when looking for the initial partition.
54248 (grub_partition_probe): Initialize the local variable `p' with 0.
54249 Use base 10 for the grub_strtoul call.
54250 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
54251 need for one local variable.
54252 (grub_strtoul): Don't add the new value to `num', instead of that
54255 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54257 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
54258 (pxeboot_img_SOURCES): New variable.
54259 (pxeboot_img_ASFLAGS): Likewise.
54260 (pxeboot_img_LDFLAGS): Likewise.
54261 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
54262 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
54263 <lode_leroy@hotmail.com>.
54265 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54267 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
54268 there was no input.
54270 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54272 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
54273 the history buffer logic.
54275 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54277 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
54278 (FILETYPE_INO_SYMLINK): New macros.
54279 (grub_ext2_find_file): Check if the node is a directory using the
54280 inode stat information instead of using the filetype in the
54281 dirent. Exclude the first character of an absolute symlink.
54282 (grub_ext2_dir): Mask out the filetype part of the mode member of
54285 2004-05-24 Marco Gerards <metgerards@student.han.nl>
54287 Add support for UFS version 1 and 2. Add support for the minix
54288 filesystem version 1 and 2, both the variants with 14 and 30 long
54291 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
54293 (grub_emu_SOURCES): Likewise.
54294 (pkgdata_MODULES): Add ufs.mod and minix.mod.
54295 (ufs_mod_SOURCES): New variable.
54296 (ufs_mod_CFLAGS): Likewise.
54297 (minix_mod_SOURCES): Likewise.
54298 (minix_mod_CFLAGS): Likewise.
54299 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
54301 (grubof_SOURCES): Likewise.
54302 * fs/ufs.c: New file.
54303 * fs/minix.c: New file.
54304 * include/grub/fs.h (grub_ufs_init): New prototype.
54305 (grub_ufs_fini): Likewise.
54306 (grub_minix_init): Likewise.
54307 (grub_minix_fini): Likewise.
54308 * util/grub-emu.c (main): Initialize and deinitialize UFS and
54311 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
54313 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
54314 commands/ls.c, commands/terminal.c, commands/boot.c,
54315 commands/cmp.c and commands/cat.c.
54316 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
54318 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
54321 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54323 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
54324 and grub_, respectively. Because the conversion is trivial and
54325 mechanical, I omit the details here. Please refer to the CVS
54326 if you need more information.
54328 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54330 * include/pupa: Renamed to ...
54331 * include/grub: ... this.
54332 * util/i386/pc/pupa-mkimage.c: Renamed to ...
54333 * util/i386/pc/grub-mkimage.c: ... this.
54334 * util/i386/pc/pupa-setup.c: Renamed to ...
54335 * util/i386/pc/grub-setup.c: ... this.
54336 * util/pupa-emu.c: Renamed to ...
54337 * util/grub-emu.c: ... this.
54339 2004-03-29 Marco Gerards <metgerards@student.han.nl>
54341 Add support for the newworld apple macintosh (PPC). This has been
54342 tested on the powerbook 2000 only. It only adds support for
54343 generic ieee1275 functions, console and disk support. This should
54344 be easy to port to other architectures with support for Open
54347 * configure.ac: Accept the powerpc as host_cpu. In the case of
54348 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
54349 specific tests are only executed while building for the i386.
54350 Inverse test for crosscompile.
54351 * genmk.rb (Utility): Allow assembler files.
54352 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
54353 * conf/powerpc-ieee1275.rmk: New file.
54354 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
54355 * disk/powerpc/ieee1275/partition.c: Likewise.
54356 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
54357 * include/pupa/powerpc/ieee1275/console.h: Likewise.
54358 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
54359 * include/pupa/powerpc/ieee1275/time.h: Likewise.
54360 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
54361 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
54362 * include/pupa/powerpc/ieee1275/loader.h
54363 * include/pupa/powerpc/setjmp.h: Likewise.
54364 * include/pupa/powerpc/types.h: Likewise.
54365 * kern/powerpc/ieee1275/init.c: Likewise.
54366 * kern/powerpc/ieee1275/openfw.c: Likewise.
54367 * term/powerpc/ieee1275/ofconsole.c: Likewise.
54369 These files were written by Johan Rydberg
54370 (jrydberg@night.trouble.net) and I only modified them slightly.
54372 * boot/powerpc/ieee1275/cmain.c: New file.
54373 * boot/powerpc/ieee1275/crt0.S: Likewise.
54374 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
54375 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
54377 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
54379 * Makefile.in: Update copyright.
54380 * genmodsrc.sh: Likewise.
54381 * gensymlist.sh: Likewise.
54382 * term/i386/pc/vga.c: Indent correctly.
54384 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
54385 bugreporting address.
54386 * util/i386/pc/pupa-setup.c (usage): Likewise,
54387 (main): Call pupa_ext2_init and pupa_ext2_fini.
54389 * fs/fat.c (log2): Renamed to ...
54390 (fat_log2): ... this.
54391 All callers changed.
54392 * kern/misc.c (memcpy): Alias to pupa_memmove.
54393 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
54395 * util/console.c (pupa_ncurses_fini): Return 0.
54397 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
54398 Move fail label here.
54399 [__GNU__]: Don't warn when using stat.
54400 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
54401 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
54402 long int. Use strtol instead of strtoul.
54404 2004-03-14 Marco Gerards <metgerards@student.han.nl>
54406 * commands/boot.c: New file.
54407 * commands/cat.c: Likewise.
54408 * commands/cmp.c: Likewise.
54409 * commands/ls.c: Likewise.
54410 * commands/terminal.c: Likewise.
54411 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
54412 (pupa_register_command): Changed interface to match the new
54414 (pupa_command_execute): Changed (almost rewritten) so it uses
54415 pupa_split_command. Added support for setting variables using the
54417 (rescue_command): Changed to work with the new argument parser.
54418 (terminal_command): Moved from here to commands/terminal.c.
54419 (set_command): New function.
54420 (unset_command): New function.
54421 (insmod_command): New function.
54422 (rmmod_command): New function.
54423 (lsmod_command): New function.
54424 (pupa_command_init): Don't initialize the command terminal
54425 anymore. Initialize the commands set, unset, insmod, rmmod and
54427 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
54428 (kernel_img_HEADERS): Add arg.h and env.h.
54429 (pupa_mkimage_LDFLAGS): Add kern/env.c.
54430 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
54431 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
54433 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
54435 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
54436 (boot_mod_SOURCES): New variable.
54437 (terminal_mod_SOURCES): Likewise.
54438 (ls_mod_SOURCES): Likewise.
54439 (cmp_mod_SOURCES): Likewise.
54440 (cat_mod_SOURCES): Likewise.
54442 * normal/arg.c: New file.
54443 * kern/env.c: Likewise.
54444 * include/pupa/arg.h: Likewise.
54445 * include/pupa/env.h: Likewise.
54446 * font/manager.c (font_command): Changed to match argument parsing
54448 (PUPA_MOD_INIT): Likewise.
54449 * hello/hello.c (pupa_cmd_hello): Likewise.
54450 (PUPA_MOD_INIT): Likewise.
54451 * include/pupa/disk.h: Include <pupa/device.h>.
54452 (pupa_print_partinfo): New prototype.
54453 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
54454 (pupa_dl_get_prefix): Likewise.
54455 * include/pupa/misc.h: Include <pupa/err.h>.
54456 (pupa_isgraph): New prototype.
54457 (pupa_isdigit): Likewise.
54458 (pupa_split_cmdline): Likewise.
54459 * include/pupa/normal.h: Include <pupa/arg.h>.
54460 (pupa_command): Changed the prototype of the member `func' to
54461 match the argument parsing interface. Added member `options'.
54462 (pupa_register_command): Updated to match function.
54463 (pupa_arg_parse): New prototype.
54464 (pupa_hello_init) [PUPA_UTIL]: New prototype.
54465 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
54466 (pupa_ls_init) [PUPA_UTIL]: Likewise.
54467 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
54468 (pupa_cat_init) [PUPA_UTIL]: Likewise.
54469 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
54470 (pupa_boot_init) [PUPA_UTIL]: Likewise.
54471 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
54472 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
54473 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
54474 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
54475 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
54476 * kern/disk.c: Include <pupa/file.h>.
54477 (pupa_print_partinfo): New function.
54478 * kern/dl.c: Include <pupa/env.h>.
54479 (pupa_dl_dir): Variable removed.
54480 (pupa_dl_load): Use the environment variable `prefix' instead of
54481 the variable pupa_dl_dir.
54482 (pupa_dl_set_prefix): Function removed.
54483 (pupa_dl_get_prefix): Likewise.
54484 * kern/i386/pc/init.c: Include <pupa/env.h>.
54485 (pupa_machine_init): Use the environment variable `prefix' instead of
54486 using pupa_dl_set_prefix to set the prefix.
54487 * kern/main.c: Include <pupa/env.h>.
54488 (pupa_set_root_dev): Use the environment variable `prefix' instead of
54489 using pupa_dl_get_prefix to get the prefix.
54490 * kern/misc.c: Include <pupa/env.h>.
54491 (pupa_isdigit): New function.
54492 (pupa_isgraph): Likewise.
54493 (pupa_ftoa): Likewise.
54494 (pupa_vsprintf): Added support for printing values of the type
54495 `double'. Make it possible to format variable output when using
54496 formatting like `%1.2%f'.
54497 (pupa_split_cmdline): New function.
54498 * kern/rescue.c: Include <pupa/env.h>.
54499 (next_word): Removed function.
54500 (pupa_rescue_cmd_prefix): Likewise.
54501 (pupa_rescue_cmd_set): New function.
54502 (pupa_rescue_cmd_unset): New function.
54503 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
54504 split the command line instead of splitting it here. Added
54505 support for setting variables using the syntax `foo=bar'. Don't
54506 initialize the prefix command anymore. Initialized the set and
54508 * normal/cmdline.c: Include <pupa/env.h>.
54509 (pupa_tab_complete): Added prototypes for print_simple_completion,
54510 print_partition_completion, add_completion, iterate_commands,
54511 iterate_dev, iterate_part and iterate_dir. Moved code to print
54512 partition information from here to kern/disk.c.
54513 (pupa_cmdline_run): Don't check if the function exists anymore.
54514 * normal/main.c: Include <pupa/env.h>.
54515 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
54516 instead of using pupa_dl_get_prefix to get the prefix.
54517 * term/i386/pc/vga.c: Include <pupa/arg.h>.
54518 (check_vga_mem): Cast pointers to `void *' to silence a gcc
54520 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
54521 (pupa_vga_setcolor): Declare unused variables with `__attribute__
54522 ((unused))' to silence a gcc warning.
54523 (pupa_vga_setcolor): Likewise.
54524 (debug_command): Changed to match argument parsing
54526 * util/pupa-emu.c: Include <pupa/env.h>.
54527 (options): Added 0's for unused fields to silence a gcc warning.
54529 (main): Use the environment variable `prefix' instead of using
54530 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
54531 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
54534 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
54535 * util/misc.c: Include <malloc.h>.
54536 (pupa_malloc): Rewritten so errors are correctly reported.
54537 (pupa_realloc): Likewise.
54538 (pupa_memalign): Likewise.
54539 (pupa_mm_init_region): Declare unused variables with
54540 `__attribute__ ((unused))' to silence a gcc warning.
54541 * normal/i386/setjmp.S: Remove tab at the end of the file to
54542 silence a gcc warning.
54543 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
54544 variables with `__attribute__ ((unused))' to silence a gcc
54546 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
54547 local variable i unsigned to silence a gcc warning.
54549 * kern/term.c: Include <pupa/misc.h>.
54550 (pupa_more_lines): New variable.
54551 (pupa_more): Likewise.
54552 (pupa_putcode): When the pager is active pause at the end of every
54554 (pupa_set_more): New function.
54555 * include/pupa/term.h (pupa_set_more): New prototype.
54558 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
54560 Now this project is GRUB 2 rather than PUPA. The location of
54561 the CVS repository was moved to GRUB's.
54563 * configure.ac: Use bug-grub as the reporting address.
54564 Use GRUB instead of PUPA.
54565 Change the version number to 1.90.
54567 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
54569 * genkernsyms.sh: Updated copyright information.
54570 * genmk.rb: Likewise.
54571 * genmodsrc.sh: Likewise.
54572 * gensymlist.sh: Likewise.
54573 * boot/i386/pc/boot.S: Likewise.
54574 * boot/i386/pc/diskboot.S: Likewise.
54575 * disk/i386/pc/biosdisk.c: Likewise.
54576 * disk/i386/pc/partition.c: Likewise.
54577 * font/manager.c: Likewise.
54578 * fs/ext2.c: Likewise.
54579 * fs/fat.c: Likewise.
54580 * include/pupa/boot.h: Likewise.
54581 * include/pupa/device.h: Likewise.
54582 * include/pupa/disk.h: Likewise.
54583 * include/pupa/dl.h: Likewise.
54584 * include/pupa/elf.h: Likewise.
54585 * include/pupa/err.h: Likewise.
54586 * include/pupa/file.h: Likewise.
54587 * include/pupa/font.h: Likewise.
54588 * include/pupa/fs.h: Likewise.
54589 * include/pupa/kernel.h: Likewise.
54590 * include/pupa/loader.h: Likewise.
54591 * include/pupa/misc.h: Likewise.
54592 * include/pupa/mm.h: Likewise.
54593 * include/pupa/net.h: Likewise.
54594 * include/pupa/normal.h: Likewise.
54595 * include/pupa/rescue.h: Likewise.
54596 * include/pupa/setjmp.h: Likewise.
54597 * include/pupa/symbol.h: Likewise.
54598 * include/pupa/term.h: Likewise.
54599 * include/pupa/types.h: Likewise.
54600 * include/pupa/i386/setjmp.h: Likewise.
54601 * include/pupa/i386/types.h: Likewise.
54602 * include/pupa/i386/pc/biosdisk.h: Likewise.
54603 * include/pupa/i386/pc/boot.h: Likewise.
54604 * include/pupa/i386/pc/console.h: Likewise.
54605 * include/pupa/i386/pc/init.h: Likewise.
54606 * include/pupa/i386/pc/kernel.h: Likewise.
54607 * include/pupa/i386/pc/linux.h: Likewise.
54608 * include/pupa/i386/pc/loader.h: Likewise.
54609 * include/pupa/i386/pc/memory.h: Likewise.
54610 * include/pupa/i386/pc/multiboot.h: Likewise.
54611 * include/pupa/i386/pc/partition.h: Likewise.
54612 * include/pupa/i386/pc/time.h: Likewise.
54613 * include/pupa/i386/pc/vga.h: Likewise.
54614 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
54615 * include/pupa/util/getroot.h: Likewise.
54616 * include/pupa/util/misc.h: Likewise.
54617 * include/pupa/util/resolve.h: Likewise.
54618 * kern/device.c: Likewise.
54619 * kern/disk.c: Likewise.
54620 * kern/dl.c: Likewise.
54621 * kern/err.c: Likewise.
54622 * kern/file.c: Likewise.
54623 * kern/fs.c: Likewise.
54624 * kern/loader.c: Likewise.
54625 * kern/main.c: Likewise.
54626 * kern/misc.c: Likewise.
54627 * kern/mm.c: Likewise.
54628 * kern/rescue.c: Likewise.
54629 * kern/term.c: Likewise.
54630 * kern/i386/dl.c: Likewise.
54631 * kern/i386/pc/init.c: Likewise.
54632 * kern/i386/pc/lzo1x.S: Likewise.
54633 * kern/i386/pc/startup.S: Likewise.
54634 * loader/i386/pc/chainloader.c: Likewise.
54635 * loader/i386/pc/linux.c: Likewise.
54636 * loader/i386/pc/multiboot.c: Likewise.
54637 * normal/cmdline.c: Likewise.
54638 * normal/command.c: Likewise.
54639 * normal/main.c: Likewise.
54640 * normal/menu.c: Likewise.
54641 * normal/i386/setjmp.S: Likewise.
54642 * term/i386/pc/console.c: Likewise.
54643 * term/i386/pc/vga.c: Likewise.
54644 * util/console.c: Likewise.
54645 * util/genmoddep.c: Likewise.
54646 * util/misc.c: Likewise.
54647 * util/pupa-emu.c: Likewise.
54648 * util/resolve.c: Likewise.
54649 * util/unifont2pff.rb: Likewise.
54650 * util/i386/pc/biosdisk.c: Likewise.
54651 * util/i386/pc/getroot.c: Likewise.
54652 * util/i386/pc/pupa-mkimage.c: Likewise.
54653 * util/i386/pc/pupa-setup.c: Likewise.
54655 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
54657 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
54658 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
54659 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
54660 reading and reset it after reading.
54661 (pupa_ext2_close): Return PUPA_ERR_NONE.
54663 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
54665 (struct linux_kernel_header): Add kernel_version and
54667 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
54668 pupa_file_read succeeds.
54669 (pupa_rescue_cmd_initrd): Implement.
54671 2003-12-03 Marco Gerards <metgerards@student.han.nl>
54673 * fs/ext2.c (pupa_ext2_label): New function.
54674 (pupa_ext2_fs): Added label.
54675 * fs/fat.c (pupa_fat_label): New function.
54676 (pupa_fat_fs): Added label.
54677 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
54679 * kern/misc.c (pupa_strndup): New function.
54680 * include/pupa/misc.h (pupa_strndup): New prototype.
54682 * include/pupa/normal.h: Include <pupa/err.h>.
54683 (pupa_set_history): New prototype.
54684 (pupa_iterate_commands): New prototype.
54685 * normal/cmdline.c: Include <pupa/machine/partition.h>,
54686 <pupa/disk.h>, <pupa/file.h>.
54687 (hist_size): New variable.
54688 (hist_lines): Likewise.
54689 (hist_end): Likewise.
54690 (hist_used): Likewise.
54691 (pupa_set_history): New function.
54692 (pupa_history_get): Likewise.
54693 (pupa_history_add): Likewise.
54694 (pupa_history_replace): Likewise.
54695 (pupa_tab_complete): Likewise.
54696 (pupa_cmdline_run): Added tab completion and history buffer. Tab
54697 completion shows partitionnames while completing partitions, this
54698 feature was suggested by Jeff Bailey.
54699 * normal/command.c (pupa_iterate_commands): New function.
54700 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
54701 (pupa_normal_init): Initialize history buffer.
54702 (PUPA_MOD_INIT): Likewise.
54703 (pupa_normal_fini): Free the history buffer.
54704 (PUPA_MOD_FINI): Likewise.
54706 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
54709 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
54710 * configure.ac [i386]: Check for regparam bug.
54711 (NESTED_FUNC_ATTR) [! i386]: Defined.
54713 2003-11-17 Marco Gerards <metgerards@student.han.nl>
54715 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
54716 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
54717 (pupa_emu_SOURCES): New variable.
54718 (pupa_emu_LDFLAGS): Likewise.
54719 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
54720 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
54721 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
54722 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54723 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
54724 (pupa_jmp_buf): New typedef.
54725 (pupa_setjmp) [PUPA_UTIL]: New macro.
54726 (pupa_longjmp) [PUPA_UTIL]: Likewise.
54727 * include/pupa/term.h (struct pupa_term): New member `refresh'.
54728 (pupa_refresh): New prototype.
54729 * include/pupa/util/getroot.h: New file.
54730 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
54732 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
54733 (pupa_rescue_cmd_cat): Likewise.
54734 (pupa_rescue_cmd_ls): Likewise.
54735 (pupa_rescue_cmd_testload): Likewise.
54736 (pupa_rescue_cmd_lsmod): Likewise.
54737 * normal/cmdline.c (pupa_cmdline_get): Likewise.
54738 * normal/menu.c (run_menu): Likewise.
54739 * kern/term.c (pupa_cls): Likewise.
54740 (pupa_refresh): New function.
54741 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
54742 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54743 * util/console.c: New file.
54745 * util/i386/pc/getroot.c: New file.
54746 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
54747 (pupa_putchar): New function.
54748 (pupa_refresh): Likewise.
54749 (xgetcwd): Function moved to ...
54750 (strip_extra_slashes): Likewise.
54751 (get_prefix): Likewise.
54752 * util/i386/pc/getroot.c: ... here.
54753 (find_root_device): Function moved and renamed to...
54754 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
54755 Changed all callers.
54756 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
54758 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
54759 Changed all callers.
54760 * util/misc.c (pupa_memalign): New function.
54761 (pupa_mm_init_region): Likewise.
54762 (pupa_register_exported_symbols): Likewise.
54763 (pupa_putchar): Function removed.
54764 * util/pupa-emu.c: New file.
54766 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
54768 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
54769 (_multiboot_mod_SOURCES): New variable.
54770 (_multiboot_mod_CFLAGS): Likewise.
54771 * loader/i386/pc/multiboot.c: New file.
54772 * include/pupa/i386/pc/multiboot.h: Likewise.
54773 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
54774 (pupa_multiboot_real_boot): New function.
54775 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
54776 (pupa_multiboot_real_boot): New prototype.
54777 (pupa_rescue_cmd_multiboot): Likewise
54778 (pupa_rescue_cmd_module): Likewise.
54780 * kern/loader.c (pupa_loader_set): Continue when
54781 pupa_loader_unload_func() fails.
54782 (pupa_loader_unset): New function.
54783 * include/pupa/loader.h (pupa_loader_unset): New prototype.
54785 * kern/misc.c (pupa_stpcpy): New function.
54786 * include/pupa/misc.h (pupa_stpcpy): New prototype.
54788 2003-11-12 Marco Gerards <metgerards@student.han.nl>
54790 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
54791 for available extensions.
54793 * include/pupa/i386/pc/time.h: New file.
54794 * kern/disk.c: Include <pupa/machine/time.h>.
54795 (PUPA_CACHE_TIMEOUT): New macro.
54796 (pupa_last_time): New variable.
54797 (pupa_disk_open): Flush the cache when there was a timeout.
54798 (pupa_disk_close): Reset the timer.
54799 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
54801 * util/misc.c: Include <sys/times.h>
54802 (pupa_get_rtc): New function.
54804 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54806 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54808 (pupa_ext2_get_file_block): Use blocks member.
54810 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54811 first block. Return -1 instead of pupa_errno on error.
54813 2003-10-27 Marco Gerards <metgerards@student.han.nl>
54815 * README: In the pupa-mkimage example use _chain instead of chain
54816 and ext2 instead of fat.
54817 * TODO: Replace ext2fs with jfs as an example. Add an item for
54818 adding journal playback for ext2fs.
54819 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54820 (pkgdata_MODULES): Added ext2.mod.
54821 (ext2_mod_SOURCES): New variable.
54822 (ext2_mod_CFLAGS): Likewise.
54823 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54824 * include/pupa/misc.h (pupa_strncpy): New prototype.
54825 (pupa_strcat): Likewise.
54826 (pupa_strncmp): Likewise.
54827 * kern/misc.c (pupa_strcat): Enable function.
54828 (pupa_strncpy): New function.
54829 (pupa_strncmp): Likewise.
54830 * fs/ext2.c: New file.
54832 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54833 when the read failed before retrying.
54834 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54835 (_FILE_OFFSET_BITS): Likewise.
54836 * configure.ac: Added AC_SYS_LARGEFILE.
54838 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54840 * genmk.rb (PModule#rule): Make sure to get only symbol names
54841 from the output of nm.
54842 Reported by Robert Millan <rmh.grub@aybabtu.com>.
54844 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54846 I forgot to check in these changes for a long time. This adds
54847 incomplete support for VGA console, and this is still very
54848 buggy. Also, a lot of consideration is required for I18N,
54849 UNICODE, and VGA font issues. Therefore, assume that this is
54850 such that "better than nothing".
54852 * font/manager.c: New file.
54853 * include/pupa/font.h: Likewise.
54854 * include/pupa/i386/pc/vga.h: Likewise.
54855 * term/i386/pc/vga.c: Likewise.
54856 * util/unifont2pff.rb: Likewise.
54858 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54859 (pkgdata_MODULES): Added vga.mod and font.mod.
54860 (vga_mod_SOURCES): New variables.
54861 (vga_mod_CFLAGS): Likewise.
54862 (font_mod_SOURCES): Likewise.
54863 (font_mod_CFLAGS): Likewise.
54865 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54867 * include/pupa/term.h: Include pupa/err.h.
54868 (struct pupa_term): Added init and fini.
54869 Changed the argument of putchar to pupa_uint32_t.
54871 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54872 (pupa_console_real_putchar): New prototype.
54873 (pupa_console_putchar): Removed.
54874 (pupa_console_checkkey): Exported.
54875 (pupa_console_getkey): Likewise.
54877 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
54880 * kern/term.c (pupa_term_set_current): Rewritten.
54881 (pupa_putchar): Likewise.
54882 (pupa_putcode): New function.
54884 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
54885 (pupa_console_real_putchar): ... this.
54886 (pupa_vga_set_mode): New function.
54887 (pupa_vga_get_font): Likewise.
54889 * normal/command.c: Include pupa/term.h.
54890 (terminal_command): New function.
54891 (pupa_command_init): Register the command "terminal".
54893 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
54894 (DISP_UP): Likewise.
54895 (DISP_RIGHT): Likewise.
54896 (DISP_DOWN): Likewise.
54897 (DISP_HLINE): Likewise.
54898 (DISP_VLINE): Likewise.
54899 (DISP_UL): Likewise.
54900 (DISP_UR): Likewise.
54901 (DISP_LL): Likewise.
54902 (DISP_LR): Likewise.
54904 * term/i386/pc/console.c (pupa_console_putchar): New function.
54906 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
54908 * util/resolve.c (pupa_util_resolve_dependencies): BUG
54909 FIX. Reverse the path_list.
54911 * include/pupa/normal.h: Export pupa_register_command and
54912 pupa_unregister_command.
54914 * hello/hello.c (pupa_cmd_hello): New module.
54915 * conf/i386-pc.rmk: Added hello.mod.
54917 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
54919 * kern/i386/pc/lzo1x.S: New file.
54921 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
54922 (compress_kernel): New variable.
54923 (generate_image): Heavily modified to support compressing a
54924 large part of the core image.
54926 * util/misc.c (pupa_util_read_image): Fix a file descriptor
54928 (pupa_util_load_image): New function.
54930 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
54931 (pupa_compressed_size): New variable.
54932 (codestart): Enable Gate A20 here.
54933 Decompress the compressed part of the core image.
54934 Rearrange the code to put functions and variables which are
54935 required for initialization in the non-compressed part.
54938 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
54941 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
54943 * include/pupa/i386/pc/kernel.h
54944 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
54945 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
54946 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54947 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54948 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
54950 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
54952 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
54953 (Utility#rule): Likewise.
54955 * configure.ac: Check if LZO is available.
54957 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
54959 * include/pupa/normal.h: New file.
54960 * include/pupa/setjmp.h: Likewise.
54961 * include/pupa/i386/setjmp.h: Likewise.
54962 * normal/cmdline.c: Likewise.
54963 * normal/command.c: Likewise.
54964 * normal/main.c: Likewise.
54965 * normal/menu.c: Likewise.
54966 * normal/i386/setjmp.S: Likewise.
54968 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
54969 (pupa_rescue_cmd_initrd): Likewise.
54971 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
54974 * kern/i386/pc/startup.S (translation_table): New variable.
54975 (translate_keycode): New function.
54976 (pupa_console_getkey): Call translate_keycode.
54978 * kern/rescue.c (attempt_normal_mode): New function.
54979 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
54980 it failed, print a message.
54982 * kern/mm.c (pupa_real_malloc): Print more information when a
54983 free magic is broken.
54984 (pupa_free): If the first free header is not free actually, set
54987 * kern/main.c (pupa_load_normal_mode): Just load the module
54989 (pupa_main): Don't print the message
54990 "Entering into rescue mode..." here.
54992 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
54994 (pupa_rescue_cmd_initrd): Likewise.
54995 (pupa_rescue_cmd_initrd): Likewise.
54997 * include/pupa/symbol.h (FUNCTION): Specify the type.
54998 (VARIABLE): Likewise.
55000 * include/pupa/err.h (pupa_err_t): Added
55001 PUPA_ERR_UNKNOWN_COMMAND.
55003 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
55004 (pupa_dl_get_prefix): Likewise.
55006 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
55007 Added _chain.mod and _linux.mod instead of chain.mod and
55009 (chain_mod_SOURCES): Renamed to ...
55010 (_chain_mod_SOURCES): ... this.
55011 (chain_mod_CFLAGS): Renamed to ...
55012 (_chain_mod_CFLAGS): ... this.
55013 (linux_mod_SOURCES): Renamed to ...
55014 (_linux_mod_SOURCES): ... this.
55015 (linux_mod_CFLAGS): Renamed to ...
55016 (_linux_mod_CFLAGS): ... this.
55017 (normal_mod_SOURCES): New variable.
55018 (normal_mod_CFLAGS): Likewise.
55019 (normal_mod_ASFLAGS): Likewise.
55021 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
55023 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
55026 * kern/dl.c (pupa_dl_ref): Refer depending modules
55028 (pupa_dl_unref): Unrefer depending modules recursively.
55029 Don't call pupa_dl_unload implicitly, because PUPA can crash if
55030 a module is unloaded before one depending on that module is
55032 (pupa_dl_unload): Unload depending modules explicitly,
55035 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
55037 * include/pupa/i386/pc/linux.h: New file.
55038 * loader/i386/pc/linux.c: Likewise.
55040 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
55042 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
55043 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
55044 of PUPA_CHAINLOADER_BOOT_SECTOR.
55046 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
55047 (pupa_linux_prot_size): New variable.
55048 (pupa_linux_tmp_addr): Likewise.
55049 (pupa_linux_real_addr): Likewise.
55050 (pupa_linux_boot_zimage): New function.
55051 (pupa_linux_boot_bzimage): Likewise.
55053 * kern/i386/pc/init.c (struct mem_region): New structure.
55054 (MAX_REGIONS): New macro.
55055 (mem_regions): New variable.
55056 (num_regions): Likewise.
55057 (pupa_os_area_addr): Likewise.
55058 (pupa_os_area_size): Likewise.
55059 (pupa_lower_mem): Likewise.
55060 (pupa_upper_mem): Likewise.
55061 (add_mem_region): New function.
55062 (compact_mem_regions): Likewise.
55063 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
55064 the size of the conventional memory and that of so-called upper
55065 memory (before the first memory hole).
55066 Instead of adding each found region to free memory, use
55067 add_mem_region and add them after removing overlaps.
55068 Also, add only 1/4 of the upper memory to free memory. The rest
55069 is used for loading OS images. Maybe this is ad hoc, but this
55070 makes it much easier to relocate OS images when booting.
55072 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
55073 (pupa_enter_rescue_mode): Don't register initrd and module.
55075 * kern/mm.c: Include pupa/dl.h.
55077 * kern/main.c: Include pupa/file.h and pupa/device.h.
55079 * kern/loader.c (pupa_loader_load_module_func): Removed.
55080 (pupa_loader_load_module): Likewise.
55082 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
55085 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
55086 (pupa_linux_tmp_addr): Likewise.
55087 (pupa_linux_real_addr): Likewise.
55088 (pupa_linux_boot_zimage): Likewise.
55089 (pupa_linux_boot_bzimage): Likewise.
55091 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
55092 (pupa_upper_mem): Likewise.
55093 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
55094 module is too dangerous.
55096 * include/pupa/loader.h (pupa_os_area_addr): Declared.
55097 (pupa_os_area_size): Likewise.
55098 (pupa_loader_set): Remove the first argument. Loader doesn't
55099 manage modules or initrd any longer.
55100 (pupa_loader_load_module): Removed.
55102 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
55103 (linux_mod_SOURCES): New variable.
55104 (linux_mod_CFLAGS): Likewise.
55106 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
55108 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
55109 the length of a blocklist correctly.
55111 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
55112 Use ioctl only if the OS file is a block device.
55113 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
55114 not very useful for normal files.
55116 * kern/main.c (pupa_set_root_dev): New function.
55117 (pupa_load_normal_mode): Likewise.
55118 (pupa_main): Call those above.
55120 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
55123 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
55125 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
55127 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
55128 (setup): Configure the installed partition information and the
55131 * loader/i386/pc/chainloader.c (my_mod): New variable.
55132 (pupa_chainloader_unload): New function.
55133 (pupa_rescue_cmd_chainloader): Refer itself.
55134 (PUPA_MOD_INIT): Save its own module in MY_MOD.
55136 * kern/i386/pc/startup.S (install_partition): Removed.
55137 (version_string): Likewise.
55138 (config_file): Likewise.
55139 (pupa_install_dos_part): New variable.
55140 (pupa_install_bsd_part): Likewise.
55141 (pupa_prefix): Likewise.
55142 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
55144 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
55146 (make_install_device): New function.
55147 (pupa_machine_init): Set the dl prefix.
55149 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
55150 (buf): Renamed to ...
55151 (linebuf): ... this.
55152 (pupa_rescue_cmd_prefix): New function.
55153 (pupa_rescue_cmd_insmod): Likewise.
55154 (pupa_rescue_cmd_rmmod): Likewise.
55155 (pupa_rescue_cmd_lsmod): Likewise.
55156 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
55159 * kern/mm.c (pupa_memalign): If failed even after invalidating
55160 disk caches, unload unneeded modules and retry.
55162 * kern/misc.c (pupa_memmove): New function.
55163 (pupa_memcpy): Removed.
55164 (pupa_strcpy): New function.
55165 (pupa_itoa): Made static.
55167 * kern/dl.c (pupa_dl_iterate): New function.
55168 (pupa_dl_ref): Likewise.
55169 (pupa_dl_unref): Likewise.
55170 (pupa_dl_unload): Return if succeeded or not.
55171 (pupa_dl_unload_unneeded): New function.
55172 (pupa_dl_unload_all): Likewise.
55173 (pupa_dl_init): Renamed to ...
55174 (pupa_dl_set_prefix): ... this.
55175 (pupa_dl_get_prefix): New function.
55177 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
55178 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
55179 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
55180 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
55181 (pupa_install_dos_part): Declared.
55182 (pupa_install_bsd_part): Likewise.
55183 (pupa_prefix): Likewise.
55184 (pupa_boot_drive): Likewise.
55186 * include/pupa/types.h: Fix a typo.
55188 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
55190 (pupa_memmove): Declared.
55191 (pupa_strcpy): Likewise.
55193 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
55194 pupa_mod_init takes one argument, its own module.
55195 (pupa_dl_unload_unneeded): Declared.
55196 (pupa_dl_unload_all): Likewise.
55197 (pupa_dl_ref): Likewise.
55198 (pupa_dl_unref): Likewise.
55199 (pupa_dl_iterate): Likewise.
55200 (pupa_dl_init): Renamed to ...
55201 (pupa_dl_set_prefix): ... this.
55202 (pupa_dl_get_prefix): Declared.
55204 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
55205 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
55207 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
55208 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
55210 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
55211 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
55213 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55215 * util/i386/pc/pupa-setup.c (setup): Define the internal
55216 function find_first_partition_start at the top level, because GCC
55217 3.0.x cannot compile internal functions in deeper scopes
55219 (find_root_device): Use lstat instead of stat.
55220 Don't follow symbolic links.
55221 Fix the path-constructing code.
55223 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
55224 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
55225 by a BLKGETSIZE ioctl first, because block devices don't fill
55226 the member st_mode of the structure stat on Linux.
55227 [__linux__] (linux_find_partition): Use a temporary buffer
55228 REAL_DEV for the working space. Copy it to DEV before returning.
55229 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
55230 buffer cache consistent.
55231 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
55232 strncmp. The previous value was merely wrong.
55233 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
55235 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
55236 FAT size is 12. The previous value was merely wrong.
55238 * kern/main.c (pupa_main): Don't split the starting message from
55241 * kern/term.c (pupa_putchar): Put CR after LF instead of before
55242 LF, because BIOS goes crazy about character attributes in this
55245 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55247 * include/i386/pc/util/biosdisk.h: New file.
55248 * util/i386/pc/biosdisk.c: Likewise.
55249 * util/i386/pc/pupa-setup.c: Likewise.
55251 * Makefile.in (INCLUDE_DISTFILES): Added
55252 include/pupa/i386/pc/util/biosdisk.h.
55253 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
55254 directory util/i386/pc.
55255 (install-local): Added a rule for sbin_UTILITIES.
55256 (uninstall): Likewise.
55258 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
55260 * util/misc.c (xrealloc): New function.
55261 (pupa_malloc): Likewise.
55262 (pupa_free): Likewise.
55263 (pupa_realloc): Likewise.
55264 (pupa_stop): Likewise.
55265 (pupa_putchar): Likewise.
55267 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
55269 * include/pupa/util/misc.h (xrealloc): Declared.
55271 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
55273 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
55274 (PUPA_BOOT_MACHINE_BPB_END): ... this.
55276 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
55277 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55279 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
55280 way should be implemented.
55281 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55283 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
55284 the size of NAME for safety.
55285 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
55288 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
55289 (pupa_setup_SOURCES): Likewise.
55291 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
55293 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55295 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
55296 bunch of pushl's from pusha, because this destroys the return
55299 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55301 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
55302 This means that any missing prototypes could be fatal. Also, you
55303 must take care when writing assembly code. See the comments at
55304 the beginning of startup.S, for more details.
55306 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
55307 compilation mechanism.
55308 (pupa_chainloader_real_boot): Likewise.
55309 (pupa_biosdisk_rw_int13_extensions): Likewise.
55310 (pupa_biosdisk_rw_standard): Likewise.
55311 (pupa_biosdisk_check_int13_extensions): Likewise.
55312 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
55313 (pupa_biosdisk_get_diskinfo_standard): Likewise.
55314 (pupa_get_memsize): Likewise.
55315 (pupa_get_mmap_entry): Likewise.
55316 (pupa_console_putchar): Likewise.
55317 (pupa_console_setcursor): Likewise.
55318 (pupa_getrtsecs): Use pushl instead of push.
55320 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
55321 memory instead of the stack for a mmap entry, because some
55322 BIOSes may ignore the maximum size and overflow.
55324 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
55326 * genmk.rb (PModule#rule): Compile automatically generated
55327 sources with module-specific CFLAGS as well as other sources.
55329 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55331 * configure.ac: Check ld.
55332 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
55333 respectively, before checking endianness and sizes.
55335 * Makefile.in (LD): New variable.
55337 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55339 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
55341 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55343 * Changelog: New file.