1 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_maxpacket): Avoid
4 potentially returning 0.
6 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8 * grub-core/fs/minix.c (grub_minix_read_file): Avoid reading past
11 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
13 * grub-core/fs/fshelp.c (grub_fshelp_read_file): Don't attempt to read
16 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Update len
19 synchronously with line.
21 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23 Replace explicit sizeof divisions by ARRAY_SIZE.
25 2015-01-19 Kris Moore <kris@pcbsd.org>
27 * grub-core/disk/geli.c: Support GELI v6 and v7.
29 2014-12-09 Andrei Borzenkov <arvidjaar@gmail.com>
31 * grub-core/term/serial.c (grub_cmd_serial): Fix --rtscts
34 2014-12-07 David Kozub <zub.272@gmail.com>
36 * grub-core/kern/arm/misc.S: fix unaligned 64bit local variable
38 Fixes Savannah bug #43632.
40 2014-12-07 Peter Nelson <peterdn>
42 * grub-core/fs/ext2.c (grub_ext2_read_block): Support large sparse
45 2014-12-07 Andrei Borzenkov <arvidjaar@gmail.com>
47 * util/grub-mkconfig_lib.in (version_test_gt): Remove redundant
48 non-portable '-n' echo option.
49 * util/grub.d/10_kfreebsd.in: Change how list is built to avoid
50 non-portable 'echo -n.
51 * util/grub.d/10_linux.in: Likewise (closes 43668).
52 * util/grub.d/20_linux_xen.in: Likewise.
53 * util/grub.d/30_os-prober.in: Print spaces directly to avoid
54 non-portable 'echo -n'.
56 2014-12-07 Curtis Larsen <larsen@dixie.edu>
58 * grub-core/net/tcp.c (grub_net_recv_tcp_packet): Fix double
59 free when multiple empty segments were received (closes 42765).
61 2014-12-05 Andrei Borzenkov <arvidjaar@gmail.com>
63 * tests/util/grub-shell.in: Support --files also for netboot.
64 * tests/file_filter_test.in: New file with file filters tests.
65 * Makefile.util.def: Add file_filter_test.
66 * conf/Makefile.extra-dist: ... and here.
67 * tests/file_filter/file.gz: Test file for file_filter_test.
68 * tests/file_filter/file.gz.sig: Likewise.
69 * tests/file_filter/file.lzop: Likewise.
70 * tests/file_filter/file.lzop.sig: Likewise.
71 * tests/file_filter/file.xz: Likewise.
72 * tests/file_filter/file.xz.sig: Likewise.
73 * tests/file_filter/keys: Likewise.
74 * tests/file_filter/keys.pub: Likewise.
75 * tests/file_filter/test.cfg: Likewise.
76 * grub-core/commands/verify.c: Fix memory corruption doing
77 signature check for network files (closes 43601).
79 2014-12-01 Andrei Borzenkov <arvidjaar@gmail.com>
81 * grub-core/loader/i386/xen_fileXX.c (grub_xen_get_infoXX): Fix
82 memory leak (CID 73645, 73782).
83 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix memory leak
86 2014-11-30 Andrei Borzenkov <arvidjaar@gmail.com>
88 * grub-core/lib/syslinux_parse.c (free_menu): Do not free
89 inline array (CID 73610).
91 2014-11-28 Andrei Borzenkov <arvidjaar@gmail.com>
93 * grub-core/io/lzopio.c (test_header): Fix double free (CID 73665)
94 * grub-core/disk/geli.c (configure_ciphers): Fix memory leaks
95 (Coverity CID 73813, 73710)
96 * grub-core/disk/luks.c (configure_ciphers): Fix memory leaks
97 and use after free (Coverity CID 73813, 73710, 73730)
98 * grub-core/disk/luks.c (luks_recover_key): Fix memory leak (Coverity
100 * util/grub-install-common.c (grub_install_get_target): Check return
101 value of grub_util_fd_read (Coverity CID 73819).
102 * util/grub-mkstandalone.c (add_tar_file): Fix out of bound access
103 to hd.magic (Coverity CID 73587, 73888, bug 43690).
105 2014-11-20 Andrei Borzenkov <arvidjaar@gmail.com>
107 * tests/util/grub-fs-tester.in: Consistently print output
108 of grub ls if test fails.
110 2014-11-07 Leif Lindholm <leif.lindholm@linaro.org>
112 * grub-core/kern/efi/init.c: check value of *path before
115 2014-11-03 Michael Chang <mchang@suse.com>
117 * grub-core/net/icmp6.c (grub_net_recv_icmp6_packet): Fix size
118 of neighbor solicitation packet in grub_netbuff_pull.
120 2014-10-14 Andrei Borzenkov <arvidjaar@gmail.com>
122 * grub-core/loader/arm/linux.c: Use full initializer for initrd_ctx to
123 avoid fatal warnings with older gcc (probably before 4.7).
124 * grub-core/loader/arm64/linux.c: Likewise.
125 * grub-core/loader/i386/linux.c: Likewise.
126 * grub-core/loader/i386/pc/linux.c: Likewise.
127 * grub-core/loader/ia64/efi/linux.c: Likewise.
128 * grub-core/loader/mips/linux.c: Likewise.
129 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
130 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
132 2014-09-25 Colin Watson <cjwatson@ubuntu.com>
134 Fix in-tree --platform=none
136 * configure.ac: Only remove include/grub/cpu and
137 include/grub/machine in the --platform=none case, not all of
140 2014-09-23 Colin Watson <cjwatson@ubuntu.com>
142 Add a new "none" platform that only builds utilities
144 * configure.ac: Add "none" platform. Default to it for unsupported
145 CPUs rather than stopping with a fatal error. Don't downgrade
146 x86_64-none to i386. Define COND_real_platform Automake conditional
147 if the platform is anything other than "none". Don't do any include
148 directory linking for "none".
149 * Makefile.am: Skip building grub-core and all bootcheck targets if
151 * include/grub/time.h: Don't include <grub/cpu/time.h> if GRUB_UTIL
154 2014-09-22 Andrei Borzenkov <arvidjaar@gmail.com>
156 Use grub_cpu_to_XXX_compile_time for constants.
158 2014-09-21 Valentin Dornauer <valentin@unimplemented.org>
160 The AML parser implements only a small subset of possible AML
161 opcodes. On the Fujitsu Lifebook E744 this and another bug in
162 the parser (incorrect handling of TermArg data types) would lead
163 to the laptop not turning off (_S5 not found).
165 * grub-core/commands/acpihalt.c: Support OpAlias in the AML parser;
166 in skip_ext_op(), handle some Type2Opcodes more correctly (TermArgs
167 aren't always simply strings!); Add function to skip TermArgs
168 * include/grub/acpi.h: Add new opcodes
170 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
172 * grub-core/normal/main.c: Don't drop to rescue console in
173 case of password-protected prompt and no menu entries.
175 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
177 * grub-core/commands/keylayouts.c: Ignore unknown keys.
179 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
181 * grub-core/gmodule.pl.in: Accept newer binutils which output
182 empty column rather than 0x0.
184 2014-09-21 Michael Chang <mchang@suse.com>
186 * grub-core/osdep/unix/config.c: Remove extraneous comma.
188 2014-09-21 Peter Jones <pjones@redhat.com>
190 * grub-core/loader/arm/linux.c: Initialized initrd_ctx so
191 we don't free a random pointer from the stack.
192 * grub-core/loader/arm64/linux.c: Likewise.
193 * grub-core/loader/i386/linux.c: Likewise.
194 * grub-core/loader/i386/pc/linux.c: Likewise.
195 * grub-core/loader/ia64/efi/linux.c: Likewise.
196 * grub-core/loader/mips/linux.c: Likewise.
197 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
198 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
200 2014-09-15 Khem Raj <raj.khem@gmail.com>
202 * grub-core/kern/emu/hostfs.c: use _DEFAULT_SOURCE in addition to
203 _BSD_SOURCE to avoid warnings under glibc 2.20+.
205 2014-09-08 Michael Chang <mchang@suse.com>
207 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Fix extent size
208 check; comparing &data->extent against addresses in the region it
209 points to is unpredictable.
211 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
213 Support grub-emu on x32 (ILP32 but with x86-64 instruction set)
215 * configure.ac: Remove -m64 from checks for -mcmodel=large and
216 -mno-red-zone. These are always either unnecessary (x86_64-emu) or
217 already in TARGET_CFLAGS at this point, and they produce incorrect
218 results when building for x32.
219 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Cast
220 pointers to Elf64_Xword via grub_addr_t, in order to work on x32.
221 * include/grub/x86_64/types.h (GRUB_TARGET_SIZEOF_VOID_P,
222 GRUB_TARGET_SIZEOF_LONG): Define to 4 on x32.
224 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
226 * configure.ac: Remove several unnecessary semicolons.
228 2014-08-25 Colin Watson <cjwatson@ubuntu.com>
230 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
231 Initialise pend to pacify GCC.
233 2014-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
235 * util/grub-mkconfig.in: Fix typo (gettext_print instead of
238 2014-08-13 Vladimir Serbinenko <phcoder@gmail.com>
240 * grub-core/term/at_keyboard.c: Retry probing keyboard if
241 scancode setup failed.
243 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
245 * grub-core/kern/disk_common.c: Clump disk size to 1EiB.
247 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
249 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Add
250 safety to avoid triggerring VirtualBox bug.
252 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
254 * grub-core/fs/cbfs.c: Don't probe disks of unknow size.
256 Fixes hang on virtualbox.
258 2014-07-08 Colin Watson <cjwatson@ubuntu.com>
260 * util/grub.d/10_hurd.in: Make kernel list progression not fail on
261 kernels whose paths contain regex metacharacters.
262 * util/grub.d/10_kfreebsd.in: Likewise.
263 * util/grub.d/10_linux.in: Likewise.
264 * util/grub.d/20_linux_xen.in: Likewise.
266 Reported by: Heimo Stranner.
268 2014-06-26 Colin Watson <cjwatson@ubuntu.com>
270 * docs/grub-dev.texi (Finding your way around): The build system no
271 longer uses AutoGen directly.
273 2014-06-21 Роман Пехов <roman_pekhov>
275 * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check.
277 2014-06-21 Glenn Washburn <development@efficientek.com>
279 * util/grub-install.c: Fix handling of --disk-module.
281 2014-06-21 Stephane Rochoy <sheda>
283 * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
286 2014-06-21 Stephane Rochoy <sheda>
288 * grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
289 EFI system table physical address.
291 2014-06-21 Trevor Woerner <trevor.woerner@linaro.org>
293 * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
295 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
297 * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
299 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
301 * grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
304 2014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
306 * grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
308 Reported by: Yves Blusseau <blusseau@zetam.org>.
310 2014-04-20 Piotr Krysiuk <piotras@gmail.com>
312 * grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
313 GDT in conventional memory.
315 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
317 * util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
318 UUID. Other parts of grub-mkconfig tolerate these, they were
319 previously allowed here up to commit
320 55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
321 practice when the system has active LVM snapshots.
322 Fixes Ubuntu bug #1287436.
324 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
326 * grub-core/disk/lvm.c (grub_lvm_detect): Search for
327 "logical_volumes" block a little more accurately.
329 2014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
331 * grub-core/lib/syslinux_parse.c: Fix timeout quoting.
333 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
335 * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
338 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
340 Replace few instances of memcmp/memcpy in the code that should be
341 grub_memcmp/grub_memcpy.
343 2014-04-03 Vladimir Serbinenko <phcoder@gmail.com>
345 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
348 2014-03-31 Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
350 btrfs: fix get_root key comparison failures due to endianness
352 * grub-core/fs/btrfs.c (get_root): Convert
353 GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
355 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
357 Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
359 Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
360 no longer to be forgiving of trailing spaces on grub-probe output
361 lines, which among other things means that util/grub.d/10_linux.in
362 no longer detects LVM. To fix this, make grub-probe's output
363 delimiting more consistent. As a bonus, this improves the coverage
366 Fixes Debian bug #735935.
368 * grub-core/disk/cryptodisk.c
369 (grub_util_cryptodisk_get_abstraction): Add a user-data argument.
370 * grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
372 * include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
374 * include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
375 * util/grub-install.c (push_partmap_module, push_cryptodisk_module,
376 probe_mods): Adjust for extra user-data arguments.
377 * util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
378 probe_abstraction): Use configured delimiter. Update callers.
380 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
382 * util/grub-probe,c (options): Make -0 work again (broken by
384 (main): Simplify logic.
386 2014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
388 * grub-core/lib/relocator.c: Fix the case when end of leftover is used.
390 2014-03-26 Fu Wei <fu.wei@linaro.org>
392 * grub-core/loader/arm64/linux.c: Remove redundant "0x".
394 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
396 * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
397 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
399 Suggested by: Markus Müller.
401 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
403 * grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map
404 if E820 failed to return any regions.
406 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
408 * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
409 tables for low memory calculations.
411 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
413 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
416 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
418 * grub-core/kern/i386/coreboot/mmap.c: Filter out 0xa0000-0x100000
421 2014-02-20 Vladimir Serbinenko <phcoder@gmail.com>
423 * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
426 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
428 Add bootpath parser for open firmware.
430 It enables net boot even when there is no bootp/dhcp server.
432 * grub-core/net/drivers/ieee1275/ofnet.c: Add grub_ieee1275_parse_bootpath
433 and call it at grub_ieee1275_net_config_real.
434 * grub-core/kern/ieee1275/init.c: Add bootpath to
435 grub_ieee1275_net_config.
436 * include/grub/ieee1275/ieee1275.h: Likewise.
439 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
441 Add grub_env_set_net_property function.
443 * grub-core/net/bootp.c: Remove set_env_limn_ro.
444 * grub-core/net/net.c: Add grub_env_set_net_property.
445 * include/grub/net.h: Likewise.
447 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
449 * util/grub-mkrescue.c: Build fix for argp.h with older gcc.
451 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
453 * util/grub-mkfont.c: Build fix for argp.h with older gcc.
455 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
457 * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
458 7 seconds to recover if last poweroff was bad.
460 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
462 * grub-core/disk/ahci.c: Properly handle transactions with no
465 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
467 * grub-core/disk/ahci.c: Add safety cleanups.
469 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
471 * grub-core/disk/ahci.c: Allocate and clean space for all possible 32
472 slots to avoid pointing to uninited area.
474 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
476 * grub-core/disk/ahci.c: Do not enable I/O decoding and keep
477 enabling busmaster for the end.
479 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
481 * util/grub-mkfont.c: Downgrade warnings about unhandled features
484 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
486 * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
488 2014-01-29 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
490 * .gitignore: add missing files and .exe variants.
492 2014-01-26 Mike Gilbert <floppym@gentoo.org>
494 grub-install: support for partitioned partx loop devices.
496 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
497 /dev/loopX as being the parent of /dev/loopXpY.
499 2014-01-26 Vladimir Serbinenko <phcoder@gmail.com>
501 * grub-core/term/serial.c (grub_serial_register): Fix invalid free.
502 Ensure that pointers are inited to NULL and that pointers are not
505 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
507 * include/grub/crypto.h: Replace __attribute__ ((format (printf)) with
508 __attribute__ ((format (__printf__)) to fix compilation under MinGW-w64.
509 * include/grub/emu/misc.h: ... and here.
510 * include/grub/err.h: ... and here.
511 * util/import_gcry.py: ... and here (in files g10lib.h).
513 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
515 * util/grub-mkimage.c: Make prefix argument mandatory.
517 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
519 Fix several translatable strings.
521 Suggested by: D. Prévot.
523 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
525 * util/grub-install.c: List available targets.
527 2014-01-23 Colin Watson <cjwatson@ubuntu.com>
529 * util/grub-install.c (write_to_disk): Add an info message.
531 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
533 * Makefile.am: Allow adding extra files to generated Windows ZIP
534 archive by setting GRUB_WINDOWS_EXTRA_DIST.
536 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
538 * configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
539 Show detected font path in summary.
541 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
543 * grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
545 * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise.
546 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
547 * grub-core/net/tftp.c (tftp_open): Likewise.
548 * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
550 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
552 * grub-core/net/net.c (receive_packets): Change stop condition to avoid
555 In net/net.c there is a while (1) that only exits if there is a stop
556 condition and more then 10 packages or if there is no package received.
558 If GRUB is idle and enter in this loop, the only condition to leave is
559 if it doesn't have incoming packages. In a network with heavy traffic
562 2014-01-19 Colin Watson <cjwatson@ubuntu.com>
564 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
565 EPERM when modifying kern.geom.debugflags. It is only a problem for
566 such things as installing GRUB to the MBR, in which case there'll be
567 an error later anyway, not for opening files during tests.
569 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
571 * grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
572 instead of MOD_FILES.
573 * grub-core/genemuinit.sh: Simplify stripping of suffix so it works
574 both with and without .exe.
575 * grub-core/genemuinitheader.sh: Same.
577 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
579 * util/grub-install.c: Fix a typo.
581 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
583 * grub-core/normal/main.c (read_config_file): Buffer config file.
586 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
588 * acinclude.m4 (grub_CHECK_LINK_DIR): Check that we can also remove
589 symbolic link to directory. It fails in Msys shell on Windows 2003.
591 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
593 * Makefile.am (default_payload.elf): Add modules
594 multiboot cbmemc linux16 gzio echo help.
596 2014-01-18 Mike Gilbert <floppym@gentoo.org>
598 * Makefile.util.def: Link grub-ofpathname with zfs libs.
600 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
602 * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
605 Reported by: Andrey Borzenkov.
607 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
609 * include/grub/misc.h: Move macros for compiler features to ...
610 * include/grub/compiler.h: ... new file.
611 * include/grub/list.h: Include <grub/compiler.h> instead of <grub/misc.h>.
612 * grub-core/commands/fileXX.c: Include <grub/misc.h>.
613 * grub-core/efiemu/prepare.c: Include <grub/misc.h>.
614 * grub-core/loader/i386/xen_file.c: Include <grub/misc.h>.
615 * grub-core/loader/i386/xen_fileXX.c: Include <grub/misc.h>.
616 * grub-core/video/capture.c: Include <grub/misc.h>.
617 * include/grub/command.h: Include <grub/misc.h>.
618 * include/grub/dl.h: Include <grub/misc.h>.
619 * include/grub/procfs.h: Include <grub/misc.h>.
621 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
623 * configure.ac: Add support for BUILD_EXEEXT and use it ...
624 * Makefile.am: ... here.
625 * Makefile.util.def: ... and here.
626 * grub-core/Makefile.am: ... and here.
628 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
630 * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
631 FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
633 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
635 * grub-core/term/terminfo.c: Recognize keys F1-F12.
637 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
639 * configure.ac: Add support for BUILD_LDFLAGS.
640 * Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
641 * grub-core/Makefile.am: ... and here.
642 * INSTALL: Mention BUILD_LDFLAGS.
644 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
646 * util/grub-mount.c: Extend GCC warning workaround to grub-mount.
648 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
650 * grub-core/kern/efi/efi.c: Ensure that the result starts with /
653 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
655 * NEWS: Add few missing entries.
657 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
659 * util/grub.d/00_header.in (make_timeout): Use && rather than test
661 * util/grub.d/10_windows.in: Likewise.
662 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
664 * util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
667 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
669 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
670 redundant preprocessor conditional.
672 2014-01-08 Colin Watson <cjwatson@ubuntu.com>
674 * Makefile.util.def (grub-macbless): Change mansection to 8.
676 2014-01-07 Leif Lindholm <leif.lindholm@linaro.org>
678 * grub-core/loader/arm64/linux.c: correctly set device path end length.
680 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
682 * util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
683 arm64 to comply with EFI specification. Also use grubaa64.efi for
685 * util/grub-mkrescue.c: Change to use bootaa64.efi too.
687 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
689 * include/grub/osdep/hostfile_windows.h: Do not redefine fseeko/ftello
690 on MinGW-64 when compiling for 32 bits.
692 2013-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
694 * grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
696 2013-12-30 Vladimir Serbinenko <phcoder@gmail.com>
698 * NEWS: Add few missing entries. Correct existing ones.
700 2013-12-28 Vladimir Serbinenko <phcoder@gmail.com>
702 Don't abort() on unavailable coreboot tables if not running on coreboot.
704 2013-12-28 Andrey Borzenkov <arvidjaar@gmail.com>
706 * grub-core/kern/emu/misc.c: Remove unused error.h; fixes compilation
709 2013-12-28 Colin Watson <cjwatson@ubuntu.com>
711 * NEWS: The cmosclean command in fact dates back to 1.99. Remove
712 mention of it from 2.02.
714 2013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
716 * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
718 As these functions are used on pre-ARMv6 CPUs as well we don't want
719 to make assembler assume that architecture is higher than default one.
721 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
723 * NEWS: First draft of 2.02 entry.
725 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
727 * INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
728 * docs/grub.texi (Getting the source code): Likewise.
730 2013-12-25 Andrey Borzenkov <arvidjaar@gmail.com>
732 * grub-core/osdep/windows/platform.c (get_platform): Fix EFI
735 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
737 * configure.ac: Set version to 2.02~beta2.
739 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
741 * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
743 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
745 * util/grub-probe.c: Improve help message and simplify list handling.
747 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
749 Fix buffer overflow in grub_efi_print_device_path.
751 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
753 Show SATA device path.
755 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
757 Revert grub-file usage in grub-mkconfig.
759 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
761 Make newly-created files other than grub.cfg world-readable.
763 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
765 * util/grub.d/00_header.in: Improve compatibility with old config.
767 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
769 Make rijndael.c respect aliasing rules.
771 Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
773 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
775 Make grub_util_device_is_mapped_stat available in grub-emu core.
777 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
779 Add -Qn to TARGET_CFLAGS if it's supported.
780 Fixes compilation on cygwin.
782 Reported by: Andrey Borzenkov.
783 Suggested by: Andrey Borzenkov.
785 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
787 Save TARGET_CC version in modinfo.sh.
789 Suggested by: Andrey Borzenkov.
791 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
793 Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
794 follow the same algorithm to avoid method mismatch. Don't assume
795 DMRAID- UUID to mean full disk but instead check that mapping is linear.
797 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
799 Declare GRUB_EFI_VENDOR_APPLE_GUID.
801 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
803 Dump type and vendor specific data when printing device path.
805 2013-12-23 Colin Watson <cjwatson@debian.org>
807 Update some documentation to refer to Git rather than Bazaar.
809 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
811 * po/README: Likewise. Fix spelling mistake.
813 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
815 Don't distribute config.h.
817 * Makefile.am (platform_HEADERS): Move to ...
818 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
819 failure when building from a distributed tarball.
821 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
823 * configure.ac: Fix spelling.
824 * grub-core/commands/parttool.c: Fix grammar.
825 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
826 Embedding Partition".
828 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
830 ARM64 support for grub-mkrescue.
832 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
834 Install modinfo.sh to keep build information around.
836 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
838 * grub-core/modinfo.sh.in: Add build config information.
840 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
842 ARM64 grub-file and grub-mkconfig support.
844 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
846 Remove leftover options defines.
848 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
850 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
852 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
854 * grub-core/loader/arm64/linux.c: Add missing bracket.
856 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
858 Add arm64-efi recognition to grub-file.
860 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
862 Fix ia64-efi recognition in grub-file.
864 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
866 Recognize raspberry pi kernel in grub-file.
868 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
870 Enable cache on ARM U-Boot port.
872 Without it the port is reidiculously slow.
874 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
876 Fix ARM cache maintainance.
878 More code was converted from ASM to C for easier handling.
880 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
882 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
885 Suggested by: Leif Lindholm.
887 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
889 * util/grub-mkconfig.in: Fix Xen platform conditions.
891 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
893 * util/grub-mkrescue.c: Split single help message string in several
894 strings used in previous shell version.
896 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
898 Add arm64 Linux loader.
900 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
902 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
904 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
906 Add module loading and parsing boot time checkpoints.
908 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
910 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
913 2013-12-22 Lars Wendler <polynomial-c@gentoo.org>
915 * util/grub-mkconfig.in: Skip non-executable files.
917 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
919 Workaround buggy timer in raspberry pie by using our own timer
922 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
924 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
925 Increase to 16 MiB to allow loading the whole memdisk.
927 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
929 Fix ARM Linux Loader on non-FDT platforms.
931 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
933 * configure.ac: Choose link format based on host_os on emu.
935 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
937 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
939 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
941 * grub-core/kern/emu/main.c: Build fix for emu.
943 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
945 Build fixes for argp.h with older gcc.
947 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
949 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
952 Suggested by: David Prévot.
954 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
956 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
958 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
960 Enable -Wformat=2 if it's supported.
962 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
964 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
965 -Wmissing-declarations if supported.
967 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
969 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
970 u32 as both HFS and HFS+ have 32-bit inodes.
972 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
974 * include/grub/misc.h (grub_strtol): Fix overflow.
976 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
978 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
979 as return type in both conditionals.
981 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
983 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
984 to use uint8_t for color.
986 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
988 * util/misc.c (grub_util_get_image_size): Check for overflow.
990 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
992 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
995 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
997 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
998 for pointer difference.
1000 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1002 * util/import_gcry.py: Skip sample keys.
1004 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1006 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
1008 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1010 * configure.ac: Remove duplicate warning arguments.
1012 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1014 Add missing static qualifiers.
1016 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1018 Add missing includes.
1020 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1022 Inline printf templates when possible to enable format checking.
1024 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1026 * include/grub/crypto.h: Don't discard const attribute.
1028 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1030 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
1033 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1035 * grub-core/lib/crypto.c: Don't discard const attribute.
1037 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1039 * grub-core/lib/disk.c: Fix potential overflow.
1041 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1043 * grub-core/lib/arg.c: Don't discard const attribute.
1045 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1047 * grub-core/kern/dl.c: Don't discard const attribute.
1049 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1051 * grub-core/kern/disk.c: Fix potential overflow.
1053 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1055 * conf/Makefile.common: Don't include non-existing directory
1056 grub-core/lib/libgcrypt-grub/include.
1058 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1060 Clarify several translatable messages.
1062 2013-12-21 David Prévot <david@tilapin.org>
1064 Correct some translatable strings.
1066 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
1068 * util/grub-mkrescue.c: Rephrase mkrescue description.
1070 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1071 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
1073 Clarify several translatable messages.
1075 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
1077 Be more verbose about some configure failures.
1079 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
1081 Fix various build problems on GNU/Hurd.
1083 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
1085 (xgetcwd): Likewise.
1086 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
1087 [__GNU__]: Add prototype.
1088 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
1089 long int using %ld rather than %d.
1091 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1093 * util/grub-install.c: Inform user about install platform.
1095 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1097 * configure.ac: Set version to 2.02~beta1.
1099 2013-12-18 Allen Pais <allen.pais@oracle.com>
1100 2013-12-18 Bob Picco <bob.picco@oracle.com>
1102 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
1104 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1106 Make grub_zlib_decompress handle incomplete chunks.
1110 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1112 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
1115 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1117 * grub-core/disk/usbms.c: Retry on unknown errors.
1118 Reuse the same tag on retries.
1120 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1122 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
1124 Avoid confusing them with already completed transfers.
1126 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1130 Due to XEN bug it prevents Linux boot. Remove it at least, until
1131 workaround is found.
1133 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1135 * po/exclude.pot: Add 2 missing excludes.
1137 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1139 Add missing license section in macbless.mod and macho.mod.
1141 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1143 Allow compilation without thumb-interwork as long as no thumb is
1144 involved or only thumb2 is used.
1146 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1148 * INSTALL: Update comment as to why sparc64 clang isn't usable.
1150 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1152 Add __attribute__ ((sysv_abi)) only if it's really needed.
1154 Some compilers don't support it.
1156 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1158 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
1160 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1162 Remove -Wold-style-definition.
1164 Not very useful and interaction of it with regexp depends on GCC
1167 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1169 Make grub_util_get_windows_path_real static.
1171 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1173 * grub-core/commands/fileXX.c: Silence cast-align.
1174 * grub-core/loader/i386/xen_fileXX.c: Likewise.
1176 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1178 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
1179 rather than LL suffix.
1181 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1183 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
1185 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1187 * grub-core/loader/arm/linux.c: Use common initrd functions.
1189 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1191 Decrease number of strings to translate.
1193 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1195 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
1197 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1199 Mark strings for translation and add remaining ones to exclude list.
1201 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1203 * util/grub-file.c (main): Fix sizeof usage.
1205 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1207 Silence spurious warning.
1209 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1211 Remove check_nt_hiberfil as it's been superseeded by file command.
1213 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1215 * docs/osdetect.cfg: Add isolinux config to detected OSes.
1217 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1219 Implement syslinux parser.
1221 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1223 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
1225 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1227 Support cpuid --pae.
1229 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1231 Use AT keyboard on Yeeloong 3A.
1233 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1235 Add Yeeloong 3A reboot and halt.
1237 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1239 Add Radeon Yeeloong 3A support.
1241 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1243 Add bonito 3A support.
1245 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1247 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
1249 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1251 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
1253 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1255 * grub-core/loader/macho.c: Fix compilation on non-i386.
1257 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1259 Add missing format_arg attribute to check that printf with translated
1260 messages has proper arguments.
1262 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1264 Use grub_xasprintf to format translated error messages containing
1267 2013-12-17 Jon McCune <jonmccune@google.com>
1269 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
1271 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1273 Unify message for unsupported relocation.
1275 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1277 Mark miscompile error for translation.
1279 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1281 Use %I64 and not %ll when using OS printf if compiling for windows.
1283 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1285 Update Mac code to match new register_efi prototype.
1287 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1289 Implement better integration with Mac firmware.
1291 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1293 * grub-core/loader/multiboot_mbi2.c: Implement special value for
1296 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1298 Include serial module in default_payload.elf.
1300 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1302 Add explicit thumb interwork bx in asm files.
1304 Shouldn't matter for armv >= 5 but let's be safe.
1306 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1308 Implement Truecrypt ISO loader.
1310 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1312 * grub-core/lib/arg.c: Ensure at least a single space between commands.
1314 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1316 Implement grub_file tool and use it to implement generating of config
1319 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1321 Change to v1 xen grants.
1323 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1325 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
1327 GRUB relied on %ebx being preserved across hypercall which isn't true.
1329 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1331 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
1333 GRUB relied on %rdi being preserved across hypercall which isn't true.
1335 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1337 Implement XEN VFB support.
1339 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1341 Remove grub_bios_interrupt on coreboot.
1343 It's not used currently and cannot be used safely currently.
1345 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1347 Update exclude.pot and mark few strings for translation.
1349 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1351 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
1353 Reported by: Jon McCune
1355 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1357 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1358 Add verbose information which firmware directories were tried.
1360 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1362 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
1363 function to optionally redirect all three standard descriptors.
1364 Redefine grub_util_exec, grub_util_exec_redirect and
1365 grub_util_exec_redirect_null to use it.
1366 * include/grub/emu/exec.h: Define it.
1367 * include/grub/osdep/exec_unix.h: Delete, it is unused.
1368 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1369 Use grub_util_exec_redirect_all to redirect error to NULL.
1371 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1373 * grub-core/tests/sleep_test.c: Silence spurious warning.
1375 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1377 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
1378 linker trying to "fixup" the code.
1380 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1382 * grub-core/kern/x86_64/xen/startup.S: Align stack.
1384 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1386 Add support for converting PE+ to Elf64.
1388 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1390 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
1392 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1394 Remove practice of assigning random const pointers to device id.
1396 This is not required as cache code already checks driver id as well.
1398 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1400 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
1403 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1405 * include/grub/efi/api.h: Don't use call wrappers when compiled with
1406 mingw or cygwin as API already matches.
1408 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1410 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
1412 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1414 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
1417 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1419 Handle X86_64_PC64 relocation.
1421 Those are generated by some cygwin compilers.
1423 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1425 Determine the need for mingw-related stubs at compile time rather than
1426 using not very significant $target_os.
1428 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1430 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
1431 may not work with ELF.
1433 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1435 Use unix functions for temporary files and special files on cygwin.
1437 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1439 Define functions explicitly rather than using --defsym in tests
1440 whenever possible. Respect locality in remaining cases.
1442 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1444 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
1446 2013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
1448 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
1449 unlikely errors when getting EFI variables and make exhaustive search
1450 for all BootNNNN variables to find matching one.
1452 2013-12-15 Ian Campbell <ijc@hellion.org.uk>
1454 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
1456 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1458 New functional test for sleep function.
1460 This test allows to check sleep without qemu. Keep qemu version as
1461 well as functional test won't notice if all clocks are going too fast
1464 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1466 Add explicit sysv_abi on amd64 asm routines.
1468 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1470 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
1473 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1475 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
1478 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1480 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
1483 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1485 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
1487 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1489 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
1492 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1494 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
1496 In case of quick removal of loopback and adding another one it may
1497 get same ID, confusing the cache system.
1499 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1501 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
1504 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1506 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
1507 than converting to long.
1509 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1511 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
1513 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1515 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
1516 than almost useless pointer.
1518 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1520 Add gcc_struct to all packed structures when compiling with mingw.
1522 Just "packed" doesn't always pack the way we expect.
1524 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1526 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
1528 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1530 * util/grub-pe2elf.c: Fix handling of .bss.
1532 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1534 Implement windows flavour of EFI install routines.
1536 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1538 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
1540 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1542 Change grub_install_register_efi interface to pass GRUB device.
1544 This allows grub_install_register_efi to request partition info
1547 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1549 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
1551 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1553 Do not use TCHAR string functions as they are not available on cygwin.
1555 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1557 Workaround windows bug when querying EFI system partition parameters.
1559 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1561 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
1564 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1566 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
1568 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1570 Make i386-* other than i386-pc compileable under cygwin.
1572 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1574 Fix definition of grub_efi_hard_drive_device_path. Take care that
1575 existing code would work even if by some reason bogus definition is
1576 used by EFI implementations.
1578 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1580 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
1582 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1584 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
1587 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1589 * util/config.c: Remove trailing newline from distributor in simple
1592 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1594 * include/grub/efi/api.h: Rename protocol and interface to avoid
1597 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1599 * .gitignore: add .exe variants. add missing files. remove few outdated
1602 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1604 * grub-core/osdep/exec.c: Use unix version on cygwin.
1606 2013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1608 Implement multiboot2 EFI BS specification.
1610 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1612 * grub-core/normal/charset.c: Fix premature line wrap and crash.
1613 Crash happened only in some cases like a string starting at the
1614 half of the screen of same length.
1616 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1618 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
1619 with EFI counterpart.
1621 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1623 Propagate the EFI commits to x86-efi specific parts.
1625 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1627 * grub-core/commands/efi/lssal.c: Fix terminating condition.
1629 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1631 Introduce grub_efi_packed_guid and use it where alignment is not
1634 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1636 * include/grub/efi/api.h (grub_efi_device_path): Define length as
1637 unaligned u16 rather than u8[2].
1639 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1641 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
1642 for relocation range.
1644 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1646 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
1647 non-function pcrel21b relocation. It happens with .text.unlikely
1650 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1652 * make MAX_USABLE_ADDRESS platform-specific
1653 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
1655 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1657 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
1659 2013-12-09 Jon McCune <jonmccune@google.com>
1661 * Add --no-rs-codes flag to optionally disable reed-solomon codes
1662 in grub-install and grub-bios-setup for x86 BIOS targets.
1664 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1666 Add missing compile and link options for sparc64-emu.
1668 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1670 Implement sparc64 trampolines (needed for sparc64-emu).
1672 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1674 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
1675 range of R_SPARC_HI22.
1676 Implement R_SPARC_LM22.
1678 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1680 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
1681 Do not explicitly check for symbol table as it's already checked in
1682 platform-independent layer.
1684 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1686 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
1687 on ia64 as __clear_cache is a dummy on ia64.
1689 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1691 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1692 Do not explicitly check for symbol table as it's already checked in
1693 platform-independent layer.
1695 2013-12-09 Colin Watson <cjwatson@ubuntu.com>
1697 * util/grub-mkconfig.in: Add missing newline to output.
1699 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1701 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
1702 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
1704 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1706 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
1707 compilation with GCC <= 4.2.
1708 * grub-core/kern/emu/argp_common.c: Likewise.
1710 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1712 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
1713 right platform rather than leaking to sparc64-emu.
1715 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1717 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
1718 But ensure that the variables in question are indeed unsigned.
1720 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1722 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
1724 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1726 Remove grub_memalign on emu.
1728 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1730 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
1731 truncate incomplete lines but instead flushes them.
1733 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1735 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
1736 and implement windows variant.
1738 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1740 Fix mips-emu compilation.
1742 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1744 * configure.ac: Check for freetype library usability.
1746 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1750 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1752 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
1754 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1756 * docs/grub.texi (Environment): Update color_normal and color_highlight
1757 defaults (light-gray instead of white).
1759 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1761 * grub-core/normal/main.c (INIT): Set default color to light-gray
1762 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
1763 and apparently BIOS defaults.
1765 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1767 Transform -C option to grub-mkstandalone to --core-compress available
1768 in all grub-install flavours.
1770 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1772 Merge GRUBFS and GRUB_FS variables.
1774 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1776 Revert commit 69ca97c820, it caused failures when using OS device name
1777 in grub-install. Instead just strip off parenthesis in grub-install
1778 if (hdX) was passed.
1780 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1782 * util/grub-install.c (push_partmap_module): Add helper to convert
1783 partmap names to module names and use it in probe_mods(). Fixes
1784 failure to find partmap modules in diskfilter case.
1786 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1788 * configure.ac: Make unifont mandatory on coreboot.
1790 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1792 * configure.ac: Skip unifont 6.3 pcf and bdf.
1794 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1796 * Makefile.am: Remove partial font files if generation failed.
1798 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1800 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1802 * include/grub/util/misc.h: Define it ...
1803 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1805 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1807 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1810 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1812 Don't add -mlong-calls when compiling with clang.
1814 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1816 * configure.ac: Fix a typo.
1818 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1820 Revamp relocation handling.
1822 Move more code to common dl.c. Add missing veneers for arm and arm64.
1823 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1825 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1827 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1829 2013-12-05 Mike Gilbert <floppym@gentoo.org>
1831 * INSTALL: Raise minimum python version to 2.6.
1832 * gentpl.py: Use python3-style print function.
1834 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1836 * util/grub-install.c: Mention Boot* variable.
1838 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1840 * grub-core/osdep/linux/hostdisk.c
1841 (grub_util_find_partition_start_os): Initialise start to avoid
1842 spurious compiler warning.
1844 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1846 On Linux, read partition start offsets from sysfs if possible, to
1847 cope with block device drivers that don't implement HDIO_GETGEO.
1848 Fixes Ubuntu bug #1237519.
1850 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1852 (sysfs_partition_start): Likewise.
1853 (grub_util_find_partition_start_os): Try sysfs_partition_start
1856 2013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1858 * grub-core/kern/fdt.c: Update struct size when adding node.
1860 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1862 Handle unaligned .bss on sparc64.
1864 Current code improperly assumes that both __bss_start and _end are
1865 aligned to 8-bytes. Eliminating this assumption and explicitly align
1868 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1870 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
1871 so it doesn't land in the middle of loaded image.
1873 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1875 * configure.ac: Move all warning options that may be absent in
1876 gcc >= 3.1 to optional.
1878 Note: while this allows to compile with older GCC, official requirements
1879 remain the same and no support for older GCC.
1881 2013-12-04 Colin Watson <cjwatson@ubuntu.com>
1883 Copying the themes directory in grub-shell isn't
1884 parallel-test-friendly and breaks on the second test when the source
1885 directory is read-only (as in "make distcheck"). Instead, add a
1886 hidden --themes-directory option to grub-mkrescue et al, and use it
1889 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1891 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
1892 as it's no longer necessarry.
1894 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1896 * configure.ac: Allow compilation with older GCC for ARM.
1898 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1900 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
1901 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
1904 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1906 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
1908 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1910 Pass font config to config.h and not by TARGET_CFLAGS as adding
1911 arguments doesn't work if TARGET_CFLAGS is specified on command
1914 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1916 * configure.ac: Add -Wvla if compiler supports it.
1918 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1920 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
1921 Remove variable length arrays.
1922 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
1924 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1926 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
1928 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1930 * include/grub/types.h: Declare all byteswaps as inline functions
1931 except compile-time ones.
1933 Solves variable shadowing in constructions like
1934 cpu_to_le (le_to_cpu(x) + 1).
1936 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1938 * grub-core/kern/efi/efi.c: Remove variable length arrays.
1940 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1942 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
1945 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1947 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
1948 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
1950 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1952 * grub-core/Makefile.core.def (setjmp): Distribute
1955 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1957 Add a new timeout_style environment variable and a corresponding
1958 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
1959 controls hidden-timeout handling more simply than the previous
1960 arrangements, and pressing any hotkeys associated with menu entries
1961 during the hidden timeout will now boot the corresponding menu entry
1964 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
1965 generates a warning, and if it shows the menu it will do so as if
1966 the second timeout were not present. Other combinations are
1967 translated into reasonable equivalents.
1969 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
1971 2013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
1973 * util/config.c: Add missing pointer adjustment.
1974 Reported by: qwertial
1976 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1978 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
1979 directly, not via `cpu' link, to fix libgrub.pp generation.
1981 2013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
1985 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1987 * docs/grub.texi (sleep): Document exit codes.
1989 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1991 Ensure that -mno-unaligned-access or some equivalent option is used.
1993 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1995 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
1998 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
2000 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
2002 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
2004 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
2005 builds, since we don't have an EPS version of font_char_metrics.png.
2006 Add leading dot to image extension per the Texinfo documentation.
2008 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
2010 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
2011 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
2012 * util/grub-gen-widthspec.c: Likewise.
2013 * util/grub-mkfont.c: Likewise.
2015 2013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
2017 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
2018 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
2019 failed to install on (hdX).
2020 * util/grub-setup.c (get_device_name): Remove, not needed after
2023 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2025 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
2027 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2029 * util/grub-fstest.c: Remove variable length arrays.
2031 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2033 * grub-core/osdep/linux/ofpath.c: Check return value of read.
2035 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2037 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
2038 computing crc32 rather than handling with md fundtions directly.
2040 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2042 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
2043 checking fwstart.img rather than md fundtions directly.
2045 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2047 * util/grub-mkrescue.c (main): Check that fread succeeded.
2049 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2051 * conf/Makefile.common: Remove -mexplicit-relocs and
2052 -DUSE_ASCII_FALLBACK on yeeloong.
2054 -DUSE_ASCII_FALLBACK is already added by font snippets.
2055 -mexplicit-relocs isn't needed is compiler/assemblera are
2056 configured properly.
2057 If they're not we shouldn't attempt to fix it by ourselves.
2058 Binary compare between before and after shows no difference.
2060 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2062 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
2063 sources in dependencies directly.
2065 This was the only instance of "library" in core config. A bug was
2066 reported that -fno-stack-protector wasn't passed to it. Instead of
2067 figuring out why it failed just remove this construction used
2070 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2072 * grub-core/osdep/unix/password.c (grub_password_get): Check that
2075 2013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
2077 * docs/grub.texi (ls): Fix command description in case of a device name
2080 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2082 Eliminate variable length arrays in grub_vsnprintf_real.
2084 A bit tricky because this function has to continue to work without
2085 heap for short strings. Fixing prealloc to 32 arguments is reasonable
2086 but make all stack references use 32-bit offset rather than 8-bit one.
2087 So split va_args preparsing to separate function and put the prealloc
2090 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2092 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
2093 Fixes build for windows.
2095 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2097 * gentpl.py: Don't generate platform-dependent conditionals for
2098 platform-independent targets.
2100 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2102 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
2103 references to mdadm from otherwise generic code.
2104 (grub_util_exec_pipe): Likewise.
2105 (grub_util_exec_pipe_stderr): Likewise.
2106 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
2107 This function calls vgs, not mdadm; adjust variable names
2110 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2112 Generate Makefile.*.am directly from gentpl.py, eliminating the use
2113 of Autogen. The Autogen definitions files remain intact as they
2114 offer a useful abstraction.
2116 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2118 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
2119 into no-ops, and use it in programs that copy files but do not need
2120 to take special care to sync writes (grub-mknetdir, grub-rescue,
2123 2013-11-26 Colin Watson <cjwatson@ubuntu.com>
2125 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
2126 than hardcoding /usr/local/bin/xorriso.
2128 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2130 Add PCI command activation to all PCI drivers as required for coreboot
2131 and maybe some other firmwares.
2133 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2135 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
2136 and non-Apple variants of efiemu compile.
2138 2013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
2140 * configure.ac: Add explicit check for linking format of
2141 efiemu64; save it as EFIEMU64_LINK_FORMAT.
2142 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
2143 hardcoding linking format.
2145 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2147 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
2150 2013-11-25 Colin Watson <cjwatson@ubuntu.com>
2151 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2153 Add a --locale-directory option to grub-install and related tools.
2155 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
2156 --locale-directory option.
2157 (enum grub_install_options): Add
2158 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2159 * util/grub-install-common.c (grub_install_help_filter): Handle
2160 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2161 (grub_install_parse): Likewise.
2162 (get_localedir): New function to check for a user-provided option
2163 before trying grub_util_get_localedir.
2164 (copy_locales): Use get_localedir rather than
2165 grub_util_get_localedir. Handle differing locale directory layouts.
2166 (grub_install_copy_files): Likewise.
2168 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2170 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
2171 Don't rely on PATH_MAX.
2173 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2175 * grub-core/genmoddep.awk: Use more portable && rather than and.
2177 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2179 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
2180 an object after data. While it doesn't seem right solution, it
2181 works well enough and OSX isn't main compilation platform.
2183 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2185 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
2186 While it doesn't seem right solution, it works well enough and
2187 OSX isn't main compilation platform.
2189 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2191 * configure.ac: Add -static to LDFLAGS when using apple linker to
2192 prevent it from pulling in dynamic linker.
2194 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2196 Apple assembly doesn't handle symbol arithmetic well. So define an
2197 offset symbol in boot.S and use it.
2199 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2201 Apple assembly doesn't handle symbol arithmetic well. So instead
2202 of getting addres of kernel_sector + 4 define kernel_sector_high.
2203 It also makes code more readable.
2205 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2207 With Apple assembly in .macro environvemnt you have to use $$ instead
2208 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
2209 to $$x on Apple and to $x on everything else.
2211 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2213 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
2216 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2218 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
2219 and non-Apple. This instruction is shorter and faster,
2220 so no reason not to use it on both.
2222 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2224 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
2225 .text when compiling for Apple.
2227 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2229 * grub-core/term/arc/console.c: Add missing cast to silence warning.
2231 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2233 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
2234 %dx restore the probe worked on non-existant drive. Reorganize the
2235 code a little bit to free 2 bytes necessary for push/pop.
2237 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2239 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2240 Add missing cast to silence warning.
2242 2013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
2244 * util/grub-install.c (update_nvram): Support --no-nvram flag
2247 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2249 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
2251 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2253 * util/garbage-gen.c: Add missing include of sys/time.h.
2255 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2257 Don't add -mflush-func if it's not supported by compiler.
2259 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2261 Move common BIOS/coreboot memory map declarations to
2262 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
2264 2013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
2266 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
2268 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2270 * INSTALL: Document why older clang versions aren't appropriate.
2272 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2274 * INSTALL: Document about clang for mips.
2276 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2278 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
2281 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2283 Add *-xen to the list of grub-install-common platforms.
2285 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2287 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
2290 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2292 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
2294 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2296 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
2297 with -mcmodel=large.
2299 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2301 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
2302 range-checking for 32-bit quantities.
2304 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2306 * configure.ac: Compile with -fPIC when compiling with clang on
2309 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2311 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
2312 when compiling with clang.
2314 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2316 clang emits calls to abort () under some unknown conditions.
2317 Export abort () when compiling with clang.
2319 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2321 * docs/grub-dev.texi: Document stack and heap sizes.
2323 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2325 * include/grub/i386/pc/memory.h: Decrease
2326 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
2327 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
2328 The binary doesn't change (checked). It's more to better reflect actual
2331 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2333 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
2334 at compile time that enough of scratch size is available.
2336 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2338 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
2339 Previously we misaligned stack by 8 in startup.S and compensated
2340 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
2341 right behaviour is to align stack in startup.S and keep it aligned
2342 in callwrap.S. startup.S part was committed few commits before. This
2343 takes care of callwrap.S.
2344 Reported by: Gary Lin.
2346 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2348 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
2349 .data and .bss. May happen if compiler and assembly use different
2352 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2354 On MIPS handle got16 relocations to local symbols in an ABI-compliant
2357 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2359 Add support for a new magic symbol _gp_disp on mips to handle PIC
2362 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2364 Use $t9 for indirect calls from asm to C as PIC ABI requires.
2366 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2368 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
2369 when rest of GRUB is compiled for hisher stepping. Instead use
2370 .set mips3/.set mips1 around cache and sync opcodes.
2372 2013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
2374 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
2375 do essentially the same thing, do it in similar way.
2377 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2379 * util/grub-mkrescue.c (main): If a source directory is not
2380 specified, read platform-specific files from subdirectories of
2381 pkglibdir, not pkgdatadir.
2383 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2385 * grub-core/normal/progress.c: Remove unused file.
2387 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2389 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
2392 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2394 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
2397 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2399 * coreboot.cfg: Add missing file.
2401 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2403 * Makefile.am: Allow STRIP to be empty when creating windowszip.
2405 2013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
2407 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
2408 selectively skipping systems.
2410 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2412 * Makefile.util.def (grub-mkimage): Add
2413 grub-core/osdep/aros/config.c to extra_dist.
2414 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
2415 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
2416 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
2417 grub-core/gnulib-no-gets.diff.
2419 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2421 Add automated filesystem checking based on scripts I've used now for
2422 quite some time locally. Most of the test require root so they are
2423 skipped when run without necessarry privelegies.
2425 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2427 * util/grub-install.c (main): Adjust info messages to match
2428 installed paths of grub-bios-setup and grub-sparc64-setup.
2430 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2432 * util/grub-install-common.c (copy_locales): Consistently use
2433 grub_util_get_localedir () rather than LOCALEDIR.
2434 (grub_install_copy_files): Likewise.
2436 2013-11-19 Josh Triplett <josh@joshtriplett.org>
2438 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
2439 16-byte boundary, as required by the x86-64 ABI, before calling
2440 grub_main. In some cases, GCC emits code that assumes this
2441 alignment, which crashes if not aligned. The EFI firmware is also
2442 entitled to assume that stack alignment without checking.
2444 2013-11-18 Josh Triplett <josh@joshtriplett.org>
2446 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
2447 4k page boundaries as expected by firmware rather than 1k
2449 (grub_mmap_malign_and_register): Likewise.
2451 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2453 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
2454 fragmentation 512M is enough.
2456 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2458 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
2459 pointer to 32K. This is the size of cache element which is the most
2460 common allocation >1K. This way the pointer is always around blocks
2461 of 32K and so we keep performance while decreasing fragmentation.
2463 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2465 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
2466 current memory when allocating large chunks. This significantly
2467 decreases memory fragmentation.
2469 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2471 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
2473 * tests/lzocompress_test.in: Skip if lzop is not installed.
2474 * tests/xzcompress_test.in: Skip if xz is not installed.
2476 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2478 * util/grub-mkrescue.c (main): Fix typo.
2480 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2482 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
2483 clock frequency to 200 MHz,
2485 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2487 * tests/util/grub-shell.in: Increase console size to 1024x1024.
2489 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2491 * Makefile.am (default_payload.elf): Add pata to loaded modules.
2492 Load config file from (cbfsdisk)/etc/grub.cfg.
2494 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2496 * util/grub-install-common.c (grub_install_copy_files): Fix module
2497 destination directory.
2499 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2501 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
2502 files have not been built.
2504 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2506 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
2507 Handle errors from mkstemp.
2508 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
2510 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2512 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
2513 on primary master on pseries.
2515 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2517 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
2518 already loaded. This saves memory needed for tests,
2520 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2522 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
2525 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2527 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
2530 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2532 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
2533 master since with some combinations of qemu and firmware only primary
2534 IDE channel is available.
2536 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2538 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
2539 low-memory platforms where we don't have enough memory for them.
2540 * grub-core/tests/videotest_checksum.c: Likewise.
2542 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2544 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
2545 already loaded. This saves memory needed for tests,
2547 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2549 Fix handling of install lists.
2551 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2553 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
2555 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2557 On i386-ieee1275 we run in paged mode. So we need to explicitly map
2558 the devices before accessing them.
2560 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2562 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
2565 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2567 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
2569 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2571 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
2572 (grub_file_close): Free file->name.
2574 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2576 * grub-core/commands/verify.c (free_pk): Plug memory leak.
2577 (grub_load_public_key): Likewise.
2578 (grub_verify_signature_real): Likewise.
2579 (grub_cmd_verify_signature): Likewise.
2581 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2583 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
2586 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2588 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
2589 (grub_longjmp): Restore r31.
2590 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
2592 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2594 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
2595 modules to be in line with make_image_abs.
2597 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2599 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
2601 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
2603 2013-11-17 Ian Campbell <ijc@hellion.org.uk>
2605 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
2607 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2609 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
2610 to leave some memory to firmware.
2612 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2614 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
2615 of loading gfxterm as gfxterm is embed in kernel on some platforms.
2616 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
2619 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2621 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
2622 now needs full arguments.
2624 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2626 * util/grub-mkrescue.c (main): Add trailing \n in
2627 .disk_label.contentDetails to be in line with previous shell script.
2629 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2631 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
2633 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2635 * util/grub-install-common.c (grub_install_parse): Recognize
2636 --compress=none like shell script did.
2638 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2640 * include/grub/misc.h: Replace check for __sparc64__ with one for
2641 __sparc__ as __sparc64__ isn't actually defined.
2643 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2645 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
2646 counterpart of fixing the naming of escc ports.
2648 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2650 * util/grub-install-common.c (platforms): Fix the order of entries and
2651 remove useless field val.
2653 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2655 * util/grub-install.c: Add new option --no-bootsector to skip
2656 installing of bootsector. Accept --grub-setup=/bin/true as
2657 backwards-compatible synonym.
2659 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2661 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
2662 order of qsort arguments (number of elements vs. element size).
2664 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2666 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
2667 the function of these files exceeds what can be sanely handled in shell
2668 in posix-comaptible way. Also writing it in C extends the functionality
2669 to non-UNIX-like OS and minimal environments.
2671 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2673 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
2674 compiling to thumb2.
2675 * grub-core/kern/arm/cache_armv7.S: Likewise.
2676 * grub-core/lib/arm/setjmp.S: Likewise.
2678 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2680 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
2681 in grub_uboot_syscall
2683 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2685 Decrease stack usage in lexer.
2687 We have only 92K of stack and using over 4K per frame is wasteful
2689 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
2690 as macros so that compiler would remove useless structure on stack.
2691 Better solution would be to fix flex not to put this structure on
2692 the stack but flex is external program.
2694 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2696 Decrease stack usage in signature verification.
2698 We have only 92K of stack and using over 4K per frame is wasteful
2700 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
2702 (grub_verify_signature_real): Likewise.
2704 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2706 Decrease stack usage in mdraid 0.9x.
2708 We have only 92K of stack and using over 4K per frame is wasteful
2710 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
2713 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2715 Decrease stack usage in BtrFS.
2717 We have only 92K of stack and using over 4K per frame is wasteful
2719 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
2722 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2724 Decrease stack usage in JFS.
2726 We have only 92K of stack and using over 4K per frame is wasteful
2728 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
2729 stack. Note: this function is recursive.
2730 (grub_jfs_read_inode): Read only part we care about.
2732 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2734 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
2737 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2739 * configure.ac: Restore -nostdlib for libgcc symbols tests.
2741 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2743 * docs/grub.texi (Environment): Document cmdpath.
2745 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2747 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2748 Remove "unused" attribute from arguments, they are used.
2750 2013-11-15 Colin Watson <cjwatson@debian.org>
2752 * .gitignore: Only ignore grub-mk* at the top level.
2754 2013-11-15 Colin Watson <cjwatson@ubuntu.com>
2756 * util/grub-reboot.in (usage): Fix a typo.
2758 2013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2760 Replace libgcc version of ctz with our own.
2762 On upcoming arm64 port libgcc ctz* are not usable in standalone
2763 environment. Since we need ctz* for this case and implementation is
2764 in C we may as well use it on all concerned platforms.
2766 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2768 * configure.ac: Probe for linking format rather than guessing it based
2771 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2773 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
2774 "1" prior to handoff.
2776 Reported by: M A Young.
2778 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2780 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
2783 Reported by: M A Young.
2785 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2787 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
2788 compilation on NetBSD.
2790 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2792 * acinclude.m4: Don't add -P on initial nm test.
2794 Note: even though this patch postdates Andrey's it bears 14 Nov as
2795 date due to timezone difference.
2797 2013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2799 * grub-core/Makefile.core.def (signature_test): Add missing
2802 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2804 * util/grub-install_header: Set localedir here, since this file is
2806 * util/grub-install.in: Remove setting of localedir.
2807 * util/grub-mkrescue.in: Likewise.
2809 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2811 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2813 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2815 * configure.ac: Move nm checks to the end.
2816 Call grub_PROG_NM_WORKS.
2817 * acinclude.m4: New check grub_PROG_NM_WORKS.
2818 Use $TARGET_CFLAGS -c when compiling test binary.
2820 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2822 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2825 2013-11-14 Matthew Garrett <mjg@redhat.com>
2827 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2828 cmdpath to firmware directory.
2830 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2832 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2833 at the start of second iteration.
2835 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2837 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2839 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2841 * Makefile.am (default_payload.elf): New target for easier coreboot
2844 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2846 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2847 clang (not necessarry with -no-integrated-as).
2848 * include/grub/symbol.h [__arm__]: Likewise.
2850 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2852 * configure.ac: Use -no-integrated-as on arm with clang.
2853 * INSTALL: Mention ARM compilation with clang.
2855 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2857 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2860 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2862 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2863 code for indirect block handling.
2865 Saves 185 bytes on compressed image.
2867 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2871 * Makefile.am: Remove build-grub-* in make clean.
2873 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2875 New files to gitignore.
2877 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
2878 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
2880 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2882 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
2884 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2886 * .gitignore: fix rules for .dep* and add *.a post git migration
2888 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2890 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
2893 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2895 * grub-core/kern/misc.c: Don't redirect divisions in the
2897 * include/grub/misc.h: Likewise.
2899 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2901 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
2902 systems that require checking the return value of write.
2904 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2906 * util/grub-install.in (efi_quiet): Fix inverted logic: make
2907 efibootmgr quiet when --debug is not used, rather than when it is.
2909 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2911 * gentpl.py (define_macro_for_platform_dependencies): Remove
2912 first (and thus unused) of two definitions for this function.
2913 (platform_dependencies): Likewise.
2915 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2917 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
2918 functions, we only need to check this for the target, not the host.
2919 * configure.ac (grub_apple_cc): Likewise.
2921 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2923 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
2924 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
2925 asm to stay in arm even if surrounding is thumb.
2927 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2929 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
2930 helper functions are needed for thumb.
2932 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2934 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
2935 level / 3 division explicitly unsigned. Saves few bytes.
2937 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2939 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
2941 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2943 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
2946 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2948 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
2949 grub_uboot_boot_data to asm part.
2951 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2953 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
2955 (grub_uboot_syscall): Save/restore r9 and align stack.
2957 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2959 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
2961 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2963 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
2964 occurencies with END.
2966 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2968 * util/grub-editenv.c (help_filter, argp): Document how to delete
2969 the whole environment block.
2970 Reported by Dan Jacobson. Fixes Debian bug #726265.
2972 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2974 * docs/grub.texi (Internationalisation, Supported kernels): Fix
2977 2013-11-13 Josh Triplett <josh@joshtriplett.org>
2979 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
2980 increment/decrement.
2982 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2984 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
2985 compiling with clang.
2987 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2989 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
2992 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2994 Redirect all divisions to grub_divmod64.
2996 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2998 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
3000 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3002 Add missing includes of loader.h.
3004 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3006 * configure.ac: Allow disabling themes.
3008 2013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
3010 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
3012 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3014 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
3015 until it becomes operational.
3017 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3019 * grub-core/Makefile.core.def (legacy_password_test): Disable
3020 on platforms where no legacycfg is compiled.
3021 * grub-core/tests/lib/functional_test.c: Tolerate failure to
3022 load legacy_password_test.
3024 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3026 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
3028 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3030 * grub-core/efiemu/prepare.c: Remove variable length arrays.
3032 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3034 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
3035 strict-aliasing warning.
3036 (fsync): Silence cast warning.
3038 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3040 * grub-core/commands/verify.c: Remove variable length arrays.
3041 Load gcry_dsa/gcry_rsa automatically.
3043 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3045 * grub-core/tests/signature_test.c: New test.
3047 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3049 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
3052 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3054 * grub-core/tests/legacy_password_test.c (vectors): Make static.
3055 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
3057 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3059 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
3061 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3063 * grub-core/fs/proc.c: Allow \0 in proc files.
3065 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3067 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
3069 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3071 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
3073 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3075 * grub-core/fs/ext2.c: Remove variable length arrays.
3077 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3079 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
3082 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3084 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
3085 * grub-core/disk/cryptodisk.c: Likewise.
3086 * grub-core/disk/geli.c: Likewise.
3087 * grub-core/disk/luks.c: Likewise.
3089 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3091 * grub-core/tests/legacy_password_test.c: New test.
3092 * grub-core/commands/legacycfg.c: Remove variable length arrays.
3094 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3096 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
3098 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3100 * grub-core/tests/pbkdf2_test.c: New test.
3102 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3104 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
3106 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3108 * grub-core/io/lzopio.c: Remove variable length arrays.
3110 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3112 * include/grub/crypto.h: Add maximums on hash size and cipher block
3115 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3117 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
3119 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3121 * grub-core/tests/xnu_uuid_test.c: New test.
3123 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3125 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
3128 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3130 * grub-core/commands/hashsum.c: Remove variable length arrays.
3132 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3134 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
3136 * tests/grub_func_test.in: Increase memory allocation.
3138 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3140 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
3141 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
3144 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3146 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
3147 (grub_util_get_fd_size_os): ...this.
3148 (grub_hostdisk_flush_initial_buffer): New empty function.
3150 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3152 * grub-core/gensyminfo.sh.in: Handle the case of portable output
3153 without --defined-only.
3155 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3157 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
3158 rip-relative addressing in prologue.
3160 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3162 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
3163 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
3165 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3167 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
3168 Add missing semicolon.
3170 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3172 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
3174 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3176 * configure.ac: Check for lzma.h for enabling liblzma and allow
3179 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3181 Add missing includes of loader.h.
3183 2013-11-11 Fam Zheng <famcool@gmail.com>
3185 * util/grub.d/30_os-prober.in: Add minix entry.
3187 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3189 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
3190 right buffer for temporary load.
3192 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3194 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
3196 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3198 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
3201 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3203 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
3205 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
3207 (LzmaDec_InitDicAndState): Make static.
3209 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3211 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
3213 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3215 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
3217 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
3219 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3221 * docs/grub-dev.texi: Replace bzr references with git ones.
3223 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3225 * docs/grub.texi (Simple configuration): Remove reference to
3226 grub-reboot from saved default entry description - grub-default
3227 does not use it anymore.
3229 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3231 * configure.ac: Make efiemu test cflags match the cflags efiemu is
3234 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3236 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
3238 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3240 Fix grub_machine_fini bitrot.
3242 Reported by: Glenn Washburn.
3244 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3246 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
3248 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3250 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
3252 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
3255 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3257 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
3258 Add -march=core2 when testing compile of efiemu64.
3260 Thanks Andrey Borzenkov for spotting this.
3262 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3264 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
3265 XEN PV environment and load kernels.
3267 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3269 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
3270 * grub-core/loader/multiboot_mbi2.c: Likewise.
3272 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3274 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
3277 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3279 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
3281 Tested by: Denis 'GNUtoo' Carikli.
3283 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3285 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
3287 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3289 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
3290 Use to get rounded angle rather than truncated.
3292 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3294 * grub-core/term/serial.c: Add option for enabling/disabling
3295 RTS/CTS flow control.
3297 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3299 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
3302 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3304 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
3305 Use grub_fatal rather than divide by zero.
3306 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
3308 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3310 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
3312 (grub_fixed_fsf_divide): Likewise.
3314 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3316 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
3317 division by-zero and senseless negative divisions.
3319 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3321 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
3322 division by-zero and senseless negative divisions.
3323 (circprog_set_property): Don't accept negative num_ticks.
3325 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3327 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
3328 division by-zero and senseless negative divisions.
3330 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3332 * configure.ac: Use elf_*_fbsd on kfreebsd.
3334 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3336 * grub-core/tests/div_test.c: New test.
3338 2013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3340 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
3341 * grub-core/gfxmenu/gui_canvas.c: Likewise.
3342 * grub-core/gfxmenu/view.c: Likewise.
3343 * grub-core/video/fb/video_fb.c: Introduce new functions:
3344 grub_video_set_area_status, grub_video_get_area_status,
3345 grub_video_set_region, grub_video_get_region.
3346 * grub-core/video/bochs.c: Likewise.
3347 * grub-core/video/capture.c: Likewise.
3348 * grub-core/video/video.c: Likewise.
3349 * grub-core/video/cirrus.c: Likewise.
3350 * grub-core/video/efi_gop.c: Likewise.
3351 * grub-core/video/efi_uga.c: Likewise.
3352 * grub-core/video/emu/sdl.c: Likewise.
3353 * grub-core/video/radeon_fuloong2e.c: Likewise.
3354 * grub-core/video/sis315pro.c: Likewise.
3355 * grub-core/video/sm712.c: Likewise.
3356 * grub-core/video/i386/pc/vbe.c: Likewise.
3357 * grub-core/video/i386/pc/vga.c: Likewise.
3358 * grub-core/video/ieee1275.c: Likewise.
3359 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
3360 * include/grub/video.h: Likewise.
3361 * include/grub/video_fb.h: Likewise.
3362 * include/grub/fbfill.h: Updated render_target structure.
3363 grub_video_rect_t viewport, region, area
3364 int area_offset_x, area_offset_y, area_enabled
3365 * include/grub/gui.h: New helper function
3366 grub_video_bounds_inside_region.
3367 * docs/grub-dev.texi: Added information about new functions.
3369 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3371 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
3374 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3376 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
3378 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
3380 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3382 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
3383 simple division on arm and ia64.
3385 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3387 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
3390 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3392 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
3394 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3396 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
3397 prefix symbol, not @.
3399 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3401 * INSTALL: Add note about older gcc and clang.
3403 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3405 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
3407 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3409 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
3410 NULL pointer dereference.
3412 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3414 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
3417 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3419 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
3422 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3424 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
3426 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
3427 * grub-core/disk/geli.c (ascii2hex): Likewise.
3429 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3431 * configure.ac: Run linker tests without -Werror.
3432 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
3433 Change all occurences of -static-libgcc resp -lgcc to
3434 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
3436 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3438 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
3440 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3442 Allow compiling with clang (not really supported though).
3444 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
3446 * configure.ac: Add -no-integrated-as when using clangfor asm files.
3447 Add -mrtd -mregparm=3 on i386 when not using clang.
3448 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
3450 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3452 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
3454 * grub-core/lib/reed_solomon.c: Likewise.
3455 * include/grub/i386/gdb.h: Likewise.
3456 * include/grub/i386/pc/int.h: Likewise.
3457 * include/grub/i386/pc/pxe.h: Likewise.
3458 * include/grub/ieee1275/ieee1275.h: Likewise.
3460 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3462 Import libgcrypt 1.5.3.
3464 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3466 * configure.ac: Don't add -Wcast-align on x86.
3468 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3470 * configure.ac: Add -freg-struct-return on all platforms that
3473 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3475 * acinclude.m4: Use -Werror on parameter tests.
3476 * configure.ac: Likewise.
3478 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3480 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
3482 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3484 * configure.ac: Check that -malign-loops works rather than assuming that
3485 either -falign-loops or -malign-loops work.
3487 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3489 * configure.ac: Remove -fnested-functions. We don't need it anymore.
3491 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3493 * configure.ac: Prevent cflags leaking to subsequent tests by always
3494 resetting cflags to target_cflags in target tests.
3496 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3498 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
3501 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3503 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
3505 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3507 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
3509 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3511 * grub-core/normal/cmdline.c (grub_cmdline_get):
3512 Remove nested functions.
3514 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3516 * tests/test_sha512sum.in: Make it work on emu.
3518 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3520 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
3522 (grub_bidi_line_logical_to_visual): Likewise.
3524 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3526 Remove vestiges of -Wunsafe-loop-optimisations.
3528 * conf/Makefile.common (CFLAGS_GNULIB): Remove
3529 -Wno-unsafe-loop-optimisations.
3530 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
3532 * grub-core/io/gzio.c: Likewise.
3533 * grub-core/script/parser.y: Likewise.
3534 * grub-core/script/yylex.l: Likewise.
3535 * util/grub-mkfont.c: Likewise.
3537 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3539 * util/grub-mkfont.c (process_cursive): Remove nested function.
3541 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3543 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
3544 (grub_boot_time): Likewise.
3546 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3548 * include/grub/symbol.h (FUNCTION): Use @function rather than
3550 (VARIABLE): Likewise.
3552 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3554 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
3556 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3558 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
3559 (parse_dhcp_vendor): Likewise.
3561 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3563 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
3565 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3567 * grub-core/gettext/gettext.c (main_context), (secondary_context):
3568 Define after defining type and not before.
3570 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3572 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
3574 (grub_gcm_decrypt): Likewise.
3575 (algo_decrypt): Likewise.
3576 (grub_zfs_decrypt_real): Transform error type.
3578 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3580 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
3582 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3584 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
3585 (grub_usbms_cbi_reset): Likewise.
3586 (grub_usbms_bo_reset): Likewise.
3587 (grub_usbms_reset): Likewise.
3588 (grub_usbms_attach): Likewise.
3589 (grub_usbms_transfer_cbi): Likewise.
3591 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3593 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
3594 "checksum = checksum;".
3596 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3598 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
3601 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3603 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
3606 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3608 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
3610 (grub_ehci_fini_hw): Likewise.
3611 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
3613 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3615 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
3616 return grub_usb_err_t for cosistency. All users updated.
3618 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3620 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
3621 assigning to itself.
3623 2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
3624 2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3626 Issue separate DNS queries for ipv4 and ipv6
3628 Adding multiple questions on a single DNS query is not supportted by
3629 most DNS servers. This patch issues two separate DNS queries
3630 sequentially for ipv4 and then for ipv6.
3632 Fixes: https://savannah.gnu.org/bugs/?39710
3634 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
3635 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
3636 * (grub_net_dns_lookup): Now using separated dns packages.
3637 * (grub_cmd_nslookup): Add error condition.
3638 * (grub_cmd_list_dns): Print DNS option.
3639 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
3640 --prefer-ipv4, and --prefer-ipv6.
3641 * include/grub/net.h (grub_dns_option_t): New enum.
3642 * (grub_net_network_level_address): option added.
3644 2013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
3646 * grub-core/video/fb/video_fb.c: Merge two blit functions
3649 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3651 * grub-core/term/terminfo.c: Add sequences for home and end.
3653 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3655 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
3658 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3660 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
3663 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3665 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
3666 e-mail by Per Öberg.
3668 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3670 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
3673 2013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
3675 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
3677 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
3679 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3681 * docs/grub.texi: Document usage of menuentry id.
3683 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3685 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
3687 2013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
3689 * grub-core/commands/i386/nthibr.c: New command.
3691 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3693 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
3695 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3697 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
3700 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3702 Support GRUB_DISABLE_SUBMENU config.
3704 Inspired by patch from Prarit Bhargava.
3706 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3708 * docs/grub.texi: Mention RSA support.
3710 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3712 * grub-core/commands/verify.c: Add RSA support.
3714 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3716 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
3717 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
3718 device is known to be ATAPI.
3720 2013-11-03 Mike Frysinger <vapier>
3722 * configure.ac: Don't add target-prefix.
3724 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3726 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
3729 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3731 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
3732 if language is English.
3734 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3736 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
3738 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3740 * configure.ac: Don't add -m32/-m64 on emu.
3744 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
3745 broken linux headers.
3747 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3749 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
3751 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3753 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
3754 Reed-Solomon recovery if more than half of redundancy info is 0.
3756 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3758 * util/grub-mount.c: Handle symlinks to directories.
3760 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3762 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
3763 find_file recursively for symlink.
3765 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3767 * tests/util/grub-shell.in: Copy themes.
3769 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3771 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
3773 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3775 * configure.ac: Use 0x8000 for address instead of 8000.
3777 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3779 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
3782 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3784 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
3787 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3789 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
3791 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3793 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
3794 file_progress_read_hook.
3795 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3797 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3799 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3802 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3804 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3806 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3808 Rewrite blocklist functions in order to get progress when
3809 reading large extents and decrease amount of blocklist hook calls.
3811 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3813 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3816 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3818 Support --base-clock for serial command to handle weird cards with
3819 non-standard base clock.
3821 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3823 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3825 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3826 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3827 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3828 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3829 + strcpy rather than strncpy.
3831 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3833 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3834 (check_pool_label): Likewise. Fixes overflow.
3835 (nvlist_find_value): Fix comparison.
3837 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3839 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3840 more appropriate functions.
3842 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3844 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3847 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3849 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3851 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3853 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3856 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3858 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3860 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3862 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3863 (initialize_tables): reset tl and td to NULL after freeing.
3865 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3867 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3869 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3871 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
3874 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3876 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
3878 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3880 * grub-core/loader/multiboot.c: Add support for multiboot kernels
3883 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3885 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
3886 a page in protected space.
3888 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3890 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
3891 allocate space for zero-sized modules.
3893 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3895 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
3897 2013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
3899 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
3901 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3903 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
3904 safeguards. Fixes a crash with i386/pc/console.c.
3906 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3908 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
3909 and grub_hostfs_init.
3911 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3913 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
3914 windows method on other platforms without good stat as well.
3916 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3918 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
3920 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3922 Make / in btrfs refer to real root, not the default volume.
3923 Modify mkrelpath to work even if device is mounted with subvolid option.
3925 2013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
3927 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
3929 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
3932 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3934 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
3937 2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
3939 * docs/autoiso.cfg: New file.
3941 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3943 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
3944 COND_GRUB_PE2ELF conditions.
3946 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3948 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
3949 "vnd", "rd" and "fd" disks.
3951 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3953 Move grub_disk_write out of kernel into disk.mod.
3955 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3957 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
3960 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3962 * grub-core/kern/misc.c (grub_abort): Make static
3964 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3966 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
3967 transform invalid unicode codepoints.
3969 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3971 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3974 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3976 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
3978 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3980 Consolidate cpuid code.
3982 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3984 Move cpuid code to cpuid.h and TSC code to tsc.c.
3986 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3988 * util/grub.d/00_header.in: Don't use LANG if it's not set.
3990 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3992 * util/grub-mkconfig.in: Replace $0 with $self.
3993 * util/grub-reboot.in: Likewise.
3994 * util/grub-set-default.in: Likewise.
3996 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3998 * docs/osdetect.cfg: New file.
4000 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4002 * tests/util/grub-shell.in: Add new --debug option.
4004 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4006 * tests/test_unset.in: New test.
4008 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4010 * tests/test_sha512sum.in: New test.
4012 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4014 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
4015 * include/grub/misc.h: Remove strncat.
4016 * grub-core/lib/posix_wrap/string.h: Likewise.
4018 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4020 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
4021 Try to handle more than 0xFFFF packets.
4022 Reported by: Bernhard Übelacker <bernhardu>.
4023 He also spotted few overflows in first version of this patch.
4025 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4027 * tests/date_unit_test.c: New test.
4029 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4031 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
4032 of first three years after start of validity of unixtime.
4034 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4036 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
4037 division as the one making more sense.
4038 (update_screen): Likewise.
4039 (complete): Likewise.
4041 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4043 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
4045 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4047 Make char and string width grub_size_t rather than grub_ssize_t.
4049 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4051 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
4053 (grub_history_replace): Likewise.
4055 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4057 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
4060 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4062 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
4065 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4067 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
4068 Use unsigned divisions rather than signed variants.
4070 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4072 * grub-core/video/readers/png.c (grub_png_convert_image): Use
4073 unsigned arithmetics.
4076 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4078 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
4080 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4082 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
4083 rather than signed one.
4084 (recovery): Likewise.
4086 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4088 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
4090 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4092 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
4095 2013-10-25 Jon McCune <jonmccune@google.com>
4097 * docs/grub.texi: Cleanup security documentation around signatures.
4099 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4101 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
4103 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4105 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
4108 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4110 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
4111 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
4112 functions when compiling for kernel.
4114 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4116 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
4117 unsigned long long when using %llu.
4119 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4121 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
4122 terminal after updating progress.
4124 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4126 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
4127 argument. We don't disable Gate A20 in this code.
4129 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4131 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
4132 Conceptually based on change in branch "vbe-on-coreboot".
4134 2013-10-24 Robert Millan <rmh@gnu.org>
4136 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
4137 numeric constants with their symbolic equivalent.
4138 Taken from branch "vbe-on-coreboot".
4140 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4142 * docs/grub.texi: Fix ordering and use pxref rather than xref.
4144 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4146 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
4147 divmod64 for offset division.
4149 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4151 Rename .bzrignore to .gitignore. Add "*.o" rule.
4153 * .bzrignore: Renamed to...
4154 * .gitignore: ...this.
4156 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4158 Add new progress module that displays the load progress of files.
4160 * grub-core/lib/progress.c: New file.
4161 * grub-core/Makefile.core.def (progress): New module.
4162 * grub-core/kern/file.c (grub_file_open): File name added.
4163 * (grub_file_read): Progress hook added.
4164 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
4165 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
4166 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
4167 * include/grub/file.h (struct grub_file): Add progress module members.
4168 * include/grub/term.h (struct grub_term_output): Likewise.
4169 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
4170 Terminal velocity added.
4171 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
4172 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
4173 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
4174 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
4175 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
4176 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
4177 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
4178 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
4179 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
4180 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
4181 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
4182 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
4184 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4186 Verify signatures of signatures unless --skip-sig is specified.
4188 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4190 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
4193 Saves 70 bytes on compressed image.
4195 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4197 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
4200 Saves 10 bytes on compressed image.
4202 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4204 * grub-core/kern/misc.c (grub_isprint): Move to ...
4205 * include/grub/misc.h (grub_isprint): ... here. Make inline.
4207 Saves 20 bytes on compressed image due to remving exporting.
4209 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4211 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
4213 Saves 5 bytes on compressed image.
4215 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4217 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
4220 Saves 379 bytes on compressed image.
4222 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4224 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
4226 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4228 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
4230 Saves 40 bytes on compressed image.
4232 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4234 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
4235 mask rather than 64-bit type.
4237 Saves 20 bytes on compressed image.
4239 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4241 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
4242 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
4244 Saves 273 bytes on compressed image.
4246 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4248 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
4249 variable length arrays.
4251 Saves 50 bytes on compressed image.
4253 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4255 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
4257 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4259 * grub-core/fs/ufs.c: Remove variable length arrays.
4261 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4263 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
4265 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4267 * grub-core/fs/zfs.c: Remove variable length arrays.
4268 Reduces zfs.mod by 160 bytes (208 compressed).
4270 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4272 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
4274 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4276 * grub-core/net/arp.c: Remove variable length arrays.
4277 * grub-core/net/bootp.c: Likewise.
4278 * grub-core/net/dns.c: Likewise.
4279 * grub-core/net/icmp6.c: Likewise.
4280 * grub-core/net/net.c: Likewise.
4282 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4284 * grub-core/fs/ntfs.c: Remove variable length arrays.
4285 Increases ntfs.mod by 64 bytes (but decreases by 3 when
4288 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4290 * grub-core/fs/hfs.c: Remove variable length arrays.
4291 Reduces hfs.mod by 8 bytes (52 compressed).
4293 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4295 * grub-core/fs/udf.c: Remove variable length arrays.
4296 Increases udf.mod by 128 bytes (but decreases by 13 when
4299 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4301 * grub-core/fs/iso9660.c: Remove variable length arrays.
4302 Increases iso9660.mod by 200 bytes (but decreases by 79 when
4305 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4307 * grub-core/fs/nilfs2.c: Remove variable length arrays.
4308 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
4311 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4313 * grub-core/fs/xfs.c: Remove variable length arrays.
4314 Reduces xfs.mod by 40 bytes (43 compressed).
4316 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4318 * grub-core/fs/fshelp.c: Remove variable length arrays.
4319 Reduces fshelp.mod by 116 bytes (23 compressed).
4321 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4323 * grub-core/normal/completion.c: Remove variable length arrays.
4324 * grub-core/normal/menu_entry.c: Likewise.
4326 Reduces normal.mod by 496 bytes.
4328 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4330 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
4331 by 356 bytes (158 compressed).
4333 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4335 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
4336 by 364 bytes (169 compressed).
4338 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4340 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
4341 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
4342 * include/grub/types.h (grub_unaligned_uint64_t): New type.
4344 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4346 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
4347 bitmasks to small structures of size chosen to fit in registers.
4349 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4351 * conf/Makefile.common: Use -freg-struct-return on i386. This
4352 decreases code size and improves performance.
4354 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4356 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
4358 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4360 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
4362 Simplify expressions to save around 256 bytes in kernel.img.
4363 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
4365 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4367 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
4368 Use GRUB_UTIL_FD_O_* rather than O_*.
4370 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4372 Add haiku-specific functions.
4374 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4376 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
4378 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4380 Move stat () and device mode checking into OS-dependent files as
4381 long as performance doesn't suffer.
4383 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4385 Split make_system_path_relative_to_its_root into separate file
4386 relpath.c from getroot.c as it's common between unix and haiku
4387 but otherwise haiku doesn't use any functions from unix getroot.c.
4389 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4391 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
4393 (grub_util_is_special_file): Likewise.
4395 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4397 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
4398 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
4400 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4402 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
4403 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
4405 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4407 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
4408 (load_image): Likewise.
4410 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4412 * util/grub-render-label.c: Move backend part to ...
4413 * util/render-label.c: ... here.
4415 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4417 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
4418 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
4420 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4422 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
4424 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4426 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
4427 CD-ROM in case when it's declared as having subpartitions.
4429 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4431 Don't add -lm on haiku.
4433 * configure.ac: Define BUILD_LIBM to -lm on most platforms
4435 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
4438 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4440 * configure.ac: Use -melf_*_haiku as target on haiku.
4442 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4444 * Makefile.util.def: Add util/setup.c to extra_dist.
4446 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4448 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
4449 unknown types through.
4451 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4453 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
4454 (grub_util_check_char_device): Likewise.
4455 * include/grub/emu/getroot.h: Likewise.
4457 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4459 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
4460 memset rather than inline static function.
4462 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4464 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
4465 not doing embedded decompressor.
4467 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4469 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
4471 * grub-core/kern/disk.c: Likewise.
4472 * grub-core/kern/misc.c: Likewise.
4473 * include/grub/parser.h: Likewise.
4474 * include/grub/script_sh.h: Likewise.
4475 * include/grub/zfs/zfs.h: Likewise.
4477 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4479 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
4481 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4483 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
4484 defined before trying to use it.
4486 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4488 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
4491 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4493 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
4494 Use __unused__ rather than __used__ on gcc < 3.2.
4496 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4498 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
4500 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
4502 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4504 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
4506 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4508 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
4509 * include/grub/emu/misc.h: Likewise.
4511 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4513 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
4516 2013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
4518 * grub-core/tests/checksums.h: Regenerated due to progress bar
4519 get_minimal_size changes.
4521 2013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
4523 Added `tr' command support.
4525 * grub-core/commands/tr.c: New file.
4526 * grub-core/Makefile.core.def: Build rules for new module.
4528 * tests/grub_cmd_tr.in: New test.
4529 * Makefile.util.def: Build rules for new test.
4531 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4533 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
4535 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4537 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
4538 * docs/gurb.texi: Likewise.
4540 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4542 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
4543 Pixmap highlighted section with east and west slices was displayed
4544 incorrectly due to negative width of the central slice.
4546 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4548 * docs/grub.texi: Graphical options information update.
4549 Removed outdated. Updated current. Inserted missed.
4551 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4553 * docs/grub.texi: Mention few new platform-specific commands.
4555 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4557 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
4558 currently used so this doesn't really have any effect.
4559 Reported by: Douglas Ray <dougray>
4561 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4563 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
4564 compilation but prevents gcc from displaying messages in non-Latin
4566 * conf/Makefile.common: Likewise.
4568 2013-10-16 Hiroyuki YAMAMORI
4570 Handle Japanese special keys.
4571 Reported by: Hiroyuki YAMAMORI.
4572 Codes supplied by: Hiroyuki YAMAMORI.
4574 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4576 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
4578 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4580 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
4581 * docs/grub.texi: Likewise.
4583 2013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4585 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
4586 value in case of incomplete read.
4587 (grub_util_fd_write): Likewise.
4589 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4591 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
4593 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4595 * util/grub-editenv.c (create_envblk_file): More from here ...
4596 * util/editenv.c (grub_util_create_envblk_file): ... to here.
4598 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4600 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
4601 canonicalize file name before doing the rest.
4603 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4605 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
4608 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4610 Define grub_util_is_directory/regular/special_file and
4611 use OS-dependent versions rather than to rely on stat().
4613 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4615 * util/grub-mkimage.c: Move backend part to ...
4616 * util/mkimage.c: ... here.
4618 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4620 Allow compilation with mingw64 albeit with warnings due to lack of
4623 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
4624 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
4625 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
4626 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
4628 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
4630 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4632 Remove leftover references to some of the system headers.
4634 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4636 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
4639 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4641 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
4644 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4646 Split out blocklist retrieving from setup.c to
4647 grub-core/osdep/blocklist.c and add windows implementation since
4648 generic version doesn't work on NTFS on Windows due to aggressive
4651 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4653 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
4656 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4658 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
4659 Cut tailing newline. Remove arbitrary limitation. Always use
4660 grub_util_tchar_to_utf8.
4662 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4664 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
4665 * tests/printf_unit_test.c (printf_test): Add %% tests.
4666 Reported by: Paulo Flabiano Smorigo.
4668 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4670 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
4673 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4675 * configure.ac: Check for nvlist_lookup_string in nvpair since we
4676 use nvlist_lookup_string and don't use nvlist_print.
4678 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4680 Add wrappers around rename, unlink, mkdir, opendir, readdir and
4681 closedir to handle filename charset translation.
4683 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4685 * include/grub/emu/hostdisk.h: Move file operations to
4686 * include/grub/emu/hostfile.h: ... here.
4688 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4690 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
4693 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4695 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
4697 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4699 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
4700 and remove export.h.
4702 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4704 * grub-core/kern/emu/error.c: Removed.
4705 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
4706 explicitly as it's already in libgnu.a.
4708 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4710 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
4711 config-util.h include.
4713 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4715 Split emunet into platform-dependent and GRUB-binding parts. Keep
4716 platform-dependent part in kernel for easy access to OS functions.
4718 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4720 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
4723 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4725 * grub-core/osdep/windows/emuconsole.c: New file.
4727 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4729 * conf/Makefile.extra-dist: Add osdep/*/init.c
4731 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4733 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
4735 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4737 * util/grub-probe.c (probe): Separate different drives in hint-str
4738 by spaces and not newlines.
4739 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
4741 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4743 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4746 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4748 Pass-through unknown E820 types. It required reorganisation of mmap
4751 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4753 * Makefile.util.def: Add osdep/init.c to grub-mount files.
4755 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4757 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
4760 2013-10-14 qwertial <qwertial>
4762 * grub-core/gdb_grub.in: Fix overflow and wrong field.
4764 2013-10-14 Jon McCune <jonmccune@google.com>
4766 * docs/grub.texi: Document new signatures possibility.
4768 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4770 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
4772 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4774 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
4776 (grub_util_tchar_to_utf8): Likewise.
4778 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4780 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
4781 * grub-core/kern/emu/main.c: Add missing include.
4782 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
4783 Don't call grub_util_init_nls.
4784 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
4787 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4789 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
4792 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4794 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4796 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4798 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4800 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4802 Add a wrapper for fopen. On unix-like systems just pass-through. On
4803 windows use unicode version.
4805 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4807 Move set_program_name and init_nls to host_init. On windows
4808 fix in this fuction console and argument charset as well.
4810 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4812 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4813 GRUB_ENABLE_CRYPTODISK.
4815 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4816 GRUB_ENABLE_CRYPTODISK.
4817 * util/grub-mkconfig_lib.in: Likewise.
4819 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4821 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4823 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4825 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4826 error when enabling debug.
4828 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4830 * configure.ac: Use -melf_*_obsd on openbsd.
4832 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4834 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4836 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4838 * include/grub/misc.h: Use gnu_printf rather than printf as format
4839 template since our functions are independent of libc.
4841 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4843 * util/grub-setup.c (setup): Move copying of partition table as
4844 futher up as possible to avoid possible overwrite by floppy routines.
4846 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4848 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4850 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4852 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4853 * docs/grub.texi: Likewise.
4855 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4857 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4858 it's mostly unused. Move vestiges to the callers.
4860 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4862 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4863 version of salt and hash. Use grub_snprintf rather than snprintf.
4865 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4867 * docs/grub.texi: Fix problem with braces.
4869 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4871 * conf/Makefile.extra-dist: Fix extra-dist list.
4872 * grub-core/Makefile.core.def: Likewise.
4874 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4876 * docs/grub.texi: Document disk names used on Windows and AROS.
4878 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4880 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
4882 * grub-core/osdep/aros/hostdisk.c: Likewise.
4884 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4886 Avoid including hostfile.h when not necessarry as it pulls
4887 in OS-specific headers which may redefine generic names
4890 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4892 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
4893 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
4894 scrollbar_bottom_pad
4895 * docs/grub.texi: Likewise.
4897 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4899 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
4901 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4903 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
4905 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4907 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
4909 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
4912 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4914 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
4917 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4919 Move OS-specific driver configuration to grub_util_fd_open. This
4920 moves OS-dependent parts from kern/emu/hostdisk.c to
4921 grub-core/osdep/*/hostdisk.c.
4923 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4925 * util/grub-mkimage.c (generate_image): Use size_t instead of
4927 * util/grub-mkimagexx.c (locate_sections): Likewise.
4928 (load_image): Likewise.
4930 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4932 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
4934 (grub_util_write_image): Likewise.
4936 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4938 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
4939 get random when no RNG is available.
4940 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
4942 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4944 * include/grub/util/lvm.h: Removed.
4946 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4948 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
4949 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
4951 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4953 * grub-core/osdep/windows/sleep.c: Add missing config.h.
4955 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4957 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
4959 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4961 * grub-core/net/drivers/emu/emunet.c: Move to ..
4962 * grub-core/osdep/linux/emunet.c: ..here.
4964 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4966 * util/ieee1275/ofpath.c: Move to ...
4967 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
4968 * grub-core/osdep/basic/ofpath.c: ..here.
4970 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4972 Move password-querying (util-version) routines to grub-core/osdep.
4974 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4976 Move sleep routines to grub-core/osdep.
4978 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4980 Move OS-dependent files to grub-core/osdep and document it.
4982 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4984 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
4985 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
4987 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4989 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
4991 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4993 * util/misc.c: Remove leftover inclusion of malloc.h.
4995 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4997 * include/grub/setjmp.h: Remove leftover GRUBOF.
4999 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5001 * util/raid.c: Fold into ...
5002 * util/getroot_linux.c: ... here. Make all functions static.
5004 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5006 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
5007 macros to GRUB ones.
5009 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5011 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
5012 occasional bug. If there are too many boot entries or too low
5013 scrollbar height then we need to use another formula to calculate
5014 the position and size of the scrollbar thumb.
5016 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5018 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
5020 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5022 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
5023 * docs/grub.texi: Likewise.
5025 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5027 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
5030 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5032 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
5033 minimal width calculations.
5035 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5037 * docs/grub.texi: Update note on colors on emu console.
5039 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5041 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
5042 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
5043 it's FS and not GRUB limitation.
5045 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5047 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
5049 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5051 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
5053 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
5055 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
5056 kernels by version order.
5058 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5060 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
5062 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5064 Add AROS hostdisk and getroot routines.
5066 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5068 Make cryptodisk and diskfilter probe data retrievable programmatically
5069 and not just printable.
5071 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5073 Split random retrieving code into separate files.
5075 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5077 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
5080 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5082 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
5084 * grub-core/tests/fake_input.c: Likewise.
5085 * grub-core/tests/cmdline_cat_test.c: Likewise.
5087 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5089 * grub-core/video/capture.c: Do not do finalization when .fini
5090 is called as there is explicit capture_end.
5092 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5094 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
5095 changing windows to avoid crash.
5097 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5099 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
5101 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5103 * po/exclude.pot: Add several strings to exclude.
5105 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5107 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
5109 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5111 * autogen.sh: Add ./util/grub-gen-widthspec.c and
5112 ./util/grub-gen-asciih.c to exclude list.
5114 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5116 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
5117 and don't mark error strings for translation.
5119 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5121 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
5122 properly in case of missing block size.
5124 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5126 * grub-core/lib/arm/setjmp.S: Add missing license section.
5128 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5130 * po/swiss.sed: Add replacement for key names and for term computer.
5132 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
5134 * grub-core/gfxmenu/theme_loader.c: New global options for the
5135 theme background image handling. desktop-image-scale-method,
5136 desktop-image-h-align, desktop-image-v-align.
5137 * grub-core/gfxmenu/view.c: Likewise.
5138 * include/gfxmenu_view.h: Likewise.
5139 * include/bitmap_scale.h: Proportional scale functions introduced.
5140 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
5141 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
5142 cases of unexpected input variables for scale functions.
5143 * docs/grub.texi: Updated documentation for new options.
5145 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
5147 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
5149 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5151 * grub-core/tests/checksums.h: Corrected due to changes in
5152 bilinear interpolation function.
5154 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5156 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
5157 to eliminate artefacts in bilinear interpolation.
5159 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5161 * grub-core/video/readers/tga.c: Support paletted tga.
5163 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5165 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
5166 incorrect cbcr setting when in color mode.
5168 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5170 * grub-core/video/readers/png.c: Support paletted images and clean up
5173 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5175 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
5176 usage of wrong table which resulted in mishandling of 4-byte
5179 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5181 * grub-core/term/terminfo.c: Add Home and End key sequences.
5183 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5185 * grub-core/video/readers/png.c (grub_png_decode_image_header):
5186 Fix formula for computing total number of bytes.
5188 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5190 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
5191 image processing, fix big-endian and support grayscale.
5193 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5195 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
5196 Correctly will with maximum transparency when using index color.
5198 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5200 * grub-core/video/readers/png.c: Support grayscale
5202 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5204 * grub-core/video/readers/jpeg.c: Support grayscale.
5206 2013-09-26 Jon McCune <jonmccune@google.com>
5208 * grub-core/commands/loadenv.c: Support skipping signature check
5209 and variable names filtering.
5211 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5213 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
5214 * grub-core/kern/emu/hostfs.c: Likewise.
5215 * util/getroot_unix.c: Likewise.
5217 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5219 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
5220 Migrate all explicit defines to this new one.
5222 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5224 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
5225 grub_util_fd_strerror when using grub_util_fd_*.
5226 (grub_util_fd_open_device): Likewise.
5227 (grub_util_biosdisk_read): Likewise.
5228 (grub_util_biosdisk_write): Likewise.
5229 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
5230 (grub_util_fd_strerror): Likewise.
5231 (grub_util_fd_sync): Likewise.
5232 (grub_util_fd_close): Likewise.
5233 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
5234 (grub_util_fd_close): Likewise.
5235 (grub_util_fd_strerror): Likewise.
5236 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
5237 function proto rather than macro.
5238 (grub_util_fd_sync): Likewise.
5239 (grub_util_fd_open): Likewise.
5240 (grub_util_fd_strerror): New proto.
5242 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5244 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
5245 platforms on which it doesn't work.
5247 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5249 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
5250 stat immediately to where it's used.
5252 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5254 * util/getroot.c (grub_util_check_block_device): Move to ...
5255 * util/getroot_unix.c (grub_util_check_block_device): ... here.
5256 * util/getroot.c (grub_util_check_char_device): Move to ...
5257 * util/getroot_unix.c (grub_util_check_char_device): ... here.
5259 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5261 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
5264 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5266 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
5268 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5270 * docs/grub.texi (File name syntax): Document ZFS filenames
5271 (/volume@snapshot/...).
5273 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5275 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
5276 Always return full path. Fixes a problem with mkrelpath.
5278 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5280 * util/grub-install.in: Add GPT PReP support.
5281 * util/grub-probe.c (probe): Support GPT partition type.
5282 (main): Support -t gpt_parttype.
5284 2013-09-23 Aleš Nesrsta <starous@volny.cz>
5286 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
5288 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
5290 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
5292 2013-09-23 Tim Hardeck <thardeck>
5294 * util/grub.d/10_hurd.in: Filter out character for the class.
5295 * util/grub.d/10_kfreebsd.in: Likewise.
5296 * util/grub.d/10_linux.in: Likewise.
5297 * util/grub.d/20_linux_xen.in: Likewise.
5299 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
5301 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
5304 2013-09-23 Josh Triplett <josh@joshtriplett.org>
5306 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
5309 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5311 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
5312 doesn't use posix_wrap. Keep literal -fno-builtin however.
5314 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5316 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
5318 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5321 * configure.ac: Do not enable -Wmissing-noreturn as its
5322 usefulness is limited and creates problems on some OS notably with
5323 code generated by bison.
5325 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5328 * configure.ac: Do not explicitly enable -Waddress as it's not
5329 supported by all gcc and when it is, it's already enabled by -Wall.
5331 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5333 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
5334 desactivated use of EDID at all.
5336 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5339 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
5340 video if no text is available.
5342 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5345 * configure.ac: Substitute TARGET_RANLIB.
5347 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5350 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
5352 Based on patches from AROS.
5354 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5357 * grub-core/Makefile.am: Override STRIP and RANLIB.
5358 * configure.ac: compute TARGET_RANLIB.
5359 * INSTALL: Document TARGET_RANLIB
5361 Based on patches from AROS.
5363 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5365 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
5366 that floppies are unpartitioned.
5368 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5370 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
5371 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
5373 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5375 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
5376 less nice but more portable.
5377 * grub-core/lib/posix_wrap/wchar.h: Likewise.
5379 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5381 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
5383 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
5385 (grub_cryptodisk_cheat_insert): Likewise.
5386 (grub_cryptodisk_close): Likewise.
5388 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5390 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
5391 Use windows path for DEFAULT_DIRECTORY.
5393 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5395 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
5396 difference was likely just gcc version, not anything mingw-related.
5398 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5400 Use Winapi on both cygwin and mingw32 to share more code between both.
5402 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5404 * util/grub-install.in: Add --grub-editenv option.
5405 * util/grub-install_header (grub_compress_file): Explicitly check for
5406 plain file to avoid cp error.
5408 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5410 * docs/grub.texi (Device syntax): Document new LVM UUID based device
5411 names; fix LVM driver name (lvm, not lv).
5412 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
5415 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5417 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
5418 files rather than one file with loads of #if's.
5419 * util/getroot.c: Likewise.
5421 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5423 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
5425 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5427 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
5428 GNU/Hurd to the list of checked PRNG.
5430 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5432 * configure.ac: On FreeBSD use -melf_*_fbsd format.
5434 2013-09-21 Ales Nesrsta <starous@volny.cz>
5436 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
5438 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5440 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
5441 * grub-core/disk/lvm.c: Add LVM UUIDs.
5442 * util/getroot.c: Use LVM UUIDs whenever possible.
5444 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
5446 * docs/grub.texi (Networking commands): Add documentation for
5447 network related commands.
5449 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5451 * util/getroot.c (grub_util_open_dm): Check major rather than the name
5452 to determine if device is handled by devmapper.
5453 (convert_system_partition_to_system_disk): Likewise.
5454 (get_dm_uuid): Don't check explicitly if device is mapped, it's
5455 already done in grub_util_open_dm.
5457 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
5459 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
5460 Clean up stack manipulation (sync_caches_armv*)
5462 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5464 * util/lvm.c: Remove since unused. Remove remaining references.
5466 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5468 Handle the case of partitioned LVM properly.
5470 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5471 Stop on meeting LVM, mpath or DMRAID.
5472 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
5473 (read_device_map): Likewise.
5474 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
5475 device is full disk rather than erroring out on LVM and similar cases.
5477 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5479 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
5481 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5483 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
5485 Reported by: Leif Lindholm
5487 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
5488 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5490 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
5493 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
5495 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
5496 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
5498 2013-09-18 Douglas Ray <dougray@cpan.org>
5500 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
5503 2013-09-18 Aleš Nesrsta <starous@volny.cz>
5505 * docs/grub.texi: Fix broken link.
5507 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
5509 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
5510 to break endless loop.
5512 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5514 * util/grub-fstest.c: Fix several printf formats.
5515 * util/grub-mkimage.c: Likewise.
5516 * util/grub-mkimagexx.c: Likewise.
5517 * util/grub-script-check.c: Likewise.
5519 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5521 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
5524 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5526 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
5528 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5530 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
5531 removed in current versions cygwin_conv_*.
5533 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5535 * configure.ac: Disable efiemu runtime on cygwin.
5537 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5539 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
5540 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
5542 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5544 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
5547 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5549 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
5551 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
5554 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5556 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
5557 when on x86 and not cygwin.
5558 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
5561 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5563 * configure.ac: Set CPP to build one when checkoing for freetype for
5566 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5568 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
5569 [!GRUB_BUILD]: Remove has_argument.
5571 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5573 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
5574 Replace with a dummy.
5576 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5578 * configure.ac: Don't change host_os from mingw to cygwin.
5580 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5582 * configure.ac: Change target_os from windows to cygwin.
5584 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5586 Handle grub-pe2elf and grub-mkfont for cases when build != host.
5588 * Makefile.am (build-grub-mkfont): Don't include gnulib.
5589 (build-grub-gen-asciih): Likewise.
5590 (build-grub-gen-widthspec): Likewise.
5591 * Makefile.util.def (grub-pe2elf): Remove.
5592 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
5593 * configure.ac: Separate tests for build.
5594 Move ./build-grub-pe2elf to grub-core.
5596 * grub-core/Makefile.am (build-grub-pe2elf): New target.
5597 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
5599 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
5601 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
5602 * util/grub-pe2elf.c: Simplify not to rely on getopt.
5603 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
5605 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5607 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
5608 mingw32 as well based on grub_util_get_disk_size.
5609 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
5610 grub_util_get_fd_size.
5612 (fsync): Moved to ...
5613 * grub-core/kern/emu/misc.c (fsync): ... here.
5615 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5617 * include/grub/mm.h (grub_extend_alloc): Remove.
5618 * grub-core/loader/i386/pc/plan9.c: Use own version of
5619 grub_extend_alloc with appropriate types.
5621 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5623 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
5625 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5627 * util/getroot.c: Include sys/wait.h only when we need waitpid.
5629 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5631 Fix dependencies on cygwin.
5633 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
5634 dependencies when used and defined.
5635 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
5637 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5639 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
5640 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
5642 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5644 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
5645 implementation available to cause compile-time rather than runtime
5648 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5650 * util/grub-fstest.c: Don't check for symlinks on windows.
5652 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5654 * INSTALL: Mention unavailability of man pages when cross-compiling.
5656 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5658 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
5660 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
5662 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5664 * INSTALL: Document cross-compilation.
5665 * acinclude.m4: Determine whether nm support -P and --defined-only.
5666 * configure.ac: Add TARGET_ to all variables pertaining to target
5667 that don't have it yet.
5668 * gentpl.py: Likewise.
5669 * grub-core/Makefile.am: Likewise.
5670 * grub-core/genmod.sh.in: Likewise.
5671 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
5674 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5676 * configure.ac: Remove -Wempty-body. It's not essential and needs
5679 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5681 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
5682 * util/getroot.c: Likewise.
5684 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5686 * grub-core/disk/ahci.c: Add needed explicit cast.
5687 * grub-core/lib/backtrace.c: Likewise.
5688 * grub-core/net/ip.c: Likewise.
5689 * grub-core/net/tcp.c: Likewise.
5690 * grub-core/net/udp.c: Likewise.
5692 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5694 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
5696 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5698 * util/import_gcry.py: Add final newline in visibility.h.
5700 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5702 * conf/Makefile.common: Fix typo.
5704 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5706 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
5708 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5710 * Makefile.am (widthspec.h): Fix typo.
5711 * util/grub-gen-widthspec.c: Likewise.
5713 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5715 Move ascii.h and widthspec.h generation to a separate build-time-only
5718 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5720 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5721 Always fill bootdisk info and improve check for NetBSD disklabel.
5723 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5725 * conf/Makefile.extra-dist: Add util/bin2h.c.
5726 Reported by: floppym.
5728 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5730 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
5732 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5734 * configure.ac: Disable unifont and starfield if no freetype was found.
5736 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5738 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
5739 on NetBSD and OpenBSD.
5741 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5743 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
5745 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5747 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
5748 reduced. Inheritant options are processed during the theme loading.
5750 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5752 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
5754 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5756 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
5758 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5760 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
5763 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5765 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
5766 remove-potcdate.sed.
5768 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5770 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
5771 unused attribute from pull argument.
5773 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5775 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
5778 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5780 * util/getroot.c (pull_lvm_by_command): add --separator option
5781 to vgs call to disable padding of output to 10 characters.
5783 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5785 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
5787 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
5790 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5792 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
5795 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5797 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5798 full Canadian cross. Tested with build=x86_64, host=arm,
5799 target=ppc-ieee1275.
5801 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5803 * configure.ac: Error if no $BUILD_CC could be found.
5806 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5808 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5811 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5813 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5814 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5816 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
5818 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5819 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5820 falling back to the partition device, otherwise a later call to this
5821 function may fail spuriously.
5822 Reported by Axel Beckert. Fixes Debian bug #708614.
5824 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5826 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5828 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5830 Prevent shadowing of stdlib's devname(3) on BSD.
5832 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5833 and devlast to diskname and disklast, respectively.
5835 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
5837 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5839 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5841 * docs/grub.texi: Introduce terminal window position options:
5842 terminal-left: terminal window's left position
5843 terminal-top: terminal window's top position
5844 terminal-width: terminal window's width
5845 terminal-height: terminal window's height
5846 terminal-border: terminal window's border width
5847 * grub-core/gfxmenu/theme-loader.c: Likewise.
5848 * include/grub/gfxmenu_view.h: Likewise.
5849 * po/exlude.pot: Likewise.
5850 * grub-core/gfxmenu/view.c: Likewise.
5851 Also updated minimal window size.
5852 Also terminal_sanity_check function has been introduced.
5853 * grub-core/tests/checksums.h: Update (terminal window height
5854 is adjusted now for low resolution screen)
5856 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5858 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5861 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5863 * po/exclude.pot: Add few recent exceptions.
5865 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5867 * tests/grub_func_test.in: Add unicode.pf2.
5869 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5871 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
5872 standard rather than noral color, in line with other terminals.
5874 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5876 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
5879 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5881 * grub-core/loader/arm/linux.c: Change printf to dprintf.
5883 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5885 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
5886 inappropriate printf.
5888 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
5890 * .bzrignore: Remove grub-core/lib/dtc-grub,
5891 grub-core/Makefile.libfdt.def
5892 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
5894 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5896 * include/grub/video.h (grub_video_register): Keep double-linked as
5897 well as single-linked invariants.
5898 Reported by: qwertial.
5900 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5902 * grub-core/commands/nativedisk.c (get_uuid): Handle
5903 GRUB_DISK_DEVICE_UBOOTDISK_ID.
5905 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
5907 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
5908 maximum of NW, N, NE heights instead of N's height and maximum of
5909 NW, W, SW widths instead of W's width. (So the box will be always
5912 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
5914 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
5915 Fix misuse of variable count.
5917 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
5918 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
5919 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5921 New ports to arm-uboot and arm-efi.
5922 Mostly by Leif Lindholm with some additions from
5923 Francesco Lavra and cleanup by Vladimir Serbinenko.
5925 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5927 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
5929 Reported by: Leon Drugi.
5931 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5933 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
5934 Reported by: Paulo Flabiano Smorigo.
5936 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5938 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
5940 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5942 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
5944 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5946 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
5948 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5950 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
5952 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
5954 * grub-core/net/bootp.c: Export net_* variables.
5955 * grub-core/net/net.c: Likewise.
5957 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5959 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
5961 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5963 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
5965 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5967 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
5969 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5971 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
5973 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5975 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
5978 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5980 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
5983 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5985 * grub-core/fs/zfs/zfs_lz4.c: New file.
5986 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
5988 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5990 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
5992 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5994 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
5995 (check_pool_label): Likewise.
5996 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
5998 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6000 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
6002 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
6004 * docs/grub.texi (Commands): Document postition parameters
6005 for menuentry command.
6007 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
6009 * util/grub-mknetdir.in: Remove stray line from help output.
6011 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6013 Remove early sm712 init as there is no reason for it (the "watchdog"
6014 effect was due to wrong GPIO map).
6016 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6018 * grub-core/commands/pcidump.c: Remove static variables.
6020 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6022 * grub-core/commands/sleep.c: Refresh screen before sleeping.
6024 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6026 * configure.ac: Move delimiter after the infos.
6028 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6030 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
6032 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6034 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
6035 not filling whole 8x16 space.
6037 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6039 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
6041 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6043 * configure.ac: Indicate which liblzma is used if any.
6045 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
6046 2013-06-21 Craig Sanders <savannah@taz.net.au>
6048 * util/grub-reboot.in: Document submenu usage.
6050 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
6052 * .bzrignore: Update with a number of new test-related files.
6054 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
6056 * util/grub-script-check.c: Fail on scripts containing no
6057 commands, to guard against corrupted grub-mkconfig setups that
6058 produce no useful output.
6059 * tests/grub_script_no_commands.in: New test.
6060 * Makefile.util.def (grub_script_no_commands): Add.
6061 Reported by Hans Putter. Fixes Debian bug #713886.
6063 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6065 * grub-core/disk/diskfilter.c: Forgot to remove comment
6066 from previous commit.
6068 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6070 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
6071 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
6073 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6075 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
6077 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6079 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
6080 rescan diskfilter devices until nothing new is found.
6082 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6084 Fix casts when compiling coreboot-specific code for 64-bit EFI.
6086 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6088 Don't try to detect cbfs on *-emu.
6090 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6092 * grub-core/term/gfxterm.c: USe right background color when scrolling.
6094 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6096 Add support for processed coreboot payload chainloading.
6098 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6100 Enable coreboot information commands even when not loaded as
6101 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
6103 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6105 Support for cbfs. Also factor out the part which is common
6106 for all archives to a separate module. This splits tar from cpio
6107 as they are very different but keeps cpio, cpio_be, odc and newc
6108 together since they're very similar.
6110 2013-06-15 David Michael <fedora.dm0@gmail.com>
6112 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
6113 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
6115 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6117 * tests/grub_script_eval.in: Really add the eval test.
6119 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
6121 Move flavour-specific parts out of common cpio.c file and
6122 rename remaining to cpio_common.c
6124 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6126 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
6127 off new function grub_script_execute_new_scope. Change callers to use
6128 either of them as appropriate.
6129 * grub-core/commands/eval.c: New command eval.
6130 * docs/grub.texi (Commands): Document it.
6132 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6134 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
6135 to fetch values when listing.
6137 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6139 Fix make dist on non-pc.
6141 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
6143 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
6144 without a device name.
6146 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6148 Remove enable_executable_check as it's not needed anymore.
6149 Reported by: dougray.
6151 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6153 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
6154 ambigouos RAID before discovering RAIDs on top of it.
6157 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6159 Fix typo (failback vs fallback).
6161 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
6163 * util/grub.d/30_os-prober.in: Add support for probing EFI
6164 System Partition (as of os-prober 1.58).
6166 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6168 * configure.ac: Add yet another path to unifont. For parabola.
6170 2013-05-30 Josh Triplett <josh@joshtriplett.org>
6172 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
6173 handling to copy the killed characters to the kill buffer as
6174 UCS4 stored as grub_uint32_t rather than as 8-bit characters
6175 stored as char. Eliminates UCS4 truncation and corruption
6176 observed when killing characters with Ctrl-u and yanking them
6179 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6181 Detach optional parts of gfxterm and integrate in with coreboot init.
6183 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6185 Move blit and fill dispatcher to appropriate files to decrease export
6186 and relocation overhead.
6188 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6190 * grub-core/font/font.c, include/grub/font.h: Inline simple font
6193 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6195 * grub-core/Makefile.am: Fix compilation problem with some
6198 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6200 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
6202 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6204 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
6207 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6209 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
6212 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
6214 * grub-core/partmap/dfly.c: New partition map.
6216 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6218 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
6220 Reported by: Francesco Lavra.
6222 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
6224 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
6225 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
6227 * conf/Makefile.common: define dist_grubconf_DATA
6229 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6231 Progressively skip menu elements on small terminals rather
6234 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6236 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
6237 to avoid losing last column.
6239 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6241 * po/exclude.pot: Add missing string "%C".
6243 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6245 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
6248 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6250 * util/grub-install.in: Gettextize "Not found" message.
6252 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6255 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6257 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6259 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
6261 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
6263 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6265 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
6267 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6269 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
6270 attribute since structure is not necessarily aligned.
6272 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
6274 * docs/grub.texi (Device syntax): Clarify description of network
6277 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6279 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
6280 for vasprintf presence.
6282 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6284 * util/grub-install.in: Handle efibootmgr presence check.
6285 Reported by: Leif Lindholm.
6287 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6289 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
6290 new strings to translate.
6292 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6294 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
6295 yet another string (pun intended) to translate.
6297 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6299 * po/POTFILES-shell.in: Autogenerate it.
6301 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6303 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
6305 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6307 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
6310 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
6312 * docs/grub.texi (Network): Add description of net_default_interface,
6313 net_default_ip and net_default_mac. Rewrite variables description
6314 to emphasize that they are per-interface.
6316 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6318 New test: cmdline and cat.
6320 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6322 * grub-core/commands/cat.c: Show UTF-8 characters.
6324 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6326 * conf/Makefile.common: Poison float and double on non-emu.
6328 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6330 * configure.ac: Don't disable extended registers on emu.
6332 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6334 * configure.ac: Don't use extended registers on x86_64.
6335 Reported by: Peter Jones.
6337 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6339 * grub-core/term/efi/console.c: Fix compile error.
6341 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6343 Compressed HFS+ support.
6345 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6347 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
6350 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6354 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6356 * grub-core/tests/setjmp_test.c: New test.
6358 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6360 New variables 'net_default_*' to determine MAC/IP of default interface.
6362 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6364 * tests/gettext_strings_test.in: A test to check for strings not
6365 marked for translation.
6367 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6369 * autogen.sh: Exclude unused libgcrypt files from translation.
6371 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6373 Simplify few strings.
6375 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6377 Mark few forgotten strings for translation.
6379 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6381 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
6384 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6386 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
6388 * grub-core/video/readers/tga.c: Likewise.
6390 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6392 * tests/priority_queue_unit_test.cc: New test.
6394 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6396 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
6399 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
6401 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
6402 variable for one time boot menu entry.
6404 2013-05-05 Bean <bean123ch@gmail.com>
6406 * grub-core/commands/testspeed.c: New command testspeed.
6408 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6410 Factor-out human-size printing.
6412 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6414 Agglomerate more mallocs to speed-up gfxterm.
6416 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6418 Speed-up gfxterm by slightly agglomerating mallocs.
6420 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6424 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6426 Speed-up gfxterm by saving intermediate results in index+alpha
6429 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6431 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
6434 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6436 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
6437 line of timeout as it may contain the rest of long line.
6439 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6441 * grub-core/normal/main.c: Fix freed memory dereference.
6443 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6445 Fix several memory leaks.
6447 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6449 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
6451 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6453 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
6455 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6457 Fix test -a and -o precedence.
6458 Reported by: adrian15.
6460 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6462 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
6464 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
6466 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
6467 and add it as source to functional_test module.
6469 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6471 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
6473 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6475 New series of tests for gfxterm and gfxmenu.
6477 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6479 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
6480 the theme path relative to $prefix/themes.
6482 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6484 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
6486 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
6488 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6490 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
6493 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6495 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
6496 grub_gfxmenu_timeout_notifications.
6497 (grub_gfxmenu_view_destroy): Likewise.
6499 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6501 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
6503 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6505 Several fixes to ieee1275 and big-endian video.
6507 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6509 Add missing exports on mips.
6511 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6513 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
6514 if no unifont is found.
6515 Restore original keyboard.
6517 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6519 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6520 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
6522 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6524 First automated video test (running videotest and comparing results)
6526 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6528 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
6529 instead of 2 to have full RGB/CMY test pattern.
6531 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6535 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6537 * include/grub/arc/arc.h: Account for missing "other" peripheral on
6538 ARCS. All users updated.
6540 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6542 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
6544 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6546 * grub-core/partmap/amiga.c: Fix size of checksummed block.
6548 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6550 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
6551 Reported by: qwertial.
6553 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6555 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
6556 with syntax "XXX deg"/"XXX °".
6558 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6560 Make PCI init in i386-qemu port more robust.
6562 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6564 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
6565 cached view is reused.
6566 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
6569 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6571 Unify more code in grub-install_header.
6573 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6577 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6579 Enforce disabling of firmware disk drivers when native drivers kick in.
6581 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6583 * grub-core/commands/nativedisk.c: Customize the list of modules on
6584 platform. Don't try to search for disks already using native drivers.
6586 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6588 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
6591 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6593 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
6594 handling of variables containing backslash.
6596 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6598 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
6600 Reported by: qwertial.
6602 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6604 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
6606 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6608 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
6610 Reported by: qwertial.
6612 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6614 * docs/grub.texi: Add a comment about usefullness of nativedisk.
6616 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6618 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
6620 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6622 New command `nativedisk'.
6624 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6626 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
6627 * grub-core/loader/i386/bsd.c: Likewise.
6629 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6631 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
6633 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6635 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
6636 grub_get_unaligned16 rather than shifts.
6638 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6640 * grub-core/kern/file.c: Use const char * rather than casting to
6643 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6645 * grub-core/commands/probe.c: Add missing grub_device_close.
6647 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6649 * INSTALL: Document linguas.sh.
6651 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6653 Remove POTFILES.in and regenerate it in autogen.sh.
6655 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6657 Move --directory/--override-directorry to grub-install_header and unify.
6659 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6661 * grub-core/term/morse.c: Macroify dih and dah.
6663 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6665 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
6667 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6669 * grub-core/term/ns8250.c: Systematically probe ports by writing
6670 to SR before using them.
6672 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6674 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
6676 (check_sas): Get sas_adress info.
6678 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6680 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
6683 2013-04-27 Leon Drugi <eyak>
6685 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
6688 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6690 Core compression test.
6692 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6694 Implement grub_machine_get_bootlocation for ARC.
6696 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6698 Improve AHCI detection and command issuing.
6700 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6704 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6706 Make 'make check' work on emu.
6708 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6710 Replace libcurses with our own vt100 handling for the ease of testing
6711 and decreasing prerequisites.
6713 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6715 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
6717 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6719 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
6720 compile when not needed.
6722 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6724 * tests/pseries_test.in: New test.
6726 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6728 Add test to check that different boot mediums work.
6730 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6732 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
6733 ofw limited ISO support.
6735 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6737 * configure.ac: Fix loongson conditional.
6739 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6743 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6745 Add serial on ARC platform.
6747 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6749 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
6752 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6754 * tests/partmap_test.in: Add missing double semicolon.
6756 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6758 * util/grub-mkrescue.in: Fix loongson filename.
6760 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6762 * util/grub-mkrescue.in: Move all files that don't have a location
6763 set in stone under /boot/grub. Use ISO hard links rather than copies
6766 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6768 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
6771 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6773 Make check work on mips-arc.
6775 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6777 * util/grub-mkrescue.in: Alias sashARCS as sash.
6779 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6781 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
6784 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6786 * util/grub-install.in: Fix target fo qemu_mips.
6787 Fix extension on EFI.
6789 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6791 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
6792 in front of chosen entry to mark it even if highlighting is lost.
6794 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6796 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6797 gfxpayload=keep if cbfb is active.
6799 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6801 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6803 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6805 Add missing video ids to coreboot and ieee1275 video.
6807 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6809 * util/grub-mkrescue.in: Add mips-arc support.
6811 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6813 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6815 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6817 Move mips-arc link address. Previous link address was chosen
6818 in belief that RAM on SGI platforms grows down while in fact it
6819 grows up from an unusual base.
6821 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6823 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6824 Fix a type which prevented CD-ROM and floppy boot.
6826 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6828 Support coreboot framebuffer.
6830 * grub-core/video/i386/coreboot/cbfb.c: New file.
6832 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6834 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6835 detecting too small regions.
6837 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6839 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6841 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6843 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6845 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6847 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6849 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6850 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6851 * grub-core/loader/powerpc/ieee1275/linux.c
6852 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6854 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6856 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6857 Look for /boot-rom as well as /rom/boot-rom.
6859 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6861 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6862 handling when creating text_layer failed.
6863 * grub-core/video/video.c (grub_video_create_render_target):
6864 Set result to 0 on error.
6865 (grub_video_delete_render_target): Do not dereference NULL.
6867 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6869 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
6870 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
6871 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
6872 (grub_linux_load64): Mask out 2 high bits.
6874 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
6876 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
6879 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6881 Add support for pseries and other bootinfo machines to grub-mkrescue.
6883 Tested by: Paulo Flabiano Smorigo.
6885 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6887 * util/grub-mkrescue.in: Add GPT for EFI boot.
6889 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6891 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
6892 It improves performance in qemu.
6894 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6896 * build-aux/snippet: Add missing gnulib files.
6898 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6900 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
6902 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6904 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
6906 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6907 2013-04-15 Peter Jones <pjones@redhat.com>
6909 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
6911 Based on patch by Peter Jones.
6913 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6915 Fix DMRAID partition handling.
6917 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6919 * tests/grub_cmd_date.in: Skip on sparc64.
6921 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6923 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
6924 firmware error messages.
6926 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6928 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
6929 source and destination differ.
6931 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6933 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
6936 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6938 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
6939 match config-util.h to avoid warnings and increase compatibility.
6941 2013-04-14 Szymon Janc <szymon@janc.net.pl>
6942 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6944 Add option to compress files on install/image creation.
6946 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6948 * docs/grub-dev.texi: Rearrange menu to match the section order.
6949 Reported by: Bryan Hundven.
6951 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6953 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
6955 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6957 Move GRUB out of system area when using xorriso 1.2.9 or later.
6959 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6961 * tests/grub_cmd_date.in: Add missing exit 1.
6963 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6965 * tests/partmap_test.in: Skip on sparc64.
6967 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6969 Support grub-shell on sparc64.
6971 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6973 Support mkrescue on sparc64.
6975 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6977 Allow IEEE1275 ports on path even if it wasn't detected automatically.
6978 Needed on OpenBIOS due to incomplete device tree.
6980 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6982 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
6983 would be otherwise excluded.
6985 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6987 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6988 Inline name defines used only once.
6990 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6992 Fix memory leaks in ofnet.
6993 Reported by: Francesco Lavra.
6995 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6997 * docs/man/grub-glue-efi.h2m: Add missing file.
6999 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7001 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
7003 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7005 Better support Apple Intel Macs on CD.
7007 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7009 Replace stpcpy with grub_stpcpy in tools.
7011 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7013 Handle Japanese special keys.
7014 Reported by: Hiroyuki YAMAMORI.
7015 Codes supplied by: Hiroyuki YAMAMORI.
7017 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7019 * util/grub-mkimage.c: Document memdisk implying --prefix.
7021 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7023 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
7024 much we can do about it anyway.
7026 2013-04-12 Aleš Nesrsta <starous@volny.cz>
7028 Fix handling of split transfers.
7030 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7032 * grub-core/net/http.c: Fix bad free.
7034 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7036 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
7039 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7041 Disable partmap check on i386-ieee1275 due to openfirmware issues.
7043 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7045 * tests/util/grub-shell.in: Fix it on powerpc.
7047 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7049 Turn off QEMU ACPI-way since new releases don't have shutdown port
7052 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7054 * docs/grub.texi: Update coreboot status info.
7056 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7058 * tests/grub_cmd_date.in: New test for datetime.
7060 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7062 * tests/partmap_test.in: Fix missing qemudisk setting.
7064 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7066 Support i386-ieee1275 grub-mkrescue and make check on it.
7068 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7070 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
7073 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7075 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
7076 GRUB_CMDLINE_XEN_DEFAULT.
7077 Reported by: Marc Warne (GigaTux) <gigatux>
7079 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7083 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7085 Use ACPI shutdown intests as traditional port was removed.
7087 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
7089 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
7092 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7094 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
7095 Fix few warining messages and leaks while on it.
7097 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
7099 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
7100 links under grub-core/lib/libgcrypt-grub/mpi.
7102 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7104 Fix ia64-efi image generation on big-endian machines. Deduplicate
7105 some code while on it.
7106 Reported by: Leif Lindholm.
7108 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7110 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
7113 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7115 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
7117 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
7119 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
7122 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7124 * grub-core/normal/term.c: Few more fixes for menu entry editor
7126 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7128 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7130 * grub-core/normal/term.c: Few more fixes for menu entry editor
7132 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7134 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7136 * conf/Makefile.extra-dist (EXTRA_DIST): Add
7137 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
7139 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7141 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
7142 instead of hardcoding grub.mo.
7144 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
7146 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
7148 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7150 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
7151 grub-core/disk/geli.c.
7153 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7155 * util/grub-mkfont.c: Prefer enum to #define.
7157 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7159 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
7161 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7163 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
7165 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7167 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
7169 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7171 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
7173 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7175 * include/grub/bsdlabel.h: Use enums.
7177 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7179 Move GRUB_CHAR_BIT to types.h.
7181 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7183 * docs/grub.texi: Document more user commands.
7185 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7187 * docs/grub.texi: Document menuentry --id option.
7189 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
7191 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
7193 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7195 Unify file copying setup across different install scripts. Add
7196 options for performing partial install.
7198 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7199 2013-04-04 Peter Jones <pjones@redhat.com>
7201 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
7203 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7205 Use TSC as a possible time source on i386-ieee1275.
7207 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7209 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
7212 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7214 * util/grub-setup.c (setup): Handle some corner cases.
7216 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7218 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
7220 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7222 * grub-core/commands/verify.c: Save verified file to avoid it being
7223 tampered with after verification was done.
7225 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7227 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
7228 reported width by one to compensate for curesor algorithm problem.
7230 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7232 Fix screen corruption in menu entry editor and simplify the code
7235 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
7237 * util/grub-mount.c (fuse_init): Return error if fuse_main
7240 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
7242 * include/grub/elf.h: Add missing ARM relocation codes and fix
7245 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7247 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
7249 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7250 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7252 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
7253 into account when calculating radius.
7255 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7257 * grub-core/gfxmenu/view.c: Fix off-by-one error.
7259 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7261 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
7263 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7265 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
7266 missing closing bracket.
7268 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7270 * INSTALL: Mention xorriso requirement.
7272 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
7274 * grub-core/commands/verify.c: Fix hash algorithms values for
7275 the first three hashes - they start with 1, not with 0.
7277 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7279 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
7280 Try terminating EFI services several times due to quirks in some
7283 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
7285 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
7286 skipping Event, Device, Processor, PowerRes, ThermalZone, and
7287 BankField extended opcodes.
7288 (get_sleep_type): Add minimal scope handling (just enough to
7289 handle setting the scope to the root path).
7290 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
7291 * include/grub/acpi.h: Add enumeration values for Event, Device,
7292 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
7294 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
7296 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
7299 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7301 * grub-core/disk/ahci.c: Give more time for AHCI request.
7303 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7305 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
7308 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7310 Replace the region at 0 from coreboot tables to available in BSD
7313 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7315 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
7318 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7320 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
7323 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7325 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
7326 handling of multi-device filesystems.
7328 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7330 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
7333 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7335 Add new 'proc' filesystem framework and put luks_script into it.
7337 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
7339 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
7342 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7344 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
7346 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7348 Add ability to generate newc additions on runtime.
7350 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7352 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
7355 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
7357 * po/POTFILES.in: Regenerate.
7359 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7361 * grub-core/commands/verify.c (hashes): Add several hashes
7364 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7366 Slight improve in USB-related boot-time checkpoints.
7368 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7370 * grub-core/commands/boottime.c: Fix copyright header.
7372 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7374 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
7375 coreboot tables content. Support for cbmemc.
7377 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7379 Fix a conflict between ports structures with 2 controllers of
7382 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7384 * include/grub/boottime.h: Add missing file.
7386 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7388 Initialize USB ports in parallel to speed-up boot.
7390 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7392 Fix USB devices not being detected when requested
7393 due to delayed attach.
7395 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7397 Implement boot time analysis framework.
7399 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7401 Remove get_endpoint_descriptor and change all functions needing
7402 descriptor to just receive it as argument rather than endpoint
7405 2013-03-19 Aleš Nesrsta <starous@volny.cz>
7407 Better estimate the maximum USB transfer size.
7409 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7411 Resend a packet if we got the wrong buffer in status.
7413 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7415 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
7416 multiplication rather than division.
7418 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7420 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
7423 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7425 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
7426 operations to have intended shifts and not divisions.
7428 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7430 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
7431 intended shifts rather than division.
7433 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7435 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
7436 computation for some years before epoch. Avode confusing division
7439 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7441 * grub-core/video/i386/pc/vbe.c
7442 (grub_video_vbe_print_adapter_specific_info): Replace division by
7445 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7447 Adjust types in gdb module to have intended unsigned shifts rather than
7450 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7452 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
7453 maximum size is 4G - 1 on hfs
7455 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7457 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
7459 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7461 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
7464 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
7466 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
7467 causing gcc error with gcc 4.7.1.
7469 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7471 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
7472 dereference null pointer. While the code is technically correct, gcc
7473 may eliminate a null check if pointer is already dereferenced.
7475 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7477 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
7479 * grub-core/normal/term.c (read_terminal_list): Likewise.
7481 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7483 Lift up core size limits on some platforms. Fix potential memory
7484 corruption with big core on small memory systems. Document remaining
7487 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7489 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
7492 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7494 Remove all trampoline support. Add -Wtrampolines when
7495 present. Remove symbols used for trampolines to make
7496 link fail if trampolines are present.
7498 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7500 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
7501 append out of its parent.
7503 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7505 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
7508 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7510 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
7511 all vars to a macro. All users updated.
7513 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7515 * grub-core/disk/ieee1275/nand.c: Fix compilation on
7518 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7520 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
7522 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7524 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
7526 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7528 Move to more hookless approach in IEEE1275 devices handling.
7530 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7532 * grub-core/kern/term.c (grub_term_normal_color),
7533 (grub_term_highlight_color): Add back lost defaults.
7535 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7537 Make elfload not use hooks. Opt for flags and iterators instead.
7539 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7541 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
7542 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
7544 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7546 * grub-core/script/execute.c (gettext_append): Remove nested functions.
7548 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7550 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
7551 hook pass-through parameter. All users updated and unnested.
7553 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7555 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
7558 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7560 * grub-core/fs/hfs.c: Remove nested functions.
7562 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7564 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
7565 the context through.
7566 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
7568 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7570 * util/grub-editenv.c (list_variables): Move print_var out of its
7573 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7575 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
7578 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7580 * grub-core/gentrigtables.c: Make tables const.
7582 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7584 Remove nested functions from videoinfo iterators.
7586 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7588 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
7589 for 64-bit platforms.
7591 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7593 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
7594 a FOR_CHILDREN macro.
7596 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7598 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
7599 platform from firmware path.
7601 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7603 Enable linux16 on non-BIOS systems for i.a. memtest.
7605 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
7607 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
7609 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7611 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
7612 Fix end of table condition.
7614 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7616 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
7619 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7621 * grub-core/fs/jfs.c: Remove nested functions.
7623 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7625 * grub-core/fs/minix.c: Remove nested functions.
7627 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7629 * grub-core/fs/iso9660.c: Remove nested functions.
7631 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7633 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
7636 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7638 * util/grub-fstest.c: Remove nested functions.
7640 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7642 * grub-core/loader/machoXX.c: Remove nested functions.
7644 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
7646 Remove nested functions from disk and file read hooks.
7648 * include/grub/disk.h (grub_disk_read_hook_t): New type.
7649 (struct grub_disk): Add read_hook_data member.
7650 * include/grub/file.h (struct grub_file): Likewise.
7651 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
7656 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
7658 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
7659 Fix off by one error in enumerating extended partitions.
7661 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
7663 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
7664 memory leak if device name is not found.
7666 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7668 * grub-core/normal/menu_entry.c (update_screen): remove
7669 unused variable `off' which caused scroll down arrow to be always shown.
7671 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7673 * grub-core/normal/menu_entry.c (insert_string): fix off by one
7674 access to unallocated memory.
7676 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7678 * Makefile.util.def: Add partmap/msdos.c to common library.
7679 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
7680 * grub-core/disk/ldm.c: Check for existence of
7681 GRUB_PC_PARTITION_TYPE_LDM.
7683 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7685 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
7686 sizes and display sector size.
7688 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7690 Implement new command cmosdump.
7692 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7694 Support Openfirmware disks with non-512B sectors.
7696 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
7698 * (grub_ofdisk_get_block_size): New function.
7699 * (grub_ofdisk_prepare): Use the correct block size.
7700 * (grub_ofdisk_read): Likewise.
7701 * (grub_ofdisk_write): Likewise.
7702 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
7705 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7707 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
7709 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7711 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
7714 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7716 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
7719 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7721 Implement USBDebug (full USB stack variant).
7723 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7725 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
7726 unless they have unexpected values.
7728 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7730 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
7733 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7735 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
7736 zero-out of port structure.
7738 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7740 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
7741 of extended attributes.
7743 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
7745 * util/grub-install.in: change misleading comment about
7748 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7750 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
7751 when menu highlight color isn't set.
7753 2013-01-27 C. Masloch <pushbx@38.de>
7755 Improve FreeDOS direct loading support compatibility.
7757 * include/grub/i386/relocator.h (grub_relocator16_state):
7759 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
7761 (grub_relocator16_boot): Handle %ebp.
7762 * grub-core/lib/i386/relocator16.S: Likewise.
7763 * grub-core/loader/i386/pc/freedos.c:
7764 Load BPB to pass kernel which partition to load from.
7765 Check that kernel file is not too large.
7766 Set register dl to BIOS unit number as well.
7768 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
7770 * util/grub-reboot.in (usage): Document the need for
7772 * util/grub-set-default.in (usage): Likewise.
7773 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
7775 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7777 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
7778 than defining WORDS_BIGENDIAN manually.
7780 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7782 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
7785 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7787 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
7789 (blit_comb: add_device_width): Likewise.
7791 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7793 Remove nested functions from USB iterators.
7795 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7796 (grub_usb_controller_iterate_hook_t): Likewise.
7797 (grub_usb_iterate): Add hook_data argument.
7798 (grub_usb_controller_iterate): Likewise.
7799 (struct grub_usb_controller_dev.iterate): Likewise.
7801 Update all implementations and callers.
7803 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7805 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7806 margin when not needed.
7808 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7810 Make color variables global instead of it being per-terminal.
7812 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7814 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7817 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7819 Fix powerpc and sparc64 build failures caused by un-nesting memory
7822 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7824 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7825 parameter declarations.
7827 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7829 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7831 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7833 Improve spkmomdem reliability by adding a separator between bytes.
7835 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7837 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7838 an Acer registration utility with several sightings in the wild.
7839 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7841 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7843 Remove nested functions from filesystem directory iterators.
7845 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7846 (struct grub_fs.dir): Add hook_data argument.
7848 Update all implementations and callers.
7850 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7852 * docs/grub.texi (Multi-boot manual config): Fix typo for
7855 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7857 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7858 until after its use in generate_image.
7860 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7862 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7863 initrd size to addr_min, since the initrd will be allocated after
7866 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7868 * conf/Makefile.common: Fix autogen rules to pass definition
7869 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
7871 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7873 * include/grub/elf.h: Update ARM definitions based on binutils.
7875 2013-01-20 Aleš Nesrsta <starous@volny.cz>
7877 Split long USB transfers into short ones.
7879 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7881 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
7882 is interrupted by ESC.
7884 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7886 * util/grub-script-check.c (main): Uniform the error message.
7888 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7890 Remove nested functions from ELF iterators.
7892 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7894 Remove nested functions from device iterators.
7896 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
7897 (grub_arc_iterate_devs): Add hook_data argument.
7898 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
7899 (struct grub_ata_dev.iterate): Add hook_data argument.
7900 * include/grub/device.h (grub_device_iterate_hook_t): New type.
7901 (grub_device_iterate): Add hook_data argument.
7902 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
7903 (struct grub_disk_dev.iterate): Add hook_data argument.
7904 (grub_disk_dev_iterate): Likewise.
7905 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
7907 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
7909 * include/grub/partition.h (grub_partition_iterate_hook_t): New
7911 (struct grub_partition_map.iterate): Add hook_data argument.
7912 (grub_partition_iterate): Likewise.
7913 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
7914 (struct grub_scsi_dev.iterate): Add hook_data argument.
7918 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7920 Fix typos for "developer" and "development".
7922 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7924 Add license header to spkmodem-recv.c.
7926 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
7928 Rewrite spkmodem to use PIT for timing. Double the speed.
7930 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7932 Add new command pcidump.
7934 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7936 New terminal outputs using serial: morse and spkmodem.
7938 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7940 Improve bidi handling in entry editor.
7942 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7944 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
7945 argument to prevent name collision.
7947 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7949 Remove nested functions from script reading and parsing.
7951 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
7952 getline_data argument, passed to getline.
7953 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
7954 getline_data argument, passed to grub_parser_split_cmdline.
7955 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
7956 lexerstate->getline_data to lexerstate->getline.
7957 (grub_script_lexer_init): Add getline_data argument, saved in
7958 lexerstate->getline_data.
7959 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
7960 argument, passed to grub_script_parse.
7961 * grub-core/script/script.c (grub_script_parse): Add getline_data
7962 argument, passed to grub_script_lexer_init.
7963 * include/grub/parser.h (grub_parser_split_cmdline): Update
7964 prototype. Update all callers to pass appropriate getline data.
7965 (struct grub_parser.parse_line): Likewise.
7966 (grub_rescue_parse_line): Likewise.
7967 * include/grub/reader.h (grub_reader_getline_t): Add void *
7969 * include/grub/script_sh.h (struct grub_lexer_param): Add
7970 getline_data member.
7971 (grub_script_parse): Update prototype. Update all callers to pass
7972 appropriate getline data.
7973 (grub_script_lexer_init): Likewise.
7974 (grub_normal_parse_line): Likewise.
7976 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
7978 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
7979 static instead of nested. Rename to ...
7980 (grub_parser_execute_getline): ... this.
7981 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
7983 * grub-core/normal/main.c (read_config_file: getline): Make static
7984 instead of nested. Rename to ...
7985 (read_config_file_getline): ... this.
7986 (grub_normal_read_line): Add unused data argument.
7987 * grub-core/script/execute.c (grub_script_execute_sourcecode:
7988 getline): Make static instead of nested. Rename to ...
7989 (grub_script_execute_sourcecode_getline): ... this.
7990 * util/grub-script-check.c (main: get_config_line): Make static
7993 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7995 Remove nested functions from memory map iterators.
7997 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
7998 argument, passed to hook.
7999 * grub-core/kern/i386/coreboot/mmap.c
8000 (grub_linuxbios_table_iterate): Likewise.
8001 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
8003 (grub_machine_mmap_iterate): Add hook_data argument.
8004 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
8005 Add hook_data argument, passed to hook.
8006 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
8008 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
8010 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
8012 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
8014 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
8016 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
8018 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
8019 (grub_machine_mmap_iterate): Likewise.
8020 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
8021 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
8023 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
8024 Remove NESTED_FUNC_ATTR from here and from all users.
8025 (grub_mmap_iterate): Update prototype.
8026 (grub_efi_mmap_iterate): Update prototype. Update all callers to
8027 pass appropriate hook data.
8028 (grub_machine_mmap_iterate): Likewise.
8030 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
8031 static instead of nested.
8032 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
8034 (lsmmap_hook): ... this.
8035 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
8037 (grub_efiemu_mmap_fill: fill_hook): Likewise.
8038 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
8039 heap_init): Likewise.
8040 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
8042 (mmap_iterate_hook): ... this.
8043 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
8045 * grub-core/lib/ieee1275/relocator.c
8046 (grub_relocator_firmware_get_max_events: count): Likewise.
8047 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
8049 (grub_relocator_firmware_fill_events_iter): ... this.
8050 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
8051 hook): Likewise. Rename to ...
8052 (grub_relocator_alloc_chunk_align_iter): ... this.
8053 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
8055 (generate_e820_mmap_iter): ... this.
8056 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
8058 (count_hook): ... this.
8059 (grub_linux_boot: hook): Likewise. Rename to ...
8060 (grub_linux_boot_mmap_find): ... this.
8061 (grub_linux_boot: hook_fill): Likewise. Rename to ...
8062 (grub_linux_boot_mmap_fill): ... this.
8063 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
8064 hook): Likewise. Rename to ...
8065 (grub_fill_multiboot_mmap_iter): ... this.
8066 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
8067 hook): Likewise. Rename to ...
8068 (count_hook): ... this.
8069 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
8070 hook): Likewise. Rename to ...
8071 (grub_fill_multiboot_mmap_iter): ... this.
8072 * grub-core/loader/powerpc/ieee1275/linux.c
8073 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
8074 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
8075 Likewise. Rename to ...
8076 (alloc_phys_choose): ... this.
8077 (determine_phys_base: get_physbase): Likewise.
8078 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
8079 find_hook): Likewise.
8080 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
8081 (malloc_hook: count_hook): Likewise.
8082 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
8083 Likewise. Rename to ...
8084 (lower_hook): ... this.
8085 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8086 (upper_hook): ... this.
8087 (grub_mmap_get_post64: hook): Likewise. Rename to ...
8088 (post64_hook): ... this.
8089 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
8090 Likewise. Rename to ...
8091 (lower_hook): ... this.
8092 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8093 (upper_hook): ... this.
8094 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
8095 (grub_mmap_iterate: fill_hook): Likewise.
8096 (fill_mask): Pass addr and mask within a single struct.
8097 (grub_cmd_badram: hook): Make static instead of nested. Rename
8099 (badram_iter): ... this.
8100 (grub_cmd_cutmem: hook): Likewise. Rename to ...
8101 (cutmem_iter): ... this.
8103 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8105 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
8106 delimit path in strings using quotes.
8107 * util/getroot.c (grub_guess_root_devices): Likewise.
8108 (grub_make_system_path_relative_to_its_root): Likewise.
8109 * util/grub-probe.c (probe): Likewise.
8110 * util/ieee1275/ofpath.c (find_obppath): Likewise.
8111 (xrealpath): Likewise.
8113 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8115 Fix compilation with older compilers.
8117 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
8118 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
8120 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
8121 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
8122 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
8124 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
8125 * include/grub/crypto.h: Add type defines.
8126 * util/import_gcrypth.sed: Remove duplicate type defines.
8128 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8130 New command list_trusted.
8132 * grub-core/commands/verify.c (grub_cmd_list): New function.
8134 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8136 * util/grub-mkimage.c (generate_image): Fix "size of public key"
8139 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8141 Remove nested functions from PCI iterators.
8143 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
8144 passed to hook. Update all callers to pass appropriate hook data.
8145 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
8146 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
8147 Remove NESTED_FUNC_ATTR from here and from all users.
8148 (grub_pci_iterate): Update prototype.
8149 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
8150 instead of nested. Rename to ...
8151 (grub_cs5536_find_iter): ... this.
8152 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
8153 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
8155 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
8157 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
8159 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
8161 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
8162 * grub-core/video/radeon_fuloong2e.c
8163 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
8164 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
8165 find_card): Likewise.
8166 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
8169 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8171 * grub-core/commands/verify.c: Mark messages for translating.
8173 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8175 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
8178 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8180 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
8183 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8185 * autogen.sh: Do not try to delete nonexistant files.
8186 * util/import_gcrypth.sed: Add some missing header removals.
8188 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
8190 Clean up dangling references to grub-setup.
8191 Fixes Ubuntu bug #1082045.
8193 * docs/grub.texi (Images): Refer generally to grub-install rather
8194 than directly to grub-setup.
8195 (Installing GRUB using grub-install): Remove direct reference to
8197 (Device map) Likewise.
8198 (Invoking grub-install): Likewise.
8199 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
8200 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
8201 * util/grub-install.in (usage): Likewise.
8203 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
8204 Apply to grub-bios-setup and grub-sparc64-setup rather than to
8206 * configure.ac: Remove grub_setup output variable.
8208 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
8210 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
8211 grub-setup to grub-sparc64-setup.
8213 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8215 Import gcrypt public-key cryptography and implement signature checking.
8217 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8219 * grub-core/fs/ntfs.c: Ue more appropriate types.
8220 * grub-core/fs/ntfscomp.c: Likewise.
8221 * include/grub/ntfs.h: Likewise.
8223 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8225 Support Apple FAT binaries on non-Apple platforms.
8227 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
8228 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
8230 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
8233 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8235 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
8238 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8240 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
8241 explicitly zeroing elements.
8242 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
8243 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
8244 of elements in a structure already allocated using grub_zalloc.
8245 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
8247 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8249 * docs/grub.texi (grub_cpu): New subsection.
8250 (grub_platform): Likewise.
8252 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8254 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
8256 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8258 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
8261 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8263 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
8264 * grub-core/fs/ntfscomp.c: Likewise.
8265 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
8266 (grub_ntfs_comp): Likewise.
8268 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8270 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
8272 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
8273 of groups_per_block. All users updated.
8275 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8277 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
8278 grub_error properly.
8279 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
8280 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
8282 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8284 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
8285 always in /boot/zfs.
8286 Reported by: Yuta Satoh.
8288 2013-01-03 Yuta Satoh <nigoro>
8290 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
8293 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8295 * configure.ac: Extend -Wno-trampolines to host.
8297 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8299 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
8302 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8304 * docs/grub.texi (Invoking grub-mkrelpath): New section.
8305 (Invoking grub-script-check): Likewise.
8307 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8309 * docs/grub.texi (Invoking grub-mount): New section.
8310 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
8312 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8314 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
8315 test failures, so that a failing unit test correctly causes 'make
8318 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8320 Fix failing printf test.
8322 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
8323 '$' in the correct order when collecting type information.
8325 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8327 * docs/grub.texi (configfile): Explain environment variable
8329 (source): New section.
8330 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
8332 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
8334 Remove several trivially-unnecessary uses of nested functions.
8336 * grub-core/commands/i386/pc/sendkey.c
8337 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
8339 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
8341 (legacy_file_getline): ... this.
8342 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
8344 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
8345 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
8347 (probe_dummy_iter): ... this.
8348 * grub-core/kern/i386/coreboot/mmap.c
8349 (grub_linuxbios_table_iterate: check_signature): Likewise.
8350 * grub-core/kern/parser.c (grub_parser_split_cmdline:
8351 check_varstate): Likewise. Mark inline.
8352 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
8353 an additional parameter.
8354 (find_long: fnd_long): Likewise. Pass two additional parameters.
8355 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
8356 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
8357 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
8358 Likewise. Rename to ...
8359 (grub_cmos_find_port_iter): ... this.
8360 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
8362 (find_rtc_iter): ... this.
8364 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
8365 function directly into the function body, since it is only called
8368 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
8370 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
8371 __attribute__ ((unused)).
8372 * grub-core/video/bochs.c (find_card): Likewise.
8373 * grub-core/video/cirrus.c (find_card): Likewise.
8374 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
8375 * grub-core/video/sis315pro.c (find_card): Likewise.
8376 * grub-core/video/sm712.c (find_card): Likewise.
8378 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8380 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
8381 Fixes Savannah bug #37821.
8383 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8385 Apply program name transformations at build-time rather than at
8386 run-time. Fixes Debian bug #696465.
8388 * acinclude.m4 (grub_TRANSFORM): New macro.
8389 * configure.ac: Create output variables with transformed names for
8391 * util/bash-completion.d/grub-completion.bash.in: Use
8392 pre-transformed variables for program names.
8393 * util/grub-install.in: Likewise.
8394 * util/grub-kbdcomp.in: Likewise.
8395 * util/grub-mkconfig.in: Likewise.
8396 * util/grub-mkconfig_lib.in: Likewise.
8397 * util/grub-mknetdir.in: Likewise.
8398 * util/grub-mkrescue.in: Likewise.
8399 * util/grub-mkstandalone.in: Likewise.
8400 * util/grub-reboot.in: Likewise.
8401 * util/grub-set-default.in: Likewise.
8402 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8403 * tests/util/grub-shell-tester.in: Remove unused assignment.
8404 * tests/util/grub-shell.in: Likewise.
8405 * util/grub.d/00_header.in: Likewise.
8407 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8409 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
8411 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
8413 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
8415 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
8417 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
8418 Reported by: Eriks Latosheks <foresterlv>.
8420 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8422 * docs/grub.texi (Network): Update instructions on generating netboot
8425 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8427 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
8428 around device name if necessarry.
8430 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8432 * util/grub-install.in: Follow the symbolic link parameter added
8433 to the file command.
8435 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
8437 * util/grub-install.in: Remove stale TODO.
8439 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8441 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
8442 dynamic allocation for the bootpath buffer.
8444 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
8446 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
8449 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8451 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
8452 argument rather than font name. All users updated.
8453 (grub_gfxterm_set_window): Likewise.
8455 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
8457 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
8460 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8462 * util/getroot.c (convert_system_partition_to_system_disk): Support
8465 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8467 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
8468 infinite loop on corrupted FS.
8470 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8472 Fix big-endian mtime.
8474 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
8475 together sec and usec.
8476 (grub_ufs_dir): Use correct byteswapping for UFS time.
8478 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8480 Support big-endian UFS1.
8482 * Makefile.util.def (libgrubmods): Add ufs_be.c
8483 * grub-core/Makefile.core.def (ufs1_be): New module.
8484 * grub-core/fs/ufs_be.c: New file.
8485 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
8488 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
8490 * include/grub/types.h: Fix functionality unaffecting typo in
8491 GRUB_TARGET_WORDSIZE conditional macro.
8493 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8495 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
8497 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
8499 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
8500 that /netbsd appears first (when it exists).
8502 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
8504 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
8505 Fixes Savannah bug #37558.
8507 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
8509 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
8510 description of extract_entries_configfile.
8512 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
8514 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
8516 (grub_cmd_linux): Likewise.
8517 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
8518 preferred_lifetime. Update all users.
8520 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8522 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
8523 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
8525 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8527 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
8528 errors from grub-probe to /dev/null, not stdout.
8530 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
8532 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
8535 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
8537 * util/grub-install.in: Make the error message if $source_dir
8538 doesn't exist more useful.
8540 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
8542 Fix grub-emu build on FreeBSD.
8544 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
8545 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
8547 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
8548 implementation is currently Linux-specific.
8549 * util/getroot.c (exec_pipe): Define only on Linux or when either
8550 libzfs or libnvpair is unavailable.
8551 (find_root_devices_from_poolname): Remove unused path variable.
8553 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8555 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
8556 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
8557 should fit before end == 63.
8559 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8561 * util/grub-setup.c (write_rootdev): Remove unused core_img
8562 parameter. Update all callers.
8563 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
8564 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
8567 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8569 * util/grub-mkconfig_lib.in (grub_tab): New variable.
8570 (grub_add_tab): New function.
8571 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
8572 * util/grub.d/10_illumos.in: Likewise.
8573 * util/grub.d/10_kfreebsd.in: Likewise.
8574 * util/grub.d/10_linux.in: Likewise.
8575 * util/grub.d/10_netbsd.in: Likewise.
8576 * util/grub.d/10_windows.in: Likewise.
8577 * util/grub.d/10_xnu.in: Likewise.
8578 * util/grub.d/20_linux_xen.in: Likewise.
8579 * util/grub.d/30_os-prober.in: Likewise.
8581 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8583 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8584 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
8585 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
8586 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
8587 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
8589 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8590 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
8592 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8594 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
8596 Reported by: BURETTE, Bernard.
8598 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
8600 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
8603 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
8605 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
8606 IEEE1275 machines. Fixes powerpc-emu compilation.
8607 * include/grub/terminfo.h: Likewise.
8609 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8611 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
8613 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
8615 (efiemu_set_variable): Make vendor_guid a const pointer.
8617 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8619 Don't require grub-mkconfig_lib to generate manpages for programs.
8621 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
8622 dependencies, don't add grub-mkconfig_lib.
8623 (program): Pass empty adddeps.
8624 (script): Pass grub-mkconfig_lib as adddeps.
8626 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8628 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
8629 * util/getroot.c (grub_find_device): Likewise.
8630 (get_mdadm_uuid): Likewise.
8631 (grub_util_is_imsm): Likewise.
8632 (grub_util_pull_device): Likewise.
8633 * util/grub-probe.c (probe): Likewise.
8635 2012-09-10 Benoit Gschwind <gschwind>
8637 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
8638 (devs): Add devpath_8.
8640 2012-09-08 Peter Jones <pjones@redhat.com>
8642 * grub-core/Makefile.core.def (efifwsetup): New module.
8643 * grub-core/commands/efi/efifwsetup.c: New file.
8644 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
8645 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
8647 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
8649 2012-09-05 Jiri Slaby <jslaby@suse.cz>
8651 * configure.ac: Add SuSe path.
8653 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8657 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8659 * util/import_gcry.py: Sort cipher_files, to make build system
8660 generation more deterministic.
8662 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8664 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
8665 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
8666 (grub_set_datetime): Likewise.
8668 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8670 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
8673 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8675 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
8677 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8679 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
8681 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8683 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
8684 required for checkouts from bzr, but it may be useful for users or
8685 distributors wishing to update translations against a tarball
8686 distribution, and it can be helpful for the tarball to be a superset
8689 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8691 * Makefile.am (EXTRA_DIST): Add
8692 grub-core/tests/boot/linux.init-mips.S,
8693 grub-core/tests/boot/linux.init-ppc.S, and
8694 grub-core/tests/boot/linux-ppc.cfg.
8696 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8698 * grub-core/mmap/mips/loongson: Remove empty directory.
8700 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8702 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
8705 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8707 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
8710 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8712 * configure.ac: Strengthen the test for working -nostdinc -isystem.
8714 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8716 * po/POTFILES.in: Regenerated.
8718 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8720 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
8721 (NetBSD): New subsection.
8723 2012-07-22 Ales Nesrsta <starous@volny.cz>
8725 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
8726 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
8728 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8730 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
8731 * util/grub.d/10_hurd.in: Add missing quoting.
8732 * util/grub.d/10_illumos.in: Likewise.
8733 * util/grub.d/10_kfreebsd.in: Likewise.
8734 * util/grub.d/10_linux.in: Likewise.
8735 * util/grub.d/20_linux_xen.in: Likewise.
8737 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8739 New command `lsefi'.
8741 * grub-core/Makefile.core.def (lsefi): New module.
8742 * grub-core/commands/efi/lsefi.c: New file.
8743 * include/grub/efi/api.h: Add more GUIDs.
8745 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8747 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
8748 (grub_bsd_elf32_hook): Likewise.
8749 (grub_bsd_elf64_size_hook): Likewise.
8750 (grub_bsd_elf64_hook): Likewise.
8751 (grub_bsd_load_elf): Likewise.
8753 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8755 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
8756 if hash function is unavailable.
8757 (dec_stream_header): Likewise.
8759 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8761 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
8764 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8766 Fix coreboot compilation.
8768 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
8769 (grub_vga_text_init_real): ... this.
8770 (grub_vga_text_fini): Rename to ...
8771 (grub_vga_text_fini_real): ... this.
8773 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8775 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
8777 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8779 * grub-core/lib/legacy_parse.c: Support clear and testload.
8781 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8783 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
8785 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8787 * grub-core/fs/ext2.c: Experimental support for 64-bit.
8789 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8791 * grub-core/net/tftp.c (ack): Fix endianness problem.
8792 (tftp_receive): Likewise.
8793 Reported by: Michael Davidsaver.
8795 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8797 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8799 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8801 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8802 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8803 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8805 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8807 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8809 Reported by: Stuart Hayes.
8811 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8813 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8815 * grub-core/Makefile.core.def (mda_text): New module.
8816 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8817 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8818 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8819 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8821 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8822 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8823 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8825 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8827 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8829 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8831 * grub-core/term/i386/vga_common.c: Removed.
8832 * include/grub/i386/vga_common.h: Likewise.
8833 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8834 (grub_vga_cr_bw_read): Likewise.
8835 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8836 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8837 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8838 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8839 grub_vga_cr_read/grub_vga_cr_write.
8840 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8842 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8844 * configure.ac: Bump version to 2.00.
8845 * grub-core/normal/main.c (features): Add feature_200_final.
8847 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8848 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8850 * NEWS: Fix unclarity and language mistakes.
8852 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8854 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8855 additional size to 3 pages.
8856 Reported by: Stuart Hayes.
8858 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8860 * NEWS: Add 2.00 entry.
8862 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8864 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8865 put explicit "/" for empty path.
8866 (wildcard_expand): Improve dprintf.
8868 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8870 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
8871 it's equal to currnode. This can happen with "" symlink.
8873 2012-06-27 Yves Blusseau <blusseau@zetam.org>
8875 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
8876 echo shell command by printf command.
8878 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8880 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
8881 the value returned by firmware is the maximal position, not diumension.
8882 (grub_terminfo_output_state): Use a more sane fallback.
8884 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8886 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
8888 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8890 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
8891 frequency to 150 MHz.
8893 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8897 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
8899 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
8901 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
8903 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8905 Handle slash in HFS label.
8907 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
8908 (grub_hfs_dir): Tanslate slash.
8909 (grub_hfs_label): Don't translate slash.
8911 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8913 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
8914 network protocol listing since it introduces problematic dependency on
8917 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8919 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
8921 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8923 Init video early on yeeloong to avoid being rebooted by watchdog.
8925 * grub-core/Makefile.am (gensm712): New target.
8926 (sm712_start.S): Likewise.
8927 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
8928 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
8929 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
8931 * include/grub/vga.h: Move registry definitions to...
8932 * include/grub/vgaregs.h: ... here.
8934 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8936 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
8939 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8941 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
8942 platforms with firmware disk drivers in the core.
8944 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8946 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
8947 informative verbose message.
8948 (read_lv): Handle 64-bit segment size.
8950 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8952 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
8954 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8956 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
8957 character but still remove trainling spaces.
8958 (grub_fat_label): Ignore archive flag.
8960 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8962 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
8963 cast between linux_kernel_header and linux_kernel_params.
8965 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8967 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
8969 (grub_raid6_recover_func_t): Likewise.
8970 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
8971 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
8973 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8975 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
8977 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
8981 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
8982 [__NetBSD__]: Add explicit cast before bitshift.
8984 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8986 * configure.ac: Bump to 2.00~rc1.
8988 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8990 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
8993 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8994 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
8996 * docs/grub.texi: Fix search syntax.
8997 (Multi-boot manual config): Put msdos rather than GPT example.
8998 Grammar corrections.
9000 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9002 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
9004 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9006 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
9008 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9010 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
9011 message on double free. Put the value of magic in case of mismatch.
9013 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9015 Speed-up video on yeeloong.
9017 * grub-core/video/sm712.c (framebuffer): Remove render_target and
9019 (grub_video_sm712_video_fini): Unmap cached_ptr.
9020 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
9021 (grub_video_sm712_set_active_render_target): Removed.
9022 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9023 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
9026 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9028 Avoid flushing the same line multiple times on loongson.
9030 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
9031 Step in 32 bytes and not 1 byte.
9032 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
9035 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9037 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
9040 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9042 Implement flow control for http.
9044 * grub-core/net/http.c (parse_line): Handle response 206.
9045 (http_receive): Stall if too many packets are in the queue.
9046 (http_establish): Fix range header.
9047 (http_seek): Fix double free.
9048 (http_close): Likewise.
9049 (http_packets_pulled): New function.
9050 (grub_http_protocol): Set http_seek
9051 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
9052 (ack_real): Set window depending on i_stall.
9053 (grub_net_send_tcp_packet): Likewise.
9054 (grub_net_tcp_stall): New function.
9055 (grub_net_tcp_unstall): Likewise.
9056 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
9057 (grub_net_tcp_unstall): Likewise.
9059 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9061 * grub-core/net/tftp.c: Decrease stall to 50 packets.
9063 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9065 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
9067 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9069 * tests/util/grub-shell.in: Fix a typo.
9071 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9073 Implement flow control for tftp.
9075 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
9076 packets but stop only if stop condition is satisfied.
9077 (grub_net_fs_read_real): Call packets_pulled after real read. Use
9078 `stall' instead of `eof' as stop condition.
9079 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
9080 (http_err): Likewise.
9081 * grub-core/net/tftp.c (ack): Replace the first argument with data
9083 (tftp_receive): Stall if too many packets are in wait queue.
9084 (tftp_packets_pulled): New function.
9085 (grub_tftp_protocol): Set packets_pulled.
9086 * include/grub/net.h (grub_net_packets): New field count.
9087 (grub_net_put_packet): Increment count.
9088 (grub_net_remove_packet): Likewise.
9089 (grub_net_app_protocol): New field `packets_pulled'.
9090 (grub_net): New field `stall'.
9092 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9094 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
9095 sync part to handle them.
9097 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9099 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
9100 * grub-core/net/drivers/ieee1275/ofnet.c
9101 (grub_ieee1275_net_config_real): Likewise.
9103 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9105 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
9106 the direct route for server/gateway.
9108 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9110 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
9111 IP address to server name since we may not hame the DNS.
9113 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9115 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
9116 freeing random buffer on failure.
9117 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
9119 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9121 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
9123 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9125 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
9127 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
9128 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
9129 Handle malloc error correctly.
9131 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9133 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
9136 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9138 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
9141 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9143 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
9144 none is explicitly specified.
9146 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9148 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
9151 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9153 Respect netmask from bootp/dhcp.
9155 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
9156 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
9157 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
9159 (grub_net_add_ipv4_local): ... this.
9160 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
9161 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
9162 (grub_net_add_ipv4_local): New proto.
9164 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9166 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
9167 determining EFI memory map size.
9169 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9171 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
9173 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9175 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
9176 when looking for partition separator.
9178 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9180 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9183 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9185 Restructure FAT driver to avoid hook in label reading as it hits a
9188 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
9189 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
9190 (grub_fat_iterate_dir): Split into ...
9191 (grub_fat_iterate_init): ... this, ...
9192 (grub_fat_iterate_fini): ... this, ...
9193 (grub_fat_iterate_dir_next): ... and this. All users updated.
9195 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9197 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
9198 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
9199 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9200 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
9201 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
9202 New fields last_key and last_key_time.
9203 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
9204 extended key-esc into extended key-extended key.
9206 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9208 Avoid unnecessary memcpy of whole video buffer.
9210 * grub-core/video/fb/video_fb.c (dirty): New struct.
9211 (framebuffer): Add members current_dirty and previous_dirty.
9212 (dirty): New function.
9213 (grub_video_fb_fill_rect): Update dirty.
9214 (common_blitter): Likewise.
9215 (grub_video_fb_scroll): Likewise.
9216 (doublebuf_blit_update_screen): Copy only dirty part.
9217 (doublebuf_pageflipping_update_screen): Likewise.
9218 (grub_video_fb_doublebuf_blit_init): Init dirty.
9219 (doublebuf_pageflipping_init): Likewise.
9220 (grub_video_fb_setup): Likewise.
9222 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9224 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
9227 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9229 Fix wildcard regexp dot and other special characters handling.
9230 Reported by: Robert Mabee.
9232 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
9233 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
9234 (split_path): Trigger expansion on '?'.
9235 (unescape): New function.
9236 (wildcard_expand): Unescape parts copied without globbing.
9237 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
9238 (grub_script_arglist_to_argv): Don't unescape expansions.
9240 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9242 * include/grub/net.h (grub_net_card): New member txbufsize.
9243 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
9244 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9245 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
9246 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
9248 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
9249 compatible property to check for macs. Set
9250 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9251 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
9252 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
9253 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
9254 (send_card_buffer): Use txbuf.
9255 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
9256 nested function out of the parent while on it.
9258 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9260 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
9262 (grub_ieee1275_net_config_real): Fix config pointer.
9264 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9266 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
9267 filename parsing to non-block devices.
9269 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9271 * grub-core/kern/device.c (grub_device_open): Remove dead code.
9273 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9275 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
9278 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9280 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
9281 UUID search command even if hints probing failed.
9283 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9285 * po/POTFILES.in: Regenerated.
9287 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9289 Speed-up video on fuloong.
9291 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
9293 (grub_pci_device_unmap_range): Handle non-cached address.
9294 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
9296 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
9297 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
9298 (grub_video_sis315pro_set_active_render_target): Removed.
9299 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
9300 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9301 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
9303 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
9306 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9308 * docs/grub.texi (Multi-boot manual config): New section.
9310 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9312 Avoid slow read-back from VRAM.
9314 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9316 * grub-core/video/fb/video_fb.c
9317 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
9318 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
9319 (front_target): Remove front_target. Add pages.
9320 (grub_video_fb_init): Skip setting front_pages.
9321 (grub_video_fb_fini): Likewise.
9322 (doublebuf_blit_update_screen): Use pages.
9323 (grub_video_fb_doublebuf_blit_init): Likewise.
9324 (doublebuf_pageflipping_init): Allocate offscreen buffer.
9325 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
9326 (grub_video_fb_setup): Prefer doublebuffing.
9328 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9330 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
9333 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9337 * tests/util/grub-shell.in: Handle loongson.
9338 * tests/partmap_test.in: Add loongson to the list of platform using ATA
9340 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
9341 Reboot instead of shutdown if REBOOT is defined.
9343 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9345 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
9346 sized ports since unlike on real hardware qemu supports only 32-bit
9349 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9351 * Makefile.util.def (grub-mkrescue): Enable on loongson.
9352 * util/grub-mkrescue.in: Handle loongson.
9354 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
9356 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
9357 Set is_part appropriately.
9358 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
9359 names. Canonicalize partition without full disk.
9361 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9363 Revert usb-quiesce since it's wrong.
9365 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
9366 (grub_ofdisk_init): Don't do quiesce.
9368 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9370 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
9371 PowerMac workaround to Xserves as well.
9372 Information supplied by: Benjamin Herrenschmidt.
9374 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9376 Don't assume that beginning address is also the entry point on ppc.
9378 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
9379 (grub_linux_boot): Use linux_entry.
9380 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
9381 (grub_linux_load64): Likewise.
9383 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9385 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
9387 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9389 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
9390 needlessly lose the console.
9392 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9394 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
9397 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9399 Remove non-functional EFI grub_get_rtc. Put a better fatal message
9400 than current grub_get_rtc() not implemented when booted with
9401 coreboot without TSC.
9403 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
9404 Add machine/time.h to kernel headers on loongson.
9405 * grub-core/Makefile.core.def (kernel): Remove
9406 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
9407 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
9408 (grub_get_rtc): Likewise.
9409 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
9410 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
9411 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
9412 * grub-core/kern/i386/tsc.c (grub_tsc_init)
9413 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
9414 rather than installing known non-working time source.
9415 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
9416 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
9417 * include/grub/time.h: Don't include machine/time.h.
9418 * include/grub/efi/time.h: Removed.
9419 * include/grub/i386/efi/time.h: Likewise.
9420 * include/grub/i386/ieee1275/time.h: Likewise.
9421 * include/grub/powerpc/ieee1275/time.h: Likewise.
9422 * include/grub/sparc64/ieee1275/time.h: Likewise.
9423 * include/grub/x86_64/efi/time.h: Likewise.
9425 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9427 Remove dot on i and j when combining with above diacritics.
9429 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
9431 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
9432 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
9433 with dotless variants when any combining above is present.
9435 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9437 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
9438 text and not binary.
9440 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9442 Stop polling as soon as we have the packet we were waiting for.
9444 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
9446 * grub-core/net/arp.c (have_pending): New var.
9447 (pending_req): Likewise.
9448 (grub_net_arp_send_request): Fill pending_req and use have_pending as
9450 (grub_net_arp_receive): Set have_pending.
9451 * grub-core/net/dns.c (recv_data): New field stop.
9452 (recv_hook): Set stop.
9453 (grub_net_dns_lookup): Init stop and use as stop condition.
9454 * grub-core/net/http.c (http_establish): Use headers_recv as stop
9456 * grub-core/net/net.c (grub_net_poll_cards): New argument
9457 stop_condition. Stop when it goes true.
9458 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
9460 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
9462 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9464 Keep TX and RX buffers on EFI rather than always allocate new ones.
9466 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
9467 card. All users updated.
9468 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
9469 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
9470 (get_card_packet): Likewise.
9471 (grub_efinet_findcards): Init new fields.
9473 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9475 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
9476 compilation error on sparc64.
9478 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9480 Use ITC on IA64 rather than broken routine based on daytime.
9482 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
9484 (grub_get_rtc) [__ia64__]: Likewise.
9485 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
9486 (get_itc): New function.
9487 (grub_rtc_get_time_ms): Likewise.
9488 (grub_machine_init): Calibrate ITC.
9489 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
9490 Keep only on non-ia64. Don't export since it's broken and used only
9491 if TSC is unavailable.
9493 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9495 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
9497 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
9498 Skip if parent is unused.
9500 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9502 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
9504 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9506 Fix wildcard escaping.
9508 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
9509 * grub-core/script/execute.c (wildcard_escape): .. to here.
9511 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
9512 * grub-core/script/execute.c (wildcard_unescape): .. to here.
9514 * grub-core/script/execute.c (gettext_append): Always escape.
9515 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
9516 * grub-core/script/yylex.l: Don't cut away the escaping.
9517 * tests/grub_script_echo1.in: Add tests with wildcard.
9519 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9521 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
9522 (ftdi_hw_configure): Likewise.
9523 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
9525 (real_config): Handle 1.5 stop bits.
9526 (pl2303_hw_configure): Likewise.
9528 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9530 * Makefile.am: Add ppc linux bootcheck.
9531 * grub-core/tests/boot/linux-ppc.cfg: New file.
9532 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
9534 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9536 * tests/grub_script_expansion.in: Skip network protocols.
9538 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9540 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
9542 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9544 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
9548 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9550 ESCC serial driver for conducting sautomated tests in qemu.
9551 Not tested on real hardware.
9553 * include/grub/serial.h (grub_serial_port): New field escc_desc.
9554 * grub-core/term/ieee1275/escc.c: New file.
9555 * grub-core/Makefile.core.def (escc): New module.
9557 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9559 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
9561 (serial_hw_fetch): Don't read invalid handle.
9562 (serial_hw_put): Don't write into invalid handle.
9564 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9566 Add a 1.5 stop bits value.
9568 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
9569 * include/grub/serial.h (grub_serial_stop_bits_t): Add
9570 GRUB_SERIAL_STOP_BITS_1_5.
9572 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9574 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
9575 value rather than let it uninited.
9577 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9579 * grub-core/commands/wildcard.c (+check_file): New function.
9580 (wildcard_expand): Don't expand to non-existing files, expand with
9581 suffix and not attempt to expand if not needed.
9583 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9585 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
9586 out of partitions containing other partitions.
9588 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9590 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
9591 on some qemu versions with GRUB.
9593 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
9595 (grub_openbsd_bootarg_pcibios): New struct.
9596 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
9599 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9601 * tests/util/grub-shell.in: Trim firmware output on EFI.
9603 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9605 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
9606 and coreboot since it's already in kernel.
9608 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9610 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
9611 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9612 to here. New return value start. All users updated.
9613 Recursively scan linear mappings.
9614 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
9616 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9617 Use grub_util_get_dm_node_linear_info.
9618 * util/getroot.c (convert_system_partition_to_system_disk): Use
9619 grub_util_info rather than grub_dprintf.
9620 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
9622 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9624 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
9626 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
9627 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
9629 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9631 * include/grub/types.h (grub_set_unaligned64): New function.
9632 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
9635 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9637 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
9638 (grub_ofdisk_fini): Quiesce USB devices.
9640 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9642 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
9645 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9647 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
9649 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9651 * grub-core/disk/pata.c (grub_pata_pio_read)
9652 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
9653 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
9655 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9657 Extend automated tests to qemu-mips.
9659 * Makefile.am: reorganise tests and enable qemu-mips.
9660 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
9661 * grub-core/tests/boot/linux.init-mips.S: New file.
9662 * tests/partmap_test.in: Handle ata0 disks.
9663 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
9666 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9668 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
9670 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
9673 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9675 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
9676 (grub_halt): Likewise.
9677 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
9679 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9681 * grub-core/term/serial.c (grub_serial_register)
9682 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
9683 the behaviour in line with x86 platforms.
9685 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9687 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
9688 (grub_ata_strncpy): Likewise.
9689 (grub_ata_identify): Add missing byteswaps.
9691 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9693 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
9695 (screen_read_char): Likewise.
9696 (grub_vga_text_cls): Likewise.
9698 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9700 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
9702 (make_file_path): Likewise.
9704 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9706 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
9708 Tested by: Paulo Flabiano Smorigo.
9709 Crucial information about API supplied by: Coleen <Last name unknown>.
9710 Reviewed by: Coleen <Last name unknown>.
9712 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9714 * util/grub-mkimage.c: Disable -Wcast-align.
9716 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9718 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
9721 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9723 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
9725 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9727 * util/grub-probe.c (escape_of_path): Fix double free.
9729 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9731 * grub-core/commands/videoinfo.c (hook): Show pitch.
9733 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9735 * util/grub.d/20_linux_xen.in: Skip xen-syms.
9737 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9739 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
9740 (probe): Add ieee1275 to OFW devices.
9742 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9744 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
9746 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9748 Handle IBM OFW path.
9750 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
9752 (of_path_of_scsi): Handle vdevice.
9754 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9756 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
9757 Allocate in multiples of 16 to avoid adding a few bytes free region the
9760 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9762 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
9763 Allocate in multiples of 16 to avoid adding a few bytes free region the
9765 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
9767 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9769 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
9771 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
9772 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
9774 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
9776 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
9778 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9780 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
9781 resulted in \\ at the end of the line.
9783 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9785 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
9786 (grub_parser_cmdline_state): Likewise.
9787 (grub_parser_split_cmdline): Likewise.
9789 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9791 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
9792 /dev/root and /dev/dm-*.
9794 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9796 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9797 fix partially stale display.
9799 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9801 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9804 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9806 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9807 Fix MBR remapping workaround.
9808 (grub_util_biosdisk_read) [__linux__]: Likewise.
9810 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9812 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9814 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9816 * configure.ac: Bump to beta6.
9818 2012-05-31 Christer Weinigel <christer@weinigel.se>
9820 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9822 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9824 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9825 (grub_cmd_linux): Likewise.
9827 2012-05-31 Christer Weinigel <christer@weinigel.se>
9831 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9832 (GRUB_EHCI_MULT_TWO): Likewise.
9833 (GRUB_EHCI_MULT_THREE): Likewise.
9834 (GRUB_EHCI_CMASK_MASK): New enum value.
9835 (GRUB_EHCI_SMASK_MASK): Likewise.
9836 (GRUB_EHCI_CMASK_OFF): Likewise.
9837 (GRUB_EHCI_SMASK_OFF): Likewise.
9838 (grub_ehci_pci_iter): Enable periodic schedule.
9839 (grub_ehci_parse_notrun): Likewise.
9840 (grub_ehci_restore_hw): Likewise.
9841 (grub_ehci_setup_qh): Set flags for low speed transfers.
9842 (grub_ehci_find_qh): Use periodic list for low speed.
9843 (grub_ehci_setup_transfer): Check periodic queue as well.
9844 (grub_ehci_check_transfer): Likewise.
9845 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9847 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9849 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9852 2012-05-31 Peter Jones <pjones@redhat.com>
9854 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9855 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9856 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9858 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9860 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9861 uninited variable. Allocate at least setup_sects.
9863 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9865 Fix handling of EFI with big memory maps.
9867 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9868 (real_mode_mem): Likewise.
9869 (real_mode_target): Likewise.
9870 (real_mode_pages): Likewise.
9871 (prot_mode_pages): Likewise.
9872 (linux_params): New var.
9873 (linux_cmdline): Likewise.
9874 (free_pages): Don't set real mode variables.
9875 (allocate_pages): Don't allocate real mode memory.
9876 (grub_e820_add_region): Remove the limit.
9877 (grub_linux_boot): Allocate and copy real mode memory.
9878 (grub_linux_unload): Free linux_cmdline.
9879 (grub_cmd_linux): Use temporary storage for parameters.
9880 (grub_cmd_initrd): Likewise.
9881 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
9882 (linux_kernel_params): Make it 1K big.
9884 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9886 * Makefile.util.def: Remove -Wno-format.
9887 * grub-core/Makefile.core.def: Likewise.
9889 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9891 * tests/cmp_unit_test.c: Add missing failure message.
9892 * tests/example_unit_test.c: Likewise.
9893 * tests/printf_unit_test.c: Likewise.
9895 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9897 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
9898 relaxation of protective MBR requirements.
9900 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9902 * configure.ac: Add condition for COND_HOST_XNU.
9903 * Makefile.util.def (10_xnu): New script.
9904 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
9906 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9908 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
9911 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9913 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
9914 Binary on other platforms stays identical.
9916 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9918 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
9921 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9923 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
9925 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9927 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
9928 rather than defining size_t ourselves to avoid conflict.
9930 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9932 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
9933 initialisation to avoid __bzero reference.
9935 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9937 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
9939 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
9940 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
9941 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
9942 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
9943 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
9945 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9947 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
9948 * grub-core/kern/misc.c: Likewise.
9949 * grub-core/loader/i386/xnu.c: Likewise.
9950 * include/grub/i386/tsc.h: Likewise.
9951 * include/grub/symbol.h: Likewise.
9953 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9955 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
9956 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
9959 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9961 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
9962 Implement Apple flavour.
9963 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
9965 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9967 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
9968 (memmove) [__APPLE__]: Likewise.
9969 (memcpy) [__APPLE__]: Likewise.
9970 (memset) [__APPLE__]: Likewise.
9971 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
9972 (memmove) [__APPLE__]: Likewise.
9973 (memcpy) [__APPLE__]: Likewise.
9974 (memset) [__APPLE__]: Likewise.
9976 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9978 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
9981 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9983 * grub-core/normal/main.c (read_config_file): Provide config_file and
9985 * util/grub.d/41_custom.in: Use config_directoy when available.
9987 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9989 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
9990 (grub_bfs_dir): Likewise.
9992 2012-05-27 Peter Jones <pjones@redhat.com>
9994 The old code gives arguments to a printf function which can't work
9995 correctly, and the compiler complains.
9997 * grub-core/tests/example_functional_test.c (example_test): Add
9999 * grub-core/tests/lib/test.c (add_failure): Rewrite.
10000 * include/grub/test.h (grub_test_assert_helper): New declaration.
10001 (grub_test_assert): Use grub_test_assert_helper.
10003 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10005 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
10006 (exfctest): ... this to avoid overlong filenames.
10009 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10011 Handle "." and ".." on squashfs.
10013 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
10014 Make inode numbers into stack.
10015 (grub_squash_read_symlink): Use stack.
10016 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
10017 (make_root_node): Fill stack.
10018 (grub_squash_open): Use stack.
10020 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10022 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
10025 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10027 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
10028 stderr on test calls.
10030 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10032 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
10034 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10036 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
10038 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10040 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
10043 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10045 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
10046 (grub_hfsplus_iterate_dir): Add "." and "..".
10048 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10050 * grub-core/fs/cpio.c (canonicalize): Handle "..".
10051 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
10053 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10055 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
10056 (find_path): Handle "." and "..".
10058 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10060 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
10061 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
10062 (grub_affs_iterate_dir): Handle hardlinks.
10064 2012-05-26 Matthew Garrett <mjg@redhat.com>
10066 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
10067 (grub_efi_console_fini): Likewise.
10068 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
10069 (grub_video_gop_fill_mode_info): Rename to ...
10070 (grub_video_gop_fill_real_mode_info): ... this.
10071 (grub_video_gop_fill_mode_info): New function.
10072 (grub_video_gop_setup): Setup double framebuffer.
10073 (grub_video_gop_get_info_and_fini): Use original framebuffer.
10075 (grub_video_gop_swap_buffers): Copy framebuffer.
10076 (grub_video_gop_fini): Free offscreen buffer.
10077 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
10079 (grub_efi_gop_blt_pixel): New struct.
10081 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10083 * gentpl.py: Remove error disabling for objconv.
10085 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10087 * configure.ac: Remove -Wunitialized as it's not available on older
10090 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10092 Fix extent overflow comparator.
10094 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
10095 (grub_hfsplus_read_block): Set type.
10096 (grub_hfsplus_cmp_extkey): Compare type.
10098 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
10100 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
10102 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10104 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
10107 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10109 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
10110 (dejavu_bold_14.pf2): New target.
10112 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10114 * configure.ac: Fix djvu font detection.
10116 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10118 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
10119 ext* instead of ext2.
10121 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10123 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
10126 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
10128 * docs/grub-dev.texi: Remove dot from .png.
10130 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10132 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
10133 protective entry in any slot.
10134 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
10135 if protective entry is found in any slot.
10137 Protective entry in non-first slot make no sense but is a widespread
10140 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10142 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
10144 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10146 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
10148 (grub_reiserfs_open): Don't free root.
10150 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10152 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
10153 after freeing for safety.
10155 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10157 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
10158 Reported by: Jordan Uggla.
10160 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
10162 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
10163 actual implementation. Specifically, clarify that the grub menu will
10164 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
10167 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
10169 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
10172 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10174 Remove unjustified hard dependency of normal.mod on gfxterm.
10176 * include/grub/term.h (grub_term_output): New member fullscreen.
10177 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
10178 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
10179 (grub_gfxterm): Set .fullscreen.
10180 * grub-core/normal/menu.c (menu_init): Use fullscreen.
10181 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
10183 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10185 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
10186 mentioning possible problems with non-ASCII (non-compliant) ISOs.
10187 Mention case-insensitive AFFS, SFS and JFS.
10189 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10191 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
10193 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10195 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10198 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10200 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
10201 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
10203 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10205 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
10206 (grub_jfs_mount): Fill caseins.
10207 (grub_jfs_find_file): Respect caseins.
10209 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10211 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
10214 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10216 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
10217 New argument origpath. All users updated.
10219 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10221 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
10222 (read_attr): Ensure that we read start of possibly compressed block.
10224 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10226 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
10227 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
10230 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10232 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
10233 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
10234 (dejavu.pf2): Replace with ...
10235 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
10238 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10240 * util/grub.d/20_linux_xen.in: Add missing line.
10242 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10244 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
10245 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
10246 (grub_utf16_to_utf8): Likewise.
10248 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10250 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
10251 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
10252 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10253 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
10254 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
10255 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
10257 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10259 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10262 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10264 * grub-core/fs/udf.c (read_string): Bail out on size=0.
10265 (grub_udf_read_symlink): Handle read_string failure.
10267 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10269 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
10272 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10274 Fix handling of UDF symlinks.
10276 * grub-core/fs/udf.c (read_string): New argument outbuf.
10278 (grub_ufs_read_symlink): Rename to ...
10279 (grub_udf_read_symlink): ... this. All users updated.
10280 Handle symlinks with more than one component.
10282 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10284 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
10285 symlinks. Replace leading colon with a slash.
10287 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10289 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
10292 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10294 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
10295 match in inner node.
10297 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10299 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
10300 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
10301 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
10302 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
10303 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
10304 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
10305 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
10306 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
10307 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
10309 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10311 Use grub-probe and not cmp to check that disk is empty.
10313 * util/grub-install.in: Use grub-probe for zero-check.
10314 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
10315 (probe): Handle PRINT_ZERO_CHECK.
10316 (argp_parser): Handle -t zero_check.
10318 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10320 Flush block cache on adding disk to device map.
10322 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
10323 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
10325 (read_device_map): Likewise.
10326 (open_device): Flush on opening.
10328 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10330 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
10331 (handle_symlink): Fix off-by-one error.
10332 Canonicalize the target.
10333 (grub_cpio_dir): Canonicalize the name.
10336 (grub_cpio_open): Canonicalize the name.
10338 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10340 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
10343 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10345 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
10346 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
10348 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10350 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
10351 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
10354 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10356 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
10359 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10361 Fix UFS1 big file support.
10363 * grub-core/fs/ufs.c (INODE): Removed.
10364 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
10366 (INODE_MODE): Simplify.
10367 (grub_ufs_inode): Use uint64_t for size and not int64_t.
10368 (grub_ufs_lookup_symlink): Don't use INODE.
10370 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10372 Fix minixfs with non-power-of-two blocks since it's supported by minix.
10374 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
10375 (grub_minix_data): Replace log_block_size with block_size.
10376 (grub_minix_read_file): Use block_size but avoid 64-bit division.
10377 (grub_minix_mount): Fill block_size.
10379 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10381 * configure.ac: Bump to beta5.
10383 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10385 Fix wrapped HFS+ handling.
10387 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
10388 blocks_start. All users updated.
10389 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
10391 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
10393 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10395 Fix long symlinks on reiserfs.
10397 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
10398 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
10399 (grub_reiserfs_iterate_dir): Save size for non-directories.
10400 (grub_reiserfs_open): Don't reread stat block as we already know the
10402 (grub_reiserfs_read): Split into...
10403 (grub_reiserfs_read_real): ... and ...
10404 (grub_reiserfs_read): ...this.
10406 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10408 Fix non-indexed JFS.
10410 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
10411 (grub_jfs_data): New field namecomponentlen.
10412 (grub_jfs_mount): Fill namecomponentlen.
10413 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
10415 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10417 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
10418 * tests/grub_script_echo1.in: Add tests.
10420 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10422 * util/grub-install.in: Ignore empty devicetree directory.
10424 2012-05-08 Bean <bean123ch@gmail.com>
10426 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
10428 (free_rsm): Free header as well.
10429 (free_old_fragments): Fix memory leak.
10430 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
10431 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
10432 (destroy_pq): Likewise.
10433 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
10435 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10437 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
10438 resulting hash as a precaution.
10440 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10442 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
10443 '_' in variable names.
10444 * grub-core/net/net.c (grub_net_network_level_interface_register):
10447 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10449 Fix AFFS with non-512B blocks.
10451 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
10452 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
10453 (grub_affs_data): Replace blocksize with log_blocksize.
10454 (grub_affs_read_block): Fix non-512B blocks.
10455 (grub_affs_read_symlink): Likewise.
10456 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
10457 (grub_affs_read): Fix non-512B blocks.
10458 (grub_affs_label): Likewise.
10459 (grub_affs_mtime): Likewise.
10460 (grub_affs_mount): Fix block detection routine.
10462 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10464 Add filesystem mtime to AFFS.
10466 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
10467 (aftime2ctime): New function.
10468 (grub_affs_dir): Use aftime2ctime.
10469 (grub_affs_label): Fix return value.
10470 (grub_affs_mtime): New function.
10471 (grub_affs_fs): Add mtime.
10473 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10475 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
10478 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10480 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
10483 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10485 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
10487 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10489 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
10491 (FLAGS_CASE_SENSITIVE): New enum value.
10492 (cache_entry): New struct.
10493 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
10494 cache_size and cache.
10495 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
10496 Add log_blocksize and fshelp_flags.
10497 (grub_sfs_read_extent): Handle non-512 blocks.
10498 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
10499 (grub_sfs_read_file): Handle non-512 blocks.
10500 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
10502 (grub_sfs_read_symlink): Handle non-512 blocks.
10503 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
10504 (grub_sfs_dir): Free cache.
10505 (grub_sfs_close): Likewise.
10507 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10509 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
10512 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10514 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
10516 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10518 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
10520 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10522 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
10523 (grub_sfs_read_extent): Likewise.
10524 (grub_sfs_read_block): Likewise.
10525 (grub_sfs_mount): Likewise.
10526 (grub_sfs_iterate_dir): Likewise.
10527 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
10528 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
10530 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10532 Fix errors on compressed NTFS with 512B clusters.
10534 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
10536 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
10538 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
10539 Relax check for inline extents.
10540 (ntfscomp): Return correct -1 on error and not 0.
10542 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10544 * util/grub-install.in: Fix handling of prefix containing spaces.
10546 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10548 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
10549 (grub_squash_read_data): Fix offset byte-swapping.
10551 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10553 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
10554 per common usage and preffered in several parts of code.
10555 (grub_memcmp): Likewise.
10556 (grub_strncmp): Likewise.
10557 * include/grub/misc.h (grub_strcasecmp): Likewise.
10558 (grub_strncasecmp): Likewise.
10559 * Makefile.util.def (cmp_test): New test.
10560 (grub_script_strcmp): Likewise.
10561 * tests/cmp_unit_test.c: New file.
10562 * tests/grub_script_strcmp.in: Likewise.
10563 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
10565 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10567 * include/grub/pci.h: Move enums into no-asm part.
10569 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10571 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
10573 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
10575 * util/getroot.c (find_hurd_root_device): Try to make error message
10576 and comments to translators clearer.
10578 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10580 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
10582 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10584 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
10587 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10589 * docs/grub.cfg: Update.
10591 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10593 * docs/grub.texi (PXE): Remove not present variables.
10595 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10597 * grub-core/net/net.c (defserver_set_env): New function.
10598 (defserver_get_env): Likewise.
10599 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
10601 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10603 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
10606 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10608 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
10609 * grub-core/kern/emu/hostdisk.c: Likewise.
10611 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10613 Handle hurd userspace partitions.
10615 * util/getroot.c (find_hurd_root_device): New function.
10616 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
10618 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10620 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
10622 Reported by: Bastian Blank.
10624 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10626 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
10627 crossing page boundary.
10629 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10631 Fix B-tree search in BFS, especially in presence of non-ASCII
10634 * grub-core/fs/bfs.c (bfs_strcmp): New function.
10635 (find_in_b_tree): Use standard bsearch + btree algorithm.
10637 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10639 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
10642 2012-05-03 Matthew Garrett <mjg@redhat.com>
10643 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10645 Suspend broadcom cards in order to stop their DMA.
10647 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
10648 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
10649 (pci): Don't build on x86 EFI.
10650 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
10651 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
10653 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
10654 stop_broadcom if running on EFI.
10655 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
10656 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
10657 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
10658 (grub_pci_find_capability): New proto.
10660 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10662 * docs/grub.texi: Remove dot from the extension as it apparently
10663 doesn't work with some makeinfo versions.
10665 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10667 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
10668 with GRUB expectance.
10670 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10672 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
10674 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10676 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
10677 zero after directory block since last entry may be not 0-terminated if
10678 it ends on block boundary. Use continue instead of if spanning whole
10681 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10683 Support 4K sectors UDF inline files.
10685 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
10686 (grub_udf_extended_file_entry): Likewise.
10687 (grub_fshelp_node): Name the anonymous union. Put block at the end.
10689 (get_fshelp_size): New function.
10690 (grub_udf_read_icb): Read whole block.
10691 (grub_udf_iterate_dir): Likewise.
10692 (grub_udf_dir): Likewise.
10693 (grub_udf_open): Likewise.
10695 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10697 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
10699 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10701 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
10702 inline symlinks in addition to workaround.
10704 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10706 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
10708 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10710 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
10712 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10714 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
10716 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10718 Fix reiserfs big seek times.
10720 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
10721 exact. All users updated.
10722 (grub_reiserfs_read): Use nearest btree search for seeking.
10723 Fix return value on error.
10725 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10727 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
10729 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
10730 * docs/grub.texi: Update menuentry description.
10732 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10734 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
10735 crash when embedding onto filesystem.
10737 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10739 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
10742 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10744 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
10746 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10748 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
10751 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10752 2012-05-01 Bean <bean123ch@gmail.com>
10754 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
10756 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10758 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
10759 Special behaviour for len = 0 to read whole file isn't used anywhere and
10760 can cause buffer ovewrflows in several places.
10762 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10764 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
10766 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10768 Handle RAIDZ on non-512B sectors.
10770 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
10771 max_children_ashift.
10772 (fill_vdev_info_real): Fill max_children_ashift.
10773 (read_device): Use max_children_ashift.
10775 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10777 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
10779 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10781 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
10783 * docs/grub.texi: Update device.map parts.
10785 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10787 Don't scan into non-diskfilter devices having diskfilter names.
10789 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
10790 (scan_disk): New argument accept_diskfilter. Fix recursion depth
10792 (scan_disk_hook): New function.
10794 2012-04-29 Bean <bean123ch@gmail.com>
10796 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10799 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10801 * configure.ac: Detect starfield theme font path
10802 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10804 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10806 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10807 geometry on serial consoles.
10809 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10811 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10812 because of network consoles.
10814 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10816 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10819 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10821 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10822 falls on Q syndrom.
10824 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10826 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10827 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10829 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10831 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10832 Allocate at lest 8192 for temporary buffer as required for lzo.
10834 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10836 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10837 to cluster_bits, since it's already added in.
10838 (grub_fat_read_data): Likewise.
10840 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10842 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10843 as long as cluster size is multiple of 512 bytes.
10845 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10847 * util/grub-mkrescue.in: Fix locale directory.
10849 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10851 * grub-core/kern/emu/hostdisk.c (map): Make static.
10853 2012-04-23 Bean <bean123ch@gmail.com>
10855 * util/grub-fstest.c (fstest): Add missing break.
10857 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10861 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10862 not define nr variable.
10863 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10864 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10865 grub_find_device): Do not define.
10867 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10869 Fix kfreebsd compile and behaviour.
10871 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
10873 * util/getroot.c: Fix wait.h include.
10874 (grub_guess_root_devices): Error if grub_find_device fails.
10875 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
10876 (grub_util_get_dev_abstraction): Likewise.
10877 (grub_util_pull_device): Likewise.
10878 (grub_util_get_grub_dev): Likewise.
10879 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
10881 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10883 Fix and unify wholedisk detection.
10885 * util/getroot.c (convert_system_partition_to_system_disk): New argument
10886 is_part. All users updated.
10887 (device_is_wholedisk): Removed.
10888 (grub_util_biosdisk_get_grub_dev): Use is_part.
10890 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10892 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
10895 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10897 * configure.ac: Bump to beta4.
10899 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10901 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
10902 --fs-uuid --set UUID syntax.
10904 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10906 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
10909 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10911 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
10913 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
10915 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
10917 2012-04-18 Mike Gilbert <floppym@gentoo.org>
10919 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
10921 2012-04-18 Bean <bean123ch@gmail.com>
10923 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
10926 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10928 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
10930 (grub_util_biosdisk_read): Handle Linux partitions not exactly
10931 corresponding to GRUB partitions.
10932 (grub_util_biosdisk_write): Likewise.
10934 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10936 Scan mdraid before LVM.
10938 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
10939 (grub_diskfilter_register_front): ... this.
10940 (grub_diskfilter_register_back): New function.
10941 All users of grub_diskfilter_register updated.
10943 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10945 * util/grub-install.in: Fix an automatic target detection bug.
10947 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10949 * util/grub-install.in: New option --efi-directory.
10951 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
10953 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
10954 boot services if we have no other choice.
10956 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
10958 * util/grub-mknetdir.in: Rename --override-directory to --directory and
10960 * tests/util/grub-shell.in: Update to --directory.
10962 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10964 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
10966 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10968 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
10969 (grub_minix_read_file): Likewise.
10970 (grub_minix_read_inode): Likewise.
10971 (grub_minix_find_file): Likewise.
10972 (grub_minix_dir): Likewise.
10974 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10976 * util/grub-setup.c (setup): Fix partition handling and blocklist
10979 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10981 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
10982 redundant buggy overlap check.
10984 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10986 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
10989 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10991 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
10992 kh.loadflags on pre-2.00 kernels.
10994 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10996 Terminate UNDI and PXE before launching the payload to avoid problems
10999 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
11000 (grub_loader_flags): ... this. All users updated.
11001 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
11002 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
11003 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
11004 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
11006 (grub_pxe_restore): Likewise.
11007 (fini_hnd): New var.
11008 (GRUB_MOD_INIT): Register shutdown hook.
11009 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
11010 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
11011 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
11012 (grub_loader_set): Rename second argument to flags.
11014 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11016 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
11018 (grub_get_num_of_utf8_bytes): New function.
11019 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
11020 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
11022 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
11023 (grub_ucs4_to_utf8): Change return type.
11025 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11027 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
11029 * grub-core/fs/bfs.c (hop_level): Likewise.
11030 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
11032 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11034 * grub-core/lib/adler32.c: Recode due to license unclearness.
11036 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11038 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
11039 (test_header): Likewise.
11041 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11043 Fix --help formatting.
11045 * util/grub-mkconfig_lib.in (print_option_help): New function.
11046 (grub_fmt): Likewise.
11047 * util/grub-install.in: Use print_option_help and grub_fmt.
11048 * util/grub-kbdcomp.in: Likewise.
11049 * util/grub-mkconfig.in: Likewise.
11050 * util/grub-mknetdir.in: Likewise.
11051 * util/grub-mkrescue.in: Likewise.
11052 * util/grub-mkstandalone.in: Likewise.
11053 * util/grub-reboot.in: Likewise.
11054 * util/grub-set-default.in: Likewise.
11055 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11057 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11059 * linguas.sh: Remove autogenerated *.po.
11061 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11063 * po/README: Move language fetcing to ...
11064 * linguas.sh: ... here.
11065 * po/README: Point to linguas.sh.
11067 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11069 * po/README: Exclude ko.po due to disclaimer problems.
11071 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11073 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
11075 (grub_gettext_translate_real): Handle 0th string.
11076 (grub_gettext_translate): Ensure that "" isn't translated.
11078 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11080 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
11081 TRANSLATORS comment.
11082 (grub_diskfilter_print_partmap): Propagate changing of error into
11085 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11087 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
11088 to uint64_t to prevent overflow.
11089 (grub_diskfilter_lv): Increase start_extent and extent_count
11090 to uint64_t to prevent overflow.
11092 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11094 * configure.ac: Increase version.
11096 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11098 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
11100 * po/Rules-translit: New file.
11101 * po/arabic.sed: Likewise.
11102 * po/cyrillic.sed: Likewise.
11103 * po/greek.sed: Likewise.
11104 * po/hebrew.sed: Likewise.
11105 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
11106 * po/Makefile.in.in: Add extra_dist4.
11108 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11110 Handle big-endian minixfs (fixes minixfs tests on bigendian).
11112 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
11113 modify names. Introduce MODE_BIGENDIAN.
11114 * grub-core/fs/minix_be.c: New file.
11115 * grub-core/fs/minix2_be.c: Likewise
11116 * grub-core/fs/minix3_be.c: Likewise.
11117 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
11119 * grub-core/Makefile.core.def (minix_be): New module.
11120 (minix2_be): Likewise.
11121 (minix3_be): Likewise.
11123 2012-04-01 Felix <email@hamburg.de>
11125 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
11126 (devs): Add MBP 2011.
11128 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11130 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
11132 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11134 * grub-core/normal/cmdline.c (print_completion): New field
11136 (grub_cmdline_get): Handle width properly.
11138 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11140 * grub-core/commands/lsacpi.c (options): Add missing terminator.
11142 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11144 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
11145 after 29th of February.
11147 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11149 Fix exfat endianness handling.
11151 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
11152 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
11153 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
11154 Byte-swap utf16 when necessary.
11155 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
11157 2012-03-31 Anton Blanchard <anton@samba.org>
11158 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11160 Fix btrfs endianness handling.
11162 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
11163 (lower_bound): Make root uint64_t. Use root in le.
11164 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
11165 (find_path): Fix template key init.
11166 (grub_btrfs_dir): Fix mtime byteswap.
11167 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
11169 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11171 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
11172 recursion_depth. Break infinite resursions. All users updated.
11174 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11176 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
11178 Reported by: Peter Jones.
11180 2012-03-31 Anton Blanchard <anton@samba.org>
11182 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
11185 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11187 * util/grub-install.in: Fix nvram call for PreP.
11189 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11191 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
11192 the error when some elements are missing into a warning.
11194 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11196 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
11198 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
11200 * docs/grub.texi (Invoking grub-probe): New section.
11201 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
11203 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
11205 Fix tab and wide character handling in editor and menu.
11207 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
11208 agglomerate control characters with combining marks.
11209 (bidi_line_wrap): Allow break on tab.
11210 (grub_unicode_get_comb_start): New function.
11211 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
11213 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
11215 * grub-core/normal/term.c (print_ucs4_terminal): New argument
11216 fixed_tab_size. All users updated.
11217 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
11218 (grub_term_getcharwidth): Handle \t.
11219 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
11222 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11224 Handle big-endian mdraid.
11226 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
11227 * grub-core/Makefile.core.def (mdraid09_be): New module.
11228 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
11229 rather than grub_le_to_cpu* and grub_cpu_to_le*.
11230 * grub-core/disk/mdraid_linux_be.c: New file.
11232 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11234 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
11236 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11238 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11239 missing quotes which caused confusion among translators.
11241 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11243 * util/grub-mkconfig_lib.in: Fix typo.
11245 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11247 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
11249 * tests/grub_script_leading_whitespace.in: New file.
11250 * Makefile.util.def (grub_script_leading_whitespace): New test.
11252 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11254 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
11257 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11259 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
11260 starts with control character.
11262 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11264 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
11266 (grub_gdb_outbuf): Likewise.
11268 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11270 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
11271 zero terminator. Fixes a crash.
11273 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11275 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
11277 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
11278 images independently of preffered adderss field.
11280 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11282 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
11283 * grub-core/commands/regexp.c: Likewise.
11284 * grub-core/loader/i386/linux.c: Likewise.
11285 * grub-core/partmap/msdos.c: Likewise.
11286 * grub-core/script/execute.c: Likewise.
11287 * grub-core/term/gfxterm.c: Likewise.
11289 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11291 Add variable parsing in $"..." and fix several mismatches with bash.
11293 * Makefile.util.def (grub_script_gettext): New test.
11294 * grub-core/script/execute.c (parse_string): New function.
11295 (gettext_append): Likewise.
11296 (grub_script_arglist_to_argv): Use gettext_append.
11297 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
11298 * tests/grub_script_gettext.in: New file.
11300 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11302 Fix handling of leading spaces in scripts.
11304 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
11306 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
11307 other than skipping \r. All users updated.
11308 * tests/grub_script_echo1.in: Add space-related tests.
11309 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
11311 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11313 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
11315 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11317 * configure.ac: Bump up the version to beta2.
11319 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11321 Fix gettext reload bugs (e.g. inability to disable gettext
11324 * grub-core/gettext/gettext.c: Encapsulate all static variables in
11325 main_context and secondary_context. All functions updated.
11326 (grub_gettext_translate): Rename to ...
11327 (grub_gettext_translate_real): ... this. Return NULL on failed
11329 (grub_gettext_translate): Handle secondary context.
11330 (grub_gettext_delete_list): Close file and zero-out the context.
11331 (grub_mofile_open): Don't call grub_gettext_delete_list.
11333 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
11334 if locale="" to avoid pointless error message.
11335 (grub_gettext_env_write_lang): Update lang even if load fails.
11336 Handle secondary context.
11337 (grub_gettext_reread_prefix): New function.
11338 (read_main): Likewise.
11339 (read_secondary): Likewise.
11340 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
11341 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
11342 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
11343 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
11345 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11347 * configure.ac: Decrease warning level to avoid spurious warnings and
11348 to be able to compile with GCC 4.2.
11349 * Makefile.util.def: Remove -Wno-error=logical-op.
11351 2012-03-10 William Bittner <william.bittner@gmail.com>
11353 * util/import_unicode.py: Add missing brackets around string for
11356 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11358 Fix efi chainloader on network root.
11360 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
11362 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
11365 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11367 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
11368 unused show_text member.
11369 * docs/grub.texi: Document "text" property.
11371 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11373 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
11376 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11378 Fix IMSM handling on Fedora.
11380 * util/getroot.c (grub_util_is_imsm): New function.
11381 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
11383 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11385 * Makefile.am: Strip gold section.
11386 * conf/Makefile.common: Likewise.
11387 * gentpl.py: Likewise.
11388 * grub-core/Makefile.core.def: Likewise.
11389 * grub-core/genmod.sh.in: Likewise.
11391 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11393 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
11394 * util/grub.d/20_linux_xen.in: Likewise.
11395 Based on Debian patch.
11397 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11399 * util/grub.d/10_linux.in: Fix syntax error resulting in
11400 Richard Laager's patch.
11401 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
11403 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11405 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
11408 2012-03-10 Richard Laager <rlaager@wiktel.com>
11410 * util/grub.d/10_linux.in: Fix ZFS root passing.
11412 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11414 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11415 * grub-core/commands/xnu_uuid.c: Likewise.
11416 * grub-core/loader/efi/appleloader.c: Likewise.
11417 * grub-core/script/execute.c: Likewise.
11418 * grub-core/script/main.c: Likewise.
11419 * util/grub-mkfont.c: Likewise.
11421 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11423 * util/grub-mkfont.c (options): Use more appropriate "select" that
11424 "set" for face index.
11426 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11428 * util/grub-editenv.c (options): Gettextize command summaries.
11430 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11432 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
11433 "out of memory" error messagge.
11435 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11437 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
11438 of diskfilter for diskfilter on diskfilter support.
11440 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11442 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
11444 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11446 * util/grub-install.in: Check for themes/starfield/theme.txt and not
11449 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11451 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
11453 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11455 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
11457 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11459 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
11462 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11464 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
11466 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11468 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
11470 * util/grub-install.in: Fix and gettextize error message.
11472 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11474 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
11476 * util/grub-mount.c (options): Likewise.
11478 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11480 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
11482 * grub-core/commands/search_wrap.c (options): Likewise.
11484 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11486 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
11488 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11490 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
11492 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
11495 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11497 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
11498 "temporary" since it's used in identifier and is limited in space.
11500 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11502 * po/POTFILES.in: Regenerate. Include *.h since they contain
11503 translatable strings as well.
11505 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11507 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
11508 byte-swap on big-endian.
11509 Reported by: Lennart Sorensen
11511 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11513 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
11514 (allocate_pages): Improve dprintf.
11515 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
11516 code32_start. Fill code32_start and kernel_alignment in params.
11517 (grub_cmd_initrd): Use prot_init_space.
11519 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11521 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
11523 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11525 * util/grub-install.in: Add missing dot at the end of sentence.
11527 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11529 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11530 * grub-core/commands/videotest.c: Likewise.
11531 * grub-core/loader/i386/linux.c: Likewise.
11533 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11535 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
11537 Reported by: Milo Casagrande.
11539 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11541 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
11542 * grub-core/commands/gptsync.c: Likewise.
11543 * grub-core/commands/hashsum.c: Likewise.
11544 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11545 * grub-core/commands/legacycfg.c: Likewise.
11546 * grub-core/io/gzio.c: Likewise.
11547 * grub-core/net/net.c: Likewise.
11548 * grub-core/term/gfxterm.c: Likewise.
11549 * grub-core/term/terminfo.c: Likewise.
11550 * grub-core/tests/test_blockarg.c: Likewise.
11551 * grub-core/video/video.c: Likewise.
11552 * util/grub-install.in: Likewise.
11553 * util/grub-mkfont.c: Likewise.
11555 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11557 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
11559 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11561 * grub-core/commands/search_wrap.c (options): Fix a typo.
11562 Reported by: David Prévot.
11564 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11566 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
11569 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11571 * util/grub-script-check.c (main): Fix a syntax error message which was
11574 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11576 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
11578 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11580 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
11583 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11585 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
11587 * util/grub-mount.c (options): Likewise.
11589 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11591 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
11593 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11595 * grub-core/net/http.c: Add TRANSLATORS comments.
11596 * grub-core/normal/cmdline.c: Likewise.
11597 * grub-core/normal/misc.c: Likewise.
11598 * grub-core/partmap/msdos.c: Likewise.
11599 * grub-core/parttool/msdospart.c: Likewise.
11600 * grub-core/script/execute.c: Likewise.
11601 * grub-core/script/main.c: Likewise.
11602 * grub-core/term/terminfo.c: Likewise.
11603 * grub-core/video/bitmap.c: Likewise.
11604 * util/grub-install.in: Likewise.
11605 * util/grub-mkimage.c: Likewise.
11606 * util/grub-mklayout.c: Likewise.
11607 * util/grub-setup.c: Likewise.
11609 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11611 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
11612 with similar messages in grub-fstest.
11614 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11616 * util/grub-install.in: Unify "option requires an argument" message
11617 with similar messages in other files.
11618 * util/grub-mkconfig.in: Likewise.
11620 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11622 * util/grub-set-default.in: Replace printf with gettext_printf (the
11623 string in in question is already translated from grub-reboot)
11625 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11627 * configure.ac: Bump up the version to beta1.
11629 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11631 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
11632 case when min_align = 0.
11634 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11636 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
11637 and fix a case when line_start overflows.
11639 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11641 * util/grub-reboot.in (usage): Mention id posibility.
11642 * util/grub-set-default.in (usage): Likewise.
11644 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11646 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
11647 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
11648 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11649 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11650 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11651 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11652 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11654 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11656 * grub-core/commands/menuentry.c (options): Remove
11657 GRUB_ARG_OPTION_REPEATABLE.
11658 Reported by: Andreas Vogel
11660 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
11662 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
11664 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
11666 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
11669 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11671 Use sort -V by the idea of Georgi Georgiev.
11673 * util/grub-mkconfig_lib.in (version_sort): New function.
11674 (version_test_numeric): Use version_sort.
11676 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11678 Use submenus in grub-mkconfig.
11680 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
11681 * util/grub-mkconfig_lib.in (grub_quote): New function.
11682 (gettext_printf): Use gettext and not gettext_quoted to fix several
11684 * util/grub.d/10_hurd.in: Use submenus.
11685 * util/grub.d/10_kfreebsd.in: Likewise.
11686 * util/grub.d/10_linux.in: Likewise.
11687 * util/grub.d/10_netbsd.in: Likewise.
11688 * util/grub.d/20_linux_xen.in: Likewise.
11689 * util/grub.d/30_os-prober.in: Likewise.
11690 * util/grub.d/10_illumos.in: Add missing quoting.
11691 * util/grub.d/10_windows.in: Likewise.
11693 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11695 Fix menu title instability bug.
11697 * grub-core/commands/menuentry.c (options): New option --id.
11698 (grub_normal_add_menu_entry): New argument id. All users updated.
11699 (grub_cmd_menuentry): Handle --id.
11700 (grub_menu_init): Accept unknown arguments.
11701 * grub-core/normal/main.c (features): Add feature_menuentry_id and
11702 feature_menuentry_options.
11703 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
11705 (get_entry_number): Match with id as well.
11706 * include/grub/menu.h (grub_menu_entry): New member id.
11707 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
11708 * util/grub.d/00_header.in: Define menuentry_id_option.
11709 * util/grub.d/10_hurd.in: Define id.
11710 * util/grub.d/10_illumos.in: Likewise.
11711 * util/grub.d/10_kfreebsd.in: Likewise.
11712 * util/grub.d/10_linux.in: Likewise.
11713 * util/grub.d/10_netbsd.in: Likewise.
11714 * util/grub.d/10_windows.in: Likewise.
11715 * util/grub.d/20_linux_xen.in: Likewise.
11716 * util/grub.d/30_os-prober.in: Likewise.
11718 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11720 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
11721 "scope" with "body".
11723 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11725 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
11726 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
11727 prot_size and prot_file_size.
11729 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11731 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
11732 All users updated. If easily=1 require raid-5/-6 to be full.
11733 (is_node_readable): Likewise.
11734 (scan_devices): Scan incomplete but readable LVs at the end.
11735 (grub_diskfilter_memberlist): Pull missing devices.
11736 (insert_array): Skip scanning until device is complete or scan is
11738 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
11740 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
11741 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
11743 2012-03-03 Matthew Garrett <mjg@redhat.com>
11744 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11746 Avoid EFI boot services when loading Linux.
11748 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
11749 avoid_efi_bootservices. All users updated.
11750 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
11751 argument avoid_efi_bootservices. All users updated.
11752 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
11753 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
11754 align, min_align, relocatable, prefered_address. All users updated.
11755 Allocate avoiding boot services if kernel is relocatable.
11756 (grub_cmd_linux): Check if kernel is relocatable.
11757 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
11758 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
11759 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
11760 avoid_efi_boot_services.
11761 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
11762 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
11763 (linux_kernel_params): Likewise.
11765 2012-03-03 Matthew Garrett <mjg@redhat.com>
11766 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11770 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
11772 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
11773 modes. Set gop_handle.
11774 (grub_video_gop_get_edid): New function.
11775 (grub_gop_get_preferred_mode): Likewise.
11776 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
11777 (grub_video_efi_gop_adapter): Set .get_edid.
11778 * include/grub/efi/edid.h: New file.
11779 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
11781 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11783 * util/grub-install.in: Load efivars unconditionally.
11785 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11787 * po/Rules-piglatin: Change suffix from .po-update-en to
11788 .po-update-en-piglatin.
11790 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11794 * po/piglatin.sed: New file.
11795 * po/en@piglatin.header: Likewise.
11796 * po/Rules-piglatin: Likewise.
11797 * po/README: Add en@piglatin to autogenerated languages.
11799 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11801 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11803 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11804 "Check" since we don't check anything.
11805 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11807 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11808 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11809 (grub_md_sha512_real): Likewise.
11811 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11813 * grub-core/commands/gptsync.c: Fix typographic quoting.
11814 * grub-core/commands/ieee1275/suspend.c: Likewise.
11815 * grub-core/commands/parttool.c: Likewise.
11816 * grub-core/commands/search_wrap.c: Likewise.
11817 * grub-core/commands/videoinfo.c: Likewise.
11818 * grub-core/gfxmenu/gui_label.c: Likewise.
11819 * grub-core/hello/hello.c: Likewise.
11820 * grub-core/kern/emu/main.c: Likewise.
11821 * grub-core/net/net.c: Likewise.
11822 * grub-core/normal/menu.c: Likewise.
11823 * grub-core/normal/menu_text.c: Likewise.
11824 * grub-core/normal/misc.c: Likewise.
11825 * util/grub-editenv.c: Likewise.
11826 * util/grub-install.in: Likewise.
11827 * util/grub-kbdcomp.in: Likewise.
11828 * util/grub-mkconfig.in: Likewise.
11829 * util/grub-mknetdir.in: Likewise.
11830 * util/grub-mkrescue.in: Likewise.
11831 * util/grub-mkstandalone.in: Likewise.
11832 * util/grub-reboot.in: Likewise.
11833 * util/grub-set-default.in: Likewise.
11834 * util/grub-setup.c: Likewise.
11835 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11837 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11839 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11840 * grub-core/commands/keystatus.c: Likewise.
11841 * grub-core/commands/loadenv.c: Likewise.
11842 * grub-core/commands/probe.c: Likewise.
11843 * grub-core/commands/regexp.c: Likewise.
11844 * grub-core/commands/true.c: Likewise.
11845 * grub-core/commands/videoinfo.c: Likewise.
11846 * grub-core/disk/cryptodisk.c: Likewise.
11847 * grub-core/disk/ldm.c: Likewise.
11848 * grub-core/disk/loopback.c: Likewise.
11849 * grub-core/disk/luks.c: Likewise.
11850 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11851 * grub-core/kern/disk.c: Likewise.
11852 * grub-core/kern/emu/hostdisk.c: Likewise.
11854 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11856 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11857 * util/grub-install.in: Add missing quote in the comment.
11859 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11861 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11862 * grub-core/commands/lsmmap.c: Likewise.
11863 * grub-core/commands/minicmd.c: Likewise.
11864 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11865 * grub-core/commands/regexp.c: Likewise.
11866 * grub-core/gdb/gdb.c: Likewise.
11867 * grub-core/term/gfxterm.c: Likewise.
11868 * util/grub-mkconfig.in: Likewise.
11869 * util/grub-mkfont.c: Likewise.
11870 * util/grub-mklayout.c: Likewise.
11871 * util/grub-mknetdir.in: Likewise.
11872 * util/grub-mkrescue.in: Likewise.
11873 * util/grub.d/30_os-prober.in: Likewise.
11875 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11877 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
11878 with "Direct color" and "Packed" with "Packed pixel".
11879 (grub_cmd_videoinfo): Simplify legend.
11881 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11883 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11884 absolutely unclear error message.
11886 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11888 * util/grub-mkstandalone.in: Remove confusing leftover print.
11890 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11892 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
11894 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
11895 (GRUB_MOD_INIT): Likewise.
11896 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
11898 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
11900 * util/grub-install.in (usage): Likewise.
11901 Spell ID in whole letters.
11902 Add missing ending dot.
11904 * util/grub-reboot.in: Fix capitalisation.
11905 * util/grub-set-default.in: Likewise.
11907 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11909 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
11910 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
11911 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
11912 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
11913 Disable -Werror for -Wdeprecated-declarations.
11914 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
11915 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
11916 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
11917 (grub_util_get_grub_dev): Make luks handling dependent on
11918 HAVE_DEVICE_MAPPER and not __linux__.
11919 (get_win32_path): Fix format security.
11920 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
11921 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
11922 Don't try grub_find_zpool_from_dir.
11923 (grub_make_system_path_relative_to_its_root) [!__linux__]:
11924 #ifdef-out paresdir.
11926 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11928 * util/grub-pe2elf.c (usage): Add missing noreturn.
11929 (write_section_data): Rename name to shname to avoid shadowing.
11930 (write_symbol_table): Rename name to symname to avoid shadowing.
11931 Fix write_reloc_section call.
11933 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11935 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
11936 to ensure that it's after the last byte of .text.
11938 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11940 * util/ieee1275/ofpath.c (my_isdigit): New function.
11941 (trailing_digits): Use my_isdigit.
11942 (strip_trailing_digits): Likewise.
11944 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11946 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
11947 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
11949 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11951 * grub-core/kern/i386/pc/startup.S: Define __start.
11953 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11955 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
11956 strip already transforms he format.
11958 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11960 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
11962 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11964 * util/grub-install.in: Add missing gettext init.
11965 * util/grub-kbdcomp.in: Likewise.
11966 * util/grub-mkconfig.in: Likewise.
11967 * util/grub-mknetdir.in: Likewise.
11968 * util/grub-mkrescue.in: Likewise.
11969 * util/grub-mkstandalone.in: Likewise.
11970 * util/grub-reboot.in: Likewise.
11971 * util/grub-set-default.in: Likewise.
11972 * util/grub.d/00_header.in: Likewise.
11973 * util/grub.d/10_hurd.in: Likewise.
11974 * util/grub.d/10_windows.in: Likewise.
11975 * util/grub.d/30_os-prober.in: Likewise.
11976 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11978 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11980 * po/Rules-swiss: Fix header comment.
11982 2012-02-29 Andreas Vogel <anvoit>
11984 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
11985 resulted in leak of arguments.
11987 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11989 * grub-core/boot/i386/pc/startup_raw.S: Use separate
11990 reed_solomon_size const definition instead of computing it since
11991 Apple assembler doesn't support the later.
11993 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11995 * gentpl.py (kernel): Rewrite Apple part.
11997 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11999 * include/grub/kernel.h (FOR_MODULES): Check module magic.
12001 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12003 * util/grub-mkimagexx.c (locate_sections): Support non-standard
12005 (load_image): Likewise.
12007 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12009 * configure.ac: Fix a typo in previous commit.
12011 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12013 Don't add -Wl,-N on Apple platform.
12015 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
12016 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
12018 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12020 * grub-core/Makefile.core.def (lzma_decompress): Use
12021 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
12023 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12025 * grub-core/genmod.sh.in: Rewrite the Apple part.
12027 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12029 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
12032 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12034 * acinclude.m4 (grub_CHECK_PIC): New test.
12035 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
12037 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12039 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
12040 to avoid the warning.
12042 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12044 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
12045 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
12046 after. All users updated.
12048 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12050 Use the common size routine in hostfs so we can read disks as well.
12052 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
12053 (grub_util_get_fd_size): ... this. Return size in bytes.
12055 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
12056 grub_util_get_fd_size.
12058 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12060 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
12061 Add blocksize retrieval.
12063 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12065 * configure.ac: Restore CFLAGS after efiemu check.
12067 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12069 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
12072 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12074 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
12076 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12078 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
12079 (grub_cmd_halt): Likewise.
12081 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12083 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
12084 for local arithmetics.
12085 Break %sp init into 2 instructions.
12086 Add 0 byte at the end.
12088 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12090 * grub-core/disk/diskfilter.c (read_segment): Initialise err
12093 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12095 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
12098 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12100 * grub-core/disk/ldm.c (make_vg): Init part.name.
12101 (grub_ldm_detect): Silence spurious warning.
12102 (grub_util_is_ldm): Likewise.
12104 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12106 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
12107 sane value to avoid a spurious warning.
12109 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12111 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
12112 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
12114 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12116 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
12117 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
12119 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12121 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
12122 hardcoding the relevant info.
12124 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12126 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
12127 missing const qualifiers.
12128 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
12130 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12132 * util/getroot.c [__APPLE__]: Add missing includes.
12133 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
12135 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12137 * util/grub-mkimage.c (generate_image): Silence spurious warning.
12139 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12141 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
12144 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12146 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
12148 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12150 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
12151 and grub_file_close call.
12153 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12155 Add LZSS Mach-O support (needed for new xnu kernelcache).
12157 * grub-core/Makefile.core.def (xnu): Add file lzss.c
12158 * grub-core/loader/lzss.c: New file.
12159 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
12160 on Mach-O open failure.
12161 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
12162 Don't free cmdsXX in uncompressedXX is set.
12163 (grub_macho_file): Init new fields.
12164 New argument is_64bit. All users updated.
12165 Handle compressed. Error out if no suitable architecture is found.
12167 (grub_macho_open): New argument is_64bit. All users updated.
12168 * grub-core/loader/macho32.c: Add defines for new fields.
12169 * grub-core/loader/macho64.c: Likewise.
12170 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
12171 (grub_macho_parse): Handle compressed.
12172 Defer actual processing if compressed.
12173 (grub_macho_cmds_iterate): Decompress if compressed. New argument
12174 "filename". All users updated.
12175 (grub_macho_size): New argument "filename". All users updated.
12176 (grub_macho_get_entry_point): Likewise.
12177 (grub_macho_load): Handle compressed.
12178 * include/grub/macho.h (grub_macho_lzss_header): New struct.
12179 (GRUB_MACHO_LZSS_OFFSET): New define.
12180 (grub_decompress_lzss): New proto.
12181 * include/grub/machoload.h (grub_macho_file): New fields to handle
12183 (grub_macho_contains_macho64): Remove proto.
12184 (grub_macho_contains_macho32): Likewise.
12185 * util/grub.d/30_os-prober.in: Use kernel cache if available.
12187 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12189 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
12191 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12195 * Makefile.am (starfield_theme_files): New var.
12196 (starfield_DATA): Use starfield_theme_files.
12197 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
12198 Add bootcheck-related files.
12199 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
12200 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
12201 and font_char_metrics.txt.
12202 * grub-core/Makefile.core.def (kernel): Update extra_dist.
12203 (setjmp): Add lib/ia64/longjmp.S.
12204 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
12205 * po/POTFILES.in: Regenerate.
12206 * po/Rules-swiss: use DISTFILES.common.extra2 and not
12207 DISTFILES.common.extra1.
12208 * util/devicemap.c: Removed.
12209 * grub-core/lib/i386/relocator_backward.S: Likewise.
12210 * util/import_gcry.py: Remove unused files. Add extra_dist for
12213 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12215 * grub-core/gettext/gettext.c (grub_mofile_open): Call
12216 grub_gettext_delete_list before changing grub_gettext_max to avoid
12217 running out of array bounds.
12219 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12221 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
12222 grub_vga_text_init/grub_vga_text_fini.
12224 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12226 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
12228 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12230 * configure.ac: Bump to 2.00~beta0.
12232 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12234 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
12235 missing initialisation.
12237 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12239 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
12241 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12243 Support v2 xnu boot arguments.
12245 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
12246 New argument fsbfreq_out.
12247 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
12248 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
12250 * grub-core/loader/machoXX.c (grub_macho_load): New argument
12252 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
12253 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
12254 (grub_xnu_boot_params): Rename to ...
12255 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
12256 (grub_xnu_boot_params_v2): New struct.
12258 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12260 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
12261 zeroing of CRC field before computing CRC.
12263 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12265 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
12266 Change order of allocations to decrease fragmentation.
12268 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12270 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
12272 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12274 Use write-combining MTRR to speed up video with buggy BIOSes.
12276 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
12277 (cpuid): New define.
12280 (mtrr_base): Likewise.
12281 (mtrr_mask): Likewise.
12282 (grub_vbe_enable_mtrr_entry): New function.
12283 (grub_vbe_enable_mtrr): Likewise.
12284 (grub_vbe_disable_mtrr): Likewise.
12285 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
12286 control off to BIOS.
12287 (grub_video_vbe_init): Fill mtrr.
12288 (grub_video_vbe_fini): Disable mtrr.
12289 (grub_video_vbe_get_info_and_fini): Likewise.
12290 (grub_video_vbe_setup): Enable mtrr.
12292 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12294 * include/grub/partition.h (grub_partition_map): Change prototype of
12295 embed to take a maximum value for nsectors.
12296 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
12297 * include/grub/fs.h (grub_fs): Likewise.
12298 * grub-core/partmap/msdos.c (embed_signatures): New array.
12299 (pc_partition_map_embed): Check for and avoid sectors matching any
12300 of the signatures in embed_signatures, up to max_nsectors.
12301 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
12302 returned sector map to max_nsectors.
12303 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
12304 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
12305 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
12306 * util/grub-setup.c (setup): Allow for the embedding area being
12307 split into multiple blocklists. Tell dest_partmap->embed the
12308 maximum number of sectors we care about.
12310 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12312 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
12313 Specify blocklist_install and reserver_first_sector for all fs.
12314 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
12317 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12319 * util/grub-install.in: Clarify strings.
12320 Fix source dir check.
12322 2012-02-27 Richard Laager <rlaager@wiktel.com>
12324 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
12325 "zfs" and "fuse.zfs" as synonyms.
12327 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12329 * configure.ac: Put platform and target_cpu substitutions back since
12330 they are used for directories.
12332 2012-02-27 Richard Laager <rlaager@wiktel.com>
12333 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12335 * util/grub.d/10_linux.in: Add ZFS-related arguments.
12336 * util/grub.d/20_linux_xen.in: Likewise.
12338 2012-02-27 Richard Laager <rlaager@wiktel.com>
12340 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
12343 2012-02-27 Richard Laager <rlaager@wiktel.com>
12345 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
12348 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12350 Don't use insecure popen in getroot.
12352 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
12353 (exec_pipe): ... here.
12354 (find_root_devices_from_poolname): Use exec_pipe.
12356 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12358 Remove platform and target_cpu replacement.
12360 * configure.ac: Remove platform and target_cpu substitutions.
12361 * tests/util/grub-shell.in: Use modinfo.
12362 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
12365 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12367 Autodetect platform in grub-install but allow override.
12369 * util/grub-install.in: Autodetect platform. Support --target and
12370 --directory. Read platform from modinfo.sh.
12372 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12374 Support btrfs multi-volume probe.
12376 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
12377 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
12378 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
12379 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
12380 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
12381 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
12382 grub_find_root_devices_from_btrfs if on btrfs.
12384 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12386 Remove any awareness of *.c util files about target.
12388 * Makefile.util.def (grub-setup): Split to ...
12389 (grub-bios-setup): ... and this.
12390 (grub-sparc64-setup): ... and this.
12391 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
12392 * docs/man/grub-setup.h2m: Split into ...
12393 * docs/man/grub-sparc64-setup.h2m: ... this.
12394 * docs/man/grub-bios-setup.h2m: ... and this.
12395 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
12396 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
12397 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
12398 (grub_target_addr_t): Remove.
12399 (grub_target_size_t): Remove.
12400 (grub_target_ssize_t): Remove.
12401 * util/grub-install.in: Use new grub-*-setup.
12402 * util/grub-mkimagexx.c (Elf_Word): New define.
12403 (Elf_Half): Likewise.
12404 (Elf_Section): Likewise.
12405 (ELF_ST_TYPE): Likewise.
12406 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
12407 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
12409 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12411 Replace grub_target_addr with more appropriate types.
12413 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
12414 grub_target_addr with grub_addr.
12415 * grub-core/commands/iorw.c (grub_cmd_read): Replace
12416 grub_target_addr with grub_port.
12417 (grub_cmd_write): Likewise.
12418 * grub-core/commands/memrw.c (grub_cmd_read): Replace
12419 grub_target_addr with grub_addr.
12420 (grub_cmd_write): Likewise.
12421 * grub-core/video/efi_uga.c (find_line_len): Likewise.
12423 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12425 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
12426 const qualifier for vendor_guid.
12428 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12430 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
12432 (efiemu_memequal): Likewise.
12433 (find_variable): Likewise.
12435 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12437 Fix missing console prototype on qemu-mips.
12439 * include/grub/mips/qemu_mips/console.h: New file.
12441 2012-02-27 Matthew Garrett <mjg@redhat.com>
12442 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12444 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
12445 * include/grub/efi/efi.h: Likewise.
12446 * include/grub/efi/api.h: Add guid for EFI-specified variables.
12447 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
12448 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
12449 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
12450 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
12451 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
12453 2012-02-27 Matthew Garrett <mjg@redhat.com>
12455 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
12457 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12459 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
12462 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12464 * configure.ac: Remove inappropriate use of program_transform_name
12465 on grubdir and bootdir but allow explicit specification of those
12468 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12470 * util/grub-mknetdir.in (grub_prefix): Removed.
12471 (subdir): Use @bootdirname@ and @grubdirname@.
12473 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12475 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
12477 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12479 * po/POTFILES.in: Regenerated.
12481 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12483 Remove improper use of program_transform_name on pkglibrootdir.
12485 * configure.ac (pkglibrootdir): Removed.
12486 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
12487 * util/grub-mkimage.c: Likewise.
12489 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12491 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
12494 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12496 * util/grub-install.in: Use file identifier if no UUID is available
12497 or user explicitly prompted for it.
12499 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
12501 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
12502 (freebsd_get_zfs): New function.
12503 (grub_freebsd_boot): Pass zfs UUID.
12504 (grub_cmd_freebsd): Set zfs UUID.
12506 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12508 * conf/Makefile.common (platformdir): Base on pkglibdir and not
12511 2012-02-27 Mike Gilbert <floppym@gentoo.org>
12513 Add configure flag to control libzfs integration.
12515 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
12517 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12519 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
12521 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
12524 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12526 Remove grub_{modname}_init and grub_{modname}_fini. They should never
12527 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
12528 be used on non-modules.
12530 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
12531 Rename to grub_boot_init.
12532 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
12533 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
12534 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
12535 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
12536 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
12537 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
12538 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
12539 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
12541 (grub_machine_init): Remove empty inits.
12542 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
12544 (grub_machine_init): Remove empty inits.
12545 * grub-core/term/arc/console.c: Remove explicit proto.
12546 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
12547 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
12548 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12549 grub_at_keyboard_fini.
12550 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
12551 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
12552 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12554 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
12555 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
12556 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12558 * grub-core/term/ieee1275/console.c: Remove explicit proto.
12559 * grub-core/term/serial.c (GRUB_MOD_INIT)
12560 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
12561 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12563 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
12564 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
12565 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12566 grub_terminfo_fini.
12567 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
12568 (GRUB_MOD_FINI): Likewise.
12569 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
12570 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
12571 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12572 grub_video_radeon_fuloong2e_fini.
12573 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
12574 [LOONGSON]: Rename to grub_video_sis315pro_init.
12575 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12576 grub_video_sis315pro_fini.
12577 * grub-core/video/sm712.c (GRUB_MOD_INIT)
12578 [LOONGSON]: Rename to grub_video_sm712_init.
12579 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12580 grub_video_sm712_fini.
12581 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
12582 (grub_at_keyboard_fini): Likewise.
12583 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
12584 Don't declare grub_{modname}_init.
12585 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
12586 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
12588 (grub_keylayouts_fini) [!EMU]: Likewise.
12589 * include/grub/serial.h (grub_serial_init) [!EMU]:
12591 (grub_serial_fini) [!EMU]: Likewise.
12592 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
12594 (grub_terminfo_fini) [!EMU]: Likewise.
12595 * include/grub/video.h (grub_font_init) [!EMU]:
12597 (grub_font_fini) [!EMU]: Likewise.
12598 (grub_gfxterm_init) [!EMU]: Likewise.
12599 (grub_gfxterm_fini) [!EMU]: Likewise.
12600 (grub_video_sm712_init) [!EMU]: Likewise.
12601 (grub_video_sm712_fini) [!EMU]: Likewise.
12602 (grub_video_sis315pro_init) [!EMU]: Likewise.
12603 (grub_video_sis315pro_fini) [!EMU]: Likewise.
12604 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
12605 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
12607 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12609 Make nand a prefix for nand devices.
12611 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
12613 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12615 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
12616 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
12618 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12620 * include/grub/env.h (grub_env_find): Remove prototype.
12621 * grub-core/kern/env.c (grub_env_find): Make static.
12622 (grub_env_set): Remove useless set.
12624 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12626 * grub-core/kern/i386/realmode.S: Remove useless align.
12628 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12630 * include/grub/dl.h (grub_dl_load_file): Don't export.
12632 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12634 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
12637 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12639 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
12641 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
12642 not reloading whole superblock but only the part which is really needed.
12643 Remove useless grub_errors.
12644 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
12647 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12649 Don't export grub_get_rtc.
12651 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
12652 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
12654 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12656 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
12658 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12660 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
12661 argument since it can be deduced from diskfilter. All users updated.
12663 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12667 * include/grub/list.h (grub_prio_list): Removed.
12668 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
12669 GRUB_COMMAND_PRIO_MASK.
12670 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
12671 GRUB_COMMAND_FLAG_ACTIVE.
12672 (grub_prio_list_insert): Removed.
12673 (grub_prio_list_remove): Likewise.
12674 (GRUB_AS_PRIO_LIST): Likewise.
12675 (GRUB_AS_PRIO_LIST_P): Likewise.
12676 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
12677 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
12678 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
12679 * grub-core/kern/command.c (grub_register_command_prio): Inline
12680 the prio_list code.
12681 (grub_unregister_command): Likewise.
12683 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12685 Fix interrupt mixup from previous commit.
12687 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
12688 (grub_realidt): New var.
12689 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
12691 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
12693 (grub_relocator16_boot): Set grub_relocator16_idt.
12694 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
12695 (LOCAL(realidt)): ... this.
12696 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
12697 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
12698 (grub_realidt): New variable.
12700 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12702 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
12703 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
12704 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
12705 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
12707 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
12708 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
12709 * po/POTFILES.in: Regenerate.
12711 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12713 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
12716 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12718 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
12720 (add_length): Likewise.
12722 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12723 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
12725 GDB serial and backtrace support.
12727 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
12728 (prot_to_real): Likewise.
12729 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
12730 * grub-core/Makefile.core.def (backtrace): New module.
12732 * grub-core/gdb/cstub.c: New file.
12733 * grub-core/gdb/gdb.c: Likewise.
12734 * grub-core/gdb/i386/idt.c: Likewise.
12735 * grub-core/gdb/i386/machdep.S: Likewise.
12736 * grub-core/gdb/i386/signal.c: Likewise.
12737 * grub-core/lib/i386/backtrace.c: Likewise.
12738 * grub-core/lib/backtrace.c: Likewise.
12739 * include/grub/backtrace.h: Likewise.
12740 * include/grub/gdb.h: Likewise.
12741 * include/grub/i386/gdb.h: Likewise.
12743 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12745 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
12747 (add_length): Likewise.
12748 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
12749 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
12751 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
12752 __argp_get_display_len.
12754 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12756 $"..." support in scripts.
12758 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
12759 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
12760 * grub-core/script/yylex.l: Likewise.
12761 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
12764 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12766 * gentpl.py: Remove obsolete pkglib_DATA handling.
12768 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12770 Don't transform PACKAGE_TARNAME following a discussion on autoconf
12773 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
12774 * util/grub-kbdcomp.in: Likewise.
12775 * util/grub-mkconfig.in: Likewise.
12776 * util/grub-mkconfig_lib.in: Likewise.
12777 * util/grub-mknetdir.in: Likewise.
12778 * util/grub-mkrescue.in: Likewise.
12779 * util/grub-mkstandalone.in: Likewise.
12780 * util/grub-reboot.in: Likewise.
12781 * util/grub-set-default.in: Likewise.
12782 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12784 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12786 Remove GRUB_PREFIX.
12788 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
12789 * util/grub.d/00_header.in: Compute prefix in the only place it's still
12790 used for backward compatibility.
12792 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12794 Add new all_video module.
12796 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12797 * grub-core/Makefile.core.def (all_video): New module.
12798 * grub-core/genmoddep.awk: Generate dependency of all_video from
12800 * grub-core/lib/fake_module.c: New file.
12801 * grub-core/normal/main.c (features): Add feature_all_video_module.
12802 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12803 don't do explicit search again.
12804 insmod all_video in load_video if available.
12806 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12808 Another round of string clarification and adding TRANSLATORS comments.
12810 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12812 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12814 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12816 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12818 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12819 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12821 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12823 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12824 trailing newline implicitly. All users updated.
12826 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12828 Implement serial on IEEE1275 and EFI.
12830 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12831 on emu. Mention arc and emu as the only platforms without serial
12833 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12834 ieee1275 platforms.
12835 * grub-core/term/efi/serial.c: New file.
12836 * grub-core/term/ieee1275/serial.c: Likewise.
12837 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12838 specification if no ns8250 driver is available.
12839 (grub_cmd_serial): Likewise.
12840 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12841 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12842 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12843 (grub_efi_parity_type_t): New type.
12844 (grub_efi_stop_bits_t): Likewise.
12845 (grub_efi_serial_io_interface): New struct.
12846 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12847 available for all interfaces.
12848 Add EFI and IEEE1275 fields.
12849 (grub_ofserial_init): New proto.
12850 (grub_efiserial_init): Likeiwse.
12851 * util/grub.d/00_header.in: Don't check for the presence of serial
12854 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12856 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12857 name as if it was an alias.
12859 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12861 * grub-core/commands/lsacpi.c (options): Fix typo.
12863 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12865 Convert grub-emu to argp.
12867 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12869 * util/argp_common.c: Rename to ...
12870 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
12871 Add missing includes.
12872 * grub-core/kern/emu/main.c: Convert to argp.
12873 * po/POTFILES.in: Regenerate.
12874 * util/grub-install.in (usage): Make first letter lowcase in messages
12876 * util/grub-setup.c (options): Likewise.
12878 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12880 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
12881 Put back accidently commented-out code.
12883 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12885 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
12886 loop check using Brent algorithm.
12887 (grub_hfsplus_btree_search): Likewise.
12889 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12891 * util/grub-install.in: Fix usage of wrong device for PreP install.
12893 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12895 * conf/Makefile.common (CFLAGS_GNULIB): Add
12896 -Wno-unsafe-loop-optimizations.
12897 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
12899 * grub-core/commands/legacycfg.c: Add pragma to skip
12900 -Wunsafe-loop-optimizations.
12901 (check_password_md5_real): Fix loop counter type.
12902 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
12904 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
12905 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
12907 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
12908 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
12909 * grub-core/net/net.c (grub_net_route_address): Add safety loop
12911 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
12912 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
12913 avoid possible infinite loops.
12914 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
12915 and -Wunsafe-loop-optimizations.
12916 * grub-core/script/yylex.l: Likewise.
12917 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
12918 (print_glyphs): Avoid infinite loops.
12919 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
12921 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
12923 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
12924 to avoid infinite loop.
12925 (disp_acpi_rsdt_table): Likewise.
12927 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12929 * grub-core/font/font.c (grub_font_load): Add support for default
12930 path for fonts ($prefix/fonts).
12931 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
12932 for checking if string is a path.
12933 * grub-core/normal/main.c (features): Add feature_default_font_path.
12934 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
12935 * util/grub.d/00_header.in: Use default directory if possible.
12936 * util/grub-install.in: Install unicode.pf2.
12938 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12940 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
12941 * po/Rules-swiss: New file.
12942 * po/swiss.sed: Likewise.
12944 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12946 * grub-core/fs/btrfs.c (find_device): Fix typos.
12947 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
12948 * util/grub-mkrelpath.c (argp_parser): Likewise.
12949 Reported by: Yuri Chornoivan.
12951 2012-02-23 Dalet Omega <daletomega@gmail.com>
12953 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
12954 for usual informative messages.
12956 2012-02-23 Dalet Omega <daletomega@gmail.com>
12960 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
12961 * conf/Makefile.common: Define starfielddir.
12962 * configure.ac: Configure starfield.
12963 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
12964 * themes/starfield/README: Likewise.
12965 * themes/starfield/blob_w.png: Likewise.
12966 * themes/starfield/boot_menu_c.png: Likewise.
12967 * themes/starfield/boot_menu_e.png: Likewise.
12968 * themes/starfield/boot_menu_n.png: Likewise.
12969 * themes/starfield/boot_menu_ne.png: Likewise.
12970 * themes/starfield/boot_menu_nw.png: Likewise.
12971 * themes/starfield/boot_menu_s.png: Likewise.
12972 * themes/starfield/boot_menu_se.png: Likewise.
12973 * themes/starfield/boot_menu_sw.png: Likewise.
12974 * themes/starfield/boot_menu_w.png: Likewise.
12975 * themes/starfield/slider_c.png: Likewise.
12976 * themes/starfield/slider_n.png: Likewise.
12977 * themes/starfield/slider_s.png: Likewise.
12978 * themes/starfield/src/blob_nw.xcf: Likewise.
12979 * themes/starfield/src/bootmenu/: Likewise.
12980 * themes/starfield/src/bootmenu/center.xcf: Likewise.
12981 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
12982 * themes/starfield/src/bootmenu/side.xcf: Likewise.
12983 * themes/starfield/src/slider_c.xcf: Likewise.
12984 * themes/starfield/src/slider_n.xcf: Likewise.
12985 * themes/starfield/src/slider_s.xcf: Likewise.
12986 * themes/starfield/src/terminalbox/: Likewise.
12987 * themes/starfield/src/terminalbox/center.xcf: Likewise.
12988 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
12989 * themes/starfield/src/terminalbox/side.xcf: Likewise.
12990 * themes/starfield/starfield.png: Likewise.
12991 * themes/starfield/terminal_box_c.png: Likewise.
12992 * themes/starfield/terminal_box_e.png: Likewise.
12993 * themes/starfield/terminal_box_n.png: Likewise.
12994 * themes/starfield/terminal_box_ne.png: Likewise.
12995 * themes/starfield/terminal_box_nw.png: Likewise.
12996 * themes/starfield/terminal_box_s.png: Likewise.
12997 * themes/starfield/terminal_box_se.png: Likewise.
12998 * themes/starfield/terminal_box_sw.png: Likewise.
12999 * themes/starfield/terminal_box_w.png: Likewise.
13000 * themes/starfield/theme.txt: Likewise.
13002 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
13004 * util/grub.d/00_header.in: Add missing export theme.
13006 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13008 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
13010 Reported by: Eren D.
13012 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13014 * conf/Makefile.common (grubdatadir): Removed.
13015 (Makefile.am): Move eveything grubdata to pkgdata.
13017 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13019 * grub-core/commands/acpihalt.c (get_sleep_type):
13020 Remove unused variable.
13022 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13024 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
13025 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
13026 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
13027 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
13028 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
13029 i18n with gettext no-op.
13030 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
13031 GRUB_ACPI_OPCODE_STRING_CONST.
13032 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
13033 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
13035 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13037 * po/POTFILES.in: Regenerate.
13039 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13041 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
13042 -Wno-error=missing-noreturn.
13044 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13046 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
13047 condition to avoid possibly infinite loops.
13048 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
13049 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
13051 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13053 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
13054 condition to avoid possibly infinite loops.
13056 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13058 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
13061 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13063 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
13065 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13067 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
13069 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13071 * util/bin2h.c (usage): Add missing attribute noreturn.
13073 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13075 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
13076 if the size isn't divisible by 512.
13078 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13080 Make list_push and list_remove functions rather than inline functions
13081 to decrease size and avoid aliasing violations.
13083 * include/grub/list.h (grub_list_push): Move to ...
13084 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
13085 * include/grub/list.h (grub_list_remove): Move to ...
13086 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
13088 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13090 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
13091 and -Wunused-result.
13093 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13095 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
13096 Reported by: Seth Goldberg
13098 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13100 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
13102 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13104 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
13105 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
13107 * docs/grub.texi (Simple configuration): Document
13108 GRUB_CMDLINE_GNUMACH.
13110 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13112 * conf/Makefile.common (platform_SCRIPTS): New variable.
13113 (platform_PROGRAMS): Likewise.
13114 * gentpl.py: Mark *,module and *.image for install.
13115 * grub-core/gdb_grub.in: Add a notice of expected environment.
13116 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
13117 (gmodule.pl): Likewise.
13119 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13121 Replace grub_checkkey with grub_getkey_noblock.
13123 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
13124 (grub_getkey_noblock): ... this. All users updated.
13126 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13128 * grub-core/kern/emu/console.c: Move to ...
13129 * grub-core/term/emu/console.c: ...here.
13130 (grub_ncurses_getkey): Fix return value if no key is detected.
13132 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13134 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
13135 (grub_unit_test_fini): Likewise.
13136 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
13138 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13140 * include/grub/test.h (GRUB_UNIT_TEST)
13142 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13144 * grub-core/script/execute.c (grub_script_break): Clarify logic.
13145 Better error handling.
13146 (grub_script_return): Likewise.
13147 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13149 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13151 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
13152 rimplicit redifinition.
13154 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13156 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
13159 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13161 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
13162 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
13165 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13167 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
13168 as GRUB_ERR_BUG. Don't malloc if no device is available.
13170 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13172 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
13173 Mark calling with invalid term as GRUB_ERR_BUG.
13175 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13177 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
13178 packets rather than raising an error.
13180 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13182 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
13185 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13187 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
13188 diagnostic to dprintf.
13189 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13191 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13193 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
13196 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13198 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
13199 (grub_ntfs_iterate_dir): Likewise.
13201 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13203 Efiemu stylistic fixes and gettext.
13205 * grub-core/efiemu/i386/loadcore32.c
13206 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
13207 * grub-core/efiemu/i386/loadcore64.c
13208 (grub_arch_efiemu_relocate_symbols64): Likewise.
13209 * grub-core/efiemu/i386/pc/cfgtables.c
13210 (grub_machine_efiemu_init_tables): Likewise.
13211 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
13212 (grub_efiemu_loadcore_initXX): Add a filename argument.
13214 Improved error message.
13215 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
13216 Add a filename argument.
13218 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
13219 Reclassify double relocation as GRUB_ERR_BUG.
13221 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13223 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
13226 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13228 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
13231 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13233 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
13235 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13237 Improve string. Gettextize.
13239 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13241 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
13243 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
13245 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13247 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
13248 [GRUB_UTIL]: New function.
13249 (insert_array) [GRUB_UTIL]: Store partmaps.
13250 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
13252 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
13253 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
13254 (probe_abstraction): Print diskfilter and not raid.
13255 Reported by: Lennart Sorensen
13257 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13259 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
13260 * util/grub-mkimagexx.c (MASK3): New define.
13261 (add_value_to_slot_20b): Use MASK3.
13262 (add_value_to_slot_21): Likewise.
13263 (relocate_addresses): Fix format specification.
13264 (load_image): Explicitly init symtab_section.
13266 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13268 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
13269 (grub_util_biosdisk_get_grub_dev): Fix format specification.
13271 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13273 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
13275 Reported by: Lennart Sorensen
13277 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13279 * gentpl.py: Add missing license header.
13280 * docs/grub.texi: Update copyright year.
13282 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
13284 Source grub-mkconfig_lib from the build directory at build time.
13285 Suggested by: Vladimir Serbinenko.
13287 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
13288 * util/grub-install.in: Define pkgdatadir if not already set, and source
13289 grub-mkconfig_lib from there.
13290 * util/grub-kbdcomp.in: Likewise.
13291 * util/grub-mkconfig.in: Likewise.
13292 * util/grub-mknetdir.in: Likewise.
13293 * util/grub-mkrescue.in: Likewise.
13294 * util/grub-mkstandalone.in: Likewise.
13295 * util/grub-reboot.in: Likewise.
13296 * util/grub-set-default.in: Likewise.
13297 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13299 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13301 Increase warning level.
13303 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
13304 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
13305 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
13306 (TARGET_CFLAGS): Likewise.
13307 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
13308 * grub-core/Makefile.core.def (decompressor_xz): Add
13309 -Wno-unreachable-code.
13310 (normal): Add -Wno-redundant-decls.
13311 (xzio): Add -Wno-unreachable-code.
13312 (lzopio): Add -Wno-redundant-decls -Wno-error.
13313 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
13314 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
13315 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
13316 * grub-core/kern/dl.c: Add exception to -Wcast-align.
13317 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
13318 * grub-core/kern/i386/coreboot/init.c: Add exception to
13319 -Wsuggest-attribute=noreturn.
13320 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
13321 * grub-core/kern/ia64/dl_helper.c: Likewise.
13322 * grub-core/kern/mips/dl.c: Likewise.
13323 * grub-core/kern/sparc64/dl.c: Likewise.
13324 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
13325 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
13326 (memcmp): Likewise.
13327 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
13328 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
13329 * grub-core/loader/mips/linux.c: Likewise.
13330 * grub-core/loader/multiboot_elfxx.c: Likewise.
13331 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
13332 * grub-core/video/sm712.c: Add exception to -Wcast-align.
13333 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
13334 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
13336 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
13337 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
13340 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13342 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
13345 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13347 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
13348 Avoid improper use of strings.
13349 (grub_cmd_legacy_initrdnounzip): Likewise.
13351 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13353 * include/grub/emu/misc.h (grub_util_warn): Add missing format
13355 (grub_util_info): Likewise.
13356 (grub_util_error): Likewise.
13358 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13360 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
13361 * util/grub-fstest.c (fstest): Likewise.
13363 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13365 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
13366 (grub_md_sha512_real): Likewise.
13367 (grub_util_get_geli_uuid): Likewise.
13368 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
13369 (grub_util_biosdisk_open): Fix format specification.
13370 Respect format security.
13371 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
13372 (xrealloc): Likewise.
13373 (xasprintf): Likewise.
13375 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13377 * util/import_gcry.py: Include grub/crypto.h in init.c.
13379 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13381 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
13382 (generate_image): Make prefix a const char *.
13383 Fix format specifications. Respect format security.
13384 Avoid void * arithmetics.
13386 (argp_parser): Remove unused variable. Respect format security.
13387 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
13388 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
13389 (count_funcs): Remove unused variable.
13390 (relocate_addresses): Fix format specification.
13391 Disable x86-64 with elf32. Remove unused variables.
13392 (add_fixup_entry): Avoid shadowing.
13393 (make_reloc_section): Fix format specification.
13395 (locate_sections): Fix format specifications.
13396 (load_image): Avoid shadowing.
13398 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13400 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
13401 Fix format specifications. Respect format security.
13402 Don't translate already translated grub_errmsg.
13403 (argp_parser): Remove unused variable
13405 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13407 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
13409 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13411 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
13412 (main): Likewise. Use xmalloc. Respect format security.
13414 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13416 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
13418 (argp_parser): Remove unused variable.
13420 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13422 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
13423 (add_pixel): Make static.
13424 (add_font): Likewise.
13425 (write_string_section): Make name and str a const char *.
13426 (write_be16_section): Make name a const char *.
13427 (print_glyphs): Make static.
13428 (write_font_ascii_bitmap): Likewise.
13429 (write_font_width_spec): Likewise.
13430 (write_font_pf2): Likewise.
13431 (argp_parser): Remove unused variable.
13432 Respect format security.
13433 (main): Avoid shadowing. Respect format security.
13435 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13437 * util/grub-editenv.c (argp_parser): Make static.
13438 (create_envblk_file): Use xmalloc.
13439 (open_envblk_file): Likewise.
13440 Resepect format security.
13441 (set_variables): Respect format security.
13443 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13445 * util/getroot.c (grub_find_device): Respect format security.
13446 (get_mdadm_uuid): Remove unused variable.
13447 (grub_util_pull_device): Dont call gettext on already translated
13449 (find_system_device): Remove unused variable.
13450 (grub_util_get_grub_dev): Likewise.
13451 (grub_make_system_path_relative_to_its_root): Respect format security.
13453 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13455 * util/grub-fstest.c (execute_command): Make first argument
13457 (read_file): Avoid shadowing.
13458 Reuse underlying error message if device open fails.
13459 (cmd_cmp): Respect format security.
13460 (root): Make const char *.
13461 (fstest): Remove args argument and use global copy.
13462 Respect format security.
13463 (argp_parser): Make static.
13464 (main): Make default_root const char *.
13466 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13468 * util/grub-mount.c (root): Make const char *.
13469 (execute_command): Make first argument a const char *.
13470 (fuse_init): Respect format security.
13471 (argp_parser): Make static. Remove unused variable.
13472 (main): Make default_root a const char *.
13473 Respect format security.
13475 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13477 * util/grub-probe.c (probe): Don't call gettext on already translated
13479 Remove unused variables.
13480 (argp_parser): Remove unused variable.
13482 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13484 * util/grub-script-check.c (argp_parser): Remove unused variable.
13485 (main): Rename read to curread to avoid shadowing.
13487 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13489 * util/misc.c (grub_util_write_image_at): Fix format specification.
13490 (grub_util_write_image): Likewise.
13491 (grub_script_execute_argument_to_string): Removed (unused).
13492 (grub_script_execute_menuentry): Likewise.
13493 (grub_putchar): Likewise.
13495 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13497 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
13498 (FUNCTION) [GRUB_UTIL]: Likewise.
13499 (VARIABLE) [GRUB_UTIL]: Likewise.
13501 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13503 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
13504 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
13506 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13508 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
13511 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13513 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
13514 (LzmaEnc_SaveState): Removed (unused).
13515 (LzmaEnc_RestoreState): Likewise.
13516 (LzmaEnc_InitPriceTables): Made static.
13517 (LzmaEnc_Construct): Likewise.
13518 (LzmaEnc_FreeLits): Likewise.
13519 (LzmaEnc_Destruct): Likewise.
13520 (LzmaEnc_Init): Likewise.
13521 (LzmaEnc_InitPrices): Likewise.
13522 (LzmaEnc_Finish): Likewise.
13523 (LzmaEnc_PrepareForLzma2): Removed (unused).
13524 (LzmaEnc_MemPrepare): Likewise.
13525 (LzmaEnc_GetNumAvailableBytes): Likewise.
13526 (LzmaEnc_GetCurBuf): Likewise.
13527 (LzmaEnc_CodeOneMemBlock): Likewise.
13529 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13531 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
13532 (grub_util_ldm_embed): Likewise.
13534 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13536 * util/grub-editenv.c (print_var): Rename name to varname to
13538 (main): Rename index to curindex to avoid shadowing.
13539 Make filename a const char *.
13541 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13543 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
13544 to arg_getline to avoid shadowing.
13546 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13548 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
13549 disk_ to avoid shadowing.
13551 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13553 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
13554 curindex to avoid shadowing.
13556 (MatchFinder_GetNumAvailableBytes): Make static.
13558 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13560 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
13563 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13565 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
13566 argument from encrypt to do_encrypt to avoid shadowing.
13568 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13570 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
13571 incorrect nesting of #if's.
13573 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13575 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
13576 checks which are always false on some platforms.
13577 (grub_cmd_lsacpi): Likewise.
13578 * grub-core/kern/misc.c (grub_strtoul): Likewise.
13579 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
13582 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13584 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
13585 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
13587 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13589 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
13590 re_dfa_t to avoid breaking alignment invariants.
13591 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
13592 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
13594 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13596 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
13597 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
13599 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13601 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
13604 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13606 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
13607 conserve alignment invariants.
13608 (grub_ehci_ehcc_read16): Likewise.
13609 (grub_ehci_oper_read32): Likewise.
13610 (grub_ehci_oper_write32): Likewise.
13611 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
13612 Conserve alignment invariants.
13614 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13616 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
13617 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
13620 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13622 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
13623 Remove unused variable.
13625 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13627 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
13630 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13632 * include/grub/net.h: Remove double declarations.
13634 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13636 Remove "payload" command in ia64 Linux loader since I couldn't
13637 find any evidence of it being used for anything.
13638 Replace "relocate" command with an environment variable
13640 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
13642 (ia64_boot_payload): Removed.
13643 (last_payload): Likewise.
13644 (RELOCATE_OFF): Likewise.
13645 (RELOCATE_ON): Likewise.
13646 (RELOCATE_FORCE): Likewise.
13647 (relocate): Likewise.
13648 (free_pages): Don't free payloads.
13649 (grub_load_elf64): Use common error messages.
13650 Use "linux_relocate" variable.
13651 Increase the space after boot_params.
13652 (grub_cmd_payload): Removed.
13653 (grub_cmd_relocate): Likewise.
13654 (grub_cmd_fpswa): Improve messages.
13655 (cmd_payload): Removed.
13656 (cmd_relocate): Likewise.
13657 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
13658 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
13660 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13662 Convert UHCI to DMA framework.
13664 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
13665 (grub_uhci_pci_iter): Fill new members
13666 (grub_alloc_td): Use P2V and V2P functions.
13667 (grub_free_queue): Likewise.
13668 (grub_alloc_qh): Likewise.
13669 (grub_uhci_setup_transfer): Likewise.
13670 (grub_uhci_check_transfer): Likewise.
13672 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13674 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
13675 Remove assignment in if while on it.
13677 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13679 * util/grub-mkstandalone.in: Fix modules directory.
13681 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13683 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
13685 (argp_parser): Accept "auto" as compression specification.
13687 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13689 Fix `help' with unloaded modules.
13691 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
13692 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
13693 (grub_dyncmd_dispatcher): Small stylistic fix.
13694 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
13695 explicit help is requested.
13697 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13699 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
13700 Explicitly init restart while on it.
13702 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13704 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
13707 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13709 * util/grub-mknetdir.in: Use . rather than source for POSIX
13712 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13714 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
13716 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13718 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
13721 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13723 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
13726 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13728 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
13730 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13732 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
13733 iteration of partitions.
13735 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13737 Improve gettext support. Stylistic fixes and error handling fixes while
13740 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13742 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
13743 part. Instead setup the correct stack in RM.
13744 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
13746 * include/grub/i386/relocator_private.h: New file.
13748 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13750 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
13752 * util/grub-fstest.c (options): Add missing DEVICE part.
13754 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13756 Clarify and unify messages.
13758 * grub-core/commands/hashsum.c (options): Unify messages.
13759 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
13760 literal-only message as translatable.
13761 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
13762 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
13763 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
13765 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
13766 key, not the key used to unlock. Clarify what it's used for.
13767 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
13768 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
13769 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
13770 * util/grub-editenv.c (options): Unify "verbose" message.
13771 * util/grub-fstest.c (read_file): Unify error message.
13772 (fstest): Add quotes around commands.
13773 (options): Unify "verbose" message.
13774 * util/grub-install.in: Add quotes around variable name.
13775 * util/grub-kbdcomp.in: Unify error message.
13776 * util/grub-mkfont.c (main): Likewise.
13777 * util/grub-mkrescue.in: Likewise.
13778 * util/grub-mklayout.c (options): Unify "verbose" message.
13779 * util/grub-mkstandalone.in: Unify help and verbose messages.
13780 * util/grub-mount.c (options): Unify "verbose" message.
13781 * util/grub-probe.c (options): Likewise.
13782 * util/grub-script-check.c (options): Likewise.
13783 * util/grub-setup.c (setup): Unify no-terminator message.
13784 (options): Use DEVICE and not DEV.
13785 Unify "verbose" message.
13786 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
13788 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13790 Improve and unify messages.
13792 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
13793 name. All users updated.
13794 Print filename in error.
13795 (read_device_map): Print filename in error.
13796 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13797 (grub_util_get_os_disk): Likewise.
13798 (grub_util_biosdisk_get_grub_dev): Likewise.
13799 (grub_util_check_block_device): Likewise.
13800 (grub_util_check_char_device): Likewise.
13801 (grub_make_system_path_relative_to_its_root): Likewise.
13802 * util/grub-editenv.c (create_envblk_file): Likewise.
13803 (open_envblk_file): Likewise.
13804 (write_envblk): Likewise.
13805 * util/grub-fstest.c (cmd_cp): Likewise.
13806 (cmd_cat): Likewise.
13807 (cmd_cmp): Likewise.
13808 * util/grub-menulst2cfg.c (main): Likewise.
13809 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13810 (write_font_width_spec): Likewise.
13811 (write_font_pf2): Likewise.
13812 * util/grub-mkimage.c (generate_image): New argument outname.
13814 Remove unreacheable message.
13815 (options): Unify messages.
13816 (help_filter): Likewise.
13817 * util/grub-mklayout.c (usage): Removed (unused).
13818 (main): Print filename in error.
13819 * util/grub-mkrescue.in: Fix wrong quoting.
13820 * util/grub-setup.c (setup): Print filename in error.
13821 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13822 (check_sas): Likewise.
13823 * util/misc.c (grub_util_get_fp_size): Removed.
13824 (grub_util_get_image_size): Print filename in error.
13825 (grub_util_read_at): Removed.
13826 (grub_util_read_image): Print filename in error.
13827 (grub_util_load_image): Likewise.
13828 (grub_util_write_image_at): New argument filename. All users updated.
13829 Print filename in error.
13830 (grub_util_write_image): New argument filename. All users updated.
13831 Print filename in error.
13832 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13833 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13835 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13837 * grub-core/Makefile.core.def (pxechain): New module.
13838 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13839 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13841 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13842 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13844 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13846 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13847 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13848 * include/grub/err.h (grub_error_saved): New struct.
13849 (grub_errmsg): Make array size explicit.
13850 * include/grub/misc.h (grub_error_save): New function.
13851 (grub_error_load): Likewise.
13852 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13853 (grub_error_push): Update `errno' member name.
13854 (grub_error_pop): Likewise
13855 * grub-core/net/tftp.c (tftp_data): New member save_err.
13856 (tftp_receive): Save error.
13857 (tftp_open): Restore error.
13859 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13861 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13862 to real mode down to execute A20-related code in protected mode as
13865 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13867 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13868 NULL when the argument `level' has an unexpected value.
13870 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13872 Move platform-dependent files from $prefix to $prefix/$platform.
13874 * config.h.in (GRUB_TARGET_CPU): New definition.
13875 (GRUB_PLATFORM): Likewise.
13876 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
13877 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
13878 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13879 * grub-core/kern/dl.c (grub_dl_load): Likewise.
13880 * grub-core/normal/autofs.c (read_fs_list): Likewise.
13881 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
13882 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
13883 * grub-core/normal/term.c (read_terminal_list): Likewise.
13884 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
13886 (grub_gettext_init_ext): Likewise.
13887 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
13889 * util/grub-install.in: Update directories.
13890 * util/grub-mknetdir.in: Likewise.
13891 * util/grub-mkrescue.in: Likewise.
13893 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13895 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
13896 grub_error framework. All users updated.
13898 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13900 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
13901 lists (by always binsearching), improve caching (cache strings
13902 used for binsearch, not only results), improve
13903 maintainability (by using more structured binary search) and correct
13906 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13908 * grub-core/script/execute.c (grub_script_return): Fix warning.
13910 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13912 * grub-core/script/execute.c (grub_script_return): Fix potential
13914 Reported by: Jim Meyering.
13916 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13918 * po/POTFILES.in: Regenerate.
13919 * util/grub-install.in: Gettextize the strings missed in first pass.
13921 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13923 * Makefile.util.def (grub-mkdevicemap): Removed.
13924 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
13925 * include/grub/util/deviceiter.h: Removed.
13926 * util/deviceiter.c: Likewise.
13927 * util/getroot.c (grub_util_get_os_disk): New function.
13928 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
13929 replacement for EFI.
13930 * util/grub-mkdevicemap.c: Removed.
13931 * util/grub-probe.c (probe): Handle PRINT_DISK.
13932 (argp_parser): Handle -t disk.
13934 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13936 * util/grub-mkfont.c: Migrate to argp.
13937 * util/grub-mklayout.c: Likewise.
13938 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13939 * util/grub-mkrelpath.c: Likewise.
13940 * util/grub-probe.c: Likewise.
13941 * util/grub-script-check.c: Likewise.
13943 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13945 * util/grub-reboot.in: Add missing datarootdir.
13946 Add missing newline.
13947 * util/grub-set-default.in: Add missing datarootdir.
13948 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
13949 * util/grub-mkrescue.in: Likewise.
13951 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13953 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
13955 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13957 * util/grub-kbdcomp.in: Add decent help and gettextize.
13958 * docs/man/grub-kbdcomp.h2m: New file.
13960 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13962 Migrate grub-mkimage.c to argp.
13964 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
13965 (grub-setup): Likewise.
13966 * util/grub-setup.c (print_version): Move to ...
13967 * util/argp_common.c (print_version): ... here.
13968 * util/grub-setup.c (argp_program_version_hook): Move to ...
13969 * util/argp_common.c (argp_program_version_hook): ... here.
13970 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
13972 * util/grub-mkimage.c (main): Migrate to argp.
13974 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13976 * util/grub-mkrescue.in: Use same message as
13977 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
13978 for better translations.
13980 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13982 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
13983 options with generic grub-mkrescue.in with the goal of future
13986 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13988 * grub-core/kern/mm.c: Add missing include of i18n.h
13989 * grub-core/lib/relocator.c: Likewise.
13991 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13993 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
13995 (allocate_pages): Check return value.
13996 Replace fatal with error.
13997 (grub_linux_boot): Replace printf with dprintf.
13998 Check find_mmap_size return value.
13999 Replace fatal with error.
14000 Don't call grub_machine_fini.
14001 (grub_load_elf64): Replace printf with dprintf.
14002 (grub_cmd_linux): Likewise.
14003 (grub_cmd_initrd): Likewise.
14004 (grub_cmd_payload): Likewise.
14006 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14008 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
14010 * grub-core/video/radeon_fuloong2e.c
14011 (grub_video_radeon_fuloong2e_setup): Likewise.
14012 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
14013 * grub-core/video/video.c (grub_video_set_mode): Don't override
14014 standard out of memory message.
14016 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
14018 NetBSD disk wedge support.
14020 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
14021 [__NetBSD__]: Handle NetBSD disk wedges.
14022 * util/getroot.c (convert_system_partition_to_system_disk)
14023 [__NetBSD__]: Likewise.
14025 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
14027 * util/grub-mkconfig.in: Use umask rather than chmod to create
14028 grub.cfg.new to avoid insecure grub.cfg.
14030 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14032 * grub-core/commands/ls.c: Gettextize.
14033 * grub-core/commands/setpci.c: Likewise.
14034 * grub-core/commands/videotest.c: Likewise.
14035 * grub-core/disk/geli.c: Likewise.
14036 * grub-core/kern/mm.c: Likewise.
14037 * grub-core/lib/relocator.c: Likewise.
14038 * grub-core/loader/efi/appleloader.c: Likewise.
14039 * grub-core/loader/i386/xnu.c: Likewise.
14040 * grub-core/loader/ia64/efi/linux.c: Likewise.
14041 * grub-core/loader/xnu.c: Likewise.
14042 * grub-core/net/dns.c: Likewise.
14043 * grub-core/net/net.c: Likewise.
14044 * grub-core/script/lexer.c: Likewise.
14045 * grub-core/script/parser.y: Likewise.
14046 * grub-core/script/yylex.l: Likewise.
14047 * util/getroot.c: Likewise.
14048 * util/grub-setup.c: Likewise.
14050 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14052 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
14055 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14057 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
14059 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14061 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
14063 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
14064 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
14066 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14068 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
14069 * util/grub-install.in: Gettextize.
14070 * util/grub-mkconfig.in: Likewise.
14071 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
14073 (grub_warn): Gettextize.
14074 * util/grub-mknetdir.in: Gettextize.
14075 * util/grub-mkrescue.in: Likewise.
14076 * util/grub-mkstandalone.in: Likewise.
14077 * util/grub-reboot.in: Likewise.
14078 * util/grub-set-default.in: Likewise.
14079 * util/grub.d/00_header.in: Likewise.
14080 * util/grub.d/10_hurd.in: Likewise.
14081 * util/grub.d/10_kfreebsd.in: Likewise.
14082 * util/grub.d/10_linux.in: Likewise.
14083 * util/grub.d/10_netbsd.in: Likewise.
14084 * util/grub.d/10_windows.in: Likewise.
14085 * util/grub.d/20_linux_xen.in: Likewise.
14086 * util/grub.d/30_os-prober.in: Likewise.
14087 * po/POTFILES-shell.in: Regenerate.
14089 2012-02-03 Richard Laager <rlaager@wiktel.com>
14091 * util/grub-mkimage.c (main): Fix format-security warning.
14092 * util/grub-mkrelpath.c (main): Likewise.
14093 * util/grub-probe.c (main): Likewise.
14095 2012-02-03 Richard Laager <rlaager@wiktel.com>
14097 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
14099 Put back lost PRINT_DRIVE.
14101 2012-02-03 Richard Laager <rlaager@wiktel.com>
14103 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
14104 (grub_guess_root_devices): Replace strlen with sizeof.
14106 (find_root_devices_from_poolname): Remove unused variable.
14109 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14111 Support install on multi-device filesystems.
14113 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
14114 (grub_guess_root_devices): ...this. Return char **. All users updated.
14115 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
14117 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
14118 (find_root_devices_from_poolname): ... here.
14119 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
14121 (grub_guess_root_device): Rename to ...
14122 (grub_guess_root_devices): ... this. Return char **. All users updated.
14123 * util/grub-install.in: Handle multi-device filesystems.
14124 * util/grub-probe.c (probe). Make device_names a char **. Add delim
14125 argument. All users updated.
14126 Handle multi-device filesystems.
14127 Use 'delim' as separator.
14128 Remove device check to allow filesystems on file.
14129 (main): Support -0 argument. Handle multi-device.
14130 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
14131 Fix a cross-device check while on it.
14132 (arguments): Remove root_dev.
14133 (argp_parser): Remove -r.
14134 (main): Remove root_dev.
14136 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14138 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
14140 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14142 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
14144 Reported by: NODA, Kai <nodakai>.
14146 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14150 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
14152 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
14153 (grub_ehci_setup_qh): Likewise.
14154 (grub_ehci_find_qh): Likewise.
14155 (grub_ehci_transaction): Likewise.
14156 (grub_ehci_setup_transfer): Likewise.
14157 (grub_ehci_check_transfer): Likewise.
14158 (grub_ehci_portstatus): Likewise.
14159 (grub_ehci_detect_dev): Likewise.
14160 (grub_ehci_transfer_controller_data): New field td_last_phys.
14161 (grub_ehci_setup_transfer): Fill td_last_phys.
14162 (grub_ehci_check_transfer): Use td_last_phys.
14164 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
14166 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
14167 if no submenu is present.
14169 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14173 * include/grub/usb.h (grub_usbms_protocol_t): New values
14174 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
14175 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
14176 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
14177 (grub_usbms_dev): Add subclass, protocol and intrpt.
14178 Remove in_maxsz and out_maxsz.
14179 (grub_usbms_reset): Rename to ...
14180 (grub_usbms_bo_reset): .. this.
14181 (grub_usbms_cbi_cmd): New function.
14182 (grub_usbms_cbi_reset): Likewise.
14183 (grub_usbms_reset): Likewise.
14184 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
14185 (grub_usbms_transfer): Rename to ...
14186 (grub_usbms_transfer_bo): ... this.
14187 (grub_usbms_transfer_cbi): Likewise.
14188 (grub_usbms_transfer): Likewise.
14190 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14191 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14193 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
14194 the support for the CS5536 modification thereos and few bugfixes.
14196 * grub-core/Makefile.core.def (ehci): New module.
14197 * grub-core/bus/usb/ehci.c: New file.
14198 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
14199 port and hubaddr. All users updated.
14200 Save port and hubaddr into dev structure.
14201 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
14203 * include/grub/pci.h (grub_dma_phys2virt): New function.
14204 (grub_dma_virt2phys): Likewise.
14205 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
14207 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14209 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
14210 check as some mkfs implementations omit it.
14212 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14214 * docs/grub.texi (Unicode): Mention identifier and space limitations.
14216 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14218 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
14219 Add new member volname2.
14220 (grub_jfs_label): Use volname2 if available.
14222 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14224 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
14225 over last_mounted as seen in image generated by mkfs.nilfs2.
14226 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
14228 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14230 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
14231 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
14232 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
14234 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14236 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
14239 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14241 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
14242 subvolume name (by removing a bogus and useless check).
14244 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14246 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
14247 sizeof while on it.
14249 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14251 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
14252 (grub_scsi_read_capacity10): ... this.
14253 (grub_scsi_read_capacity16): New function.
14254 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
14256 Fix off-by-one error.
14257 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
14259 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
14260 (grub_scsi_read_capacity10): ... this.
14261 (grub_scsi_read_capacity_data): Rename to ...
14262 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
14263 (grub_scsi_read_capacity16): New struct.
14264 (grub_scsi_read_capacity16_data): Likewise.
14265 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
14266 grub_scsi_cmd_read_capacity10.
14267 New command grub_scsi_cmd_read_capacity16.
14269 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14271 SCSI >2TiB support.
14273 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
14274 (grub_scsi_write16): Likewise.
14275 (grub_scsi_read): Use read16 when necessary.
14276 (grub_scsi_write): Likewise.
14277 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
14278 (grub_scsi_write16): Likewise.
14279 (grub_scsi_cmd_t): Add READ16 and WRITE16.
14281 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14283 SCSI write support (for usbms mainly).
14285 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
14287 (grub_scsi_write): Implement.
14288 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
14290 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14292 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
14295 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14297 * grub-core/lib/posix_wrap/string.h (memchr): New function.
14299 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14301 * po/POTFILES.in: Regenerate.
14303 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14305 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
14306 with grub_printf to avoid unnecessary fatal failure.
14308 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14310 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
14311 (INT_MAX): Likewise.
14312 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
14313 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
14314 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
14315 (strcpy): Likewise.
14316 (strstr): Likewise.
14317 (strchr): Likewise.
14318 (strncpy): Likewise.
14319 (strcat): Likewise.
14320 (strncat): Likewise.
14321 (strcoll): Likewise.
14322 * include/grub/types.h (GRUB_SHRT_MAX): New define.
14323 (GRUB_INT_MAX): Likewise.
14325 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14327 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
14329 (optimize_utf8): Likewise.
14330 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
14332 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14334 * grub-core/boot/i386/pc/lnxboot.S: Use
14335 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
14336 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
14338 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
14340 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
14342 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14344 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
14345 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
14346 now to avoid double free.
14347 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
14349 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
14350 * util/grub-probe.c (escape_of_path): Always return a new copy.
14351 (print_full_name): Escape path.
14352 (probe): Don't call grub_util_devname_to_ofpath on NULL.
14353 Fix hints on abstractions.
14355 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14357 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
14358 Don't add "root" line if no compatibility hont is available.
14359 Suggested by: Seth Goldberg.
14361 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14363 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
14364 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
14365 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
14366 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
14368 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14370 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
14372 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14374 * util/grub-pe2elf.c (ehdr): Make static.
14376 (num_sections): Likewise.
14377 (offset): Likewise.
14379 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14381 Eliminate ofpath limits and possible overflows.
14383 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
14384 (OF_PATH_MAX): Removed.
14385 (MAX_DISK_CAT): New const.
14386 (find_obppath): Use allocated rather than preallocated buffer.
14387 Return result. Argument of_path removed. All users updated.
14388 Add missing fdstat.
14389 (xrealpath): New function.
14390 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
14391 Allocate rather than use preallocated buffer. All users updated.
14392 (__of_path_common): Use allocated rather than preallocatecd buffer.
14393 Return result. Argument of_path removed. All users updated.
14394 (vendor_is_ATA): Read only needed part form the file.
14395 (check_sas): Allocate depending on contents rather than fixed.
14396 (main) [STANDALONE]: Handle NULL result.
14398 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14400 * grub-core/normal/completion.c (iterate_dev): Close the disk.
14402 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14404 Cryptodisk write support.
14406 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
14407 (grub_cryptodisk_decrypt): Moved logic to ...
14408 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
14409 (grub_cryptodisk_write): Implement.
14410 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
14411 (grub_util_fd_write): ... this. Make global.
14412 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
14414 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14416 * include/grub/list.h (grub_list_remove): Don't crash if element is
14419 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14421 Rename ofconsole to console.
14423 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
14424 as sysnonym to console.
14425 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
14426 * grub-core/term/ieee1275/console.c: ... this. All users updated.
14427 Rename grub_ofconsole_ to grub_console_. All users updated
14428 (grub_console_term_output): Rename "ofconsole" to "console".
14429 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
14432 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14434 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
14436 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
14437 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
14438 GRUB_DISK_DEVICE_FILE_ID.
14440 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14442 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
14443 and improve performance.
14445 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14447 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
14448 missing ieee1275/ prefix on whole disk.
14450 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14452 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
14453 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14455 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14457 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
14459 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14461 Merge common RAID and LVM logic to an abstract diskfilter.
14462 Add LDM support using the same framework.
14464 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
14465 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
14466 (libgrubmods): Remove grub-core/disk/raid.c and
14467 grub-core/partmap/gpt.c.
14468 * grub-core/Makefile.core.def (ldm): New module.
14469 (raid): Renamed to diskfilter. All users updated.
14470 * grub-core/disk/raid.c: Moved to ...
14471 * grub-core/disk/diskfilter.c: ... here.
14472 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
14474 (find_array): Renamed to ...
14475 (find_lv): ... this. Support multi-LV. Skip nameless LVs
14476 (grub_is_array_readable): Renamed to ...
14477 (grub_is_lv_readable): ... this. Support multinode hierarchy.
14478 (insert_array): New argument id.
14479 (is_node_readable): New function.
14480 (scan_device): Rename to ...
14481 (scan_disk): .. this. Restrict to one disk.
14482 (scan_devices): New function.
14483 (grub_diskfilter_iterate): Support multi-LV.
14484 Skip invisible and nameless LVs.
14485 (grub_diskfilter_memberlist): Support multi-LV.
14486 (grub_diskfilter_read_node): New function.
14487 (grub_raid_read): Most of logic moved to ...
14488 (read_segment): ... here
14489 (read_lv): New function.
14490 (grub_diskfilter_get_vg_by_uuid): New function.
14491 (grub_diskfilter_make_raid): Likewise.
14492 * grub-core/disk/ldm.c: New file.
14493 * grub-core/disk/lvm.c (vg_list): Removed.
14494 (lv_count): Likewise.
14495 (scan_depth): Likewise.
14496 (is_lv_readable): Likewise.
14497 (grub_lvm_getvalue): Advance pointer past the number.
14498 (find_lv): Removed.
14499 (do_lvm_scan): Refactored into ...
14500 (grub_lvm_detect): ... this. Support raid.
14501 (grub_lvm_iterate): Removed.
14502 (grub_lvm_memberlist): Likewise.
14503 (grub_lvm_open): Likewise.
14504 (grub_lvm_close): Likewise.
14505 (read_lv): Likewise.
14506 (read_node): Likewise.
14507 (is_node_readable): Likewise.
14508 (is_lv_readable): Likewise.
14509 (grub_lvm_read): Likewise.
14510 (grub_lvm_write): Likewise.
14511 (grub_lvm_dev): Use diskfilter
14512 (GRUB_MOD_INIT): Likewise.
14513 (GRUB_MOD_FINI): Likewise.
14514 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
14516 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
14517 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14518 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
14519 grub_diskfilter_read_node.
14520 Fix a bug with xor.
14521 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
14522 grub_diskfilter_read_node.
14523 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
14524 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
14525 (grub_disk_dev_iterate): Move from here...
14526 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
14527 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
14529 (grub_hostdisk_find_partition_start): Likewise.
14530 (grub_hostdisk_os_dev_to_grub_drive): New function.
14531 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
14532 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
14533 * util/getroot.c (make_device_name): ... here.
14534 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
14536 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
14537 * grub-core/kern/emu/hostdisk.c
14538 (convert_system_partition_to_system_disk): Move to ...
14539 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
14540 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
14541 * util/getroot.c (device_is_wholedisk): ... here.
14542 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
14543 * util/getroot.c (find_system_device): ... here.
14544 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
14546 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
14547 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14549 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
14551 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14553 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
14554 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
14555 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
14557 * include/grub/raid.h: Renamed to ...
14558 * include/grub/diskfilter.h: ... this.
14559 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
14560 (GRUB_RAID_LAYOUT_*): Make into array.
14561 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
14562 (grub_diskfilter_vg): New struct.
14563 (grub_diskfilter_pv_id): Likewise.
14564 (grub_raid_member): Removed.
14565 (grub_raid_array): Likewise.
14566 (grub_diskfilter_pv): New struct.
14567 (grub_diskfilter_lv): Likewise.
14568 (grub_diskfilter_segment): Likewise.
14569 (grub_diskfilter_node): Likewise.
14570 (grub_diskfilter_get_vg_by_uuid): New proto.
14571 (grub_raid_register): Inline.
14572 (grub_diskfilter_unregister): Likewise.
14573 (grub_diskfilter_make_raid): New proto.
14574 (grub_diskfilter_vg_register): Likewise.
14575 (grub_diskfilter_read_node): Likewise.
14576 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
14577 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
14578 (grub_util_is_ldm): Likewise.
14579 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
14580 (grub_hostdisk_find_partition_start): Likewise.
14581 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
14582 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
14584 (grub_gpt_partition_map_iterate): New proto.
14585 * include/grub/lvm.h (grub_lvm_vg): Removed.
14586 (grub_lvm_pv): Likewise.
14587 (grub_lvm_lv): Likewise.
14588 (grub_lvm_segment): Likewise.
14589 (grub_lvm_node): Likewise.
14590 * util/getroot.c [...]
14591 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
14592 (probe_abstraction): Likewise.
14593 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
14594 (main): Remove dead logic.
14596 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
14598 Simplify root device discover and don't fail when trying to open
14601 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
14603 (get_diskname_from_path): Likewise.
14604 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
14607 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14609 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
14611 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14613 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
14616 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14618 * util/grub-install.in: Add missing \.
14619 Reported by: gentoofan
14621 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14623 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
14624 (direct_read): Use correct compressed size.
14625 (grub_squash_read_data): Likewise.
14627 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14629 * docs/grub.texi (Platform limitations): New section.
14630 (Platform-specific operations): Likewise.
14631 * docs/grub-dev.texi (Porting): Likewise.
14633 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14635 IEEE1275 disk write support.
14637 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
14639 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
14640 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
14641 and seek loginc to ...
14642 (grub_ofdisk_prepare): ... here.
14643 (grub_ofdisk_write): Implement.
14645 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14647 ARC disk write support.
14649 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
14650 (reopen): New argument writable. All users updated.
14651 Handle required access mode.
14652 (grub_arcdisk_write): Implement.
14653 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
14654 (grub_arc_firmware_vector): Make buffer to write a const buffer.
14656 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14658 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
14659 (read_sblock): Don't attempt to read superblocks outside the disk size.
14661 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14663 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
14664 first superblock to find the second one when possible.
14666 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14668 * util/grub-install.in: Fix an ARC bug.
14669 Print a warning if no platform-specific setup is available.
14671 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14673 Use static allocation rather than scratch pointer in reed_solomon.
14674 It decreases its size significantly and avoids a variable in .text.
14676 * grub-core/lib/reed_solomon.c (scratch): Removed.
14677 (chosenstat): New const or static array.
14679 (errpot): Likewise.
14680 (errpos): Likewise.
14683 (errvals): Likewise.
14684 (eqstat): Likewise.
14685 (pol_evaluate): Replace x with log_x argument. All users updated.
14686 (syndroms): Removed.
14687 (gauss_solve): Use statically allocated arrays.
14688 (rs_recover): Likewise.
14689 Calculate syndroms directly.
14690 (decode_block): Use statically allocated arrays.
14691 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
14692 (main) [TEST]: Allow -DTEST -DSTANDALONE.
14694 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14696 Eliminate fixed limit on reed solomon decoder length.
14698 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
14699 rather than hardcoding the address.
14700 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
14701 no_reed_solomon_length.
14702 Move gate_a20 to no-reed-solomon part.
14703 Don't force a particular size of no reed-solomon part.
14704 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14706 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
14707 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
14709 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14711 * grub-core/commands/wildcard.c (match_files): Handle filenames
14712 without explicit device.
14713 (wildcard_expand): Don't add explicit device if not already present.
14714 * tests/grub_script_echo1.in: Add a new expansion test.
14716 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14718 Replace single-linked with double-linked lists. It results in more
14719 compact and more efficient code.
14721 * grub-core/kern/list.c (grub_list_push): Moved from here ...
14722 * include/grub/list.h (grub_list_push): ... to here. Set prev.
14723 (grub_list_remove): Moved from here ...
14724 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
14725 (grub_prio_list_insert): Set prev.
14726 * include/grub/list.h (grub_list): Add prev. All users updated.
14728 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14730 Handle newer autotools. Add some missing quotes while on it.
14732 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
14733 (pkglib_DATA): Move grub-mkconfig_lib from here ...
14734 (pkgdata_DATA): ... here.
14735 * Makefile.util.def (update-grub_lib): Removed.
14736 * conf/Makefile.common (pkglib_DATA): Removed.
14737 (pkglib_SCRIPTS): Likewise.
14738 (pkgdata_DATA): New variable.
14739 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
14741 Add missing quotes.
14742 Remove unused variable while on it.
14743 * tests/util/grub-shell.in: Likewise.
14744 * util/grub-install.in: Likewise.
14745 * util/grub-mkconfig.in: Likewise.
14746 * util/grub-mknetdir.in: Likewise.
14747 * util/grub-mkrescue.in: Likewise.
14748 * util/grub-mkstandalone.in: Likewise.
14749 * util/grub.d/00_header.in: Likewise.
14750 * util/grub.d/10_hurd.in: Likewise.
14751 * util/grub.d/10_illumos.in: Likewise.
14752 * util/grub.d/10_kfreebsd.in: Likewise.
14753 * util/grub.d/10_linux.in: Likewise.
14754 * util/grub.d/10_netbsd.in: Likewise.
14755 * util/grub.d/10_windows.in: Likewise.
14756 * util/grub.d/20_linux_xen.in: Likewise.
14757 * util/grub.d/30_os-prober.in: Likewise.
14758 * util/update-grub_lib.in: Removed.
14760 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
14762 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
14763 a workaround for intel problem.
14765 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
14766 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14767 2012-01-23 pfsmorigo
14769 * util/grub-install.in: Support dd'in into PreP partition.
14770 * util/grub-probe.c (probe): Support discovering partition type.
14771 (main): Support -t msdos_parttype.
14773 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14775 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
14776 infinite recursion using counter.
14777 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
14778 init to skip it if the magic check fails.
14779 (dec_stream_header): Init s->crc32.
14781 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14782 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
14783 2012-01-22 Richard Laager <rlaager@wiktel.com>
14785 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
14787 (find_bestub): Determine correct size.
14788 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
14789 (scan_disk): Align the size down.
14790 Call check pool before find_bestub to have ashift.
14792 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14794 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
14795 dprintf in no-malloc zone.
14797 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14799 * configure.ac: Add back in test for limits.h.
14801 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14803 Support 4K-sector NTFS.
14805 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14806 (grub_ntfs_data): Remove blocksize.
14807 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14808 Remove data argument. All users updated.
14810 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14812 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14813 being in .text to avoid dprel references.
14814 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14815 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14816 (grub_arch_highmemsize): Likewise.
14817 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14818 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14819 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14821 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14823 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14825 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14826 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14828 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14830 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14832 (grub_set_datetime_cmos): Likewise.
14834 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14836 Make XZ compression parameters dependent on target and not host CPU.
14838 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14839 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14841 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14843 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14844 set but not used variable.
14846 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14848 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14849 created when no uuid support is compiled into mkfs.reiser.
14851 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14853 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14854 (utf8_to_macroman): Do the opposite.
14855 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14857 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14859 * configure.ac: Refise build qemu_mips w/o unifont.
14861 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14863 Eliminate grub_min/grub_max prone to overflow usage.
14865 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14866 (poll_nonroot_hub): Likewise.
14867 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14868 (grub_affs_label): Likewise.
14869 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
14870 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
14871 (grub_hfs_label): Likewise.
14872 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14873 * grub-core/fs/zfs/zfs.c (MIN): Remove.
14874 (zap_leaf_array_equal): Use grub_size. Remove MIN.
14875 (zap_leaf_array_get): Likewise.
14876 (dnode_get_path): Likewise.
14877 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
14878 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
14879 * grub-core/script/execute.c (grub_script_break): Likewise.
14880 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
14882 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
14883 * include/grub/misc.h (grub_min): Removed.
14884 (grub_max): Likewise.
14886 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14888 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
14891 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14893 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
14895 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14897 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
14899 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14901 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
14902 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
14904 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14906 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
14907 rather than a hack for grub_strncasemap.
14909 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14911 Support multiple initrds
14912 Note: part of this was accidently committed in r3739.
14914 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
14916 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
14917 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
14918 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14919 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14920 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14922 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14924 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
14925 disks with unknown size.
14926 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
14928 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14930 Remove defines pertaining to arbitrary limits not affecting GRUB
14933 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
14934 (EXT2_MAX_SYMLINKCNT): Likewise.
14935 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
14936 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
14937 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
14938 (GRUB_PXE_MAX_BLKSIZE): Likewise.
14939 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
14940 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
14941 (DN_MAX_OBJECT_SHIFT): Likewise.
14942 (DN_MAX_OFFSET_SHIFT): Likewise.
14943 (DN_MAX_OBJECT): Likewise.
14944 (DNODES_PER_LEVEL_SHIFT): Likewise.
14945 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
14946 (SPA_MAXBLOCKSIZE): Likewise.
14947 (SPA_BLOCKSIZES): Likewise.
14948 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
14949 (MZAP_MAX_BLKSZ): Likewise.
14951 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14953 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
14954 handle NULL appropriately.
14957 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14961 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
14963 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
14964 * configure.ac: Fix efiemu check.
14966 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14968 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
14970 Reported by: adamwill
14972 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
14974 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
14976 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14978 Fix handling of wide characters in gfxterm.
14980 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
14981 (clear_char): Likewise.
14982 (paint_char): Skip code == NULL chars.
14983 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
14985 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14987 * grub-core/normal/charset.c: Move comment to right place.
14989 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14991 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
14992 (GRUB_AFFS_FLAG_FFS): Put back where it was.
14993 (grub_affs_mount): Revert the correct version checking.
14995 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14997 * docs/grub.texi (Unicode): Mention several other unsupported features.
14999 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15001 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
15002 case statements as compile-time one.
15003 (direct_read): Prevent spurious warnings.
15004 (grub_squash_read_data): Likewise.
15006 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15008 Various squash4 fixes and LZO and XZ support.
15010 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
15011 Add xzembed source files.
15012 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
15013 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
15014 (grub_squash_inode): New subtype long_dir.
15015 (SQUASH_TYPE_LONG_DIR): New inode type.
15016 (COMPRESSION): New enum.
15017 (XZBUFSIZ): New const.
15018 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
15019 (read_chunk): Use data->decompress.
15020 (zlib_decompress): New function.
15021 (lzo_decompress): Likewise.
15022 (xz_decompress): Likewise.
15023 (squash_mount): Set new data fields.
15024 (grub_squash_iterate_dir): Handle long dir.
15025 (squash_unmount): Free xzdec and xzbuf.
15026 (grub_squash_open): Check ino type.
15027 (direct_read): Stylistic fixes. Use data->decompress.
15028 (grub_squash_read_data): Likewise.
15029 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
15030 (get_byte): Likewise.
15031 (grub_zlib_disk_read): Removed.
15032 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
15033 (GRUB_POSIX_BOOL_DEFINED): New define.
15034 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
15035 * grub-core/lib/xzembed/xz.h: Addmissing includes.
15036 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
15037 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
15039 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15041 Don't override more informative errors.
15043 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
15044 * grub-core/font/font.c (open_section): Likewise.
15045 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
15046 filename. Don't override errors.
15047 (grub_cmd_openbsd_ramdisk): Don't override errors.
15048 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
15049 (grub_cmd_initrd): Likewise.
15050 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
15051 (grub_cmd_initrd): Likewise.
15052 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
15053 (grub_cmd_linux): Likewise.
15054 (grub_cmd_initrd): Likewise.
15055 (grub_cmd_payload): Likewise.
15056 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
15057 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
15058 (grub_cmd_module): Likewise.
15059 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15060 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15061 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
15062 (grub_cmd_xnu_mkext): Likewise.
15063 (grub_cmd_xnu_ramdisk): Likewise.
15064 (grub_xnu_check_os_bundle_required): Likewise.
15065 (grub_xnu_load_kext_from_dir): Likewise.
15066 (grub_cmd_xnu_kextdir): Likewise.
15067 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
15069 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15071 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
15072 as 1024 in block size field. Found on one of my test images.
15073 Small optimisation while on it.
15075 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15077 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
15078 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
15079 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
15080 performance fixes while on it.
15081 (grub_sfs_close): Fix memory leak while on it.
15082 (grub_sfs_label): Convert Latin1 to UTF-8.
15084 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15086 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
15087 space to avoid overflows.
15088 (grub_hfs_label): Convert from macroman to UTF-8.
15090 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15092 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
15094 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15096 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
15098 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15100 * unicode: Import Unicode 6.0 data.
15102 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15104 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
15107 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15109 Avoid cutting in the middle of UTF-8 character.
15111 * include/grub/charset.h (grub_getend): New function.
15112 * grub-core/script/function.c (grub_script_function_find): Use
15114 * grub-core/normal/completion.c (add_completion): Likewise.
15116 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15118 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
15119 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
15120 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
15121 (GRUB_UNICODE_TAG_END): Likewise.
15122 (GRUB_UNICODE_LAST_VALID): Likewise.
15124 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15126 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
15127 len and make it smaller. All users updated.
15128 * util/import_unicode.py: Put length and not end character.
15131 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15133 Make better Unicode-compliant and unify some UTF-8 code pathes.
15135 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
15137 (grub_is_valid_utf8): Use grub_utf8_process.
15138 Check resulting code range.
15139 (grub_utf8_to_ucs4): Use grub_utf8_process.
15140 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
15143 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15145 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
15147 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15149 * docs/grub.texi (Filesystems): Mention AFS.
15151 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15153 * docs/grub.texi (Filesystems): Clarify restrictions.
15154 (Regexp): Mention non-Unicode regexp behaviour.
15155 (Other): Mention non-Unicode matching behaviour.
15157 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15159 Make HFS implementation use MacRoman.
15161 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
15162 (macroman): New const array.
15163 (macroman_to_utf8): New function.
15164 (utf8_to_macroman): Likewise.
15165 (grub_hfs_find_dir): Use utf8_to_macroman.
15166 (grub_hfs_dir): Use macroman_to_utf8.
15167 Set case_insensitive.
15169 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15171 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
15173 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15175 Integrate hints into autogeneration scripts.
15177 * docs/grub.texi (Filesystems): Add a hostdisk example.
15178 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
15179 (grub-probe): Add ofpath.
15180 * gentpl.py: Remove group nosparc64.
15181 * grub-core/commands/search.c (cache_entry): New struct.
15183 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
15184 * grub-core/commands/search_wrap.c (options): Add platform-specific
15186 (grub_cmd_search): Handle platform-specific hints.
15187 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
15188 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
15189 (grub_util_biosdisk_data): Likewise.
15190 (grub_util_biosdisk_open): Set device_map.
15191 (read_device_map): Handle "" as indication of no map.
15193 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
15194 (grub_util_biosdisk_get_compatibility_hint): New function.
15195 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
15196 * include/grub/emu/hostdisk.h
15197 (grub_util_biosdisk_get_compatibility_hint): New proto.
15198 * util/grub-install.in: Don't call grub-mkdevicemap.
15199 Add platform-specific hint to load.cfg.
15200 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
15201 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
15202 hints. Set root preliminary to compatibility hint, not to OS name.
15203 * util/grub-probe.c (PRINT_*): Add hints.
15204 (print): Make static.
15205 (escape_of_path): New function.
15206 (guess_bios_drive): Likewise.
15207 (guess_efi_drive): Likewise.
15208 (guess_baremetal_drive): Likewise.
15209 (print_full_name): Likewise.
15210 (probe): Handle hints.
15212 * util/ieee1275/devicemap.c: Removed.
15213 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
15215 (grub_util_devname_to_ofpath): Return NULL on failure.
15217 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
15219 * util/getroot.c (grub_util_pull_device): Fix memory leak.
15221 * po/POTFILES.in: Regenerated.
15223 Allow purely long options
15225 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
15226 (SHORT_ARG_USAGE): Likewise.
15227 (grub_arg_show_help): Compare opt with help_options.
15228 (parse_option): Receive opt as argument. If makes big simplificatons.
15231 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15233 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
15234 Restructure to avoid warning.
15236 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15238 * util/grub-install.in: Account for possible escaped comma in device
15241 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15243 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
15246 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15248 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
15249 allocation and zero-setting.
15250 (grub_ieee1275_get_devname): Check that alias is complete.
15252 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15254 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
15255 unaligned segments.
15257 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15259 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
15261 (grub_ofdisk_open): Check and discard ieee1275 prefix.
15262 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
15263 Add ieee1275 prefix.
15265 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15267 * docs/grub.texi (Filesystems): Update.
15269 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15271 Support odc, newc and bigendian cpio formats.
15273 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
15274 * grub-core/Makefile.core.def (newc): New module.
15276 (cpio_be): Likewise.
15277 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
15279 (MAGIC2): Likewise.
15280 (head) [MODE_ODC]: Adapt for the format.
15281 (head) [MODE_NEWC]: Likewise.
15282 (head) [!MODE_*]: Write fields of interest as arrays.
15283 (MAGIC_USTAR): Removed.
15284 (read_number) [MODE_NEWC]: Change to hex.
15285 (read_number) [!MODE_*]: Parse binary arrays.
15286 (grub_cpio_find_file): Factor out the code for better structure and
15287 always use read_number.
15288 (grub_cpio_mount): Use MAGIC and MAGIC2.
15289 (grub_cpio_dir): Exit on first hook non-0 return.
15290 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
15291 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
15292 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
15293 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
15294 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
15295 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
15296 * grub-core/fs/newc.c: New file.
15297 * grub-core/fs/odc.c: Likewise.
15298 * grub-core/fs/cpio_be.c: Likewise.
15300 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15302 Fix handling of tar numbers occupying the whole field.
15304 * grub-core/fs/cpio.c (read_number): New function.
15305 (grub_cpio_find_file): Use read_number instead of strtoull.
15307 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15309 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
15310 occupying the whole field size.
15312 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
15314 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
15316 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15318 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
15320 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
15322 * grub-core/Makefile.core.def (lzma_decompress): Add missing
15323 TARGET_IMG_LDFLAGS.
15325 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15327 * util/getroot.c (ESCAPED_PATH_MAX): New define.
15328 (mountinfo_entry): Increase the field size to take escaping into
15330 (find_root_device_from_libzfs): Add one byte to size of strings for
15333 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15335 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
15337 * util/grub-setup.c (setup): Likewise.
15339 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15341 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
15344 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15346 * docs/grub.texi (Internationalisation): New section.
15348 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15350 * docs/grub.texi (Loopback booting): New section.
15352 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
15354 * util/grub-mkstandalone.in: Fix minor typo errors.
15356 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15358 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
15360 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
15361 net/icmp.c and net/icmp6.c.
15362 (http): New module.
15363 (priority_queue): Likewise.
15364 * grub-core/io/bufio.c: Rewritten.
15365 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
15366 TYPE_WITH_CONFIGFILE_OPTION.
15367 (legacy_commands): Add bootp and dhcp.
15368 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
15369 (grub_legacy_parse): Likewise.
15370 * grub-core/lib/priority_queue.c: New file.
15371 * grub-core/net/arp.c: Add missing license header.
15372 (arp_find_entry): Removed.
15373 (arp_find_entry): Likewise.
15374 (grub_net_arp_resolve): Rename to ...
15375 (grub_net_arp_send_request): ...this.
15376 (grub_net_arp_receive): New card argument.
15377 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
15378 Set router and DNS server.
15379 (grub_net_configure_by_dhcp_ack): Handle routing information.
15380 (grub_cmd_bootp): Set checksum.
15381 (grub_bootp_init): Remove net_dhcp.
15382 * grub-core/net/dns.c: New file.
15383 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
15385 (get_card_packet): Handle allocation.
15386 (grub_efinet_findcards): Set mtu.
15387 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
15388 (get_card_packet): Handle allocation.
15389 (emucard): Set mtu.
15390 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
15391 (GRUB_MOD_INIT): Set mtu.
15392 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
15394 (get_card_packet): Handle allocation.
15395 (grub_ofnet_findcards): Set mtu.
15396 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
15398 (grub_net_recv_ethernet_packet): Handle IPv6.
15399 * grub-core/net/http.c: New file.
15400 * grub-core/net/icmp.c: Likewise.
15401 * grub-core/net/icmp6.c: Likewise.
15402 * grub-core/net/ip.c (ip6addr): New type.
15403 (ip6hdr): Likewise.
15404 (reassemble): Likewise.
15405 (cmp): New function.
15406 (reassembles): New variable.
15407 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
15408 (id): New variable.
15409 (send_fragmented): New function.
15410 (grub_net_send_ip_packet): Rename to ...
15411 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
15413 (grub_net_recv_ip_packets): Rename to ...
15414 (handle_dgram): ... this. Check checksum. Handle non-UDP.
15415 (free_rsm): New function.
15416 (free_old_fragments): Likewise.
15417 (grub_net_recv_ip4_packets): New function.
15418 (grub_net_send_ip6_packet): Likewise.
15419 (grub_net_send_ip_packet): Likewise.
15420 (grub_net_recv_ip6_packets): Likewise.
15421 (grub_net_recv_ip_packets): Likewise.
15422 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
15423 (LINK_LAYER_CACHE_SIZE): New const.
15424 (link_layer_find_entry): New function.
15425 (grub_net_link_layer_add_address): Likewise.
15426 (grub_net_link_layer_resolve_check): Likewise.
15427 (grub_net_link_layer_resolve): Likewise.
15428 (grub_net_ipv6_get_slaac): Likewise.
15429 (grub_net_ipv6_get_link_local): Likewise.
15430 (grub_cmd_ipv6_autoconf): Likewise.
15431 (parse_ip): Handle one number representation.
15432 (parse_ip6): New functoion.
15433 (match_net): Handle IPv6.
15434 (grub_net_resolve_address): Handle IPv6 and DNS.
15435 (grub_net_resolve_net_address): Handle IPv6.
15436 (route_cmp): New function.
15437 (grub_net_route_address): Find best route.
15438 (grub_net_addr_to_str): Handle IPv6.
15439 (grub_net_addr_cmp): New function.
15440 (grub_net_add_addr): Register local route.
15441 (print_net_address): Handle net address.
15442 (grub_net_poll_cards): Retransmit TCP.
15443 (grub_net_poll_cards_idle_real): Likewise.
15444 (have_ahead): New function.
15445 (grub_net_seek_real): Use underlying seek.
15446 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
15447 * grub-core/net/tcp.c: New file.
15448 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
15449 (cmp): New function.
15451 (tftp_receive): Handle unordered input.
15452 (destroy_pq): New function.
15453 (tftp_close): Close pq.
15454 * grub-core/net/udp.c: Put missing license header.
15455 (grub_net_udp_socket): New function.
15456 (udp_socket_register): Likewise.
15457 (grub_net_udp_close): Likewise.
15458 (grub_net_recv_udp_packet): Check checksum.
15459 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
15460 * include/grub/misc.h (grub_memchr): New function.
15461 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
15462 (grub_net_card_driver): Return buf in recv.
15463 (grub_net_slaac_mac_list): New struct.
15464 (grub_network_level_protocol_id): Add ipv6.
15465 (grub_net_network_level_addr): Likewise.
15466 (grub_net_network_level_net_addr): Likewise.
15467 (grub_net_app_protocol): Add seek.
15468 (grub_net_socket): Removed.
15469 (grub_net_sockets): Likewise.
15470 (grub_net_socket_register): Likewise.
15471 (grub_net_socket_unregister): Likewise.
15472 (FOR_NET_SOCKETS): Likewise.
15473 (grub_net_add_addr): Add const.
15474 (GRUB_NET_BOOTP_*): New enum.
15475 (grub_net_addr_cmp): New proto.
15476 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
15477 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
15478 (grub_net_hwaddr_to_str): NEw proto.
15479 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
15480 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
15481 (grub_dns_init): New proto.
15482 (grub_dns_fini): Likewise.
15483 (grub_net_tcp_retransmit): Likewise.
15484 (grub_net_link_layer_add_address): Likewise.
15485 (grub_net_link_layer_resolve_check): Likewise.
15486 (grub_net_link_layer_resolve): Likewise.
15487 (grub_net_dns_lookup): Likewise.
15488 (grub_net_add_dns_server): Likewise.
15489 (grub_net_remove_dns_server): Likewise.
15490 (GRUB_NET_TRIES): New const.
15491 (GRUB_NET_INTERVAL): Likewise.
15492 * include/grub/net/arp.h: Mostly rewritten.
15493 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
15494 * include/grub/net/ip.h: Mostly rewritten.
15495 * include/grub/net/netbuff.h: Indent.
15496 * include/grub/net/tcp.h: New file.
15497 * include/grub/net/udp.h: Mostly rewritten.
15498 * include/grub/priority_queue.h: New file.
15499 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
15500 (grub_swap_bytes64_compile_time): Likewise.
15501 (grub_cpu_to_be16_compile_time): Likewise.
15502 (grub_cpu_to_be32_compile_time): Likewise.
15503 (grub_cpu_to_be64_compile_time): Likewise.
15504 (grub_be_to_cpu64_compile_time): Likewise.
15506 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
15508 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
15509 UINT_TO_PTR with cast.
15511 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15513 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
15516 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15518 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
15521 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15523 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
15526 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15528 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
15529 Add missing const attribute.
15530 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
15532 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
15535 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15537 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
15539 (serpent_setkey): Likewise.
15540 (serpent_encrypt_internal): Likewise.
15541 (serpent_decrypt_internal): Likewise.
15542 (serpent_encrypt): Don't put an alignment-increasing cast.
15543 (serpent_decrypt): Likewise.
15544 (serpent_test): Likewise.
15546 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15548 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
15550 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15552 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
15554 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
15556 (PTR_TO_UINT64): Likewise.
15557 (PTR_TO_UINT32): Likewise.
15559 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15561 * util/grub-mkimage.c (generate_image): Decrease the higher limit
15563 * util/grub-setup.c (setup): Don't add redundancy past the higher load
15566 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15568 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
15569 text_width > available width a bit more gracefully.
15571 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15573 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
15574 current address calculation.
15576 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15578 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
15580 (encode_block): Likewise.
15582 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15584 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
15587 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15589 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
15590 non-RS part to avoid RS messing with GDT.
15591 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
15592 Increase to suit in realmode routines.
15594 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15596 * grub-core/kern/i386/realmode.S: Increase alignment.
15597 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
15599 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15601 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
15603 (syndroms): Compute 0 syndrom.
15604 (rs_recover): Use 0 syndrom.
15606 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15608 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
15610 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15612 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
15615 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15617 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
15619 (get_top_pad): Likewise.
15620 (get_right_pad): Likewise.
15621 (get_bottom_pad): Likewise.
15623 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15625 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
15627 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15629 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
15630 attribute as the structure isn't guaranteed to be properly aligned.
15631 (grub_efi_pci_device_path): Likewise.
15632 (grub_efi_pccard_device_path): Likewise.
15633 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
15634 specify the size of `memory_type'.
15635 (grub_efi_vendor_device_path): Likewise.
15636 (grub_efi_controller_device_path): Likewise.
15637 (grub_efi_acpi_device_path): Likewise.
15638 (grub_efi_expanded_acpi_device_path): Likewise.
15639 (grub_efi_atapi_device_path): Likewise.
15640 (grub_efi_scsi_device_path): Likewise.
15641 (grub_efi_fibre_channel_device_path): Likewise.
15642 (grub_efi_1394_device_path): Likewise.
15643 (grub_efi_usb_device_path): Likewise.
15644 (grub_efi_usb_class_device_path): Likewise.
15645 (grub_efi_i2o_device_path): Likewise.
15646 (grub_efi_mac_address_device_path): Likewise.
15647 (grub_efi_ipv4_device_path): Likewise.
15648 (grub_efi_ipv6_device_path): Likewise.
15649 (grub_efi_infiniband_device_path): Likewise.
15650 (grub_efi_uart_device_path): Likewise.
15651 (grub_efi_vendor_messaging_device_path): Likewise.
15652 (grub_efi_hard_drive_device_path): Likewise.
15653 (grub_efi_cdrom_device_path): Likewise.
15654 (grub_efi_vendor_media_device_path): Likewise.
15655 (grub_efi_file_path_device_path): Likewise.
15656 (grub_efi_protocol_device_path): Likewise.
15657 (grub_efi_piwg_device_path): Likewise.
15658 (grub_efi_bios_device_path): Likewise.
15660 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15662 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
15663 (grub_ucs4_to_utf8_alloc): Likewise.
15664 (grub_ucs4_to_utf8): Likewise.
15665 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
15666 (grub_ucs4_to_utf8_alloc): Likewise.
15668 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15670 AFFS never uses unicode.
15672 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
15673 (grub_latin1_to_utf8): New inline function.
15674 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
15676 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15678 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
15681 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15683 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
15684 (grub_squash_dirent_header): Likewise.
15685 (read_chunk): Don't double swap.
15686 (grub_squash_iterate_dir): Fix swap sizes.
15688 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15690 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
15692 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15694 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
15695 (grub_hfs_iterate_dir): Likewise.
15697 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15699 Fix video on platforms where unaligned access is forbidden.
15700 Make several optimisations while on it.
15702 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
15703 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15704 (grub_video_fbblit_replace_32bit_1bit): Likewise.
15705 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15707 (grub_video_fbblit_replace_16bit_1bit):
15708 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15709 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15710 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
15711 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
15712 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15713 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15714 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
15715 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
15716 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
15717 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
15718 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
15719 (grub_video_fbblit_replace_index_RGB888): Likewise.
15720 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
15721 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
15722 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
15723 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
15724 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
15725 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15726 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15728 (grub_video_fbblit_blend_XXX565_1bit):
15729 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15730 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
15731 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
15733 * grub-core/video/fb/video_fb.c (common_blitter)
15734 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
15735 (grub_video_fb_create_render_target_from_pointer)
15736 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
15737 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
15738 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
15740 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
15742 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15744 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
15745 HH22 and HM10 relocations.
15747 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15749 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
15751 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15753 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
15754 allocation succeeded.
15756 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15758 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
15759 argument a u8 pointer. All users updated.
15760 Handle unaligned buffers.
15762 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15764 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
15765 add_part to workaround compiler bug.
15767 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15769 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
15771 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15773 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
15774 Reserve alignment invariants.
15775 (grub_multiboot_load): Likewise.
15776 (retrieve_video_parameters): Likewise.
15777 (grub_multiboot_make_mbi): Likewise.
15779 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15781 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
15784 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15786 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
15787 (grub_pata_pio_write): Likewise.
15789 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15791 Add noreturn attributes and remove unreachable code.
15793 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
15795 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15796 code. Mark as noreturn.
15797 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15798 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15799 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15801 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15802 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15803 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15804 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15805 * include/grub/kernel.h (grub_main): Mark as noreturn.
15806 * include/grub/reader.h (grub_rescue_run): Likewise.
15808 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15810 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15811 redundant declaration.
15813 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15815 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15816 redundant declaration.
15817 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15819 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15821 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15822 to ensure alignment.
15823 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15824 alignment. Ensure tmp alignment.
15825 (grub_cmd_hdparm): Ensure buf alignment.
15826 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15827 to ensure alignment.
15828 (grub_ata_dumpinfo): Ensure text alignment.
15829 (grub_atapi_identify): Preserve alignment invariant.
15830 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15832 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15834 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15835 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15836 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15837 * include/grub/misc.h (grub_reboot)
15838 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15839 (grub_halt) [__mips__]: Likewise.
15841 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15843 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15844 Remove redundant declaration.
15845 (grub_mmap_get_post64): Likewise.
15846 (grub_mmap_get_upper): Likewise.
15847 (grub_mmap_get_lower): Likewise.
15849 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15851 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15852 uint32_t * to ensure alignment.
15853 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15855 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15857 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15858 uint16_t * to ensure alignment.
15859 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15862 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15864 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
15865 to ensure alignment.
15866 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15868 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15870 * grub-core/fs/ntfs.c (u16at): Make into inline function.
15871 Handle unaligned pointers.
15874 (fixup): Use byte access instead of v16at.
15875 (find_attr): Fix imporper usage of v32at.
15876 (read_data): Likewise.
15877 (list_file): Handle byte-swapping and unaligned strings.
15878 (grub_ntfs_label): Likewise.
15880 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15882 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
15883 as it's not necessarily aligned.
15885 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15887 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
15888 redundant declaration.
15889 (grub_serial_init): Likewise.
15890 (grub_terminfo_init): Likewise.
15892 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15894 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
15896 (ZAP_HASH_IDX): Likewise.
15897 (ZAP_LEAF_HASH_SHIFT): Likewise.
15898 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
15899 (LEAF_HASH): Likewise.
15900 (ZAP_LEAF_NUMCHUNKS): Likewise.
15901 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
15902 alignment invariants. Return pointer. All users updated.
15903 (ZAP_LEAF_ENTRY): Make into inline function.
15906 (xor_out): Use grub_crypto_xor.
15907 (dnode_get_path): Use grub_get_unaligned.
15908 (nvlist_find_value): Likewise.
15909 (grub_zfs_nvlist_lookup_uint64): Likewise.
15910 (grub_zfs_nvlist_lookup_string): Likewise.
15911 (get_nvlist_size): Likewise.
15912 (grub_zfs_open): Likewise.
15913 (fill_fs_info): Likewise.
15914 (grub_zfs_dir): Likewise.
15915 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
15916 alignment invariants.
15917 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
15918 necessarily aligned.
15920 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15922 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
15924 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15926 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
15927 arithmetic to conserve alignment invariants.
15929 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15931 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
15932 redundant declaration.
15933 (grub_efiemu_mm_obtain_request): Likewise.
15934 (grub_efiemu_prepare): Likewise.
15936 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15938 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
15941 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15943 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
15944 case of aunaligned recptr.
15945 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
15947 (grub_hfsplus_btree_search): Handle unaligned index.
15949 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15951 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
15952 to get freetag and skip.
15954 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15956 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
15958 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
15959 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
15961 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15963 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
15964 name for checksum and fix allocation algorithm.
15966 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15968 * include/grub/types.h (grub_properly_aligned_t): New type.
15969 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
15970 (grub_get_unaligned16): Add explicit casts.
15971 (grub_get_unaligned32): Likewise.
15972 (grub_get_unaligned64): Likewise.
15973 (grub_set_unaligned16): New function.
15974 (grub_set_unaligned32): Likewise.
15976 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15978 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
15980 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15982 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
15983 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
15984 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
15986 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15988 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
15991 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15993 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
15994 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
15996 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15998 Unify and improve RAID and crypto xor.
16000 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
16001 changed to grub_crypto_xor
16002 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
16003 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
16004 Use bigger types when possible.
16006 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16008 * grub-core/disk/raid.c (scan_devices): Fix condition.
16010 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16012 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
16013 Make name a const ptr.
16015 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16017 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
16018 first argument a const pointer.
16019 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
16020 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
16022 (grub_children_iterate): Likewise.
16023 (grub_machine_mmap_iterate): Remove redundant declaration.
16025 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16027 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
16028 (grub_cmd_acpi) [!x86]: Disable EBDA.
16030 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16032 Enable UTF8 in gnulib regexp.
16034 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
16035 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
16036 (isupper): Use grub_isupper.
16037 (isascii): New inline function.
16038 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
16039 * grub-core/lib/posix_wrap/wctype.h: Likewise.
16040 * grub-core/normal/charset.c (grub_utf8_process): New function.
16041 (grub_utf8_to_utf16): Use grub_utf8_process.
16042 (grub_encode_utf8_character): New function.
16043 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
16044 * include/grub/charset.h (grub_utf8_process): New declaration.
16045 (grub_encode_utf8_character): Likewise.
16046 * include/grub/misc.h (grub_islower): New inline function.
16047 (grub_isupper): Likewise.
16048 (grub_strchrsub): Moved down to fix the definitions.
16050 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16052 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
16055 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16057 * include/grub/loader.h (grub_loader_register_preboot_hook):
16058 Use struct preboot * and not void * for handle. All users updated.
16059 (grub_loader_unregister_preboot_hook): Likewise.
16061 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
16063 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
16064 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
16065 UTF-16-BE. All users updated.
16066 (grub_hfsplus_cmp_catkey): Fix unicode handling.
16067 (grub_hfsplus_iterate_dir): Likewise.
16068 (grub_hfsplus_label): Likewise.
16070 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
16072 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
16074 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
16076 Add missing const qualifiers.
16078 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
16079 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
16080 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
16081 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
16082 (grub_lvm_check_flag): Likewise.
16083 * grub-core/efiemu/i386/coredetect.c
16084 (grub_efiemu_get_default_core_name): Likewise
16085 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
16086 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
16087 * grub-core/fs/ntfs.c (fixup): Likewise.
16088 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
16089 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
16090 (fzap_lookup): Likewise.
16091 (zap_lookup): Likewise.
16092 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
16093 * grub-core/lib/legacy_parse.c (check_option): Likewise.
16094 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
16095 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
16096 (grub_freebsd_add_meta_module): Likewise.
16097 (grub_cmd_freebsd_module): Likewise.
16098 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
16099 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
16100 (grub_xnu_writetree_get_size): Likewise.
16101 (grub_xnu_writetree_toheap_real): Likewise.
16102 (grub_xnu_find_key): Likewise.
16103 (grub_xnu_create_key): Likewise.
16104 (grub_xnu_create_value): Likewise.
16105 (grub_xnu_register_memory): Likewise.
16106 (grub_xnu_check_os_bundle_required): Likewise.
16107 (grub_xnu_scan_dir_for_kexts): Likewise.
16108 (grub_xnu_load_kext_from_dir): Likewise.
16109 * grub-core/normal/color.c (color_list): Likewise.
16110 * grub-core/normal/completion.c (current_word): Likewise.
16111 * grub-core/normal/menu_entry.c (insert_string): Likewise.
16112 * grub-core/term/serial.c (grub_serial_find): Likewise.
16113 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
16114 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
16116 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
16117 (grub_freebsd_add_meta_module): Likewise.
16118 * include/grub/lib/arg.h (grub_arg_option): Likewise.
16119 * include/grub/net.h (grub_net_card_driver): Likewise.
16120 (grub_net_card): Likewise.
16121 (grub_net_app_protocol): Likewise.
16122 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
16123 * include/grub/serial.h (grub_serial_find): Likewise.
16124 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
16125 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
16126 (grub_xnu_create_value): Likewise.
16127 (grub_xnu_find_key): Likewise.
16128 (grub_xnu_scan_dir_for_kexts): Likewise.
16129 (grub_xnu_load_kext_from_dir): Likewise.
16131 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
16132 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
16133 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
16134 Moved from here ...
16135 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
16137 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
16139 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
16141 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
16143 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
16144 (read_device): Fix size calculation.
16146 2011-11-25 Robert Millan <rmh@gnu.org>
16148 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
16149 (find_root_device_from_libzfs): Add zpool output parser to be used
16150 as fallback when libzfs isn't available.
16152 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
16154 * po/Makefile.in.in: Add missing escape-continuation.
16156 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
16158 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
16160 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16162 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
16164 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16166 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
16168 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16170 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
16172 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16174 * grub-core/lib/adler32.c: Add missing license specification.
16175 * grub-core/lib/crc64.c: Likewise.
16176 * grub-core/loader/i386/pc/plan9.c: Likewise.
16177 * grub-core/partmap/plan.c: Likewise.
16179 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
16181 Add facility to debug GRUB with gdb under qemu.
16183 * grub-core/gdb_grub.in: New file.
16184 * grub-core/gmodule.pl.in: Likewise.
16185 * grub-core/Makefile.core.def (gmodule.pl): New script.
16186 (gdb_grub): Likewise.
16188 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16190 * util/grub-mount.c (argp_parser): Accept relative pathes.
16191 * util/grub-fstest.c (argp_parser): Likewise.
16193 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16197 * Makefile.util.def (libgrubmods): Add
16198 grub-core/partmap/plan.c.
16199 * docs/grub.texi: Notice Plan9 support.
16200 * grub-core/Makefile.core.def (plan9): New module.
16201 (part_plan): Likewise.
16202 * grub-core/loader/i386/pc/plan9.c: New file.
16203 * grub-core/partmap/plan.c: Likewise.
16204 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
16206 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
16207 * include/grub/mm.h (grub_extend_alloc): New inline function.
16209 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16211 Make Reed-Solomon faster by using power of generator representation of
16214 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
16215 (gf_double_t): Likewise.
16216 (gf_invert): Removed.
16217 (gf_powx): New array.
16218 (gf_powx_inv): Likewise.
16219 (scratch): Move higher.
16220 (gf_reduce): Removed.
16221 (gf_mul): Use powx.
16222 (gf_invert): Likewise.
16223 (init_inverts): Replaced with ...
16224 (init_powx): ...this. All users updated.
16225 (pol_evaluate): Replace multiplications with additions.
16226 (rs_encode): Likewise.
16227 (gauss_eliminate): Call gf_invert.
16228 (grub_reed_solomon_add_redundancy): Call init_powx.
16229 (grub_reed_solomon_recover): Call init_powx unconditionally.
16231 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16233 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
16235 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16237 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
16238 disk->partiton for safety.
16240 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16242 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
16244 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
16246 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16248 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
16250 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16252 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
16254 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16256 Fix spaces handling in proc/self/mountinfo.
16258 * util/getroot.c (unescape): New function.
16259 (grub_find_root_device_from_mountinfo): Use unescape.
16261 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16263 Support ZFS embedding.
16265 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
16266 (grub_zfs_fs): Register grub_zfs_embed.
16268 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16270 Fix MIPS compilation.
16272 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
16273 * include/grub/offsets.h: Rename decompressor fields from
16274 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
16275 * util/grub-mkimage.c (image_targets): Use new names.
16277 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16279 Defer multiboot device parsing until we're in compressed part.
16281 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
16282 bsd_part. setdevice has fallen into disuse.
16283 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
16284 (bsd_part): Likewise.
16285 (boot_dev): New variable.
16286 (multiboot_trampoline): Don't parse multiboot device.
16287 Pass multiboot device in %edx.
16288 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
16290 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
16292 * grub-core/kern/i386/pc/startup.S: Save edx.
16293 (grub_boot_drive): Removed.
16294 (grub_install_dos_part): Likewise.
16295 (grub_install_bsd_part): Likewise.
16296 (grub_boot_device): New variable.
16297 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
16298 (grub_install_bsd_part): Likewise.
16299 (grub_boot_drive): Likewise.
16300 (grub_boot_device): New variable.
16301 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
16303 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16304 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
16305 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
16306 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
16307 * util/grub-install.in: Remove redundant condition.
16309 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16311 Fix bug introduced by previous commit.
16313 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
16315 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16317 Use decompressors framework on i386-pc. It increases core size
16318 by 46 bytes but improves compatibility and maintainability.
16320 * grub-core/Makefile.core.def (lzma_decompress): New image.
16321 (kernel): Add i386_pc_ldflags.
16322 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
16323 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
16324 to real_to_prot, prot_to_real and device info.
16325 * include/grub/offsets.h: Renamed decompressor offsets.
16326 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
16327 (image_target_desc): Remove raw_size and rename decompressor fields.
16328 (compress_kernel): Handle lzma.
16329 (generate_image): Handle decompressors on i386-pc.
16331 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16333 * configure.ac: Add -fno-asynchronous-unwind-tables.
16335 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16337 Move assembly code to C by using intwrap. It increases core size
16338 by 88 bytes but improves compatibility and maintainability.
16340 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
16341 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
16342 ... here. Translated to C.
16343 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
16344 * grub-core/term/i386/pc/console.c (grub_console_getkey):
16345 ... here. Translated to C.
16346 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
16347 * grub-core/term/i386/pc/console.c (grub_console_getxy):
16348 ... here. Translated to C.
16349 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
16350 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
16351 ... here. Translated to C.
16352 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
16353 * grub-core/term/i386/pc/console.c (grub_console_cls):
16354 ... here. Translated to C.
16355 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
16356 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
16357 ... here. Translated to C.
16358 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
16359 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
16361 * grub-core/term/i386/pc/console.c (int10_9): New function.
16362 (grub_console_putchar): Likewise.
16363 * include/grub/i386/pc/console.h: Removed the not anymore shared
16366 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16368 Move grub_chainloader_real_boot out of the kernel.
16370 * grub-core/Makefile.am: Remove machine/loader.h.
16371 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16373 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
16375 (grub_relocator16_keep_a20_enabled): Likewise.
16376 (grub_relocator16_boot): Fill new variables.
16377 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
16378 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
16380 (grub_chainloader_unload): Likewise.
16381 (grub_chainloader_cmd): Likewise.
16382 * include/grub/i386/pc/loader.h: Removed.
16383 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
16384 and esi. All initialisers updated.
16386 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16387 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
16389 * Makefile.util.def (grub-mount): New util.
16390 * .bzrignore: Add grub-mount.
16391 * configure.ac: Check for fuse and enable grub-mount if available.
16392 * docs/man/grub-mount.h2m: New file.
16393 * util/grub-mount.c: Likewise.
16395 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16397 * grub-core/commands/efi/fixvideo.c: Gettextize.
16398 * grub-core/commands/hashsum.c: Likewise.
16399 * grub-core/commands/i386/cmostest.c: Likewise.
16400 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16401 * grub-core/commands/i386/pc/lsapm.c: Likewise.
16402 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16403 * grub-core/commands/lsmmap.c: Likewise.
16404 * grub-core/commands/menuentry.c: Likewise.
16405 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
16406 * grub-core/commands/setpci.c: Likewise.
16407 * grub-core/loader/i386/bsd.c: Likewise.
16408 * grub-core/loader/i386/linux.c: Likewise.
16409 * util/getroot.c: Likewise.
16410 * util/grub-editenv.c: Likewise.
16411 * util/grub-fstest.c: Likewise.
16412 * util/grub-mkfont.c: Likewise.
16413 * util/grub-mkimage.c: Likewise.
16414 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16415 * util/grub-pe2elf.c: Likewise.
16416 * util/grub-probe.c: Likewise.
16417 * util/grub-setup.c: Likewise.
16418 * util/ieee1275/ofpath.c: Likewise.
16419 * util/misc.c: Likewise.
16420 * util/raid.c: Likewise.
16422 2011-11-11 Robert Millan <rmh@gnu.org>
16424 * util/getroot.c (grub_util_get_geom_abstraction): Remove
16425 __attribute__((unused)) from `os_dev', which *is* being used.
16427 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16429 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
16431 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
16432 GRUB_IA64_DL_GOT_ALIGN.
16433 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
16434 GRUB_IA64_DL_TRAMP_ALIGN.
16436 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16438 Replace grub_fatal with normal errors in i386 linux loader.
16440 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
16441 (allocate_pages): Check find_efi_mmap_size return value.
16442 (grub_e820_add_region): Return error.
16443 (grub_linux_boot): Check mmap return value.
16445 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16447 * grub-core/commands/acpihalt.c: Gettextized.
16448 * grub-core/commands/cacheinfo.c: Likewise.
16449 * grub-core/commands/cmp.c: Likewise.
16450 * grub-core/commands/efi/loadbios.c: Likewise.
16451 * grub-core/commands/gptsync.c: Likewise.
16452 * grub-core/commands/ieee1275/suspend.c: Likewise.
16453 * grub-core/commands/legacycfg.c: Likewise.
16454 * grub-core/commands/memrw.c: Likewise.
16455 * grub-core/commands/minicmd.c: Likewise.
16456 * grub-core/commands/parttool.c: Likewise.
16457 * grub-core/commands/time.c: Likewise.
16458 * grub-core/commands/videoinfo.c: Likewise.
16459 * grub-core/disk/geli.c: Likewise.
16460 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
16461 * grub-core/disk/luks.c: Likewise.
16462 * grub-core/disk/lvm.c: Likewise.
16463 * grub-core/font/font_cmd.c: Likewise.
16464 * grub-core/fs/zfs/zfscrypt.c: Likewise.
16465 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16466 * grub-core/gfxmenu/view.c: Likewise.
16467 * grub-core/kern/emu/hostdisk.c: Likewise.
16468 * grub-core/kern/emu/main.c: Likewise.
16469 * grub-core/kern/emu/misc.c: Likewise.
16470 * grub-core/kern/emu/mm.c: Likewise.
16471 * grub-core/kern/mips/arc/init.c: Likewise.
16472 * grub-core/kern/mips/loongson/init.c: Likewise.
16473 * grub-core/kern/partition.c: Likewise.
16474 * grub-core/lib/i386/halt.c: Likewise.
16475 * grub-core/lib/mips/arc/reboot.c: Likewise.
16476 * grub-core/lib/mips/loongson/reboot.c: Likewise.
16477 * grub-core/loader/i386/pc/chainloader.c: Likewise.
16478 * grub-core/loader/i386/xnu.c: Likewise.
16479 * grub-core/loader/multiboot.c: Likewise.
16480 * grub-core/net/bootp.c: Likewise.
16481 * grub-core/net/net.c: Likewise.
16482 * grub-core/normal/term.c: Likewise.
16483 * grub-core/partmap/bsdlabel.c: Likewise.
16484 * grub-core/parttool/msdospart.c: Likewise.
16485 * grub-core/term/gfxterm.c: Likewise.
16486 * grub-core/term/terminfo.c: Likewise.
16487 * grub-core/video/i386/pc/vbe.c: Likewise.
16488 * util/grub-menulst2cfg.c: Likewise.
16489 * util/grub-mkdevicemap.c: Likewise.
16490 * util/grub-mklayout.c: Likewise.
16491 * util/grub-mkrelpath.c: Likewise.
16492 * util/grub-script-check.c: Likewise.
16493 * util/ieee1275/grub-ofpathname.c: Likewise.
16494 * util/resolve.c: Likewise.
16496 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16498 Support %1$d syntax.
16500 * tests/printf_unit_test.c: New file.
16501 * Makefile.util.def (printf_test): New test.
16502 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
16504 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16506 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
16509 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16511 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
16513 * grub-core/font/font.c (grub_font_load): Likewise.
16515 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16517 * util/grub-macho2img.c: Add comment concerning gettext.
16518 * grub-core/lib/legacy_parse.c: Likewise.
16520 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16522 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
16523 (grub_xvasprintf): Likewise.
16525 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16527 Add const keyword to grub_env_get and gettextize week days.
16529 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
16530 (grub_read_hook_datetime): Return const char *.
16531 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
16533 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16535 (grub_get_weekday_name): Return const char *. Call gettext.
16536 * grub-core/script/argv.c (grub_script_argv_append): Receive const
16537 char * and len as the argument. All users updated.
16538 (grub_script_argv_split_append): Receive const char *.
16539 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
16540 * include/grub/env.h (grub_env_get): Likewise.
16541 (grub_env_read_hook_t): Return const char *.
16542 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
16543 (grub_script_argv_split_append): Likewise.
16545 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16547 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
16549 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16551 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
16552 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
16554 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16556 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
16559 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16561 Fix mips compilation.
16563 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
16565 (hashes): Use in embed decoder as well (for sizes).
16566 (dec_stream_header): Fix embed decompressor logic.
16567 (dec_stream_footer): Likewise.
16569 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16571 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
16572 an error and not a fatal on unrecognised relocation types.
16574 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16576 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
16577 Issue error rather than printf on unknown arguments.
16579 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16581 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
16584 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16586 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
16589 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16591 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
16592 leftover debug printf.
16594 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16596 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
16598 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16600 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
16603 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16605 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
16607 2011-11-10 Shea Levy <slevy@tieronedesign.com>
16609 Allow all modules to perform serial IO
16611 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
16612 * include/grub/serial.h (grub_serial_port_configure): New inline
16614 (grub_serial_port_fetch): Likewise.
16615 (grub_serial_port_put): Likewise.
16616 (grub_serial_port_fini): Likewise.
16617 (grub_serial_find): New proto.
16619 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16621 Put symlink at the end of the node and fix a potential
16624 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
16625 Make symlink into an array.
16626 (set_rockridge): Set have_symlink and alloc_dirents.
16627 (grub_iso9660_read_symlink): Use new layout.
16628 (grub_iso9660_iterate_dir): Fix memory corruption.
16630 (grub_iso9660_dir): Set have_symlink.
16631 (grub_iso9660_open): Likewise.
16633 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16635 Remove local keyword.
16637 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
16638 (version_test_gt): Likewise.
16639 (version_find_latest): Likewise.
16640 (gettext_printf): Likewise.
16641 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
16643 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16645 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
16647 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16649 Fix ZFS memory and resource leaks.
16651 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
16654 (fill_vdev_info): New parameter inserted. All users updated.
16655 (check_pool_label): Likewise.
16656 (scan_disk): Likewise.
16657 (scan_devices): Close non-inserted disks.
16658 (fzap_iterate): Free l.
16659 (unmount_device): Free children descripto memory.
16661 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16663 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
16664 argument (access out of bounds).
16666 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16668 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
16671 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16673 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
16676 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16678 Fix several memory leaks.
16680 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
16681 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
16682 (grub_cpio_dir): Likewise.
16683 * grub-core/fs/fat.c (grub_fat_label): Likewise.
16684 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
16685 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
16686 (grub_romfs_label): Likewise.
16687 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
16688 (squash_unmount): New function.
16689 (grub_squash_dir): Fix memory leak.
16690 (grub_squash_open): Likewise.
16691 (grub_squash_read): Likewise.
16692 (grub_squash_mtime): Likewise.
16693 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
16694 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
16695 * util/grub-fstest.c (fstest): Likewise.
16697 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16699 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
16700 avoid accessing beyond the array.
16702 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16704 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
16706 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16708 Several AFFS fixes.
16710 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
16711 (GRUB_AFFS_FLAG_FFS): Removed.
16712 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
16713 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
16714 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
16715 (grub_fshelp_node): Make block 32-bit.
16716 Add block_cache and last_block_cache.
16717 (grub_affs_read_block): Fill and use block cache.
16718 (grub_affs_read_file): Removed.
16719 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
16721 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
16723 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
16725 (grub_affs_close): Free block cache.
16726 (grub_affs_read): Use grub_fshelp_read_file directly.
16728 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16730 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
16733 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16735 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
16737 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16740 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16742 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
16744 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
16745 byteswap when needed.
16747 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16749 Fix FreeBSD compilation.
16751 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
16752 to avoid circular dependency.
16753 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
16754 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
16755 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
16757 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16759 Fix ZFS crypto error types.
16761 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
16762 (grub_gcm_decrypt): Likewise.
16763 (grub_zfs_load_key_real): Fix error code type. Handle possible error
16766 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16770 * Makefile.util.def (10_illumos): New script.
16771 * configure.ac: Set COND_HOST_ILLUMOS.
16772 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
16773 Support Illumos calls.
16774 (find_partition_start) [__sun__]: Likewise.
16775 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
16776 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
16777 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
16778 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
16780 * util/grub-probe.c (probe) [__sun__]: Do character check.
16781 * util/grub.d/10_illumos.in: New file.
16783 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16785 Support escaped commas in hostdisk.
16787 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
16788 (find_grub_drive): Use unescape_cmp.
16789 (make_device_name): Escape commas.
16791 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16793 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
16795 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16797 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16800 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16802 Support trampoline jumps on powerpc.
16804 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16806 (grub_dl_load_segments): Set mod->sz.
16807 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16809 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16811 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16813 (trampoline): New struct.
16814 (trampoline_template): New const.
16815 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16816 * include/grub/dl.h (grub_dl): Add sz element.
16817 [__powerpc__]: Follow __ia64__.
16818 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16819 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16820 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16821 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16823 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16825 ZFS crypto support.
16827 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16828 * grub-core/Makefile.core.def (zfscrypt): New module.
16829 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16830 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16831 it. All users updated.
16832 (grub_zfs_decrypt): New var.
16833 (grub_zfs_load_key): Likewise.
16834 (zio_checksum_functions): Add SHA256+MAC.
16835 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16836 (zio_read): Handle encrypted blocks.
16837 (zap_verify): Remove incorrect check.
16838 (fzap_iterate): Handle non-standard fzap.
16839 (zap_iterate): Likewise.
16840 (zap_iterate_u64): New function.
16841 (dnode_get_fullpath): Load keys.
16842 * grub-core/fs/zfs/zfscrypt.c: New file.
16843 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16844 (grub_crypto_ecb_encrypt): Make input const.
16845 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16846 (grub_crypto_ecb_encrypt): Make input const.
16847 (GRUB_CIPHER_AES): New macro.
16848 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16849 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16850 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16851 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16852 prefix. All users updated.
16853 (grub_zfs_add_key): New proto.
16854 (grub_zfs_decrypt): Likewise.
16855 (grub_zfs_load_key): Likewise.
16856 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16857 * util/grub-fstest.c (options): Add -K option.
16858 (argp_parser): Likewise.
16860 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16862 Support zle compression on ZFS.
16864 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16865 (decomp_table): Add zle.
16866 * include/grub/zfs/zio.h (zio_compress): Add zle.
16868 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16870 Support BtrFS embedding.
16872 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
16873 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
16874 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
16875 * util/grub-setup.c (setup): Use fs embedding if available.
16876 Add additional sanity check.
16878 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16880 * util/grub-install.in: Fix condition for config_opt.
16882 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16884 Support third redundancy strip on raidz3.
16886 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
16887 Return error on singularity. All users updated.
16888 (read_device): Don't stop on 3rd failure on raidz3.
16890 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16892 Support case-insensitive ZFS subvolumes.
16894 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
16896 (zap_hash): Likewise.
16897 (name_cmp): New function.
16898 (zap_leaf_array_equal): New parameter case_insensitive.
16900 (zap_leaf_lookup): Likewise.
16901 (fzap_lookup): Likewise.
16902 (zap_lookup): Likewise.
16903 (dnode_get_path): New parameter case_insensitive. Retrieve case
16904 sensitiviness of a volume. All users updated.
16905 (dnode_get_fullpath): New parameter case_insensitive.
16907 (grub_zfs_dir): Set info.case_insensitiveness.
16909 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16911 Support second redundancy strip on raidz(2,3).
16913 * grub-core/fs/zfs/zfs.c (powx): New array.
16914 (powx_inv): Likewise.
16916 (xor_out): New function.
16917 (gf_mul): Likewise.
16918 (recovery): Likewise.
16919 (read_device): Use second redundancy strip.
16921 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16923 Use a power of generator representation of GF(256) multiplication group
16924 to save space time and complexity.
16926 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
16927 (raid6_table2): Likewise.
16929 (powx_inv): Likewise.
16931 (grub_raid_block_mul): Replace with ...
16932 (grub_raid_block_mulx): ...this.
16933 (grub_raid6_init_table): Rewritten.
16934 (grub_raid6_recover): Use power of generator representation.
16936 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16938 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
16939 for the right device.
16941 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16943 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
16944 expected by grub-mkimage and it's more clear since there is no implicit
16947 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16949 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
16951 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16953 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
16955 * util/grub-mkrescue.in: Fix handling xorriso option.
16957 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16959 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
16962 2011-11-03 crocket <crockabiscuit@gmail.com>
16964 * util/grub.d/10_linux.in: Add Slackware initrd naming.
16966 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16968 XZ CRC64 and SHA256 support.
16970 * Makefile.util.def (libgrubmods): Add crc64.c.
16971 * grub-core/Makefile.core.def (crc64): New module.
16972 * grub-core/lib/crc64.c: New file.
16973 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
16974 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
16976 (MAX_HASH_SIZE): New define.
16977 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
16978 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
16979 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16980 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16981 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
16982 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
16983 Handle non-crc32 hashes.
16984 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
16985 (dec_stream_header): Handle non-crc32 hashes.
16986 (dec_stream_footer): Likewise.
16987 (dec_block_header): Likewise.
16988 (dec_main): Likewise.
16989 (xz_dec_init): Likewise.
16990 (xz_dec_reset): Likewise.
16991 (xz_dec_end): Likewise.
16992 * util/import_gcry.py: Add CRC64 line.
16994 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16996 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
16999 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17001 Make reiserfs label retrieval similar to other *_label functions.
17003 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
17004 (REISERFS_MAX_LABEL_LENGTH): Removed.
17005 (REISERFS_LABEL_OFFSET): Likewise.
17006 (grub_reiserfs_label): Rewritten.
17008 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17010 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
17013 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17015 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
17017 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
17019 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
17020 drive failure on both raidz and raidz2.
17022 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
17024 Fix RAIDZ(2) for >= 5 devices.
17026 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
17027 asize argument. All users updated.
17029 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17033 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
17034 (fill_vdev_info_real): Set ashift.
17035 (read_device): Rewrite RAIDZ part based on reverse engineering.
17037 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17039 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
17040 don't report potentially unavialiable fields in debug output.
17041 (find_path): Fix double-free and memory leak.
17043 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17045 Read label on UFS1.
17047 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
17048 (grub_ufs_fs): Always set .label.
17050 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17054 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
17055 (grub_ufs_data): New field log2_blksz.
17056 (grub_ufs_read_file): Use shifts.
17057 (grub_ufs_mount): Check block size and logarithm it.
17059 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17061 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
17064 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17066 Handle symlinks and long names on tar and cpio.
17068 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
17069 (ATTR_FILE): Likewise.
17070 (ATTR_DIR): Likewise.
17071 (ATTR_LNK): Likewise.
17072 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
17073 (grub_cpio_find_file): Fill mode, handle linkname field as well as
17075 (grub_cpio_mount): Zero-fill data.
17076 (handle_symlink): New function.
17077 (grub_cpio_dir): Handle symlinks.
17078 (grub_cpio_open): Likewise.
17079 (grub_cpio_close) [MODE_USTAR]: Free linkname.
17081 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17083 Fix iso9660 filename limitations and fix memory leaks.
17085 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
17086 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
17088 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17090 Fix JFS file name length limitations.
17092 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
17093 (grub_jfs_diropen): Fix maximum filename length.
17094 (grub_jfs_getent): Fix filename length.
17095 (grub_jfs_lookup_symlink): Fix size checks.
17097 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17099 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
17102 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17104 Leverage BFS implementation to read AFS.
17106 * Makefile.util.def (libgrubmods): Add afs.c.
17107 * grub-core/Makefile.core.def (afs): New module
17108 * grub-core/fs/afs.c: New file.
17109 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
17111 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17113 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
17115 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17117 * grub-core/fs/bfs.c: Run indent.
17119 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17121 BFS implementation based on the specification.
17123 * grub-core/fs/bfs.c: New file.
17124 * Makefile.util.def (libgrubmods): Add bfs.c.
17125 * grub-core/Makefile.core.def (bfs): New module.
17127 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17129 * util/grub-fstest.c (cmd_cp): Clarify error message.
17130 (cmd_cmp): Likewise.
17132 2011-10-30 Yves Blusseau <blusseau@zetam.org>
17134 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
17137 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
17139 Remove afs and befs because of copyright problem.
17141 * grub-core/fs/afs.c: Removed.
17142 * grub-core/fs/afs_be.c: Removed.
17143 * grub-core/fs/befs.c: Removed.
17144 * grub-core/fs/befs_be.c: Removed.
17145 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
17146 * grub-core/Makefile.core.def (afs): Removed.
17147 (afs_be): Likewise.
17149 (befs_be): Likewise.
17151 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17153 Prefer rockridge over Joliet.
17155 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
17157 (set_rockridge): ... here.
17158 (grub_iso9660_mount): Check rockridge on the primary label when
17159 discovering. Ignore Joliet if Rockridge is present.
17161 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17163 Use shifts in nilfs2.
17165 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
17166 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
17167 (grub_nilfs2_palloc_entries_per_group): Replace with ...
17168 (grub_nilfs2_log_palloc_entries_per_group): ... this.
17169 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
17170 (grub_nilfs2_entries_per_block): Replaced with ...
17171 (grub_nilfs2_log_entries_per_block_log): ... this.
17172 (grub_nilfs2_blocks_per_group): Replaced with ...
17173 (grub_nilfs2_blocks_per_group_log): ... this.
17174 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
17175 (grub_nilfs2_blocks_per_desc_block_log): ... this.
17176 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
17177 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
17178 (grub_nilfs2_palloc_entry_offset): Replaced ...
17179 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
17180 (grub_nilfs2_dat_translate): Use shifts.
17181 (grub_nilfs2_read_inode): Likewise.
17182 (GRUB_MOD_INIT): Ensure that logs are correct.
17184 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17186 Use shifts in minix filesystem.
17188 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
17189 (GRUB_MINIX_ZONE2SECT): Likewise.
17190 (grub_minix_data): Replace block_size with log_block_size.
17191 (grub_minix_read_file): Use shifts.
17192 (grub_minix_mount): Check block size and take a logarithm.
17194 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17196 Use shifts in squash4.
17198 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
17199 (squash_mount): Check block size and take logarithm.
17200 (direct_read): Use shifts.
17202 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17204 Correct befs block counting logic.
17206 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
17207 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
17208 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
17209 (grub_afs_read_inode): Use block_shift.
17210 (RANGE_SHIFT): New definition.
17211 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
17212 unexpected conditions, use shifts and appropriate types.
17213 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
17215 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17217 * grub-core/disk/raid.c (scan_devices): Check partition.
17218 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17220 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17222 Support BFS (befs) UUID.
17224 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
17225 (grub_afs_small_data_element_header): New struct.
17226 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
17227 (grub_afs_read_attribute) [MODE_BFS]: New function.
17228 (grub_afs_iterate_dir): Allocate for complete inode.
17229 (grub_afs_mount): Likewise.
17230 (grub_afs_uuid) [MODE_BFS]: New function.
17231 (grub_afs_fs) [MODE_BFS]: Add .uuid.
17233 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17235 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
17236 (zfs_unmount): Fix memory leak.
17238 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17240 Support NTFS reparse points.
17242 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
17243 (symlink_descriptor): New struct.
17244 (grub_ntfs_read_symlink): New function.
17245 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
17246 (grub_ntfs_open): Likewise.
17248 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17250 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
17252 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17254 fstest xnu_uuid subcommand.
17256 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
17257 grub-core/commands/xnu_uuid.c.
17258 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
17259 (fstest): Handle xnu_uuid.
17260 (options): Document xnu_uuid.
17261 (argp_parser): Parse xnu_uuid.
17263 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17265 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
17266 -l argument. Add newline at the end if printing.
17267 (GRUB_MOD_INIT): Document -l.
17269 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17271 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
17273 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17275 ZFS multi-device and version 33 support.
17277 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
17278 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
17279 (grub_zfs_data): Add multidev-ice-related fields.
17280 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
17281 (dva_get_offset): Make dva const.
17282 (zfs_fetch_nvlist): New function.
17283 (fill_vdev_info_real): Likewise.
17284 (fill_vdev_info): Likewise.
17285 (check_pool_label): Likewise.
17286 (scan_disk): Likewise.
17287 (scan_devices): Likewise.
17288 (read_device): Likewise.
17289 (read_dva): Likewise.
17290 (zio_read_gang): Use read_dva.
17291 (zio_read_data): Likewise.
17292 (zap_leaf_lookup): Add missing endian conversion.
17293 (zap_verify): Add missing endian conversion. All users updated.
17294 (fzap_lookup): Likewise.
17295 (fzap_iterate): Likewise.
17296 (dnode_get_path): Handle SA bonus.
17297 (nvlist_find_value): Make input const. All users updated.
17298 (unmount_device): New function.
17299 (zfs_unmount): Use unmount_device.
17300 (zfs_mount): Use scan_disk.
17301 (zfs_mtime): New function.
17302 (grub_zfs_open): Handle system attributes.
17303 (fill_fs_info): Likewise.
17304 (grub_zfs_dir): Likewise.
17305 (grub_zfs_fs): Add mtime.
17306 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
17307 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
17308 (SA_MTIME_OFFSET): Likewise.
17309 (SA_SYMLINK_OFFSET): Likewise.
17310 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
17311 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
17312 (fstest): Support zfsinfo.
17313 (argp_parser): Likewise.
17315 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17317 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
17320 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17324 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
17325 sharing the same block. Iterate over correct number of indices.
17326 (dnode_get_path): Handle symlinks correctly.
17328 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17330 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
17332 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17334 Read label on HFS+.
17336 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
17337 (grub_hfsplus_btree_search): Fix types.
17338 (grub_hfsplus_label): Implement.
17340 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17342 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
17344 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17346 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
17348 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17350 Fix symlink handling on iso9660.
17352 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
17354 (grub_iso9660_susp_iterate): Accept zero-size iterate.
17355 (grub_iso9660_read_symlink): Moved most of code ...
17356 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
17358 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17360 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17361 Use union to avoid breaking strict-aliasing rules.
17363 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17365 Support multi-extent iso files.
17367 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
17369 (grub_fshelp_node): Revamp. All users updated.
17370 (FLAG_*): New enum.
17371 (read_node): New function.
17372 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
17374 (grub_iso9660_mount): Don't attempt to read sua when there is none.
17375 (get_node_size): New function.
17376 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
17378 Fix memory leak on . and ..
17379 (grub_iso9660_read): Use read_node.
17380 (grub_iso9660_close): Free node.
17382 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17384 Fix tar 4G limit and handle paths containing dot.
17386 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
17387 (canonicalize): New function.
17388 (grub_cpio_find_file): Use canonicalize. Store offs in
17390 (grub_cpio_dir): Use grub_disk_addr_t.
17391 (grub_cpio_open): Likewise.
17393 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17395 Fix handling of uncompressed blocks on squashfs and break 4G limit.
17397 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
17399 (grub_squash_inode): Add long_file and block_size.
17400 (grub_squash_cache_inode): New struct.
17401 (grub_squash_dirent): Make types into enum.
17402 (SQUASH_TYPE_LONG_REGULAR): New type.
17403 (grub_squash_frag_desc): Add field size.
17404 (SQUASH_BLOCK_FLAGS): New enum.
17405 (grub_squash_data): Use grub_squash_cache_inode.
17406 (grub_fshelp_node): Make ino_chunk 64-bit.
17407 (read_chunk): Minor argument change. All users updated.
17408 (squash_mount): Use correct le_to_cpu.
17409 (grub_squash_open): Handle LONG_REGULAR.
17410 (direct_read): New function.
17411 (grub_squash_read_data): Handle blocks correctly.
17413 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17415 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
17417 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17419 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
17421 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17423 Fix 2G limit on ZFS.
17425 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
17427 (uberblock_verify): Likewise.
17428 (dmu_read): Likewise.
17429 (grub_zfs_read): Likewise. Remove invalid cast.
17431 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17433 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
17434 (grub_jfs_blkno): Fix incorrect shift.
17435 (grub_jfs_read_file): Use more appropriate types.
17437 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17439 Support triple indirect on minix2 and minix3.
17441 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
17442 Declare triple_indir_zone.
17443 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
17446 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17450 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
17451 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
17452 Rename ctime to mtime. All users updated.
17453 (grub_minix_get_file_block): Fix types and double indirect computations.
17455 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17457 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
17458 if no label is found.
17459 (grub_fat_iterate_dir): Fix file size type.
17460 (grub_fat_iterate_dir): Likewise.
17462 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17464 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
17466 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17467 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17469 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17471 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
17473 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17475 * util/import_gcry.py: Accept space between # and include.
17477 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17479 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
17481 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17483 Fine grainely disable warnings on lexer. Remove Wno-error on it.
17485 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
17486 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
17488 * grub-core/script/yylex.l: Add fine-grained #pragma.
17490 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17492 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
17493 New inline function.
17494 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
17496 (memset) [GRUB_UTIL]: Likewise.
17497 (memcmp) [GRUB_UTIL]: Likewise.
17499 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17501 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
17502 inline function rather than a define.
17504 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17506 * util/grub-setup.c: Add missing include.
17508 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17510 * util/ieee1275/grub-ofpathname.c: Add missing include.
17512 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17514 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
17515 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
17518 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17520 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
17523 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17525 * util/grub-install.in: Add datarootdir as per automake manual
17527 * util/grub-mknetdir.in: Likewise.
17529 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17531 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
17533 * util/grub.d/10_kfreebsd.in: Likewise.
17534 * util/grub.d/10_linux.in: Likewise.
17535 * util/grub.d/10_netbsd.in: Likewise.
17536 * util/grub.d/10_windows.in: Likewise.
17537 * util/grub.d/20_linux_xen.in: Likewise.
17539 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
17541 Remove redundant grub_kernel_image_size.
17543 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
17545 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
17546 the small code. It moves it only by few bytes but simplifies the code.
17547 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
17549 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
17550 (grub_kernel_image_size): Removed.
17551 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
17552 (grub_kernel_image_size): Removed.
17553 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
17554 compiled with Apple toolchain.
17555 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
17556 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
17557 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
17558 (grub_total_module_size): Likewise.
17559 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
17561 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
17562 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
17563 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
17564 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
17565 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
17566 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
17567 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
17568 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
17570 (grub_total_module_size): Removed.
17571 * util/grub-mkimage.c (image_target_desc): Remove image_size.
17572 (image_targets): Likewise.
17573 Set .compressed_size to no field on sparc.
17574 (generate_image): Remove kernel_image_size handling.
17576 2011-10-19 Szymon Janc <szymon@janc.net.pl>
17578 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
17579 NULL pointer dereference.
17581 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17583 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
17584 done with a dedicated section.
17586 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
17587 Ensure the correct position of boot_path.
17588 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
17589 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
17591 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
17592 * include/grub/boot.h: Removed. All references removed.
17593 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17595 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
17597 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17599 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
17602 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17604 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
17606 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17608 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
17609 Don't add the bogus brackets.
17611 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17615 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
17616 * grub-core/Makefile.core.def (exfat): New module.
17617 * grub-core/fs/exfat.c: New file.
17618 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
17619 (GRUB_FAT_ATTR_*): Make into an enum.
17620 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
17621 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
17622 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
17623 (GRUB_FAT_MAXFILE): Removed.
17624 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
17625 (grub_current_fat_bpb_t): New type.
17626 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
17627 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
17628 (grub_fat_dir_node_t): New type.
17629 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
17630 (fat_log2) [MODE_EXFAT]: Removed.
17631 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
17632 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
17633 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
17634 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
17635 (grub_fat_label) [MODE_EXFAT]: New function.
17636 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
17637 reserved_first_sector to 0.
17639 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17641 Move grub_reboot out of the kernel.
17643 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
17644 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
17645 * grub-core/lib/efi/reboot.c: ... here.
17646 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
17647 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17648 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
17649 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
17650 * grub-core/lib/i386/reboot_trampoline.S: ... here.
17651 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
17652 * grub-core/lib/ieee1275/reboot.c: ... here.
17653 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
17654 * grub-core/lib/mips/arc/reboot.c: ... here.
17655 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
17656 * grub-core/lib/mips/loongson/reboot.c: ...here.
17657 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
17658 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
17659 * include/grub/emu/misc.h (grub_reboot): New function declaration.
17660 * include/grub/i386/reboot.h: New file.
17661 * include/grub/mips/loongson/ec.h: Fix includes.
17662 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
17663 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
17664 * grub-core/lib/i386/reboot.c: New file.
17666 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
17668 Make grub_prefix into module to fix the arbitrary limit and save
17671 * grub-core/kern/emu/main.c (grub_prefix): Removed.
17672 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
17673 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
17674 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
17675 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
17676 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
17677 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
17678 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
17679 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17680 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
17681 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
17682 * include/grub/ia64/efi/kernel.h: Removed.
17683 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
17684 (grub_prefix): Removed.
17685 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
17686 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
17687 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
17688 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
17689 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
17690 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
17691 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
17692 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
17693 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
17694 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
17695 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
17696 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
17697 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
17698 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
17699 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
17700 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
17701 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
17702 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
17703 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
17704 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
17705 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
17706 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
17707 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
17708 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
17709 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
17710 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
17711 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
17712 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
17713 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
17715 * util/grub-mkimage.c (image_target_desc): Removed prefix and
17717 (image_targets): Likewise.
17718 (generate_image): Put prefix as a module.
17720 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17722 Replace grub_module_iterate with FOR_MODULES.
17724 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
17725 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
17726 (grub_efi_modules_addr): ...this.
17727 * grub-core/kern/efi/init.c (grub_modbase): New variable.
17728 (grub_efi_init): Set grub_modbase.
17729 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
17730 (grub_modbase): New variable.
17731 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
17732 (grub_modbase): New variable.
17733 (grub_machine_init): Set grub_modbase.
17734 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
17735 (grub_modbase): New variable.
17736 (grub_machine_init): Set grub_modbase.
17737 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
17738 (grub_modbase): New variable.
17739 (grub_machine_init): Set grub_modbase.
17740 * grub-core/kern/main.c (grub_module_iterate): Remove.
17741 (grub_modules_get_end): Use grub_modbase.
17742 (grub_load_modules): Use FOR_MODULES.
17743 (grub_load_config): Likewise.
17744 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
17745 (grub_modbase): New variable.
17746 (grub_machine_init): Set grub_modbase.
17747 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
17748 (grub_modbase): New variable.
17749 (grub_machine_init): Set grub_modbase.
17750 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
17752 (grub_modbase): New variable.
17753 (grub_machine_init): Set grub_modbase.
17754 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
17755 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
17756 (grub_module_iterate): Likewise.
17757 (grub_modbase): New variable declaration.
17758 (FOR_MODULES): New macro.
17760 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17762 * configure.ac: Check for __ctzdi2 and __ctzsi2.
17763 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
17765 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17767 Fix few obvious type discrepancies.
17769 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
17770 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
17771 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
17773 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
17774 and connected types.
17775 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17777 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
17778 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
17779 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
17780 and connected types.
17782 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17784 Fix python 3.x incompatibilities.
17786 * gentpl.py: Put brackets around print strings.
17787 * util/import_gcry.py: Open explicitly as utf-8.
17788 Use in instead of has_key.
17790 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17792 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
17793 (GRUB_XFS_INO_AGBITS): Make into inline function.
17794 (GRUB_XFS_INO_INOINAG): Likewise.
17795 (GRUB_XFS_INO_AG): Likewise.
17796 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17797 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17798 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17799 (GRUB_XFS_EXTENT_SIZE): Likewise.
17800 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17801 (GRUB_XFS_NEXT_DIRENT): Likewise.
17802 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17803 (grub_xfs_read_file): Fix offset type.
17805 2011-10-15 Robert Millan <rmh@gnu.org>
17807 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17809 2011-10-15 Robert Millan <rmh@gnu.org>
17811 Fix build problem on FreeBSD and GNU/kFreeBSD.
17813 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17815 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17817 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17819 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17821 (grub_hfsplus_btree_recoffset): Likewise.
17822 (grub_hfsplus_btree_recptr): Likewise.
17823 (grub_hfsplus_find_block): Likewise.
17824 (grub_hfsplus_btree_search): Likewise.
17825 (grub_hfsplus_read_block): Likewise.
17826 (grub_hfsplus_read_file): Likewise.
17827 (grub_hfsplus_mount): Likewise.
17828 (grub_hfsplus_btree_iterate_node): Likewise.
17829 (grub_hfsplus_btree_search): Likewise.
17830 (grub_hfsplus_iterate_dir): Likewise.
17831 (grub_hfsplus_read): A small code simplification.
17833 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17835 * grub-core/kern/emu/hostdisk.c
17836 (convert_system_partition_to_system_disk): Don't assume that children
17837 of mapper nodes are mapper nodes.
17839 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17841 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17842 * include/grub/misc.h (grub_isxdigit): New function.
17843 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17844 switched to grub_isxdigit.
17845 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17846 number starting with a letter.
17848 2011-10-09 Robert Millan <rmh@gnu.org>
17850 LVM support for FreeBSD and GNU/kFreeBSD.
17852 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17854 (LVM_DEV_MAPPER_STRING): Move from here ...
17855 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17856 * util/getroot.c: Include `<grub/util/lvm.h>'.
17857 (grub_util_get_dev_abstraction): Enable
17858 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17859 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17860 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17861 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17863 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17865 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17866 when LVM abstraction is required for ${GRUB_DEVICE}.
17868 2011-10-06 Szymon Janc <szymon@janc.net.pl>
17870 Add support for LZO compression in GRUB:
17871 - import of minilzo library,
17872 - LZO decompression for btrfs,
17873 - lzop files decompression.
17875 * grub-core/io/lzopio.c: New file.
17876 * grub-core/lib/adler32.c: Likewise.
17877 * grub-core/lib/minilzo/lzoconf.h: Likewise.
17878 * grub-core/lib/minilzo/lzodefs.h: Likewise.
17879 * grub-core/lib/minilzo/minilzo.c: Likewise.
17880 * grub-core/lib/minilzo/minilzo.h: Likewise.
17881 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
17882 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
17883 grub-core/lib/minilzo/minilzo.c to common.
17884 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
17885 cflags in cppflags.
17886 * grub-core/Makefile.core.def (btrfs): Likewise.
17887 * grub-core/Makefile.core.def (lzopio): New module.
17888 (adler32): Likewise.
17889 * grub-core/fs/btrfs.c: Include minilzo.h.
17890 (GRUB_BTRFS_COMPRESSION_LZO): New define.
17891 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
17892 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
17893 (grub_btrfs_lzo_decompress): New function.
17894 (grub_btrfs_extent_read): Add support for LZO compression type.
17895 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
17896 (GRUB_USHRT_MAX): Likewise.
17897 (GRUB_UINT_MAX): Likewise.
17898 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
17899 (UINT_MAX): Likewise.
17900 (CHAR_BIT): Likewise.
17901 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
17902 grub-core/lib/posix_wrap/limits.h
17903 (UCHAR_MAX): Likewise.
17904 * include/grub/file.h (grub_file_filter_id): New compression filter
17905 GRUB_FILE_FILTER_LZOPIO.
17906 * include/grub/file.h (grub_file_filter_id): Set
17907 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
17908 * include/grub/types.h (grub_get_unaligned16): New function.
17909 (grub_get_unaligned32): Likewise.
17910 (grub_get_unaligned64): Likewise.
17911 * util/import_gcry.py (cryptolist): Add adler32.
17913 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
17915 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
17916 in perspective decreases the complexity of build system and fixes
17917 compilation right now.
17919 2011-10-01 Ales Nesrsta <starous@volny.cz>
17921 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
17922 (fixed problem related to using UHCI with coreboot).
17924 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17926 * gentpl.py: Use Autogen macros so that the output template file
17927 (Makefile.tpl) size is reduced.
17929 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
17931 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
17934 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17936 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
17937 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
17939 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17941 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
17944 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17946 Remove extra declaration of sleep for mingw32.
17948 * util/misc.c (sleep) [__MINGW32__]: Removed.
17949 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
17951 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
17953 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
17955 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
17957 (NETBSD_BTINFO_BOOTWEDGE): New definition.
17958 (grub_netbsd_btinfo_bootwedge): New struct.
17959 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17961 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
17963 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
17965 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
17968 2011-09-28 Andreas Born <futur.andy@googlemail.com>
17970 Fix incorrect identifiers in bash-completion.
17972 * util/bash-completion.d/grub-completion.bash.in
17973 (_grub_mkpasswd-pbkdf2): Rename to ...
17974 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
17975 (_grub_script-check): Rename to ...
17976 (_grub_script_check): ... this. All users updated.
17978 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
17980 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
17981 Return 0 if disk isn't biosdisk.
17983 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17985 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
17987 * Makefile.util.def (grub-fstest): Likewise.
17989 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17991 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
17992 Get sector size from disk label.
17994 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
17996 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
17997 */README* as well as README*.
17998 Reported by: Axel Beckert.
18000 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18002 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
18003 case of less than 256 MiB of RAM.
18005 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18007 * grub-core/commands/wildcard.c (make_regex): Handle @.
18009 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18011 * util/grub-install.in: Move cryptodisk logic to appropriate place.
18013 2011-08-21 Szymon Janc <szymon@janc.net.pl>
18015 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
18016 AC_LANG_CONFTEST macros.
18018 2011-08-20 Szymon Janc <szymon@janc.net.pl>
18020 Add grub-fstest option to uncompress data for commands.
18022 * util/grub-fstest.c (uncompress): New var.
18023 (options): New option -u.
18025 2011-08-20 Szymon Janc <szymon@janc.net.pl>
18027 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
18028 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
18030 2011-08-20 Szymon Janc <szymon@janc.net.pl>
18032 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
18033 file type was not recognized correctly (not gzip or corrupted).
18035 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18037 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
18038 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
18040 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18042 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
18044 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
18045 video_radeon_fuloong2e.
18046 * grub-core/video/radeon_fuloong2e.c: New file.
18047 * include/grub/video.h (grub_video_id_t): Add new ID
18048 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
18050 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18052 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
18054 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
18055 that PRID matches the detected subplatform and reset the subplatform
18058 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18060 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
18062 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18064 Fix PCI iterating on functions >= 4.
18066 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
18067 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
18069 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
18070 (grub_pci_read): Fix bitmask.
18071 (grub_pci_read_word): Likewise.
18072 (grub_pci_read_byte): Likewise.
18073 (grub_pci_write): Likewise.
18074 (grub_pci_write_word): Likewise.
18075 (grub_pci_write_byte): Likewise.
18077 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18079 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
18080 can still be specified in TARGET_CFLAGS)
18082 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18084 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
18086 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
18087 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
18088 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
18089 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
18090 (FULOONG): Rename to ...
18091 (FULOONG2F): ... this. All users updated.
18092 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
18093 (machtype_fuloong2f_str): ... this.
18094 (machtype_fuloong2e_str): New string.
18095 Check for machtype_fuloong2e_str.
18096 * grub-core/loader/mips/linux.c (loongson_machtypes)
18097 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
18098 * grub-core/term/serial.c (loongson_defserial)
18099 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
18100 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
18101 loongson_defserial.
18102 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
18104 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
18105 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
18106 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
18107 to IMAGE_FULOONG2F_FLASH. All users updated.
18108 (image_targets): Rename images.
18109 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
18111 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18113 Make enable of disk cache statistics code configurable.
18115 * configure.ac: --enable-cache-stats added.
18116 * config.h.in (DISK_CACHE_STATS): New define.
18117 * grub-core/Makefile.core.def (cacheinfo): New command.
18118 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
18119 * grub-core/commands/cacheinfo.c: New file.
18120 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
18121 moved to cacheinfo.c.
18122 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
18124 * include/grub/disk.h: Likewise.
18126 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18128 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
18129 * grub-core/Makefile.am: Likewise.
18131 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18133 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
18136 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18138 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
18140 (grub_jfs_lookup_symlink): Use correct starting inode.
18142 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18144 * util/grub-setup.c (main): Add missing gcry initialisation.
18146 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18148 Don't accept text modes on EFI when booting Linux.
18150 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
18151 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
18153 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
18154 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18156 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
18157 use of "/path/.." as in grub-install for EFI as well as handling
18158 symlinks correctly.
18159 Fixes Debian bug #637768.
18161 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18163 * util/grub-probe.c: Remove duplicate #include.
18165 2011-08-10 Robert Millan <rmh@gnu.org>
18167 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
18169 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
18171 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
18172 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
18174 2011-08-03 Robert Millan <rmh@gnu.org>
18176 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
18177 la_array as packed.
18178 Reported by: Zachary Bedell
18180 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18182 * configure.ac: The Loongson port requires grub-mkfont due to its
18183 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
18186 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18188 * util/grub-install.in: Don't source grub-mkconfig_lib until after
18189 processing arguments (otherwise help2man fails when GRUB has not yet
18192 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18194 New script grub-mkstandalone.
18196 * Makefile.util.def (grub-mkstandalone): New script.
18197 * docs/man/grub-mkstandalone.h2m: New file.
18198 * util/grub-mkstandalone.in: Likewise.
18200 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18202 Support ATA disks with 4K sectors.
18204 * include/grub/ata.h (grub_ata): New member log_sector_size.
18205 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
18206 (grub_ata_identify): Read sector size.
18207 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
18209 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18211 * util/grub-install.in: Don't use uhci outside of x86.
18213 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18215 * util/grub-mkrescue.in: Add missing quotes.
18217 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18219 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
18222 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18224 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
18226 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18228 * include/grub/video.h: add missing EXPORT_FUND on
18229 grub_video_edid_checksum and grub_video_edid_preferred_mode.
18231 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18233 * include/grub/mips/kernel.h: Fix define conflict.
18235 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18237 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
18240 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
18242 Preferred resolution detection for VBE.
18244 * grub-core/video/video.c (grub_video_edid_checksum): New function.
18245 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
18246 the Flat Panel extension, in line with the X.org VESA driver.
18247 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
18249 (grub_vbe_bios_get_ddc_capabilities): Likewise.
18250 (grub_vbe_bios_read_edid): Likewise.
18251 (grub_vbe_get_preferred_mode): Likewise.
18252 (grub_video_vbe_setup): When the mode is "auto", try to get the
18253 preferred mode from VBE, and use the largest mode that is no larger
18254 than the preferred mode (some BIOSes expose a preferred mode that is
18255 not in their mode list!). If this fails, fall back to 640x480 as a
18256 safe conservative choice.
18257 (grub_video_vbe_get_edid): New function.
18258 (grub_video_vbe_adapter): Add get_edid.
18259 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
18260 (struct grub_video_adapter): Add get_edid.
18261 (grub_video_edid_checksum): Add prototype.
18262 (grub_video_edid_preferred_mode): Likewise.
18263 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
18266 * grub-core/commands/videoinfo.c (print_edid): New function.
18267 (grub_cmd_videoinfo): Print EDID if available.
18269 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
18270 is more appropriate on a wider range of platforms than 640x480.
18271 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
18274 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18276 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
18278 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18280 * po/POTFILES.in: Regenerate.
18282 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18284 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
18285 incorrect memory usage.
18287 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18289 * util/grub-install.in: Source grub-mkconfig_lib.
18291 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18293 Remove getroot.c from core on emu platform.
18295 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
18297 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
18299 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
18300 * util/getroot.c (get_win32_path): ... here.
18301 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
18302 * util/getroot.c (fini_libzfs): ... here.
18303 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
18304 * util/getroot.c (grub_get_libzfs_handle): ... here.
18305 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
18307 * util/getroot.c (grub_find_zpool_from_dir): ... here.
18308 * grub-core/kern/emu/misc.c
18309 (grub_make_system_path_relative_to_its_root): Moved from here...
18310 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
18311 * grub-core/kern/emu/getroot.c: Moved from here ...
18312 * util/getroot.c: ... here. All users updated.
18313 * grub-core/kern/emu/raid.c: Moved from here ...
18314 * util/raid.c: ... here. All users updated.
18316 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18318 * po/POTFILES.in: Regenerate.
18320 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18322 Fix compilation on GNU/Linux.
18324 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
18326 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
18327 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
18328 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
18330 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18331 2011-07-07 Michael Gorven <michael@gorven.za.net>
18332 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
18334 LUKS and GELI support.
18336 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
18337 grub-core/disk/luks.c, grub-core/disk/geli.c,
18338 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
18339 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
18340 grub-core/lib/arg.c.
18341 (libgrubmods.a): Remove gcrypts cflags and cppflags.
18342 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
18343 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
18344 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
18345 (grub-bin2h): Add libgcry.a.
18346 (grub-mkimage): Likewise.
18347 (grub-mkrelpath): Likewise.
18348 (grub-script-check): Likewise.
18349 (grub-editenv): Likewise.
18350 (grub-mkpasswd-pbkdf2): Likewise.
18351 (grub-pe2elf): Likewise.
18352 (grub-fstest): Likewise.
18353 (grub-mkfont): Likewise.
18354 (grub-mkdevicemap): Likewise.
18355 (grub-probe): Likewise.
18356 (grub-ofpath): Likewise.
18357 (grub-mklayout): Likewise.
18358 (example_unit_test): Likewise.
18359 (grub-menulst2cfg): Likewise.
18360 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
18361 * grub-core/Makefile.core.def (cryptodisk): New module.
18364 * grub-core/disk/AFSplitter.c: New file.
18365 * grub-core/disk/cryptodisk.c: Likewise.
18366 * grub-core/disk/geli.c: Likewise.
18367 * grub-core/disk/luks.c: Likewise.
18368 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
18370 (grub_util_get_dm_abstraction): New function.
18371 (grub_util_follow_gpart_up): Likewise.
18372 (grub_util_get_geom_abstraction): Likewise.
18373 (grub_util_get_dev_abstraction): Use new functions.
18374 (grub_util_pull_device): Pull GELI and LUKS.
18375 (grub_util_get_grub_dev): Handle LUKS and GELI.
18376 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
18377 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
18378 (follow_geom_up): Removed.
18379 (grub_util_fd_seek): New function.
18380 (open_device): Use grub_util_fd_seek.
18381 (nread): Rename to ..
18382 (grub_util_fd_read): ... this. All users updated.
18383 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
18384 (grub_crypto_cbc_decrypt): Likewise.
18385 (grub_crypto_hmac_write): Likewise.
18386 (grub_crypto_hmac_buffer): Likewise.
18387 (grub_password_get): Extend to util.
18388 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
18389 New member modname.
18390 (gcry_md_spec) [GRUB_UTIL]: Likewise.
18391 * include/grub/cryptodisk.h: New file.
18392 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
18393 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
18395 (grub_util_follow_gpart_up): New proto.
18396 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
18397 (grub_util_fd_read): Likewise.
18398 (grub_cryptodisk_cheat_mount): Likewise.
18399 (grub_util_cryptodisk_print_uuid): Likewise.
18400 (grub_util_get_fd_sectors): Likewise.
18401 * util/grub-fstest.c (mount_crypt): New var.
18402 (fstest): Mount crypto if requested.
18403 (options): New option -C.
18404 (argp_parser): Parse -C.
18405 (main): Init and fini gcry.
18406 * util/grub-install.in: Support cryptodisk install.
18407 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
18408 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
18410 (prepare_grub_to_access_device): Likewise.
18411 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
18412 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
18413 (probe_cryptodisk_uuid): New function.
18414 (probe_abstraction): Likewise.
18415 (probe): Use new functions.
18416 * util/import_gcry.py: Create Makefile.utilgcry.def.
18417 Add modname member.
18419 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18421 Lazy device scanning.
18423 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
18424 (grub-setup): Remove util/raid.c.
18425 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
18426 * grub-core/disk/lvm.c (scan_depth): New variable.
18427 (grub_lvm_iterate): Rescan if necessary.
18428 (find_lv): New function based on grub_lvm_open.
18429 (grub_lvm_open): Use find_lv. Rescan on error.
18430 (is_node_readable): New function.
18431 (is_lv_readable): Likewise.
18432 (grub_lvm_scan_device): Skip already found disks.
18433 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
18434 Stop if searched device is found and readable.
18435 * grub-core/disk/raid.c (inscnt): New variable.
18436 (scan_depth): Likewise.
18437 (scan_devices): New function based on grub_raid_register. Abort if
18438 looked for device is found.
18439 (grub_raid_iterate): Rescan if needed.
18440 (find_array): NEw function based on -grub_raid_open.
18441 (grub_raid_open): Use find_array and rescan.
18442 (insert_array): Set became_readable_at.
18443 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
18444 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
18446 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
18447 (grub_util_pull_device): New function.
18448 (grub_util_get_grub_dev): Call grub_util_pull_device.
18449 * util/raid.c: Moved to ..
18450 * grub-core/kern/emu/raid.c: ... here.
18451 (grub_util_raid_getmembers): New parameter "bootable".
18452 All users updated. Support 1.x.
18453 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
18455 * include/grub/disk.h (grub_disk_pull_t): New enum.
18456 (grub_disk_dev): Change iterate prototype.
18458 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
18460 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
18461 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
18462 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
18463 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
18465 * include/grub/util/raid.h: Removed.
18467 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18469 * po/POTFILES.in: Regenerate.
18471 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18473 Unify sparc init with other ieee1275.
18475 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
18476 instead of kern/sparc64/ieee1275/init.c.
18477 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
18478 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
18479 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
18480 grub/machine/kernel.h.
18481 (grub_ieee1275_original_stack) [__sparc__]: New variable.
18482 (grub_claim_heap) [__sparc__]: Use sparc version.
18483 (grub_machine_init): Moved args parsing to
18484 (grub_parse_cmdline): ...this.
18485 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
18486 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
18488 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
18490 Move BOOTP to separate file.
18492 * grub-core/Makefile.core.def (net): Add net/bootp.c.
18493 * grub-core/net/net.c: Move all BOOTP functions to
18494 * grub-core/net/bootp.c: ... here.
18496 Use frame interface on PXE.
18498 * grub-core/Makefile.core.def (pxecmd): Removed.
18499 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
18500 * grub-core/commands/i386/pc/pxecmd.c: Removed.
18501 * grub-core/i386/pc/pxe.c: Moved from here ...
18502 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
18503 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
18504 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
18506 EFI network support.
18508 * grub-core/Makefile.core.def (efinet): New module.
18509 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
18511 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
18513 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
18514 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
18515 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
18516 * grub-core/net/drivers/efi/efinet.c: New file.
18517 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
18518 (grub_efi_net_config): New extern var.
18520 Various cleanups and bugfixes.
18522 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
18524 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
18525 disk declared as partition.
18526 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
18528 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
18529 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
18530 (grub_debug_zalloc): Likewise.
18531 (grub_debug_realloc): Likewise.
18532 (grub_debug_memalign): Likewise.
18533 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
18534 Check that target is IPv4.
18535 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
18536 local-mac-address as fallback.
18537 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
18539 * grub-core/net/ip.c (ipchksum): Rename to ...
18540 (grub_net_ip_chksum): ... this. All users updated.
18541 (grub_net_recv_ip_packets): Special handling for DHCP.
18542 * util/grub-mkimage.c (generate_image): Zero-out aout header.
18544 Unify prefix handling
18546 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
18547 (grub_machine_get_bootlocation): ... this.
18548 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
18549 (grub_machine_get_bootlocation): ... this.
18550 (grub_prefix): New variable.
18552 (root_dev): New variable.
18554 (main): Use new variables.
18555 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
18557 (grub_machine_get_bootlocation): ... this.
18558 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
18559 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
18560 (grub_machine_get_bootlocation): ... this.
18561 (grub_machine_set_prefix): Removed.
18562 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
18563 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
18565 (grub_machine_get_bootlocation): ... this.
18566 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
18567 (grub_set_prefix_and_root): ... this. All users updated.
18568 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
18570 (grub_machine_get_bootlocation): ... this.
18571 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
18572 (grub_machine_get_bootlocation): New proto.
18573 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
18575 Less intrusive and more reliable seek on network implementation.
18577 * grub-core/kern/file.c (grub_file_net_seek): Removed.
18578 (grub_file_seek): Don't call grub_file_net_seek.
18579 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
18580 (grub_net_fs_read_real): .. this.
18581 (grub_net_seek_real): Use net->offset.
18582 (grub_net_fs_read): Seek if necessary.
18584 Unify IEEE1275 netwotk config with the other platforms.
18586 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
18588 (grub_machine_get_bootlocation): Support network.
18589 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
18590 Support type and device parsing.
18591 (grub_ieee1275_get_device_type): New function.
18592 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
18594 (grub_ieee1275_net_config_real): ... this.
18595 (grub_ofnet_probecards): Removed.
18596 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
18597 * include/grub/ieee1275/ofnet.h: Removed.
18598 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
18600 (grub_ieee1275_get_device_type): New function.
18602 Unify network device closing across platforms and make more robust.
18604 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
18606 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
18608 * grub-core/net/net.c (grub_net_network_level_interface_register):
18610 (grub_net_card_unregister): Close all interfaces.
18611 (receive_packets): Don't poll if no iterfaces are registered.
18613 (grub_net_fini_hw): New function.
18614 (grub_net_restore_hw): Likewise.
18615 (fini_hnd): New variable.
18616 (GRUB_MOD_INIT): Register preboot hook.
18617 (GRUB_MOD_FINI): Run and unregister preboot hook.
18619 Poll network cards when idle.
18621 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
18622 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
18623 * grub-core/net/net.c (receive_packets): Save last poll time.
18624 (grub_net_poll_cards_idle_real): New function.
18625 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
18626 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
18627 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
18629 Rename ofnet interfaces.
18631 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
18632 (grub_ofnet_findcards): Use ofnet_%s names.
18634 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
18636 Cleanup socket opening.
18638 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
18639 (grub_net_fs_close): Likewise.
18640 (grub_net_fs_read_real): Use eof member.
18641 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
18642 (+grub_net_udp_close): New inline function.
18644 * include/grub/net/tftp.h: Moved to the top of ...
18645 * grub-core/net/tftp.c: ... here.
18646 * include/grub/net/ip.h: Moved mostly to the top of ...
18647 * grub-core/net/ip.c: ... here.
18648 * include/grub/net/ethernet.h: Moved mostly to the top of ...
18649 * grub-core/net/ethernet.c: ... here.
18651 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
18653 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
18656 * include/grub/net/ip.h (ipv4_ini): Removed.
18657 (ipv4_fini): Likewise.
18659 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
18660 (grub_net_send_ip_packets): Likewise.
18662 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18664 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
18665 grub_read_cmos prototype.
18667 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18669 VGA text support in qemu-mips
18671 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
18672 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
18673 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
18675 * grub-core/kern/i386/qemu/init.c: Renamed to ...
18676 * grub-core/kern/vga_init.c: ... this.
18677 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
18678 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
18679 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
18681 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
18682 GRUB_MACHINE_PCI_IO_BASE.
18684 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18686 MIPS qemu flash support.
18688 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
18690 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
18691 (grub_machine_init): Probe memory if its size isn't known.
18692 * util/grub-mkimage.c (image_targets): Add flash targets.
18693 (generate_image): Handle flash targets.
18695 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18697 MIPS qemu at_keyboard support.
18699 * gentpl.py (videoinkernel): Add qemu-mips.
18700 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
18701 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
18702 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
18704 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
18705 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
18706 * grub-core/term/serial.c (grub_serial_register)
18707 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
18709 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18711 CMOS support on sparc.
18713 * gentpl.py (cmos): Add powerpc and sparc.
18714 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
18716 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
18717 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
18718 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
18719 grub_set_datetime_cmos.
18720 * grub-core/lib/ieee1275/cmos.c: New file.
18721 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
18722 (find_rtc): Set no_ieee1275_rtc on error.
18723 (grub_get_datetime): Call grub_get_datetime_cmos on error.
18724 (grub_set_datetime): Call grub_set_datetime_cmos on error.
18725 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
18726 fail. Move value to argument. All users updated
18727 (grub_cmos_write): Likewise.
18728 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
18729 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
18730 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
18731 grub_get_datetime_cmos and grub_set_datetime_cmos.
18733 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
18735 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
18736 sourcing grub-mkconfig_lib.
18737 * util/update-grub_lib.in: Likewise.
18738 * util/grub.d/00_header.in: Likewise.
18739 * util/grub.d/10_hurd.in: Likewise.
18740 * util/grub.d/10_kfreebsd.in: Likewise.
18741 * util/grub.d/10_linux.in: Likewise.
18742 * util/grub.d/10_netbsd.in: Likewise.
18743 * util/grub.d/10_windows.in: Likewise.
18744 * util/grub.d/20_linux_xen.in: Likewise.
18745 * util/grub.d/30_os-prober.in: Likewise.
18747 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
18749 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
18750 default_bg_color rather than black.
18751 (grub_gfxterm_fullscreen): Likewise.
18752 (grub_gfxterm_background_color_cmd): Save new background color in
18755 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18757 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
18759 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18761 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
18764 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18766 Chainloading on coreboot support.
18768 * grub-core/Makefile.core.def (chain): Add coreboot.
18769 * grub-core/loader/i386/coreboot/chainloader.c: New file.
18771 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18773 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
18776 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18778 Implement time command.
18780 * grub-core/Makefile.core.def (time): New module.
18781 * grub-core/commands/time.c: New file.
18782 * grub-core/script/parser.y: Remove "time" keyword.
18783 * grub-core/script/yylex.l: Likewise.
18785 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18787 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
18789 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18791 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
18792 when handling leftovers.
18794 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18796 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18797 so that help2man doesn't fail.
18799 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18801 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18802 type in pointers on sparc64.
18803 (get_card_packet): Likewise.
18805 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
18807 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18809 (grub_cmd_videoinfo): Fetch current video mode.
18811 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18813 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18814 because of underlying system restrictions.
18816 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18818 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18821 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18823 Coreboot video support.
18825 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18827 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18828 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18830 * grub-core/kern/i386/int.S: ... here.
18831 * grub-core/video/i386/pc/vbe.c: Updated includes.
18832 * grub-core/video/i386/pc/vga.c: Likewise.
18833 * include/grub/i386/coreboot/memory.h
18834 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18835 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18836 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18837 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18838 Disable interrupts.
18839 * include/grub/i386/pc/vga.h: Removed. All users updated.
18841 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18843 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18844 definitions for dprintf.
18845 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18847 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18849 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18851 (get_card_packet): Likewise.
18853 2011-06-26 Yves Blusseau <blusseau@zetam.org>
18855 Display the path of the file when file is not found
18857 * grub-core/fs/fat.c: Display the filename when file is not found.
18858 * grub-core/fs/fshelp.c: Likewise.
18859 * grub-core/fs/hfs.c: Likewise.
18860 * grub-core/fs/jfs.c: Likewise.
18861 * grub-core/fs/minix.c: Likewise.
18862 * grub-core/fs/ufs.c: Likewise.
18863 * grub-core/fs/btrfs.c: Likewise.
18864 * grub-core/commands/i386/pc/play.c: Likewise.
18866 2011-06-26 Szymon Janc <szymon@janc.net.pl>
18868 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18869 pointer checks before calling grub_free().
18870 * grub-core/commands/wildcard.c (match_devices): Likewise.
18871 * grub-core/commands/wildcard.c (match_files): Likewise.
18872 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
18873 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
18874 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
18875 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
18876 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
18877 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
18878 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
18879 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
18880 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
18882 2011-06-25 Patrick <p55@mailinator.com>
18884 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
18886 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
18888 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
18889 (grub_pxe_send): Likewise.
18890 (GRUB_MOD_INIT): Fix types.
18892 2011-06-24 Szymon Janc <szymon@janc.net.pl>
18894 * grub-core/io/xzio.c: Fix code style issues
18896 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18897 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
18899 Network infrastructure.
18900 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
18902 * include/grub/net/arp.h: New file.
18903 * include/grub/net/device.h: Likewise.
18904 * include/grub/net/ethernet.h: Likewise.
18905 * include/grub/net/ip.h: Likewise.
18906 * include/grub/net/netbuff.h: Likewise.
18907 * include/grub/net/tftp.h: Likewise.
18908 * include/grub/net/udp.h: Likewise.
18909 * include/grub/ieee1275/ofnet.h: Likewise.
18910 * include/grub/emu/export.h: Likewise.
18911 * include/grub/net.h: Likewise.
18912 * grub-core/net/arp.c: Likewise.
18913 * grub-core/net/ethernet.c: Likewise.
18914 * grub-core/net/ip.c: Likewise.
18915 * grub-core/net/udp.c: Likewise.
18916 * grub-core/net/tftp.c: Likewise.
18917 * grub-core/net/netbuff.c: Likewise.
18918 * grub-core/net/net.c: Likewise.
18919 * grub-core/net/drivers/emu/emunet.c: Likewise.
18920 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
18921 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
18923 * grub-core/Makefile.core.def (net): New module.
18926 (emunet): Likewise.
18927 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
18929 * grub-core/kern/device.c (grub_net_open) : New variable.
18930 (grub_device_open): Handle network device.
18931 (grub_device_close): Likewise.
18932 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
18933 (grub_grubnet_fini): Likewise.
18934 (grub_file_seek): Seek in network device.
18935 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
18936 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
18938 (grub_machine_fini): Call grub_grubnet_fini.
18939 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
18941 (grub_ieee1275_get_aliasdevname): New function.
18942 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18943 Add unofficial Solaris network info.
18944 (grub_multiboot_make_mbi): Likewise.
18945 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
18946 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
18947 * include/grub/device.h (grub_fs): Removed.
18948 * include/grub/err.h (grub_err_t): Add network-related values.
18949 * include/grub/i386/pc/pxe.h: Removed bootp parts.
18950 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
18951 (grub_ieee1275_get_aliasdevname): New proto.
18952 * include/grub/net.h: Rewritten.
18954 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18956 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
18959 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18961 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
18962 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
18963 it truncates the output.
18964 Reported by: Ximin Luo.
18966 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18968 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
18970 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18972 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
18973 partmap before abstraction.
18975 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
18977 * util/grub-mkconfig_lib.in: Add missing quotes.
18979 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18981 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
18982 old method if mountinfo would return /dev/root and /dev/root doesn't
18985 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18989 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
18990 (decomp_table): Add zlib entries.
18991 (zio_read): USe 8 bits for compression function rather than 3.
18992 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
18994 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18996 * grub-core/disk/ahci.c: Add missing license statements.
18997 * grub-core/fs/romfs.c: Likewise.
18998 * grub-core/lib/ia64/setjmp.S: Likewise.
18999 * grub-core/loader/i386/pc/freedos.c: Likewise.
19000 * grub-core/loader/ia64/efi/linux.c: Likewise.
19001 * grub-core/video/colors.c: Likewise.
19002 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
19004 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19008 * grub-core/Makefile.core.def (ata_pthru): Removed.
19009 (ahci): New module.
19011 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
19013 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
19015 (grub_hdparm_do_check_powermode_cmd): Likewise.
19016 (grub_hdparm_do_smart_cmd): Likewise.
19017 (grub_hdparm_set_val_cmd): Likewise.
19018 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
19019 * grub-core/disk/ahci.c: New file.
19020 * grub-core/disk/ata.c: Factor out the low-level part into ...
19021 * grub-core/disk/pata.c: ... here.
19022 * grub-core/disk/ata_pthru.c: Contents moved to ...
19023 * grub-core/disk/pata.c: ... here.
19024 * grub-core/disk/scsi.c (grub_scsi_names): New array.
19025 (grub_scsi_iterate): Use grub_scsi_names.
19026 (grub_scsi_open): Likewise.
19027 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
19028 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
19029 (grub_ata_regs_t): New struct.
19030 (grub_disk_ata_pass_through_parms): Likewise.
19031 (grub_ata_device): Renamed to ...
19032 (grub_ata): ... this.
19033 (grub_ata_dev): New struct.
19034 Removed all low-level inline functions.
19035 * include/grub/scsi.h: Add PATA and AHCI subsystems.
19036 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
19037 iterate hooks and open. All users updated.
19038 * util/grub-install.in: Handle AHCI disk module.
19040 2011-06-23 Szymon Janc <szymon@janc.net.pl>
19042 Add support for DRI and RSTn markers in JPEG files.
19044 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
19045 (JPEG_MARKER_RST0): Likewise.
19046 (JPEG_MARKER_RST1): Likewise.
19047 (JPEG_MARKER_RST2): Likewise.
19048 (JPEG_MARKER_RST3): Likewise.
19049 (JPEG_MARKER_RST4): Likewise.
19050 (JPEG_MARKER_RST5): Likewise.
19051 (JPEG_MARKER_RST6): Likewise.
19052 (JPEG_MARKER_RST7): Likewise.
19053 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
19054 (grub_jpeg_decode_dri): New function.
19055 (grub_jpeg_decode_sos): Move image data related part into
19056 grub_jpeg_decode_data function.
19057 (grub_jpeg_decode_data): New function.
19058 (grub_jpeg_reset): New function.
19059 (grub_jpeg_decode_jpeg): Handle new markers.
19061 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19063 * util/ieee1275/ofpath.c (check_sas): Close fd.
19064 (main): Free of_path.
19065 Reported by: David Volgyes <dvolgyes>.
19067 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19069 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
19070 Reported by: David Volgyes <dvolgyes>.
19072 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19074 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
19076 Reported by: David Volgyes <dvolgyes>.
19078 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19080 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
19082 Reported by: David Volgyes <dvolgyes>.
19084 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19086 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
19087 Prevent memory leak.
19089 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19091 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
19092 (main): Close file.
19093 Reported by: David Volgyes <dvolgyes>.
19095 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19097 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
19098 to continue if allocation is failed.
19100 Reported by: David Volgyes <dvolgyes>.
19102 2011-06-23 David Volgyes <dvolgyes>
19104 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
19107 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19109 Fix spurious warning.
19111 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
19112 (acorn_partition_map_find): Use .bin member.
19114 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19116 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
19117 /dev/root as a valid device.
19119 2011-06-23 Jim Meyering <meyering@redhat.com>
19121 Avoid NULL deref in grub_device_open.
19123 * grub-core/kern/device.c (grub_device_open): Don't dereference
19124 a NULL pointer upon failed grub_env_get.
19126 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19128 Support non-512B sectors and agglomerate reads.
19130 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
19131 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
19132 (disk_io_guid): Removed.
19133 (make_devices): Locate solely by BlockIO.
19134 (grub_efidisk_open): Fill log_sector_size and total_sectors.
19135 (grub_efidisk_read): Use read_blocks.
19136 (grub_efidisk_write): Use write_blocks.
19137 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
19139 (get_safe_sectors): Handle non-512B sectors.
19140 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
19142 (grub_biosdisk_write): Handle non-512B sectors.
19143 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
19144 (grub_scsi_read): Remove special non-512B block handling (now handled
19146 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
19147 and do sanity checks.
19148 (grub_disk_adjust_range): Handle non-512B sectors.
19149 (transform_sector): New function.
19150 (grub_disk_read_small): Likewise.
19151 (grub_disk_read): Rewritten.
19152 (grub_disk_write): Handle non-512B sectors.
19153 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
19155 (open_device): Use log_sector_size.
19156 (grub_util_biosdisk_read): Likewise.
19157 (grub_util_biosdisk_write): Likewise.
19158 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
19160 (pc_partition_map_embed): Likewise.
19161 * include/grub/disk.h (grub_disk): New field log_sector_size.
19162 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
19163 (GRUB_DISK_CACHE_BITS): Increased to 6.
19164 * util/grub-fstest.c (fstest): New command testload.
19165 (argp_parser): Likewise.
19167 2011-06-16 Robert Millan <rmh@gnu.org>
19169 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
19170 `ata' driver on kernel of FreeBSD 9.
19172 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
19173 (get_ataraid_disk_name): New functions.
19174 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
19175 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
19176 get_ataraid_disk_name() and get_ada_disk_name().
19178 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
19180 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
19183 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
19185 * docs/grub.texi (Obtaining and Building GRUB): Substitute
19186 `ftp.gnu.org' for `alpha.gnu.org'.
19188 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19190 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
19191 partitions under /dev/disk/by-id/.
19193 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19195 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
19196 after ten consecutive open failures. Scanning all the way up to
19197 10000 is excessive and can cause serious performance problems in
19198 some configurations.
19199 Fixes Ubuntu bug #787461.
19201 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19203 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
19206 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
19207 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19209 Don't stat devices unless we have to.
19211 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
19212 dir == /dev/mapper.
19213 (grub_guess_root_device): Use already known os_dev if possible.
19214 * grub-core/kern/emu/hostdisk.c
19215 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
19216 if device is known to be a dm one.
19218 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
19220 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
19221 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
19222 Reported by: Pawel Tecza.
19224 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
19226 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
19227 (lsefisystab): Likewise.
19229 (lsefimmap): Likewise.
19230 (hdparm): Enable on qemu-mips.
19231 (setjmp): Add ia64 nodist.
19232 (serial): Simplify tags.
19234 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19236 * Makefile.util.def (grub-ofpathname): Install manual page.
19238 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19240 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
19242 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19244 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
19246 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19248 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
19251 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19253 Use full 64-bit division.
19255 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
19256 (grub_divmod64): ... this.
19257 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
19260 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19262 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
19265 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19267 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
19268 to avoid accidents when debugging with 'sh -x'.
19269 * grub-core/gensyminfo.sh.in: Likewise.
19270 * tests/example_scripted_test.in: Likewise.
19271 * tests/grub_cmd_regexp.in: Likewise.
19272 * tests/grub_script_blanklines.in: Likewise.
19273 * tests/grub_script_dollar.in: Likewise.
19274 * tests/grub_script_expansion.in: Likewise.
19275 * tests/grub_script_final_semicolon.in: Likewise.
19276 * tests/partmap_test.in: Likewise.
19277 * tests/util/grub-shell-tester.in: Likewise.
19278 * tests/util/grub-shell.in: Likewise.
19280 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19282 Move gfxmenu color handling to video, so that gfxterm can use it
19285 * grub-core/gfxmenu/named_colors.c: Move to ...
19286 * grub-core/video/colors.c: ... here. Rename
19287 grub_gui_get_named_color to grub_video_get_named_color.
19288 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
19289 * grub-core/video/colors.c (my_isxdigit): ... here.
19290 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
19292 * grub-core/video/colors.c (parse_hex_color_component): ... here.
19293 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
19295 * grub-core/video/colors.c (grub_video_parse_color): ... here.
19297 * include/grub/gui.h (grub_gui_color_t): Move to ...
19298 * include/grub/video.h (grub_video_rgba_color_t): ... here.
19299 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
19300 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
19301 * include/grub/gui.h (grub_gui_map_color): Move to ...
19302 * include/grub/video.h (grub_video_map_rgba_color): ... here.
19303 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
19305 * include/grub/video.h (grub_video_get_named_color): ... here.
19306 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
19307 * include/grub/video.h (grub_video_parse_color): ... here.
19309 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
19311 (gfxmenu): Remove gfxmenu/named_colors.c.
19312 (video) [videomodules]: Add video/colors.c.
19314 Add a background_color command.
19316 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
19318 (GRUB_MOD_INIT): Register background_color command.
19319 (GRUB_MOD_FINI): Unregister background_color command.
19320 (redraw_screen_rect): Allow blend/replace of text layer to be
19321 controlled independently from whether there is a background bitmap.
19322 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
19325 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19327 Patch BPB in ntldr and chainloader --bpb.
19329 * grub-core/fs/fat.c: Include grub/fat.h.
19330 (grub_fat_bpb): Moved to ...
19331 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
19332 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
19334 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
19336 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
19338 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
19340 (grub_chainloader_cmd): Patch BPB if --bpb is given.
19341 (GRUB_MOD_INIT): Show --bpb.
19342 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
19343 * grub-core/normal/main.c (features): New variable.
19344 (GRUB_MOD_INIT): Set feature_* variables.
19345 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
19347 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
19349 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19351 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
19354 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19356 FreeDOS direct loading support.
19358 * docs/grub.texi (Supported OS): Add FreeDOS.
19359 * grub-core/Makefile.core.def (freedos): New module.
19360 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
19362 (grub_relocator16_boot): Handle %ebx.
19363 * grub-core/lib/i386/relocator16.S: Likewise.
19364 * grub-core/loader/i386/pc/freedos.c: New file.
19366 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19368 Long Linux command line support.
19370 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19371 (maximal_cmdline_size): New variable.
19372 (allocate_pages): Use maximal_cmdline_size.
19373 (grub_cmd_linux): Set and use maximal_cmdline_size.
19374 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19375 (allocate_pages): Use maximal_cmdline_size.
19376 (grub_cmd_linux): Set and use maximal_cmdline_size.
19377 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
19378 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
19381 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19382 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19384 Improve devmapper support
19386 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
19387 (grub_util_is_lvm): New function.
19388 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
19389 than lvm if not dmraid.
19390 Handle mapped md nodes.
19391 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
19392 (grub_util_device_is_mapped): ... this. Make always available. All users
19394 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
19395 (convert_system_partition_to_system_disk): Handle lvm, mpath and
19397 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
19399 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19401 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
19403 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
19404 * grub-core/modinfo.sh.in: New file.
19405 * grub-core/Makefile.core.def (modinfo.sh): New script.
19406 * util/grub-mknetdir.in: Use modinfo.sh.
19407 * util/grub-mkrescue.in: Likewise.
19409 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19411 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
19412 Fix potential usage of Elf32 instead of Elf64 when compiling on
19413 32-bit architecture. Add endianness macros while on it.
19415 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19417 Use mipsel- rather than mips- in directories involving mipsel ports to
19418 allow both endiannesses coexist.
19420 * configure.ac: proparate target_cpu=mipsel rather than resetting to
19421 mips. All conditions adjusted.
19422 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
19424 * util/grub-install.in: Adjust conditions to take renaming into account.
19425 * util/grub-mkimage.c (image_targets): Likewise. New target
19426 mips-qemu_mips-elf for bigendian mips.
19428 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19430 Avoid unnecessary copying on MIPS.
19432 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
19433 early if src == dest.
19434 * util/grub-mkimage.c (generate_image): Arange for src == dest if
19435 compression is none.
19437 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19439 Reduce memory footprint on SGI by putting modules before the kernel
19440 as opposed to after.
19442 * grub-core/Makefile.core.def (kernel): Increase linking address.
19443 (none_decompress): Likewise.
19444 (xz_decompress): Likewise.
19445 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
19447 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
19449 (grub_arch_modules_addr): New function.
19450 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
19451 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
19452 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
19454 * grub-core/kern/mips/startup.S (total_size): Rename to ...
19455 (grub_total_modules_size): ... this. Make global.
19456 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
19457 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
19459 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
19460 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
19461 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
19462 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
19463 * util/grub-mkimage.c (image_target_desc): New flag
19464 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
19465 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
19466 (generate_image): Handle images with modules before kernel.
19468 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19470 Prevent potential loss of memory map by overwrite on qemu-mips.
19472 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19473 Save ram size in $s4.
19474 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
19475 All users changed to grub_arch_memsize.
19476 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
19478 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
19479 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
19480 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
19483 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19485 * .bzrignore: Remove grub-dumpbios.
19487 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19489 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
19490 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
19491 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
19492 existing options which append).
19493 * docs/grub.texi (Simple configuration): Document new options.
19494 Reported by: Ian Jackson. Fixes Debian bug #617538.
19496 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19498 * util/grub-fstest.c (cmd_cat): New function.
19499 (fstest): Handle CMD_CAT.
19500 (options): Add cat.
19501 (argp_parser): Handle cat.
19503 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19505 * Makefile.util.def (grub-bin2h): Don't install.
19506 * docs/man/grub-bin2h.h2m: Remove.
19508 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19510 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
19513 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19515 Reenable qemu-mips port.
19517 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
19518 Fix small arc bug while on it.
19519 * gentpl.py: Handle qemu_mips.
19520 * grub-core/Makefile.am: Likewise.
19521 * grub-core/Makefile.core.def: Likewise.
19522 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
19523 inappropriate includes.
19524 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
19525 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
19526 * grub-core/kern/main.c (grub_modules_get_end)
19527 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
19528 * grub-core/kern/mips/qemu-mips: Moved to ..
19529 * grub-core/kern/mips/qemu_mips: ... this.
19530 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
19531 (grub_machine_init): Call terminfo_init and serial_init.
19532 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
19533 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19535 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
19537 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
19538 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
19539 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
19540 * include/grub/mips/qemu_mips/cmos.h: New file.
19541 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
19542 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
19544 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
19545 Use correct mips-style address.
19546 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
19547 (GRUB_TICKS_PER_SECOND): Removed.
19548 (grub_get_rtc): Likewise.
19549 (grub_cpu_idle): Likewise.
19550 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
19552 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
19553 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
19554 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
19555 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
19556 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
19557 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
19558 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
19559 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
19561 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19565 * Makefile.util.def (libgrubmods.a): Add dvh.c.
19566 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
19568 * configure.ac: New target mips-arc.
19569 * gentpl.py: Likewise.
19570 * grub-core/Makefile.am: Likewise.
19571 * grub-core/Makefile.core.def: Likewise.
19572 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
19573 (none_decompress): Likewise.
19574 (lsdev): New module.
19575 (datetime): Use lib/arc/datetime.c on ARC.
19576 (part_dvh): New module.
19577 * grub-core/commands/arc/lsdev.c: New file.
19578 * grub-core/disk/arc/arcdisk.c: Likewise.
19579 * grub-core/kern/mips/arc/init.c: Likewise.
19580 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
19582 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
19584 (grub_arch_dl_relocate_symbols): Likewise.
19585 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
19586 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
19587 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
19589 * grub-core/lib/arc/datetime.c: New file.
19590 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
19591 pci.h on non-loongson.
19592 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
19593 (grub_linux_boot): Set unused registers to 0.
19594 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
19595 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
19596 * grub-core/mmap/mips/uppermem.c: ...here.
19597 * grub-core/partmap/dvh.c: New file.
19598 * grub-core/term/arc/console.c: Likewise.
19599 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
19600 (grub_terminfo_set_current): Add terminal "arc".
19601 (grub_terminfo_readkey): Support ARC sequences.
19602 * include/grub/arc/arc.h: New file.
19603 * include/grub/arc/console.h: Likewise.
19604 * include/grub/disk.h (grub_disk_dev_id): Add
19605 GRUB_DISK_DEVICE_ARCDISK_ID.
19606 * include/grub/mips/arc/kernel.h: New file.
19607 * include/grub/mips/arc/memory.h: Likewise.
19608 * include/grub/mips/arc/time.h: Likewise.
19609 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
19610 * include/grub/mips/kernel.h (grub_halt): ... here.
19611 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
19613 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
19614 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
19615 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
19616 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
19618 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
19620 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
19621 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
19622 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
19623 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
19624 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
19625 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
19626 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
19627 (grub_phys_addr_t): Moved from here ...
19628 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
19629 (grub_vtop): Moved from here ...
19630 * include/grub/mips/memory.h (grub_vtop): ... here.
19631 (grub_map_memory): Moved from here ...
19632 * include/grub/mips/memory.h (grub_map_memory): ... here.
19633 (grub_unmap_memory): Moved from here ...
19634 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
19635 (grub_machine_mmap_iterate): Moved from here ...
19636 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
19637 (grub_mmap_get_lower): Moved from here ...
19638 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
19639 (grub_mmap_get_upper): Moved from here ...
19640 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
19641 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19643 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19644 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
19646 * include/grub/mips/time.h (grub_get_rtc): ... here.
19647 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19649 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19650 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
19652 * include/grub/mips/time.h (grub_cpu_idle): ... here.
19653 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
19655 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
19656 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
19657 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
19658 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
19659 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
19660 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
19661 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
19662 (GRUB_MACHINE_LINK_ADDR): Likewise.
19663 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
19665 * util/grub-install.in: Run dvhtool on ARC.
19666 * util/grub-mkimage.c (image_targets): Add mips-arc.
19667 (generate_image): Handle ECOFF output for mips-arc.
19669 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19671 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
19674 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19676 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
19677 after enabling port.
19679 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19681 Skip incorrect USB devices.
19683 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
19685 * include/grub/usb.h (grub_usb_err_t): New enum value
19686 GRUB_USB_ERR_BADDEVICE.
19688 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19690 Fuloong video init support.
19692 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
19694 (grub_vga_read_arx): New function.
19695 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
19697 (framebuffer): New members io, mmioptr and mmiobase.
19698 (read_sis_cmd): New function.
19699 (write_sis_cmd): Likewise.
19700 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
19701 rather than 640x400.
19702 * grub-core/video/sis315_init.c: New file.
19704 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19706 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
19708 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
19709 to grub_dl_register_symbol.
19711 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19713 Fix compilation errors.
19715 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
19716 potentially unused.
19717 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
19718 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
19719 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
19720 to loongson machines.
19722 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19724 Several FS mtime support.
19726 * grub-core/fs/affs.c (grub_affs_time): New struct.
19727 (grub_affs_file): New field mtime.
19728 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
19729 type. Removed 'size'. New field 'di'. All users updated.
19730 (grub_affs_mount): Simplify checsum checking.
19731 (grub_affs_iterate_dir): New helper grub_affs_create_node.
19732 (grub_affs_dir): Handle mtime.
19733 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
19734 (grub_cpio_dir): Likewise.
19735 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
19736 (grub_hfs_filerec): New field mtime.
19737 (grub_hfs_dir): Handle mtime.
19738 (grub_hfs_mtime): New function.
19739 (grub_hfs_fs): Register grub_hfs_mtime.
19740 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
19741 (grub_iso9660_dir): New field mtime.
19742 (grub_fshelp_node): New field dirent.
19743 (iso9660_to_unixtime): New function.
19744 (iso9660_to_unixtime2): Likewise.
19745 (grub_iso9660_read_symlink): Use node->dirent.
19746 (grub_iso9660_iterate_dir): Likewise.
19747 (grub_iso9660_dir): Set mtime.
19748 (grub_iso9660_mtime): New function.
19749 (grub_iso9660_fs): Register grub_iso9660_mtime.
19750 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
19751 (grub_jfs_inode): New fields atime, ctime and mtime.
19752 (grub_jfs_dir): Set mtime.
19753 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19754 * grub-core/fs/ntfs.c (list_file): Set mtime.
19755 (grub_ntfs_dir): Likewise.
19756 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
19757 (grub_reiserfs_iterate_dir): Set mtime.
19758 (grub_reiserfs_dir): Likewise.
19759 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
19760 (grub_fshelp_node): Likewise.
19761 (grub_sfs_iterate_dir): Set mtime.
19762 (grub_sfs_dir): Likewise.
19763 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
19764 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
19765 (grub_xfs_inode): New fields atime, mtime, ctime.
19766 (grub_xfs_dir): Set mtime.
19767 * include/grub/datetime.h (grub_datetime2unixtime): New function.
19768 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
19769 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
19771 Support UDF symlinks.
19773 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
19774 (grub_ufs_read_symlink): New function. All users updated.
19776 Check amiga partmap checksum.
19778 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
19779 (grub_amiga_partition): Likewise.
19780 (amiga_partition_map_checksum): New function.
19781 (amiga_partition_map_iterate): Check checksum.
19783 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19787 * Makefile.util.def (libgrubmods.a): Add romfs.
19788 * grub-core/Makefile.core.def (romfs): New module.
19789 * grub-core/fs/romfs.c: New file.
19791 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19793 Squashfs v4 support.
19795 * Makefile.util.def (libgrubmods.a): Add squash4.
19796 * grub-core/Makefile.core.def (squash4): New module.
19797 * grub-core/fs/squash4.c: New file.
19798 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19799 disk_input_start, disk_input.
19800 (get_byte): Handle disk_input.
19801 (grub_zlib_disk_read): New function.
19802 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19804 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19805 2011-05-15 Feiran Zheng <famcool@gmail.com>
19807 * Makefile.util.def (libgrubmods.a): Add minix3.
19808 * grub-core/Makefile.core.def (minix3): New module.
19809 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19810 (GRUB_MINIX_BSIZE): Removed.
19811 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19812 (grub_minix_ino_t): New type.
19813 (grub_minix_le_to_cpu_ino): New macro.
19814 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19815 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19816 (grub_minix_data): New field block_size.
19817 (grub_minix_read_file): Handle 64-bit correctly.
19818 * grub-core/fs/minix3.c: New file.
19820 2011-05-15 Tristan Gingold <gingold@free.fr>
19821 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
19822 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19826 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19827 * configure.ac: Add ia64-efi target.
19828 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19829 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19830 * gentpl.py: Add ia64_efi platform.
19831 Rename x86_efi to efi and Add ia64-efi. All users updated.
19832 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19833 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19834 Remove kern/generic/rtc_get_time_ms.c on EFI.
19835 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19836 kern/ia64/dl_helper.c on ia64-efi.
19837 Add kern/emu/cache.c on emu.
19838 (linux): Use on loader/ia64/efi/linux.c on ia64.
19839 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19840 whether symbol is a function.
19841 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19842 (grub_symbol): New field 'isfunc'.
19843 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19844 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19845 (grub_dl_load_segments): Place all sections into the same region.
19846 [__ia64__]: Create trampolines and got.
19847 [GRUB_MACHINE_EMU]: Call mprotect.
19848 (grub_dl_resolve_symbols): Resolve symbol type as well.
19849 [__ia64__]: Create function descriptors.
19850 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19851 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19852 (grub_get_rtc): New function.
19853 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19854 * grub-core/kern/emu/cache.S: Renamed to ...
19855 * grub-core/kern/emu/cache_s.S: ... this.
19856 [__ia64__]: Add a nop.
19857 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19858 [__ia64__]: New function.
19859 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19860 * grub-core/kern/ia64/dl.c: New file.
19861 * grub-core/kern/ia64/dl_helper.c: Likewise.
19862 * grub-core/kern/ia64/efi/init.c: New file.
19863 * grub-core/kern/ia64/efi/startup.S: Likewise.
19864 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19865 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19866 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19867 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19868 * grub-core/loader/ia64/efi/linux.c: New file.
19869 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
19870 (GRUB_MOD_DEP): Likewise.
19871 (grub_dl) [__ia64__]: New fields got and tramp.
19872 (grub_dl): New field 'base'.
19873 (grub_dl_register_symbol): New argument isfunc. All users updated.
19874 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
19875 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
19876 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
19877 (grub_ia64_dl_get_tramp_got_size): New proto.
19878 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
19879 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
19880 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
19881 * include/grub/efi/api.h: Skip call wrappers on ia64.
19882 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
19883 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
19884 * include/grub/elf.h (ELF_ST_INFO): New definition.
19885 * include/grub/ia64/efi/kernel.h: New file.
19886 * include/grub/ia64/efi/memory.h: Likewise.
19887 * include/grub/ia64/efi/time.h: Likewise.
19888 * include/grub/ia64/kernel.h: Likewise.
19889 * include/grub/ia64/setjmp.h: Likewise (from glibc).
19890 * include/grub/ia64/time.h: New file.
19891 * include/grub/ia64/types.h: Likewise.
19892 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
19893 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
19895 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
19896 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
19897 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
19898 * util/grub-mkimage.c (image_target_desc): New field pe_target.
19900 (EFI64_HEADER_SIZE): New definition. All users updated.
19901 (image_targets): Add ia64-efi.
19902 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
19903 jumpers_addr. All users updated.
19904 Create function descriptors.
19905 (count_funcs): New function.
19906 (unaligned_uint32): New struct.
19907 (MASK20): New definition.
19908 (MASK19): Likewise.
19909 (MASKF21): Likewise.
19910 (add_value_to_slot_20b): New function.
19911 (add_value_to_slot_21_real): Likewise.
19912 (add_value_to_slot_21): Likewise.
19913 (ia64_kernel_trampoline): New struct.
19914 (nopm): New variable.
19916 (make_trampoline): New function.
19917 (relocate_addresses): Handle ia64.
19918 (make_reloc_section): Likewise.
19919 (load_image): Likewise.
19921 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19923 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
19924 warning. Move variables before code while on it.
19926 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19930 * configure.ac: Rename yeeloong platform to loongson. All users updated.
19931 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
19932 * grub-core/boot/mips/loongson/fuloong.S: New file.
19933 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
19934 Explicitly init CS5536.
19935 [FULOONG]: Don't use serial until CS5536 is available.
19936 Set GPIO based on dumps.
19937 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
19938 [FULOONG]: Handle GPIO and memory controller differences.
19939 Parse machine type in $a2.
19940 * grub-core/boot/mips/startup_raw.S: Determine and save the
19942 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
19943 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
19944 init on architecture type.
19945 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
19946 SIS315E. Don't init at_keyboard on fuloong.
19947 (grub_halt): Support Fuloong.
19948 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
19949 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
19950 (loongson_machtypes): New array.
19951 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
19953 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
19954 config. All users updated. Handle CS5536 serial.
19955 * grub-core/term/serial.c (grub_serial_register): Conditionalise
19956 default port on machine type. Register serial as inactive.
19957 * grub-core/video/sis315pro.c: New file.
19958 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
19960 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
19961 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
19962 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
19963 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
19964 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
19965 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
19967 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
19968 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
19970 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
19971 (grub_arch_machine): New extern var.
19972 * include/grub/mips/loongson/serial.h
19973 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
19974 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
19975 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
19976 (GRUB_MACHINE_SERIAL_PORT0): ... this.
19977 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
19978 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
19979 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
19980 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
19981 * include/grub/term.h (grub_term_register_input_inactive): New inline
19983 (grub_term_register_output_inactive): Likewise.
19984 * include/grub/video.h (grub_video_driver_id): New value
19985 GRUB_VIDEO_DRIVER_SIS315PRO.
19986 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
19987 New field "names". All users updated.
19988 New field value IMAGE_FULOONG_FLASH.
19989 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
19991 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
19993 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
19994 and add some clarification.
19996 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19998 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
19999 platforms if kernel is compressed.
20001 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20003 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
20004 unused modules since currently referrence counter isn't reliable and
20005 there isn't much memory to recover there anyway.
20007 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20009 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
20010 rather than resetting it to allow modules to reference themselves
20013 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20015 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
20016 counter on dependencies since grub_dl_unref already handles this.
20018 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20020 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
20021 on error if not already done.
20023 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20025 Fix few potential memory misusage.
20027 * grub-core/font/font.c (load_font_index): Don't free char_index to
20029 (grub_font_load): Zero-fill font at alloc for safety.
20030 Close file on error.
20031 (free_font): Free bmp_idx.
20033 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20035 * docs/grub.texi (Installation): Fix several outdated claims.
20037 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20039 Handle module_license on windows.
20041 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
20043 (insert_string): Make argument const char * instead of char *.
20044 (write_section_data): Handle long section names.
20045 Handle module_license.
20047 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20049 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
20050 handle class-free menuentries.
20051 (grub_normal_add_menu_entry): Add a check to be sure.
20053 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20055 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
20058 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20060 * configure.ac: Bump version to 1.99.
20062 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20064 Give ATA device a bit more time on first try in order to allow disks
20067 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
20068 if dev->present is 1. Reset dev->present on failure.
20069 (grub_ata_device_initialize): Set dev->present to 1.
20070 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
20071 (grub_ata_device): New member 'present'.
20073 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20075 * util/grub-mkimage.c (generate_image): Update hash.
20077 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20079 Flush caches on DMA memory.
20081 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
20082 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
20083 (grub_dma_free): Likewise.
20084 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
20086 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20088 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
20089 to avoid asm treating ld and sd as macros.
20091 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20093 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
20096 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20098 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
20099 grub_decompress_core since later would fail if grub_decompress_core
20102 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20104 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
20105 R_MIPS_JALR since it's used by newer compiler.
20107 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
20109 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
20111 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20113 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
20114 file_path to 0 for surety.
20115 (grub_chainloader_boot): Set exit_data to NULL.
20116 Unset the loader once done.
20117 (grub_cmd_chainloader): Fix confusing error message if file is empty.
20119 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20121 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
20122 unknown key into a dprintf.
20124 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20126 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
20127 on first non-existant partition.
20129 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20131 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
20133 Reported by: Mark Korenberg.
20135 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20137 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
20140 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20142 * util/grub-mkimage.c (main): Explicitely flush and sync the output
20143 before closing to ensure that it will be readable by grub-setup.
20145 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20147 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
20148 (devpath_1): Use MAKE_PIWG_PATH.
20149 (devpath_2): Likewise.
20150 (devpath_3): Likewise.
20151 (devpath_4): Likewise.
20152 (devpath_5): Likewise.
20153 (devpath_6): Likewise.
20155 The appleldr.mod was checked that to be binary identical to previous
20158 2011-05-05 Zach <mikezackles>
20160 Support 2010 Macbooks.
20162 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
20163 (devs): Add devpath_6.
20165 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20167 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
20168 /dev/random. /dev/urandom is good enough for our purposes (salting).
20170 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20172 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
20174 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20176 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
20179 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20181 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
20182 and not 0 on failure.
20184 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20186 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
20187 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
20188 disk; otherwise grub_fs_probe will not fall back to the next
20190 (grub_pxefs_open): Likewise, for consistency.
20191 Reported and tested by: Ezekiel Grave.
20193 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20195 * tests/partmap_test.in: Don't hardcode path to parted.
20196 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
20198 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
20200 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
20201 of `ls' to find out which devices are available.
20203 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20205 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
20206 than source address for efi mmap buffer.
20208 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20210 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
20211 wrong action on non-detecting the magic.
20213 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20215 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
20216 already supplied by another part of the module (fixes compilation on
20219 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20221 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
20222 match the one used by mdadm.
20224 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20226 * po/README: Add instructions for creating po/LINGUAS.
20228 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20230 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
20233 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
20234 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
20235 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
20236 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
20237 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
20238 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
20239 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
20240 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
20241 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
20242 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
20243 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
20244 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
20245 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
20246 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
20247 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
20248 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
20249 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
20250 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
20251 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
20252 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
20253 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
20254 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
20256 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20258 * grub-core/kern/emu/getroot.c
20259 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
20260 test that was incorrectly reintroduced in r3214.
20261 Reported by: Ian Dall. Fixes Savannah bug #33133.
20263 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20265 Fix stack pointer handling in 16-bit relocator.
20267 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
20268 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
20269 Fixes Ubuntu bug #683904.
20271 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20273 * configure.ac: Bump version to 1.99~rc2.
20275 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20277 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
20278 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
20279 * grub-core/lib/x86_64/setjmp.S: Likewise.
20280 * grub-core/lib/mips/setjmp.S: Likewise.
20281 * grub-core/lib/powerpc/setjmp.S: Likewise.
20282 * grub-core/lib/sparc64/setjmp.S: Likewise.
20284 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20286 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
20287 * grub-core/lib/efi/datetime.c: Likewise.
20289 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20291 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
20293 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
20294 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
20295 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
20297 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20299 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
20301 (grub_gfxterm_term_init): Likewise.
20303 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20305 Take into account the decorations the computing menu entry width.
20307 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
20308 (grub_gfxmenu_create_box): Register get_border_width.
20309 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
20311 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
20314 2011-04-18 Endres Puschner <code@e7p.de>
20316 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
20317 Don't skip first class.
20319 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20321 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
20323 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
20325 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20327 Complete 64-bit division support.
20329 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
20330 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
20331 * include/grub/misc.h (grub_divmod64): Rename to ...
20332 (grub_divmod64_full): ... this.
20333 (grub_divmod64): New inline function.
20335 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20337 * util/grub-mkimage.c (generate_image): Add forgotten comma.
20339 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20341 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
20342 performing the necessary test.
20344 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20346 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
20347 (kfreebsd.elf): Likewise.
20348 (pc-chainloader.elf): Likewise.
20349 (ntldr.elf): Likewise.
20351 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20353 Identify RAID by its UUID rather than (guessed) name.
20355 * grub-core/disk/raid.c (ascii2hex): New function.
20356 (grub_raid_open): Accept mduuid/%s specification.
20357 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
20358 (get_mdadm_uuid): ... this.
20359 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
20361 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
20363 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
20366 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20368 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
20370 * util/grub.d/20_linux_xen.in: Likewise.
20372 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20374 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
20375 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
20377 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20378 Build a list of relevant visible mounts using the mnt_id and
20379 parent_mnt_id fields, and then scan that list at the end.
20381 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20383 * docs/grub.texi (normal): New section.
20384 (normal_exit): New section.
20385 (Embedded configuration): Add reference to normal.
20386 (GRUB only offers a rescue shell): Likewise.
20387 * docs/grub-dev.texi (Error Handling): Fix typo.
20389 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20391 * NEWS: Drop obsolete entry about probe-only btrfs support.
20393 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20395 * util/import_gcry.py: Fix typo.
20397 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20399 * NEWS: Add btrfs support.
20401 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20402 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20404 BtrFS support. Written by me (Vladimir) with important bugfixes and
20405 even more important testing by Colin.
20407 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
20408 * grub-core/Makefile.core.def (btrfs): Add crc.c.
20409 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
20410 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
20411 mem_input_off and mem_input. All users updated to accept in-RAM input.
20412 (gzio_seek): New function.
20413 (test_zlib_header): Likewise.
20414 (grub_gzio_read): Likewise.
20415 (grub_zlib_decompress): Likewise.
20416 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
20417 Accept partial and non-virtual mounts.
20418 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
20419 avoid receiving /dev/dm-X as device.
20420 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
20421 Handle bind and partial mounts.
20422 * grub-core/lib/crc.c: New file.
20423 * include/grub/deflate.h: Likewise.
20424 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
20426 * include/grub/lib/crc.h: New file.
20428 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20430 Implement automatic module license checking according to new GNU
20433 * grub-core/kern/dl.c (grub_dl_check_license): New function.
20434 (grub_dl_load_core): Use grub_dl_check_license.
20435 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
20436 (GRUB_MOD_LICENSE): Likewise.
20437 (GRUB_MOD_DUAL_LICENSE): Likewise.
20438 All modules updated.
20440 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20442 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
20443 reserved_first_sector to 1. btrfs reserves plenty of space for boot
20445 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
20447 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20449 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
20451 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20453 * util/grub-fstest.c (read_file): Report GRUB error if file opening
20456 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20458 * grub-core/kern/file.c (grub_file_open): Don't take into account the
20459 parenthesis in the middle of the filename.
20461 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20463 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
20464 rather than trying to put initrd way too high.
20465 Reported by: Ryan Lortie <desrt@desrt.ca>
20467 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20469 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
20470 improperly removed string.
20472 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20474 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
20476 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
20477 (open_device) Likewise.
20478 (grub_util_biosdisk_close): Likewise.
20479 Reported by: Mark Korenberg.
20481 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
20483 * util/grub-mkconfig_lib.in: Add missing quotes.
20485 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
20487 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
20490 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20492 Dynamically count the number of lines for the lower banner.
20494 * grub-core/normal/menu_entry.c (per_term_screen): New member
20496 (print_down): Use num_entries.
20497 (update_screen): Likewise.
20498 (grub_menu_entry_run): Set num_entries.
20499 * grub-core/normal/menu_text.c (menu_viewer_data): New member
20501 (grub_print_message_indented): Move real part to ...
20502 (grub_print_message_indented_real): ... here. Additional argument
20504 (draw_border): Additional argument num_entries.
20505 (print_message): Additional argument dry_run.
20506 (print_entries): Receive menu viewer data.
20507 (grub_menu_init_page): New argment num_entries.
20508 (menu_text_set_chosen_entry): Use num_entries.
20509 (grub_menu_try_text): Likewise.
20510 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
20512 (grub_ucs4_count_lines): New function.
20513 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
20514 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
20515 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
20516 (grub_term_border_height): Likewise.
20517 (grub_term_num_entries): Likewise.
20519 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20521 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
20522 Remove now unused string.
20524 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20526 * docs/grub-dev.texi (Finding your way around): Update for 1.99
20528 (Getting started): GRUB is developed in Bazaar now, not Subversion.
20530 (Comment): Fix typo.
20531 (Getting started): General copy-editing.
20532 (Typical Development Experience): Likewise.
20533 (Error Handling): Likewise.
20534 (Video API): Likewise.
20536 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20538 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
20541 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20543 * util/grub-mkimage.c (main): Handle special naming of yeeloong
20546 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20548 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
20549 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
20552 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20554 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
20555 grub_strcpy since the lines aren't necessarily 0-terminated.
20557 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20559 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
20562 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20564 * grub-core/commands/probe.c (options): Argument to set isn't optional.
20565 (GRUB_MOD_INIT): DEVICE isn't optional.
20567 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20569 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
20570 word on new line if it's too long anyway. Fixes a hang.
20572 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20574 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
20576 * util/grub-setup.c (main): Reuse md device name if available.
20577 * util/raid.c (grub_util_raid_getmembers): Receive device name and
20578 not GRUB name as argument.
20579 Based on patch by: Florian Wagner <fwagner>.
20581 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20583 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20584 Place mbi on low memory for better compatibility.
20586 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20588 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
20590 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20591 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20593 * autogen.sh: Ensure that collate and ctype locale is C.
20594 * conf/Makefile.common: Likewise.
20596 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20598 * grub-core/normal/menu.c: Add missing include.
20600 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20602 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
20604 2011-04-08 Martin Zuther <mzuther@mzuther.de>
20606 * util/grub-mkconfig.in: Ignore emacsen backup.
20608 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20610 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
20612 (grub_util_biosdisk_close): Likewise.
20614 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20616 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
20617 const attribute and use grub_isdigit.
20619 2011-04-06 Andrey <dev_null@ukr.net>
20621 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
20624 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20626 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
20627 useful grub_dprintf's.
20629 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20631 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
20633 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20635 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
20637 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20639 Output errors if theme loading failed.
20641 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
20642 grub_gfxterm_fullscreen on error paths to ...
20643 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
20644 theme loading error.
20646 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20648 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
20649 space for older compilers.
20650 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20652 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20654 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
20655 and report them as not RAID members since they are useless for GRUB.
20656 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20658 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20660 Increase LVM implementation robustness in order not to crash on
20661 configurations like pvmove. Previously code assumed that in some places
20662 only lvs or only pvs are used whereas it seems that they are used
20665 * grub-core/disk/lvm.c (read_node): New function.
20666 (read_lv): Use read_node.
20667 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
20668 Match volumes only at the end when all lvs are found. Take both
20669 pvs (first) and lvs (second) into account.
20670 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
20671 mirror_* into node_*. All users updated.
20672 (grub_lvm_stripe): Merge this ...
20673 (grub_lvm_mirror): ... and this ...
20674 (grub_lvm_node): ... into this. All users updated.
20676 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20678 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
20679 of function to allow further scanning for LVMs.
20681 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20683 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
20684 on failed seek as it breaks open fd reusage.
20686 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20688 * util/grub-install.in: Add a recommendation to use --recheck before
20691 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20693 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
20696 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20698 GRUB developper manual based on existing Internals section and
20699 contributions by the various authors with active copyright assignment.
20701 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
20702 * docs/font_char_metrics.png: New file.
20703 * docs/font_char_metrics.txt: Likewise.
20704 * docs/grub-dev.texi: Likewise.
20705 * docs/grub.texi (Internals): Move from here ...
20706 * docs/grub-dev.texi: ... here.
20708 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20710 Store the loopback device as data on loopback grub_disk structures,
20711 rather than the file it points to. This fixes use of freed memory
20712 if an existing loopback device is replaced.
20714 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
20715 disk->data, not dev->file.
20716 (grub_loopback_read): Adjust file assignment to match.
20717 Fixes Ubuntu bug #742967.
20719 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20721 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
20722 when replacing an existing device.
20724 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
20726 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
20727 memory corruptions.
20729 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
20731 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
20732 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
20733 (grub_jfs_read_inode): Likewise.
20734 (grub_jfs_opendir): Likewise. Remove now useless casts.
20735 (grub_jfs_getent): Likewise.
20736 Make ino a grub_uint32_t rather than int.
20737 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
20738 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
20739 division and module with bit operations.
20740 (grub_jfs_find_file): Make ino a grub_uint32_t.
20741 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
20743 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20745 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
20746 warning. (This was in fact always initialised before use, but GCC
20747 wasn't smart enough to prove that.)
20748 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
20750 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20752 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
20754 (efi_wrap_1): Likewise.
20755 (efi_wrap_2): Likewise.
20756 (efi_wrap_3): Likewise.
20757 (efi_wrap_4): Likewise.
20758 (efi_wrap_5): Likewise.
20759 (efi_wrap_6): Likewise.
20760 (efi_wrap_10): Likewise.
20761 Based on information by: Red Hat/Peter Jones.
20763 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20765 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
20766 set-but-not-used variable.
20768 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20770 * docs/grub.texi (Simple configuration): Be more explicit about
20771 GRUB_DEFAULT, and add an example.
20772 Reported by: Leslie Rhorer.
20774 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20776 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
20779 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20781 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
20782 * util/grub.d/20_linux_xen.in: Likewise.
20784 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20786 * util/grub.d/10_linux.in: Try alternative config filenames where
20787 we parse config file.
20788 * util/grub.d/20_linux_xen.in: Likewise.
20790 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20792 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
20793 * util/grub.d/20_linux_xen.in: Likewise.
20795 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20797 * grub-core/disk/raid.c (insert_array): Add few potentially
20798 useful grub_util_info.
20799 (grub_raid_register): Likewise.
20801 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20803 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20804 Preserve partition number in mdadm code path.
20806 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20808 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20809 few potentially useful grub_util_info.
20811 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20813 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20815 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20817 * docs/grub.texi (default): Use @example rather than nested
20818 itemized lists to avoid breaking gendocs.
20820 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20822 * docs/grub.texi (Future): Update.
20824 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20826 * docs/grub.texi (Environment): New chapter.
20827 (Changes from GRUB Legacy): Link to "Environment block" section for
20828 details of limitations.
20829 (Simple configuration): Likewise. Link to documentation of gfxmode
20830 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20832 (Shell-like scripting): Note that normal variables are stored in the
20834 (gettext): Link to documentation of lang and locale_dir.
20835 (list_env): New section.
20836 (load_env): New section.
20837 (save_env): New section.
20839 (Reporting bugs): Fix typo.
20841 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20843 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20846 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20848 * grub-core/term/at_keyboard.c (set_scancodes)
20849 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20851 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20853 * docs/grub.texi (Menu-specific commands): Remove some semantics
20854 that were true in GRUB Legacy but not in GRUB 2.
20855 (submenu): New section.
20856 (false): New section.
20857 (read): New section.
20858 (true): New section.
20860 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20862 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20864 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20866 * docs/grub.texi (Simple configuration): Explain some of the
20867 current limitations of grub-mkconfig.
20868 Reported by: Leslie Rhorer.
20870 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20872 Old macs search for boot.efi rather than for bootia32.efi.
20874 * util/grub-install.in: Copy bootia32.efi to boot.efi.
20875 * util/grub-mkrescue.in: Likewise.
20876 Suggested by: Peter Jones.
20878 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20880 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
20882 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20884 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
20885 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
20886 (grub_lvm_mirror): New struct.
20887 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
20888 (grub_lvm_iterate): Iterate only visible volumes.
20889 (grub_lvm_read): Factor out to ..
20890 (read_lv): ... this. Support mirrors.
20891 (grub_lvm_read): New wrapper function.
20892 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
20893 stripped or mirrored.
20895 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20897 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
20899 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20901 * docs/grub.texi (loopback): New section.
20903 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20905 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
20908 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20910 * docs/grub.texi (BIOS installation): New section, partly based on
20911 previous text in other sections.
20912 (Installing GRUB using grub-install): Replace BIOS discussion with a
20914 (Images): Likewise.
20916 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20918 * grub-core/kern/emu/hostdisk.c (find_partition_start)
20919 [HAVE_DIOCGDINFO]: Add safety checks.
20921 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20923 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
20924 per default compiled in kernel and prior to 8.0 isn't shipped at all.
20926 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20928 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
20929 real_sb->size is zero (e.g. RAID-0), get the disk size from
20930 real_sb->data_size instead.
20931 Fixes Ubuntu bug #743136.
20933 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20935 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
20936 printf clauses for printing size and start.
20938 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20940 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
20941 Reported and tested by: Timothy Nikkel.
20943 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20945 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
20946 (dirty_region_add_real): ... this.
20947 (dirty_region_add): Don't discard margin refresh when performing
20950 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20952 * grub-core/lib/relocator.c (allocate_regstart)
20953 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
20954 terminals are capabple of malloc-free operation.
20955 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20956 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20958 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
20960 * util/grub-setup.c: Copy the partition table zone if floppy support
20961 is disabled, even if no partition table is found.
20963 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
20964 during POST if an invalid partition table is contained in the PBR
20965 of the active partition when GRUB is installed to a partition.
20967 2011-03-28 Colin Watson <cjwatson@debian.org>
20969 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
20972 2011-03-28 Colin Watson <cjwatson@debian.org>
20974 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
20975 to be specific about what kind of RAID device we're scanning for.
20977 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
20979 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
20980 return freed string.
20982 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20984 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
20986 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20988 Use libgeom on FreeBSD to detect partitions.
20990 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
20991 (grub-mkrelpath): Likewise.
20992 (grub-script-check): Likewise.
20993 (grub-editenv): Likewise.
20994 (grub-mkpasswd-pbkdf2): Likewise.
20995 (grub-fstest): Likewise.
20996 (grub-mkfont): Likewise.
20997 (grub-mkdevicemap): Likewise.
20998 (grub-probe): Likewise.
20999 (grub-setup): Likewise.
21000 (grub-ofpathname): Likewise.
21001 (grub-mklayout): Likewise.
21002 (example_unit_test): Likewise.
21003 (grub-menulst2cfg): Likewise.
21004 * grub-core/Makefile.core.def (grub-emu): Likewise.
21005 (grub-emu-lite): Likewise.
21006 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
21007 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
21008 define HAVE_DIOCGDINFO.
21009 (follow_geom_up) [FreeBSD]: New function.
21010 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
21011 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
21012 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
21013 unconditionally of HAVE_DIOCGDINFO.
21015 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21017 Fix FreeBSD compilation problem.
21019 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
21020 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
21022 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
21024 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
21025 Switch back to page zero before loading a kernel, since some kernel
21026 drivers expect that.
21027 Thanks to: Felix Kuehling.
21029 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21031 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
21032 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
21033 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
21035 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21037 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
21038 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
21040 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21042 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
21043 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
21044 malloc is disabled.
21046 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21048 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
21049 for modules headers when counting the needed allocation size.
21051 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21053 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
21054 if no ASCII character is found to prevent crash.
21056 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
21058 * grub-core/video/bitmap.c (match_extension): Ignore case.
21060 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21062 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
21064 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21066 * grub-core/script/parser.y: Declare "time" as valid argument.
21068 2011-03-23 Peter Jones <pjones@redhat.com>
21070 Fix incorrect assert failure reporting.
21072 * grub-core/tests/example_functional_test.c (example_test): Add
21074 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
21075 (failure_start): ...this. Check that malloc succeeded.
21076 Don't call xvasprintf. Return failure struct.
21077 (failure_append_vtext): New function.
21078 (failure_append_text): Likewise.
21079 (add_failure): Likewise.
21080 (grub_test_assert_helper): Likewise.
21081 * include/grub/test.h (grub_test_assert_helper): New declaration.
21082 (grub_test_assert): Macro rewritten.
21084 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21086 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
21088 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21090 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
21092 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21094 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
21095 into GRUB-style one.
21097 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21099 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
21100 error and not grub_errno.
21101 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
21103 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21105 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
21106 GRUB_USB_SPEED_NONE in case of failure and not the error code.
21108 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21110 * grub-core/efiemu/i386/pc/cfgtables.c
21111 (grub_machine_efiemu_init_tables): Make declaration a prototype.
21112 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
21113 (grub_xnu_unlock): Likewise.
21114 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
21116 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21118 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
21119 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
21120 * grub-core/commands/hashsum.c (aliases): Likewise.
21121 * grub-core/commands/setpci.c (pci_registers): Likewise.
21122 * grub-core/disk/usbms.c (attach_hook): Likewise.
21123 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
21124 (zio_checksum_table): Likewise.
21125 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
21126 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
21127 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
21128 * grub-core/lib/relocator.c (leftovers): Likewise.
21129 (extra_blocks): Likewise.
21130 * grub-core/loader/i386/bsd.c (relocator): Likewise.
21131 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
21132 (modules_last): Likewise.
21133 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
21134 (devices): Likewise.
21135 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
21136 (modules_last): Likewise.
21137 * grub-core/normal/auth.c (users): Likewise.
21138 * grub-core/normal/context.c (initial_menu): Likewise.
21139 (current_menu): Likewise.
21140 * grub-core/normal/crypto.c (crypto_specs): Likewise.
21141 * grub-core/term/serial.c (grub_serial_ports): Likewise.
21142 (grub_serial_terminfo_input_template): Likewise.
21143 (grub_serial_terminfo_output_template): Likewise.
21144 (grub_serial_terminfo_input): Likewise.
21145 (grub_serial_terminfo_output): Likewise.
21146 (registered): Likewise.
21147 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
21149 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21151 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
21152 grub_video_mode_type_t.
21153 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
21154 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
21155 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
21157 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21159 * util/grub-install.in: Correct the x86-64 name as x86_64.
21161 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
21163 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
21164 initial chunk read from the kernel always includes GRUB's multiboot
21165 header, which is now outside the first sector.
21167 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21169 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
21170 cached mmap_size, so that this works correctly when called multiple
21172 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
21174 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21176 * docs/grub.texi (Simple configuration): Tidy up formatting.
21178 2011-03-07 Szymon Janc <szymon@janc.net.pl>
21180 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
21181 Set-but-not-used variable removed.
21183 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21185 Workaround yet another IEEE1275 bug.
21187 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
21188 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
21189 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
21190 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
21192 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21193 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
21195 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21197 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
21200 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
21202 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
21203 empty, since in that case we can only generate either nothing or a
21204 syntactically invalid configuration file.
21205 Reported by: Michal Suchanek. Fixes Debian bug #612898.
21207 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21209 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
21210 (Making a GRUB bootable CD-ROM): Likewise.
21211 (Invoking grub-mkrescue): New section.
21212 Reported by: Yann Dirson. Fixes Debian bug #612585.
21214 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21216 * util/grub-install.in: Remove unnecessary brackets from tr
21218 * util/grub.d/10_hurd.in: Likewise.
21219 * util/grub.d/10_kfreebsd.in: Likewise.
21220 * util/grub.d/10_linux.in: Likewise.
21221 * util/grub.d/20_linux_xen.in: Likewise.
21222 Reported by: Jamie Heilman. Fixes Debian bug #612564.
21224 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
21226 * include/grub/file.h (not_easly_seekable): Rename to ...
21227 (not_easily_seekable): ... this. Update all users.
21229 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
21231 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
21234 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
21236 * util/grub-mkimage.c (generate_image): Refuse to create the images
21237 bigger than the actual flash (512K) in Loongson machines. 512K is also
21238 the biggest chip supported by them.
21240 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21242 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
21244 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
21246 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
21247 super_offset field.
21249 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21251 * util/grub-install.in: Ignore install device on platforms
21252 where it doesn't make sense. Always use UUIDs except on pc, efi and
21254 Reported by: Daniel Kahn Gillmor.
21256 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21258 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
21260 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21262 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
21263 (iterate_real): Don't rely on partition being non-NULL.
21265 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21267 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
21268 supported platforms. Put a compile time assert for this rather than
21269 generate a warning with 32-bit shift.
21271 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21273 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
21274 logical expression more readable.
21276 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21278 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
21279 even if some elements have a name.
21280 Reported by: Alexander GQ Gerasiov.
21282 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21284 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
21285 path unreadable if `grub-probe -t abstraction' fails, for example if
21286 memberlist fails on an LVM volume group.
21287 Reported by: Darius Jahandarie.
21289 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21291 * docs/grub.texi (Simple configuration): Document
21292 GRUB_PRELOAD_MODULES.
21294 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
21296 * .bzrignore: Remove nonexistent grub-pbkdf2.
21298 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
21300 * configure.ac: Bump version to 1.99~rc1.
21302 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
21304 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
21307 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21309 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
21312 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21314 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
21316 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21318 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
21321 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21323 Fix compilation on cygwin.
21325 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
21326 -R .drectve on cygwin.
21327 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
21328 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
21329 (COND_CYGWIN): New condition.
21330 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
21331 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
21332 not @TARGET_OBJ2ELF@.
21333 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
21334 type to determine whether aux is to be used.
21336 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21338 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
21339 realpath'ed device string.
21340 Handle floppy (somewhat).
21341 Issue error in unknown case rather than garbage.
21342 Reported by: Axel Beckert.
21344 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21346 * util/grub.d/00_header.in (load_video): Handle the case when no video
21348 Thanks to: Axel Beckert.
21350 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21352 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
21353 variable. Fixes problem on big endian platforms.
21355 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21357 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
21358 It doesn't work well there.
21360 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21362 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
21364 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
21365 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
21368 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21370 Use alias->path rather than buggy "canon".
21372 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
21373 (ofdisk_hash_add): New argument curcan. All users updated.
21375 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21377 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
21379 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21381 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
21382 loadmask before doing any calculations. Use correct type for offset.
21383 (grub_linux_load64): Likewise.
21385 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21387 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
21389 (console_grub_equivalences_unshift): Likewise.
21390 Reported by: Daniel Dehennin.
21392 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21394 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
21395 (set_env_limn_ro): Likewise.
21396 (GRUB_MOD_INIT): Likewise.
21397 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
21398 ARRAY_SIZE while on it.
21399 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
21400 * grub-core/normal/context.c (grub_env_export): Move from here ...
21401 * grub-core/kern/env.c (grub_env_export): ... here.
21402 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
21404 * grub-core/kern/main.c (grub_main): Export root and prefix.
21405 * include/grub/env.h (grub_env_export): Export.
21406 Reported by: Seth Goldberg.
21408 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21410 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21411 Take into account space used by ELF sections and multiboot palette.
21412 Reported by: Grégoire Sutre.
21414 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21418 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21420 Pass more appropriate video id to Linux.
21422 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
21423 grub_video_get_driver_id and variable gfxpayloadforcelfb to
21425 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
21426 shift params->lfb_size.
21427 * include/grub/i386/linux.h: Make an enume out of have_vga values.
21429 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21431 * util/grub-menulst2cfg.c: Add missing include of misc.h.
21433 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21435 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
21436 separator and pass bootpath/devid even if only one of them is available.
21437 Reported by: Seth Goldberg.
21439 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21441 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
21442 implementations bug on them.
21444 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
21446 (filter_memory_map): Likewise.
21448 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21450 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
21451 Reported by: nebuchadnezzar.
21453 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21455 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
21456 Reported by: nebuchadnezzar.
21458 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21460 Submenu default support.
21462 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
21463 auto_boot. All users updated.
21465 Handle chosen and default with submenus.
21466 (grub_menu_execute_with_fallback): Declared static.
21467 Don't notify failure if autobooted. Upper level does it.
21468 (menuentry_eq): New function.
21469 (get_entry_number): Use menuentry_eq.
21470 (show_menu): New parameter "autobooted". All users updated.
21471 (grub_show_menu): Likewise.
21472 * include/grub/normal.h (grub_show_menu): Likewise.
21473 * include/grub/menu.h (grub_menu_execute_entry): Removed.
21474 (grub_menu_execute_with_fallback): Likewise.
21476 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21478 * util/grub-mklayout.c (usage): Update help text.
21480 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21482 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
21484 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21486 * util/grub-menulst2cfg.c (main): Trim the line.
21488 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21490 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
21491 (grub_machine_init): Don't check amount of low memory as reportedly
21492 INT 12h can be broken and if low memory is too low we wouldn't have
21493 gotten into grub_machine_init anyway.
21495 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21497 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
21498 (grub_machine_mmap_iterate): Take low memory into account
21500 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21502 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
21504 Reported by: TiCPU.
21506 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21508 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
21511 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21513 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
21514 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
21516 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21518 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
21519 openbsd and netbsd types being in part_bsd module.
21521 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21523 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
21524 (_FILE_OFFSET_BITS): Likewise.
21525 Reported by: Seth Goldberg.
21527 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21529 * configure.ac: Check for libdevmapper header.
21531 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21533 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
21535 (fzap_lookup): Likewise.
21536 (dnode_get): Likewise.
21537 (make_mdn): Likewise.
21538 (zfs_mount): Likewise.
21539 (fzap_iterate): Use temporary pointer to avoid aliasing.
21540 (grub_zfs_read): Likewise.
21541 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
21542 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
21543 pointers to avoid aliasing.
21544 (grub_cmd_xnu_kernel64): Likewise.
21545 (grub_xnu_load_driver): Likewise.
21547 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21549 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
21551 (grub_cmd_terminal_output): Likewise.
21552 Reported and tested by: Grégoire Sutre.
21554 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21556 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
21558 Reported and tested by: Grégoire Sutre.
21560 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21562 * configure.ac: Do CPU substitution even if it's specified explicitly.
21563 Reported and tested by: Alain Greppin.
21565 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21567 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
21568 Reported and tested by: Alain Greppin.
21570 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21572 Satisfy some bison versions need for inttypes.h.
21574 * grub-core/lib/posix_wrap/inttypes.h: New file.
21575 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
21576 (int16_t): Likewise.
21577 (int32_t): Likewise.
21578 (int64_t): Likewise.
21579 Reported and tested by: Alain Greppin.
21581 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21583 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
21584 Silence spurious warning.
21585 Reported and tested by: Alain Greppin.
21587 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21589 * docs/grub.texi (Support automatic decompression): Update with xz
21590 decompression support.
21592 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21594 Improve loaders' kernel command line handling.
21596 * grub-core/lib/cmdline.c: New file.
21597 * include/grub/lib/cmdline.h: Likewise.
21598 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
21599 grub_create_loader_cmdline to create kernel command line.
21600 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21601 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
21602 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
21603 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
21604 (linux): Add lib/cmdline.c on common.
21606 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21608 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
21609 inopos might be unaligned.
21611 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21613 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
21614 endian transformations.
21615 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21616 Based on report by: Doug Nazar.
21618 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
21620 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
21621 array->members[i].start_sector.
21622 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
21624 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21626 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
21627 Reported and tested by: Grégoire Sutre.
21629 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21631 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
21632 avoid causing test failures by clearing the screen.
21634 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21636 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
21637 Fix prefix check to handle the case where dir ends with a slash
21638 (most significantly, "/" itself).
21639 Reported by: Michael Vogt.
21641 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21643 Run terminfo_cls on initing terminfo output to clear the screen and
21644 move the cursor to (0,0).
21646 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
21647 Call grub_terminfo_output_init.
21648 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
21649 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
21650 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
21652 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21654 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
21657 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21659 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
21662 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21664 The E820 type 5 is BADRAM, not EXEC_CODE.
21666 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21667 (GRUB_E820_BADRAM): New define.
21668 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
21669 into reserved. Propagate BADRAM.
21670 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21671 (GRUB_E820_BADRAM): New define.
21673 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21675 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
21676 Ignore the memory post-4G.
21677 (grub_relocator_firmware_alloc_region): Additional debug statement.
21679 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21681 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
21683 Reported by: David Pravec.
21685 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21687 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
21690 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21692 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
21694 (grub_reed_solomon_recover): Likewise.
21696 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21698 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
21700 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21702 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
21705 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
21707 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
21708 descriptions of extract_legacy_entries_source and
21709 extract_legacy_entries_configfile.
21710 Reported by: Seung Soo, Ha.
21712 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
21714 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
21715 on devices that do not implement function 0.
21717 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
21719 * grub-core/fs/hfsplus.c: Make parent unsigned.
21720 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
21722 (grub_hfsplus_cmp_extkey): Likewise
21724 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21726 * util/grub-install.in: Correctly use bootloader_id and not
21727 GRUB_DISTRIBUTOR on efibootmgr line.
21729 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21731 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
21733 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
21735 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
21736 Xen and reorder menu item wording to make it clearer that this entry
21737 will launch Xen. Print separate messages when loading Xen and
21740 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21742 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
21743 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
21744 loop in case of incorrect amiga partmap.
21746 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21748 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
21749 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
21752 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21754 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
21756 Reported by: crocket
21758 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21760 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
21762 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
21764 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21766 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
21768 (grub_cmd_xnu_kextdir): Likewise.
21769 (grub_cmd_xnu_splash): Likewise.
21771 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21773 Avoid using Reed-Solomon with 0 redundancy.
21775 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
21776 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
21778 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
21779 (grub_reed_solomon_recover): Likewise.
21781 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21783 Don't use disk subsystem in freebsd_boot.
21785 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
21786 (freebsd_biosdev): Likewise.
21787 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
21788 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
21790 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
21792 Handling of files of unknown size is currently limited. They can't be
21793 used e.g. for initrd or modules. Moreover gzip handling of not
21794 easily seekable files is buggy. Disable unknown file size for now. May
21795 be inefficient but works.
21797 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21798 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21800 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21802 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21805 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21807 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21809 2010-12-25 Shea Levy <shlevy>
21811 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21813 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21815 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21816 Windows Server 2008.
21817 Reported by: Devin Giddings.
21819 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21821 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21822 writing an error message because of async power management.
21823 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21824 (grub_reboot): Likewise.
21826 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21828 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21829 keep unit tests from failing when they shouldn't.
21831 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21833 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21834 previous patch increased the size of the RS code by 20 bytes (at
21835 least with gcc-4.4), so increase this by 20 bytes to match.
21836 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21838 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21840 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21841 scratch area. Make sure to initialise chosen in standalone mode as
21842 well as non-standalone.
21843 Reported by: Robert Hooker and Andy Whitcroft.
21844 Tested by: Andy Whitcroft.
21846 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21848 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21849 constructing a new unescaped string and passing it to grub_xputs in
21850 one go, rather than passing characters to grub_printf one at a time.
21852 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21854 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21855 initialising utf16.
21857 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21859 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21860 comment. Add an extra layer of quotation, requiring the output of
21861 this function to be used in a printf format string.
21862 (gettext_printf): New function.
21863 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21864 Extract translatable strings from here-documents and use a temporary
21865 variable instead, so that xgettext can find them.
21866 * util/grub.d/10_kfreebsd.in: Likewise.
21867 * util/grub.d/10_linux.in: Likewise.
21868 * util/grub.d/20_linux_xen.in: Likewise.
21870 * po/grub.d.sed: New file.
21871 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
21872 arguments. Set c-format flags on all strings extracted from
21873 util/grub.d/ (xgettext refuses to include these itself for strings
21874 it extracted from a shell file, but these really are c-format).
21876 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21878 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
21879 Avoid next pointing to nowhere.
21881 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21883 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
21884 rather than assuming than rootblock is exactly in the middle.
21885 (grub_affs_label): Likewise.
21887 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21889 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
21890 reserved_first_sector to 0.
21891 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
21892 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
21893 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
21895 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21897 Fix handling of UTF-16 UDF labels.
21899 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
21900 (read_string): .. here.
21901 (grub_udf_label): Use read_string.
21903 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
21905 * grub-core/normal/menu_entry.c (run): Execute commands from menu
21906 editor under argument scope.
21907 Reported by: Jordan Uggla
21909 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21911 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
21913 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
21915 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
21916 line, and other keys scroll an entire page (previous handling was
21917 for \r and \n to scroll a page and other keys to scroll two lines).
21919 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21921 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21922 Set ptrdest to correct get_physical_target_address rather than
21923 incorrect get_virtual_current_address.
21925 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
21927 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
21928 correct cat to grub_uint8_t * rather than grub_uint32_t *.
21930 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21932 * .bzrignore: Ignore grub-core/rs_decoder.S.
21934 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21936 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
21937 .mo/.mo.gz opening sequence to ...
21938 (grub_mofile_open_lang): ... here.
21939 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
21940 * util/grub.d/00_header.in (grub_lang): Include country part of
21942 Reported by: Mario Limonciello.
21944 2010-12-09 Robert Millan <rmh@gnu.org>
21946 * NEWS: Document addition of ZFS support.
21948 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
21950 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
21951 rather than `/ 2', as the latter requires -Wa,--divide which would
21952 require bumping our minimum binutils version.
21954 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
21956 * util/grub-script-check.c (main): Print script line number on
21959 2010-12-01 Robert Millan <rmh@gnu.org>
21961 * grub-core/fs/zfs/zfs.c: New file.
21962 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
21963 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
21964 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
21965 * grub-core/fs/zfs/zfsinfo.c: Likewise.
21967 * include/grub/zfs/dmu.h: Likewise.
21968 * include/grub/zfs/dmu_objset.h: Likewise.
21969 * include/grub/zfs/dnode.h: Likewise.
21970 * include/grub/zfs/dsl_dataset.h: Likewise.
21971 * include/grub/zfs/dsl_dir.h: Likewise.
21972 * include/grub/zfs/sa_impl.h: Likewise.
21973 * include/grub/zfs/spa.h: Likewise.
21974 * include/grub/zfs/uberblock_impl.h: Likewise.
21975 * include/grub/zfs/vdev_impl.h: Likewise.
21976 * include/grub/zfs/zap_impl.h: Likewise.
21977 * include/grub/zfs/zap_leaf.h: Likewise.
21978 * include/grub/zfs/zfs.h: Likewise.
21979 * include/grub/zfs/zfs_acl.h: Likewise.
21980 * include/grub/zfs/zfs_znode.h: Likewise.
21981 * include/grub/zfs/zil.h: Likewise.
21982 * include/grub/zfs/zio.h: Likewise.
21983 * include/grub/zfs/zio_checksum.h: Likewise.
21985 * Makefile.util.def: Build ZFS into libgrubmods.
21986 * grub-core/Makefile.core.def: Build zfs.mod.
21988 2010-11-30 Szymon Janc <szymon@janc.net.pl>
21990 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
21992 * grub-core/commands/wildcard.c (match_files): Likewise.
21994 2010-11-30 Robert Millan <rmh@gnu.org>
21996 * grub-core/loader/i386/bsd.c
21997 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
21998 whether kernel is loaded using grub_loader_is_loaded(), rather
21999 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
22000 certain error conditions.
22002 2010-11-30 Robert Millan <rmh@gnu.org>
22004 * grub-core/commands/echo.c: Include `<grub/term.h>'.
22005 (grub_cmd_echo): Call grub_refresh() after printing a message.
22007 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
22009 Avoid using tricks for initialising endian variables.
22011 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
22013 (GRUB_MOD_INIT): Don't byte-swap.
22014 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
22015 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
22016 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
22017 (grub_swap_bytes32_compile_time): Likewise.
22018 (grub_cpu_to_le32_compile_time): Likewise.
22019 (grub_cpu_to_le16_compile_time): Likewise.
22021 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
22023 * util/grub-setup.c (setup): Stop recommending --force. People who
22024 understand the dangers of blocklists are able to find this option
22025 anyway and the ones who don't shouldn't use it anyway.
22027 2010-11-26 Robert Millan <rmh@gnu.org>
22029 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
22032 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
22034 Fix LVM-on-RAID probing.
22036 * util/grub-probe.c (probe): Remember which disk was detected as
22037 RAID (perhaps an LVM physical volume). Use that disk's raidname
22038 rather than that of the top-level disk.
22040 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
22042 Fix cmdline argument quotes for setparams command of menuentry
22045 * grub-core/commands/menuentry.c (setparams_prefix): Use single
22046 quotes for arguments.
22047 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
22048 grub_strchrsub function instead.
22050 * include/grub/misc.h (grub_strchrsub): New function.
22052 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22054 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
22055 effort by skipping "." and ".." entries up-front.
22056 Suggested by: Michael Lazarev.
22058 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22060 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
22061 ldflags to ldadd, to fix link line ordering.
22062 (none_decompress): Likewise.
22064 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22066 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
22068 (grub-emu-lite): Remove kern/emu/cache.S.
22070 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22072 * util/deviceiter.c (compare_devices): If the by-id link for a
22073 device couldn't be resolved, fall back to sorting by the by-id link
22074 rather than segfaulting.
22075 Reported and tested by: Daniel Mierswa.
22077 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22079 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
22080 ldflags, to fix link line ordering.
22082 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22084 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
22085 linkers are picky about this.
22087 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22089 * grub-core/Makefile.am (command.lst): Adjust sed expression
22090 ordering so that extended and priority commands aren't treated as
22093 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22095 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
22096 Remove byte-swapping function calls, which are not valid in
22097 structure initialisers.
22098 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
22100 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
22101 grub_gpt_partition_type_bios_boot.
22103 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22105 Fix test program build on GNU/kFreeBSD.
22107 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
22108 $(LIBNVPAIR)' library dependencies.
22110 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22112 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
22114 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22116 * util/grub-install.in: Remove excessive quoting that broke
22117 installations to RAID devices.
22119 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22121 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
22122 bootloader version instead of 0.
22124 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22126 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
22129 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22131 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
22132 retrieve the metadat sector if size isn't known.
22133 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22135 2010-11-18 Robert Millan <rmh@gnu.org>
22137 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
22138 with grub_memcmp().
22140 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
22142 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
22144 Reported by: Jordan Uggla.
22146 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22148 Make better UTF compliant.
22150 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
22151 sequences as incorrect.
22152 (grub_is_valid_utf8): Likewise.
22153 (grub_utf8_to_ucs4): Likewise.
22154 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
22155 (grub_ucs4_to_utf8_alloc): Likewise.
22156 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
22158 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22160 Make legacy_source behave like source.
22162 * grub-core/commands/legacycfg.c (legacy_file): Don't call
22164 (grub_cmd_legacy_source): Call grub_show_menu if needed.
22166 2010-11-16 Colin Watson <cjwatson@debian.org>
22168 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
22169 (-Wunused implies -Wunused-parameter, but not vice versa).
22171 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
22173 * configure.ac: Make error messages less confusing by testing for
22174 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
22175 accepted, but produces a diagnostic if something else is wrong).
22177 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22179 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
22180 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
22182 (grub_keyboard_controller_init)
22183 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
22184 read the initial state since controller isn't inited yet.
22186 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22188 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
22189 allocate_regbeg may need to create new chunk header.
22191 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22193 Fix quoting in legacy parser.
22195 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
22197 (grub_legacy_parse): Likewise.
22198 Reported by: Jordan Uggla.
22199 Tested by: Jordan Uggla.
22201 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22203 Don't add -lgcc on i386 and x86_64.
22205 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
22206 * conf/Makefile.common (LDADD_KERNEL): Likewise.
22207 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
22209 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22211 * configure.ac: Add -Wno-trampolines when supported.
22213 2010-11-14 Modestas Vainius <modax@debian.org>
22215 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
22218 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22220 Add generic logical block size support for UDF.
22222 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
22223 (GRUB_UDF_BLKSZ): Removed.
22224 (struct grub_udf_data): New field "lbshift" to hold the logical block
22225 size of the file system in log2 format. All users updated.
22226 (sblocklist): Change type to unsigned.
22227 (grub_udf_mount): Change type of "sblklist" to unsigned.
22228 Move AVDP search before VRS recognition, because the latter requires
22229 knowledge of the logical block size, which is detected during the
22231 Detect and validate logical block size during AVDP search, adding
22232 support for block sizes 512, 1024 and 4096.
22233 Make VRS recognition independent of block size.
22235 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22237 Properly handle deleted files on UDF.
22239 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
22240 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
22243 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22245 Support reading files larger than 2 GiB.
22247 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
22248 "offset" to grub_off_t.
22249 (grub_udf_read_file): Likewise for parameter "pos".
22251 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22253 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
22255 (Simple configuration): Refer to Changes from GRUB Legacy about
22256 save_env availability.
22258 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22260 * util/grub-install.in: Ignore empty partition table detection
22261 instead of trying to include part_ module.
22263 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22265 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
22266 LVM on RAID support.
22268 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22270 Properly define WORDS_BIGENDIAN in wrapped environments.
22272 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
22274 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
22276 Reported by: Manoel Rebelo Abranches.
22277 Tested by: Manoel Rebelo Abranches.
22279 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22281 * util/grub-mkconfig.in: Fix quoting.
22283 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22285 Support big ext2 files.
22287 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
22288 (grub_ext2_read_block): Support triple indirect blocks.
22289 (grub_ext2_read_file): Use 64-bit types and read size_high.
22290 (grub_ext2_open): Read size_high.
22291 Reported by: Ximin Luo.
22292 Tested by: Manoel Rebelo Abranches.
22294 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22296 * util/grub-install.in: Handle filenames containing spaces.
22297 Reported by: Jordan Uggla.
22298 Tested by: Jordan Uggla.
22300 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22302 * util/grub-mkconfig.in (grub_script_check): New variable.
22303 Use grub_script_check instead of grub-script-check.
22304 Reported by: Barry Jackson.
22306 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22308 * docs/grub.texi (menu): Correct the order.
22309 Reported by: D. Hugh Redelmeier.
22311 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
22313 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
22316 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22318 * include/grub/elfload.h (grub_elf32_size): New parameter.
22320 Return maximum segments alignment.
22321 (grub_elf64_size): Likewise.
22322 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
22323 Return maximum segments alignment.
22324 (grub_elf64_size): Likewise.
22325 * grub-core/loader/powerpc/ieee1275/linux.c:
22326 (grub_linux_claimmap_iterate): New function. Uses the
22327 "available" property in the "memory" node for memory allocation
22328 for kernel in the PowerPC loader.
22329 (grub_linux_load32): Correctly find linux entry point offset.
22330 (grub_linux_load64): Likewise.
22332 2010-11-07 Robert Millan <rmh@gnu.org>
22334 On mips-yeeloong, build with -march=loongson2f when this flag is
22335 available (GCC >= 4.4).
22336 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
22338 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
22339 or otherwise add -march=mips3.
22341 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
22343 Suppress shell expansion on echo '*' and echo "*" like cases.
22344 Reported by: Jordan Uggla.
22346 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
22347 string arguments before shell expansion.
22348 * tests/grub_cmd_echo.in: New testcases.
22350 2010-11-07 Robert Millan <rmh@gnu.org>
22352 * conf/mips-qemu-mips.rmk: Remove stale file from previous
22355 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
22357 * grub-core/kern/emu/hostdisk.c
22358 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
22360 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22362 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
22363 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
22364 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
22366 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22368 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
22370 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22372 * util/grub-install.in: Replace useless recomendation to pass
22373 --modules with a recomendation to report a bug.
22375 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22377 Properly register serial terminfo.
22378 Reported by: Jordan Uggla
22380 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
22382 (grub_serial_terminfo_output_template): Likewise.
22383 (grub_cmd_serial): Register "serial" with terminfo.
22384 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
22385 grub_serial_terminfo_output.
22387 2010-11-05 Robert Millan <rmh@gnu.org>
22389 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
22392 2010-11-05 Robert Millan <rmh@gnu.org>
22394 On Yeeloong, pass machine type information to Linux.
22396 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
22397 (LOONGSON_MACHTYPE): New macro, set to
22398 "machtype=lemote-yeeloong-2f-8.9inches".
22399 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
22400 additional argument to Linux.
22402 2010-11-04 Robert Millan <rmh@gnu.org>
22404 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
22405 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
22406 (its SATA disks are detected as slaveless IDE master drives on
22408 Reported by Carsten Aulbert.
22410 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
22412 * util/bin2h.c (main): Fix spelling error in generated output.
22414 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
22416 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
22418 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22420 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
22421 vga= option is supplied.
22423 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22425 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
22426 * util/grub.d/10_kfreebsd.in: Likewise.
22427 * util/grub.d/10_linux.in: Likewise.
22428 * util/grub.d/20_linux_xen.in: Likewise.
22430 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22432 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
22433 argument as an argument to no-argument option.
22435 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22437 * util/grub.d/10_linux.in: Add missing load_video with explicit
22438 GRUB_GFXPAYLOAD_LINUX.
22440 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22442 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
22444 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22446 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
22447 elements with invlid index.
22448 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22449 * grub-core/disk/raid.c (insert_array): Automatically reallocate
22451 * include/grub/raid.h (grub_raid_member): New struct.
22452 (grub_raid_array): Transform devices and start_sector into usage of
22453 grub_raid_member. All users updated
22454 (allocated_devs): New member.
22456 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22458 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
22461 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
22463 NetBSD build fix for getline function conflict from gnulib.
22465 * Makefile.util.def (libgrubkern.a): New library for grub kernel
22466 components that depend on gnulib headers.
22467 (libgrubmods.a): Renamed from earlier libgrub.a.
22468 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
22470 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22472 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
22473 install rather than creating a broken install.
22475 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22477 * util/grub-setup.c (argp): Remove misleading example of installing to
22480 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22482 * util/grub-setup.c (setup): Clarify the error message.
22484 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22486 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
22488 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22490 * grub-core/kern/emu/misc.c
22491 (grub_make_system_path_relative_to_its_root)
22492 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
22494 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22496 * grub-core/kern/emu/misc.c
22497 (grub_make_system_path_relative_to_its_root): Revert r2882.
22499 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
22501 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
22502 useless field head. All users updated.
22503 (free_subchunk): Correct handling of IN_REGION subchunk.
22505 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
22507 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
22508 (Supported kernels): Likewise.
22510 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22512 Make mktemp invocations portable.
22514 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
22515 exit if mktemp fails.
22516 * tests/grub_script_blockarg.in: Likewise.
22517 * tests/partmap_test.in: Likewise.
22518 * tests/util/grub-shell-tester.in: Likewise.
22519 * tests/util/grub-shell.in: Likewise.
22520 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22521 * Makefile.am: Likewise, and chain shell commands with `&&'
22523 * util/grub-mkrescue.in: Use the same explicit template as above, and
22524 exit if mktemp fails.
22526 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
22528 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
22529 Linux kernel, reported by Dennis Schridde.
22531 2010-10-17 Szymon Janc <szymon@janc.net.pl>
22533 * grub-core/normal/auth.c (grub_auth_check_authentication):
22534 Set-but-not-used variable removed.
22536 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22538 * docs/grub.texi (GNU/Linux): Document APM unavailability with
22539 32-bit linux protocol.
22541 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22543 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
22544 cursor shape for sanity.
22546 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22548 * docs/grub.texi (Installation): Document buggy BIOS install.
22550 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22552 * docs/grub.texi (Installation): Indent.
22554 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22556 * util/grub-setup.c (setup): New parameter allow_floppy.
22557 (arguments): New member allow_floppy.
22558 (argp_parser): Handle --allow-floppy.
22559 (main): Pass allow_floppy.
22560 * util/grub-install.in: New option --allow-floppy passed though to
22563 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22565 * util/grub-install.in: Handle partitionless disks.
22567 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22569 * util/grub-setup.c (setup): Don't clean blocklists before readability
22572 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22574 * docs/grub.texi (Installation): Document embedding zone. Remove
22575 obsolete grub-install example.
22577 2010-10-16 Szymon Janc <szymon@janc.net.pl>
22579 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
22580 Set-but-not-used variable ifdef'ed.
22581 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
22582 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
22584 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
22585 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
22586 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
22587 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
22588 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
22589 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22590 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
22591 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
22592 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
22593 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
22594 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
22597 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22599 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
22600 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
22603 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22605 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
22606 synonym to _S5_. Needed for some DSDTs.
22608 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22610 Userspace ACPI parser debugging.
22612 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
22613 headers and add relevant defines. Don't include standard headers.
22614 (main) [GRUB_DSDT_TEST]: New function.
22615 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
22616 Don't declare functions.
22618 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22620 Remove dead grub_efi_mm_fini.
22622 * grub-core/kern/efi/mm.c (allocated_page): Removed.
22623 (ALLOCATED_PAGES_SIZE): Likewise.
22624 (MAX_ALLOCATED_PAGES): Likewise.
22625 (allocated_pages): Likewise.
22626 (grub_efi_allocate_pages): Don't record allocated pages.
22627 (grub_efi_free_pages): Likewise.
22628 (grub_efi_mm_init): Likewise.
22629 (grub_efi_mm_fini): Removed.
22631 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22633 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
22634 (grub_efi_mm_init): Take into account the memory map size increase.
22636 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22638 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
22639 (serial_hw_put): Wait based on real time rather than port reads. Don't
22641 * include/grub/serial.h (grub_serial_port): New field broken.
22643 2010-10-16 Robert Millan <rmh@gnu.org>
22645 * grub-core/kern/emu/misc.c
22646 (grub_make_system_path_relative_to_its_root): Fix premature return
22647 when processing non-root ZFS filesystems.
22648 Reported by Sergio Talens-Oliag.
22650 2010-10-15 Robert Millan <rmh@gnu.org>
22652 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
22653 guarantee compressed ones are processed first.
22655 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22657 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
22658 grub_efiemu_autocore.
22660 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22662 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
22664 (grub_console_getkey): Use correct jae opcode rather than ja.
22666 2010-10-12 Robert Millan <rmh@gnu.org>
22668 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
22669 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
22670 variable. All references updated.
22672 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
22674 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
22676 Correctly distinguish mdraid flavours.
22678 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
22679 (insert_array): New argument raid.
22680 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
22681 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
22682 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
22684 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
22686 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
22687 handling of special keys.
22689 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22691 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
22692 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
22694 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22696 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
22697 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
22699 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
22700 Use right endpoint when querying descriptor.
22702 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22704 Clear out 0x80 color bit on EFI.
22706 Reported by: decoder and meta tech.
22708 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
22709 (grub_console_setcolorstate): Clear out 0x80 bit.
22710 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
22711 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
22712 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
22714 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22716 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
22719 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22721 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
22722 mo_file after freeing.
22724 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22726 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
22728 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22730 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
22733 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22735 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
22738 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22740 Put terminfo into core on ieee1275 and yeeloong (needed for console).
22742 * gentpl.py: New groups terminfoinkernel and terminfomodule.
22743 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
22744 and terminfo.h when needed.
22745 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
22746 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
22747 (terminfo): Enable only on terminfokernel.
22748 (extcmd): Likewise.
22749 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
22750 * include/grub/lib/arg.h: Likewise.
22751 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
22752 incorrect usage of ->.
22754 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22756 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
22757 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
22759 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22761 Fix coreboot compilation.
22763 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22764 Take VBE info into account even if only text is supported.
22765 (fill_vbe_info): Take into account the case when only VGA text
22767 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
22768 on coreboot, multiboot and qemu.
22770 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22772 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
22774 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
22776 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22778 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
22781 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22783 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
22784 if they were BSD-style.
22786 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22788 * grub-core/boot/i386/pc/lnxboot.S: Replace
22789 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
22790 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
22792 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22794 Write embedding zone using Reed-Solomon.
22796 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22797 * grub-core/Makefile.am (rs_decoder.S): New target.
22798 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22799 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22800 (multiboot): Move to RS part.
22801 (post_reed_solomon): New label.
22802 (grub_boot_drive): Move to non-RS part since it's modified in memory
22804 Include rs_decoder.S.
22805 * grub-core/lib/reed_solomon.c: New file.
22806 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22808 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22809 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22810 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22811 * include/grub/partition.h (grub_partition_map): Change prototype of
22812 embed to allow returning additional sectors.
22813 * include/grub/reed_solomon.h: New file.
22814 * util/grub-setup.c (setup): Handle Reed-Solomon.
22816 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
22818 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22819 i386 and x86-64 definedness tests.
22821 2010-09-27 Yves Blusseau <blusseau@zetam.org>
22823 Fix generation of kernel_syms.lst
22825 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22828 2010-09-26 Robert Millan <rmh@gnu.org>
22830 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22832 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22833 the pool is an array of devices, iterate through it and return the
22834 first device that passes a stat() test (instead of blindly returning
22837 2010-09-26 Robert Millan <rmh@gnu.org>
22839 Build fixes for GNU/kFreeBSD.
22841 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22842 to programs that require ZFS conversion.
22843 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22844 kernels that don't have FLOPPY_MAJOR.
22846 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22848 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22850 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22852 Fix grub-emu build.
22854 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22855 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22856 mdraid09 and mdraid1x.
22858 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
22860 Re-enable grub-extras.
22862 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22863 avoid confusing Automake. Run autogen only twice, once for the top
22864 level and once for grub-core. Add Makefile.util.def and
22865 Makefile.core.def from extra modules to the appropriate autogen
22866 invocations. If Makefile.common exists in an extra module, include
22867 it in both Makefile.util.am and grub-core/Makefile.core.am;
22868 similarly, include any Makefile.util.common file in Makefile.util.am
22869 and any Makefile.core.common file in grub-core/Makefile.core.am.
22870 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
22871 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
22872 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
22873 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
22875 * gentpl.py (gvar_add): Turn GVARS into a set.
22876 (global_variable_initializers): Sort global variables on output.
22877 (vars_init): New function.
22878 (first_time): Likewise.
22879 (library): Ensure that non-global variable initialisations are
22880 emitted before the first time we emit code for a library block.
22881 Append to variables rather than setting them. Only emit
22882 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
22883 each conditional path.
22884 (program): installdir() emits an Autogen macro, so must be passed to
22885 var_add rather than gvar_add.
22887 (script): Likewise.
22888 (rules): New function, centralising handling for different target
22889 types. Set up Guile association lists for first_time and vars_init,
22890 and send most output to a diversion so that variable initialisations
22891 can be emitted first.
22892 (module_rules): Use new rules function.
22893 (kernel_rules): Likewise.
22894 (image_rules): Likewise.
22895 (library_rules): Likewise.
22896 (program_rules): Likewise.
22897 (script_rules): Likewise.
22898 (data_rules): Likewise.
22900 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
22902 * .bzrignore: Add contrib and grub-core/contrib. Remove
22903 grub-core/Makefile.gcry.am.
22905 2010-09-24 Yves Blusseau <blusseau@zetam.org>
22907 * grub-core/lib/LzFind.c: Add missing include.
22908 * grub-core/lib/LzmaEnc.c: Likewise.
22909 * grub-core/script/lexer.c: Likewise.
22910 * grub-core/script/yylex.l: Likewise.
22911 * util/grub-macho2img.c: Likewise.
22912 * util/grub-menulst2cfg.c: Likewise.
22913 * util/grub-mklayout.c: Likewise.
22914 * util/grub-mkpasswd-pbkdf2.c
22915 * util/grub-mkrelpath.c: Likewise.
22916 * util/resolve.c: Likewise.
22918 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
22920 * Makefile.util.def (example_unit_test): Add
22921 grub-core/gnulib/libgnu.a.
22923 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
22925 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
22927 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
22929 Support xz compression on yeeloong.
22931 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
22932 * configure.ac: Check for LZMA.
22933 * grub-core/Makefile.core.def (xz_decompress): New target.
22934 (none_decompress): Likewise.
22935 * grub-core/boot/decompressor/minilib.c: New file.
22936 * grub-core/boot/decompressor/none.c: Likewise.
22937 * grub-core/boot/decompressor/xz.c: Likewise.
22938 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
22939 * grub-core/kern/mips/cache_flush.S: Likewise.
22940 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
22941 * grub-core/kern/mips/startup.S: Move first stage to ...
22942 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
22944 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
22945 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
22946 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
22947 Allocate statically.
22948 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
22949 Allocate statically or use scratch. Don't check CRC32.
22950 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
22951 Allocate statically. Don't check CRC32.
22952 * include/grub/decompressor.h: New file.
22953 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
22955 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
22956 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
22957 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
22958 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
22959 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
22960 * util/grub-mkimage.c (grub_compression_t): New type.
22961 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
22962 (image_target_desc): New field default_compression.
22963 (image_targets): Adjust yeeloong targets.
22964 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
22965 (compress_kernel): New parameter comp.
22966 (generate_image): Likewise. Handle new compression case.
22967 (options): New option --compression
22969 (main): Handle new option.
22971 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
22973 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
22975 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
22977 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22978 typo in __i386__ conditional.
22980 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22982 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
22985 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22987 Implement EFI and ACPI multiboot2 extensions.
22989 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
22990 new tags as supported.
22991 (acpiv2_size): New function.
22992 (grub_multiboot_get_mbi_size): Take new tags into account.
22993 (grub_multiboot_make_mbi): Add new tags.
22994 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
22996 2010-09-21 Aleš Nesrsta <starous@volny.cz>
22998 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
22999 Added missing configuration of USB device.
23001 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23003 * grub-core/normal/menu_entry.c (run): Make sure we always return
23006 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23008 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
23009 NumberOfPages is UINT64 according to the UEFI specification, not
23010 UINTN. Fix printf format.
23012 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23014 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
23015 `err' to grub_usb_err_t.
23016 Reported and tested by: KESHAV P.R.
23018 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23020 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
23021 tpart non-const, so that we can assign to it. (Since this is a
23022 typedef, the constness refers to the pointer rather than what it
23025 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23027 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
23028 $(top_srcdir)/grub-core/gnulib as well as
23029 $(top_builddir)/grub-core/gnulib.
23030 Reported by: KESHAV P.R.
23032 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23034 * util/grub-install.in: Fix the bootloader ID option to be
23035 consistently --bootloader-id, not --bootloader_id.
23036 Reported by: KESHAV P.R.
23038 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23040 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
23041 check hash checksum." consistently translatable.
23043 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23045 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
23048 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23050 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
23051 (GRUB_MOD_INIT): Register sha1sum command.
23052 (GRUB_MOD_FINI): Unregister sha1sum command.
23054 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23056 Keep boot and grub directory names in sync with utils scripts
23058 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
23059 * config.h.in: Add previous macros.
23060 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
23061 * util/grub-install.in: Use $bootdir and $grubdir variables.
23063 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23065 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
23066 convert partition names to disk names if the new `convert' parameter
23068 (grub_util_biosdisk_get_grub_dev): If opening the disk device
23069 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
23070 disk in its own right. This can happen with Xen disk images.
23072 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23074 * util/grub-editenv.c: Update strings to avoid warnings when generating
23076 * util/grub-setup.c: Likewise.
23078 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23080 * configure.ac: Change version to 1.99~beta0.
23082 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23084 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
23086 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
23088 * include/multiboot.h: Resynced with specification.
23089 * include/multiboot2.h: Likewise.
23091 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23093 Fix po directory handling.
23095 * configure.ac: Create po/Makefile.in rather than po/Makefile.
23096 * grub-core/gnulib/Makefile.am: Import gettext module.
23097 * m4/gnulib-cache.m4: Likewise.
23098 * m4/gnulib-comp.m4: Likewise.
23099 * m4/gettext.m4: New file, from gnulib.
23100 * m4/glibc2.m4: Likewise.
23101 * m4/iconv.m4: Likewise.
23102 * m4/intdiv0.m4: Likewise.
23103 * m4/intl.m4: Likewise.
23104 * m4/intldir.m4: Likewise.
23105 * m4/intlmacosx.m4: Likewise.
23106 * m4/intmax.m4: Likewise.
23107 * m4/inttypes-pri.m4: Likewise.
23108 * m4/lcmessage.m4: Likewise.
23109 * m4/lib-ld.m4: Likewise.
23110 * m4/lib-link.m4: Likewise.
23111 * m4/lib-prefix.m4: Likewise.
23112 * m4/lock.m4: Likewise.
23113 * m4/nls.m4: Likewise.
23114 * m4/po.m4: Likewise.
23115 * m4/printf-posix.m4: Likewise.
23116 * m4/progtest.m4: Likewise.
23117 * m4/threadlib.m4: Likewise.
23118 * m4/uintmax_t.m4: Likewise.
23119 * m4/visibility.m4: Likewise.
23120 * po/Makefile.am: Remove.
23121 * po/Makefile.in.in: New file, from gettext.
23122 ($(DOMAIN).pot-update): Support POTFILES-shell.
23123 * po/Makevars: New file.
23124 * po/POTFILES-shell: Rename to ...
23125 * po/POTFILES-shell.in: ... this. Update.
23126 * po/POTFILES: Rename to ...
23127 * po/POTFILES.in: ... this. Update.
23128 * po/Rules-quot: New file, from gettext.
23129 * po/boldquot.sed: Likewise.
23130 * po/en@boldquot.header: Likewise.
23131 * po/en@quot.header: Likewise.
23132 * po/insert-header.sin: Likewise.
23133 * po/quot.sed: Likewise.
23134 * po/remove-potcdate.sin: Likewise.
23136 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23138 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
23140 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23142 * util/grub.d/20_linux_xen.in: Use submenus.
23144 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23148 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
23149 parameter submenu. All users updated.
23150 * grub-core/normal/main.c (free_menu): Rename to ...
23151 (grub_normal_free_menu): ... this. Made global.
23152 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
23154 * grub-core/normal/menu_entry.c (screen): New field submenu.
23155 (make_screen): Set submenu.
23156 (run): Open new context if requested.
23157 * include/grub/menu.h (grub_menu_entry): New field submenu.
23158 * include/grub/normal.h (grub_normal_free_menu): New proto.
23160 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23162 Menu entries extractor.
23164 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
23166 (GRUB_MOD_INIT): Register new variants.
23167 (GRUB_MOD_FINI): Unregister new variants.
23168 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
23169 into grub_cmd_legacy_source.
23170 (grub_cmd_legacy_source): Implement extractor variants.
23171 (GRUB_MOD_INIT): Register new variants.
23172 (GRUB_MOD_FINI): Unregister new variants.
23173 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
23175 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
23176 search as an extractor.
23177 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
23178 test as an extractor.
23179 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
23181 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
23182 (grub_env_new_context): New function.
23183 (grub_env_context_open): Likewise.
23184 (grub_env_extractor_open): Likewise.
23185 (grub_env_extractor_close): Likewise.
23186 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
23187 grub_extractor_level.
23188 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
23189 * include/grub/env.h (grub_env_extractor_open): New proto.
23190 (grub_env_extractor_close): Likewise.
23191 * include/grub/normal.h (grub_extractor_level): New external variable.
23193 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23195 Make cutmem accept a region specification.
23196 Suggested by: Samuel Thibault
23198 * grub-core/mmap/mmap.c (parsemem): New function.
23199 (grub_cmd_cutmem): Handle new arguments.
23201 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23203 New command cutmem.
23205 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
23206 (GRUB_MOD_INIT): Register new command.
23207 (GRUB_MOD_FINI): Unregister new command.
23209 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23211 Support some annoying BSD and Minix subpartitions.
23213 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
23214 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
23215 Properly handle concatenation.
23216 * grub-core/kern/device.c (grub_device_iterate): Likewise.
23217 * grub-core/normal/completion.c (iterate_partition): Likewise.
23218 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
23219 contain partition. All users updated.
23220 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
23222 (grub_openbsdlabel_partition_map): Likewise.
23223 (bsdlabel_partition_map_iterate): Rename to ..
23224 (iterate_real): ... this. New arguments sector, freebsd and pmap.
23225 (bsdlabel_partition_map_iterate): New function.
23226 (netopenbsdlabel_partition_map_iterate): Likewise.
23227 (netbsdlabel_partition_map_iterate): Likewise.
23228 (openbsdlabel_partition_map_iterate): Likewise.
23229 (GRUB_MOD_INIT): Register new partmaps.
23230 (GRUB_MOD_FINI): Unregister new partmaps.
23231 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
23232 (grub_partition_msdos_iterate): ... this. All users updated.
23233 Don't support embedding other than in a minix partition.
23234 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
23236 * include/grub/partition.h (grub_partition): New field msdostype.
23237 * util/grub-install.in: Handle openbsd and netbsd types being in
23240 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23242 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
23244 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
23245 * grub-core/Makefile.core.def (mdraid): Renamed to ...
23246 (mdraid09): ... this.
23247 (mdraid1x): New module.
23248 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
23249 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
23251 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23253 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
23256 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23258 * grub-core/commands/efi/lsefimmap.c: Correct header.
23261 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23263 * util/grub-editenv.c (argp_parser): Don't pass translated strings
23264 as printf format strings; the translations might contain '%' which
23265 could cause a crash.
23267 * util/grub-fstest.c (argp_parser): Likewise.
23268 * util/grub-setup.c (argp_parser): Likewise.
23271 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23273 Use argp in grub-fstest.
23275 * util/grub-fstest.c: Don't include getopt.h.
23277 (root): New variable.
23278 (args_count): Likewise.
23280 (num_disks): Likewise.
23281 (images): Likewise.
23283 (debug_str): Likewise.
23285 (options): Transformed to argp.
23287 (main): Split argument parsing into ...
23288 (argp_parser): ... this. Changed to argp format.
23289 (argp): New variable.
23290 (main): Use argp_parse.
23292 2010-09-20 Tristan Gingold <gingold@free.fr>
23293 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
23294 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23296 * grub-core/commands/efi/lsefimmap.c: New file.
23297 * grub-core/Makefile.core.def (lsefimmap): New module.
23298 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
23300 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23302 Pause the execution (10s max) if any errors are displayed so the user
23303 has a chance to see them.
23305 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
23306 (grub_print_error): Increment grub_err_printed_errors.
23307 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
23308 execution if any errors were displayed.
23309 (show_menu): Remove old code for pause.
23310 * grub-core/normal/menu_entry.c (run): Likewise.
23311 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
23313 (grub_normal_get_char_counter): Likewise.
23314 * include/grub/err.h (grub_err_printed_errors): New external variable.
23315 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
23317 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23319 Support multiboot VBE info.
23321 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
23322 Take VBE info into account.
23323 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
23324 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23325 Call fill_vbe_info when appropriate.
23326 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
23327 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
23329 (grub_multiboot_get_mbi_size): Take new tags into account.
23330 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
23331 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23332 Call fill_vbe_tag when appropriate.
23333 (grub_multiboot_make_mbi): Properly align tags.
23334 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
23336 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
23338 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
23340 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23342 Suport manual terminal geometry specification.
23344 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
23345 Save state in grub_ofconsole_terminfo_output.
23346 (grub_ofconsole_term): Use grub_terminfo_getwh.
23347 (grub_ofconsole_getwh): Removed.
23348 * grub-core/term/serial.c (grub_serial_getwh): Removed.
23349 (grub_serial_term): Use grub_terminfo_getwh.
23350 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
23351 (options): New struct.
23352 (OPTION_*): New enum.
23353 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
23354 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
23356 (grub_terminfo_getwh): New proto.
23357 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
23359 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23361 Handle legacy "terminal" command.
23363 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
23365 (legacy_commands): Add terminal and title.
23366 (grub_legacy_parse): Handle terminal. Simplify title handling.
23368 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23370 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
23371 parameters overflow.
23373 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23375 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
23378 * docs/grub.texi (Shell-like scripting): Document `!'.
23379 (Network): Simplify using new i386-pc-pxe format. Mention
23384 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23386 * Makefile.am (SUBDIRS): Restore "."; it's important to force
23387 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
23390 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23392 * grub-core/commands/efi/lsefisystab.c: Correct header.
23393 * grub-core/commands/efi/lssal.c: Likewise.
23394 * grub-core/commands/testload.c: Likewise.
23396 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23398 * util/grub-mkrescue.in: Add explicit root argument to --set to
23399 prevent the UUID being interpreted as an argument to --set (matches
23400 previous change to prepare_grub_to_access_device).
23402 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23404 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
23405 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
23406 the verbosity of later #ifs.
23407 (find_partition_start): Define this function on FreeBSD too.
23408 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
23410 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
23413 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23415 * util/grub-editenv.c: Use argp instead of getopt.
23417 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23419 * util/grub-setup.c: Use argp instead of getopt.
23421 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23423 Use gnulib-tool to create gnulib source files.
23425 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
23426 grub-core/gnulib directories
23427 * .bzignore: Add **/.deps and autogenerated gnulib files
23428 * configure.ac: Assign auxiliary directory to build-aux, add invocation
23429 of gnulib macros, add grub-core/gnulib/Makefile
23430 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
23431 include m4 directory to aclocal.
23432 * Makefile.util.def: Remove direct compilation of gnulib source files
23433 and use the new grub-core/gnulib/libgnu.a.
23434 * build-aux/config.rpath: move config.rpath from top directory to
23436 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
23438 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
23439 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
23440 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
23442 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
23445 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23447 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
23448 grub-core/genmod.sh and grub-core/gensyminfo.sh
23450 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
23452 Add a test for echo command options.
23454 * tests/grub_cmd_echo.in: New test.
23455 * Makefile.util.def: Rules for new test.
23457 2010-09-20 Szymon Janc <szymon@janc.net.pl>
23459 Remove crc.mod and move crc command to hashsum.mod.
23460 Remove lib/crc.c - users updated to use gcrypt implementation.
23462 * grub-core/commands/crc.c: Removed.
23463 * grub-core/Makefile.core.def (crc): Module removed.
23464 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
23465 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
23466 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
23467 * grub-core/lib/crc.c: Removed.
23468 * include/grub/lib/crc.h: Removed.
23469 * Makefile.util.def (crc): Remove lib/crc.c
23470 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
23471 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
23472 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
23473 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
23474 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
23475 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
23477 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23479 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
23481 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23483 Split config.h for util and core.
23485 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
23486 (ADDR32): Likewise.
23487 (DATA32): Likewise.
23488 (BSS_START_SYMBOL): Likewise.
23489 (END_SYMBOL): Likewise.
23490 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
23491 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
23492 * config.h.in: New file.
23493 * configure.ac: Use config-util.h as config define file.
23494 Rename MACHINE into GRUB_MACHINE. All users updated.
23495 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
23497 (NESTED_FUNC_ATTR): Likewise.
23498 Substitue new variables.
23499 (COND_HAVE_ASM_USCORE): New conditional.
23500 * grub-core/Makefile.am (ASM_PREFIX): New variable.
23501 (kernel_syms.lst): Use ASM_PREFIX.
23502 * grub-core/kern/emu/console.c: Include config-util.h.
23503 * grub-core/kern/emu/misc.c: Likewise.
23504 * grub-core/kern/emu/mm.c: Likewise.
23505 * include/grub/emu/misc.h: Likewise.
23506 * include/grub/libgcc.h: Likewise.
23508 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23510 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
23512 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
23513 Fix GRUB_TERM_KEY_* constants usage.
23514 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
23516 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23518 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
23520 * grub-core/bus/usb/uhci.c: Remove empty define.
23521 (grub_uhci_check_transfer): Add missing cast.
23522 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
23524 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
23526 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
23528 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23530 * grub-core/Makefile.core.def (legacycfg): Add
23531 lib/i386/pc/vesa_modes_table.c on emu.
23533 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23535 Reduce number of temporary files generated by build system.
23537 * grub-core/gencmdlist.sh: Removed.
23538 * grub-core/genfslist.sh: Removed.
23539 * grub-core/genhandlerlist.sh: Removed.
23540 * grub-core/genmodsrc.sh: Removed.
23541 * grub-core/genpartmaplist.sh: Removed.
23542 * grub-core/genparttoollist.sh: Removed.
23543 * grub-core/gentermiinallist.sh: Removed.
23544 * grub-core/genvideolist.sh: Removed.
23546 * grub-core/genmod.sh.in: New file.
23547 * grub-core/gensyminfo.sh.in: New file.
23549 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
23550 * conf/Makefile.extra-dist: Update with new files.
23551 * gentpl.py: Remove rules related to unnecessary temporary files.
23552 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
23554 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
23556 * grub-core/bus/usb/uhci.c: Remove empty #define.
23557 * grub-core/genmoddep.awk: Updated with new syminfo format.
23558 * util/bash-completion.d/Makefile.am: Add config.log to
23561 2010-09-19 Yves Blusseau <blusseau@zetam.org>
23563 * Makefile.util.def: Add forgotten $(LIBINTL) library.
23565 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23567 * util/grub-mkconfig.in: Check the config script for syntax errors
23570 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
23571 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23573 * Makefile.util.def (grub-install): Use util/grub-install.in on all
23575 * util/grub-install.in: Add EFI and IEEE1275 support.
23576 * util/i386/efi/grub-install.in: Removed.
23577 * util/ieee1275/grub-install.in: Likewise.
23579 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23581 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
23582 (grub_cmd_cmosclean): Likewise.
23583 (GRUB_MOD_INIT): Register command cmosclean.
23584 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
23585 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
23587 2010-09-18 Carles Pina i Estany <carles@pina.cat>
23588 2010-09-18 Aleš Nesrsta <starous@volny.cz>
23589 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23591 Add keyboard layouts support.
23593 * Makefile.util.def (grub-mklayout): New file.
23594 (grub-kbdcomp): New script.
23595 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
23596 Add keyboard_layouts.h.
23597 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
23598 commands/boot.c on yeeloong.
23599 (keylayouts): New module.
23600 * grub-core/bus/usb/ohci.c
23601 * grub-core/bus/usb/uhci.c
23602 * grub-core/bus/usb/usbhub.c (rescan): New variable.
23603 (grub_usb_add_hub): Poll interrupt pipe for device handling.
23604 (attach_root_port): Likewise.
23605 (poll_nonroot_hub): Likewise.
23606 (grub_usb_poll_devices): Likewise.
23607 (detach_device): Close transfer.
23608 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
23610 (grub_usb_bulk_setup_readwrite): Likewise.
23611 (grub_usb_bulk_finish_readwrite): Likewise.
23612 * grub-core/commands/keylayouts.c: New file.
23613 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
23614 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
23616 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
23617 support scancode 2.
23618 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
23619 * include/grub/keyboard_layouts.h: New file.
23620 * util/grub-mklayout.c: New file.
23621 * util/grub-kbdcomp.in: Likewise.
23623 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23625 Unify memory types.
23627 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
23628 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
23630 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
23631 (grub_upper_mem): Likewise.
23632 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
23633 * include/grub/memory.h (grub_memory_type_t): New enum.
23636 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23638 * grub-core/Makefile.core.def (lsapm): New module.
23639 * grub-core/commands/i386/pc/lsapm.c: New file.
23640 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
23641 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
23643 * include/grub/i386/pc/apm.h: New file.
23644 * include/multiboot.h (multiboot_apm_info): New struct.
23646 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23648 GRUB-legacy configuration file support.
23650 * Makefile.util.def (grub-menulst2cfg): New util.
23651 * docs/man/grub-menulst2cfg.h2m: New file.
23652 * grub-core/Makefile.core.def (legacycfg): New module.
23653 * grub-core/commands/legacycfg.c: New file.
23654 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
23655 (grub_normal_add_menu_entry): ... this.
23656 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
23657 (grub_normal_set_password): ...this.
23658 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
23659 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
23660 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
23661 * grub-core/lib/legacy_parse.c: New file.
23662 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
23663 * include/grub/i386/pc/vesa_modes_table.h: New file.
23664 * include/grub/legacy_parse.h: Likewise.
23665 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
23666 * util/grub-menulst2cfg.c: New file.
23668 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23670 * grub-core/kern/emu/hostdisk.c
23671 (convert_system_partition_to_system_disk): Initialise node.
23673 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23675 * grub-core/kern/emu/hostdisk.c
23676 (convert_system_partition_to_system_disk): Fix devmapper memory pool
23678 Reported and based on patch by: Modestas Vainius.
23680 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23682 Fix DM-RAID probing with recent versions of device-mapper udev
23685 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
23686 canonicalise device paths under /dev/mapper/.
23687 (convert_system_partition_to_system_disk): Compare the
23688 uncanonicalised path to /dev/mapper/ rather than the canonicalised
23689 path, since device nodes under /dev/mapper/ are often symlinks.
23691 2010-09-17 Yves Blusseau <blusseau@zetam.org>
23693 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
23695 2010-09-16 Yves Blusseau <blusseau@zetam.org>
23697 * configure.ac: Avoid some annoying error messages if freetype-config
23698 program is not found.
23700 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23702 Support RAID on virtio devices, and others.
23704 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
23706 [__MINGW32__] (grub_find_device): ... this.
23707 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
23708 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
23709 reasonable default if dir is NULL.
23710 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
23712 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
23713 (grub_guess_root_device): Update callers.
23714 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
23716 * util/raid.c (grub_util_getdiskname): Remove.
23717 (grub_util_raid_getmembers): Use grub_find_device rather than
23718 grub_util_getdiskname.
23720 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23722 * docs/grub.texi (serial): Remove obsolete comment about GRUB
23723 needing to be compiled with serial support.
23724 (ls): Indicate that multiple files are accepted.
23725 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
23726 indicate that multiple files are accepted.
23728 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23730 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
23731 libgrub_a_init.c, and util/bash-completion.d/grub.
23733 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23735 * util/grub-setup.c (setup): Fix incorrect container semantics.
23737 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23739 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
23741 Reported by: J. Nick Terry
23743 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23745 Move embedding routines to partmap sources files.
23747 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
23748 [GRUB_UTIL]: New variable.
23749 (gpt_partition_map_iterate): Set part.parent.
23750 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
23751 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
23752 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
23754 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
23755 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
23756 (grub_partition_map) [GRUB_UTIL]: New field embed.
23757 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
23758 (setup): Use ->embed.
23760 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23762 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
23764 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
23765 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
23767 2010-09-15 Yves Blusseau <blusseau@zetam.org>
23769 Add function to get completions from usage.
23771 * util/bash-completion.d/grub-completion.bash.in: Add function to get
23772 completions from usage. Use LC_ALL=C to get options properly.
23774 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23776 * grub-core/gnulib/basename-lgpl.c: Imported.
23777 * grub-core/gnulib/basename.c: Likewise.
23778 * grub-core/gnulib/dirname-lgpl.c: Likewise.
23779 * grub-core/gnulib/dirname.c: Likewise.
23780 * grub-core/gnulib/dirname.h: Likewise.
23781 * grub-core/gnulib/stripslash.c: Likewise.
23783 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23785 * grub-core/gnulib/error.c: Resynced.
23786 * grub-core/gnulib/getopt.c: Likewise.
23787 * grub-core/gnulib/getopt_int.h: Likewise.
23788 * grub-core/gnulib/regex.h: Likewise.
23789 * grub-core/gnulib/regex_internal.c: Likewise.
23790 * grub-core/gnulib/regex_internal.h: Likewise.
23792 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23794 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
23795 CRC calculations and validity checks.
23796 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23799 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23801 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23803 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23805 Fix incorrect echo options handling.
23806 Reported by: Yves Blusseau.
23808 * include/grub/command.h (grub_command_flags_t): New flags
23809 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23810 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23811 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23813 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23815 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23817 (GRUB_COMMAND_FLAG_MENU): Likewise.
23818 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23819 (GRUB_COMMAND_FLAG_TITLE): Removed.
23820 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23821 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23822 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23823 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23824 (grub_command_flags_t): New enum. All users updated.
23826 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23828 Fix solaris compilation.
23830 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23831 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23832 (grub-emu-list): Likewise.
23834 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23836 Remove deprecated root command.
23838 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23841 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23843 * util/i386/pc/grub-setup.c: Merge this ...
23844 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23845 * util/grub-setup.c: ... into this.
23846 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23849 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23851 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23854 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23856 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23859 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23861 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23862 explicit root argument to set to prevent UUID to be interpreted as
23865 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23867 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23869 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23871 Don't export grub_gate_a20.
23873 * grub-core/kern/i386/pc/init.c: Remove leftovers.
23874 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
23876 (grub_gate_a20): ... this. All users updated.
23877 * include/grub/i386/pc/init.h: Removed. All users updated.
23879 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23881 Create euro.pf2 which supports most European languages.
23883 * Makefile.am (grubdata_DATA): Add euro.pf2.
23884 (euro.pf2): New target.
23885 (CLEANFILES): Add euro.pf2.
23887 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23889 * configure.ac: Disable emu-usb by default to prevent inadvertent
23892 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23894 Disable usbserial on grub-emu since our libusb code isn't good enough
23897 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
23898 (usbserial_pl2303): Likewise.
23899 (usbserial_ftdi): Likewise.
23901 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23903 * include/grub/disk.h (grub_disk): Remove has_partitions.
23905 * disk/loopback.c (grub_loopback): Remove has_partitions.
23907 (options): Remove partitions. All users updated.
23908 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
23909 * util/i386/pc/grub-setup.c (setup): copy partition table only when
23910 actual partition table is found.
23912 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23914 Remove readability checks (too many false negatives).
23916 * util/grub-install.in: Remove readability checks.
23917 * util/grub-mkconfig.in: Likewise.
23918 * util/grub.d/10_hurd.in: Likewise.
23919 * util/grub.d/10_kfreebsd.in: Likewise.
23920 * util/grub.d/10_linux.in: Likewise.
23921 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
23924 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23926 Enable acpi shutdown on all ACPI platforms.
23928 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
23929 on coreboo, multiboot and EFI.
23930 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
23931 (grub_acpi_halt): Likewise.
23932 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
23933 (grub_cmd_halt): Don't call grub_acpi_halt directly.
23934 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
23935 * grub-core/lib/i386/halt.c (grub_halt)
23936 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
23938 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23940 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
23943 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23945 * grub-core/video/efi_gop.c: Fix over-80-chars line.
23946 * grub-core/video/efi_uga.c: Likewise.
23948 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23950 Filter devaliases and never open same device twice.
23952 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
23953 (last_ihandle): Likewise.
23954 (ofdisk_hash_ent): New member shortest.
23955 (ofdisk_hash_add): Add canonical path too.
23956 (scan): New function.
23957 (grub_ofdisk_iterate): Iterate over hashed entries.
23958 (compute_dev_path): Don't add :0.
23959 (grub_ofdisk_open): Don't really open the disk.
23960 (grub_ofdisk_close): Avoid closing unrelated disk.
23961 (grub_ofdisk_read): Implement reopen logic.
23962 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
23964 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
23967 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23971 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
23972 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
23973 right address. Add sparc64_ieee1275_ldflags.
23974 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
23975 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
23976 to grub_host_to_target_addr
23977 (load_image): Likewise.
23979 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23981 * grub-core/normal/completion.c (complete_file): Handle device
23983 Fix based on patch by Doug Nazar.
23985 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23987 grub-mknetdir script.
23989 * Makefile.util.def (grub-mknetdir): New module.
23990 * tests/util/grub-shell.in: Support boot=net
23991 * util/grub-mknetdir.in: New file.
23993 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23995 videoinfo on non-vbe.
23997 * grub-core/Makefile.core.def (vbeinfo): Removed.
23998 (vbetest): Removed.
23999 (videoinfo): New module.
24000 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
24001 * grub-core/commands/i386/pc/vbetest.c: Removed.
24002 * grub-core/commands/videoinfo.c: New file.
24003 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
24005 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
24007 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
24008 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
24009 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
24010 mode_number. New parameter mode. All users updated.
24011 (grub_video_gop_iterate): New function.
24012 (grub_video_efi_gop): New member iterate.
24013 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
24014 (grub_vbe_set_video_mode): Remove setting useless fields.
24015 (vbe2videoinfo): New function.
24016 (grub_video_vbe_iterate): Likewise.
24017 (grub_video_vbe_setup): Use vbe2videoinfo.
24018 (grub_video_vbe_print_adapter_specific_info): New function.
24019 (grub_video_vbe_adapter): New fields iterate and
24020 print_adapter_specific_info.
24021 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
24023 (grub_video_mode_info): New field mode_number.
24024 (grub_video_adapter): New fields iterate and
24025 print_adapter_specific_info.
24027 2010-09-13 Tristan Gingold <gingold@free.fr>
24028 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
24029 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24031 * grub-core/commands/efi/lsefisystab.c: New file.
24032 * grub-core/commands/efi/lssal.c: Likewise.
24033 * grub-core/Makefile.core.def (lsacpi): New module.
24034 (lsefisystab): Likewise.
24035 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
24036 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
24037 (grub_efi_sal_system_table): New struct.
24038 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
24039 (grub_efi_sal_system_table_memory_descriptor): Likewise.
24040 (grub_efi_sal_system_table_platform_features): Likewise.
24041 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
24042 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
24043 (grub_efi_sal_system_table_ap_wakeup): Likewise.
24044 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
24046 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24048 Support explicit user claim that a device is BIOS-visible.
24050 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
24051 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
24052 * grub-core/kern/emu/hostdisk.c
24053 (convert_system_partition_to_system_disk): Support mdX.
24054 (find_system_device): New parameter add. All users updated.
24055 (grub_util_biosdisk_is_present): New function.
24056 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
24059 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24061 Search hints support.
24063 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
24066 2010-09-13 Yves Blusseau <blusseau@zetam.org>
24068 Bash completion script for util commands
24070 * Makefile.am: Add util/bash-completion.d directory
24071 * configure.ac: Likewise.
24072 * util/bash-completion.d/Makefile.am: New file.
24073 * util/bash-completion.d/grub-completion.bash.in: Likewise.
24075 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24077 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
24078 (print_backlog): set backlog_ucs4 and backlog_glyphs.
24079 Reported by: Yves Blusseau.
24081 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24083 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
24084 partition size and offset.
24086 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24088 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
24090 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24092 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
24094 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24096 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
24097 (grub_xvasprintf): Likewise.
24099 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24101 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
24103 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24105 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
24106 args ending with NULL.
24108 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24110 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
24113 2010-09-11 Szymon Janc <szymon@janc.net.pl>
24115 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
24117 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24119 Shutdown using ACPI.
24121 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
24122 * grub-core/commands/acpihalt.c: New file.
24123 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
24124 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
24125 (grub_acpi_halt): New proto.
24126 (GRUB_ACPI_SLP_EN): New const.
24127 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
24128 (GRUB_ACPI_OPCODE_*): New enum.
24129 (GRUB_ACPI_EXTOPCODE_*): Likewise.
24131 2010-09-11 Tristan Gingold <gingold@free.fr>
24132 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
24133 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24135 * commands/lsacpi.c: New file.
24136 * grub-core/Makefile.core.def (lsacpi): New module.
24137 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
24138 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
24139 (grub_acpi_madt_entry_header): New struct.
24140 (grub_acpi_madt): Likewise.
24141 (grub_acpi_madt_entry_interrupt_override): Likewise.
24142 (grub_acpi_madt_entry_sapic): Likewise.
24143 (grub_acpi_madt_entry_lsapic): Likewise.
24144 (grub_acpi_madt_entry_platform_int_source): Likewise.
24145 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
24146 (PRIuGRUB_UINT32_T): Likewise.
24147 (PRIxGRUB_UINT64_T): Likewise.
24149 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24151 Implement loading palette on ieee1275_fb.
24153 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
24154 (have_setcolors): Likewise.
24155 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
24156 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
24157 (grub_video_ieee1275_set_palette): Implement.
24159 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24160 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
24162 * util/grub-install.in (grub_partition): New variable.
24163 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
24164 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
24165 Fixes a bug reported by Yves Blusseau.
24167 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24171 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
24172 =grub_cpu_flush_cache on all mips and not only yeeloong.
24173 * configure.ac (COND_mips): New conditional.
24174 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
24176 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
24177 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
24178 [GRUB_LINKER_HAVE_INIT]: New function.
24179 (grub_emu_post_init): Likewise.
24180 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
24181 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
24182 * include/grub/cache.h (_mips): Include mips/cache.h.
24183 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
24184 LVM and RAID prototypes.
24185 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
24186 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
24189 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24191 * util/grub-install.in: Don't try to verify core.img until after
24192 running grub-mkimage to create it.
24194 2010-09-10 Robert Millan <rmh@gnu.org>
24196 * util/grub.d/10_hurd.in: Add misc readability checks.
24197 * util/grub.d/10_kfreebsd.in: Likewise.
24198 * util/grub.d/10_linux.in: Likewise.
24200 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24202 * util/grub-install.in: ${imgext} won't be defined here until the
24203 install branch is merged. For the meantime, only verify core.img on
24204 i386-pc and sparc64-ieee1275 platforms.
24206 2010-09-10 Robert Millan <rmh@gnu.org>
24208 Solaris support in grub_find_zpool_from_dir(). Thanks
24209 Seth Goldberg for referring to getextmntent() facility.
24211 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
24213 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
24215 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
24216 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
24217 method for finding zpool name.
24219 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24221 grub-fstest needs the host and hostfs modules while other utilities
24222 actively require those modules to be absent, so grub-fstest needs
24223 its own initialisation and finalisation code.
24225 * Makefile.am (grub_fstest.pp): New target.
24226 (grub_fstest_init.lst): Likewise.
24227 (grub_fstest_init.c): Likewise.
24228 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
24230 2010-09-10 Robert Millan <rmh@gnu.org>
24232 * configure.ac: Check for `struct statfs.f_fstypename' and
24233 `struct statfs.f_mntfromname'.
24235 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
24236 kFreeBSD-specific code.
24238 2010-09-10 Robert Millan <rmh@gnu.org>
24240 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
24241 on ZFS. Now non-main filesystems are supported as / too.
24243 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
24245 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
24246 and grub-core/disk/host.c to ...
24247 (grub-fstest): ... here. Having the host disk implementation
24248 present confuses grub-probe and other utility programs.
24250 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
24251 when writing to a file, not when writing to stdout.
24253 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
24255 * tests/partmap_test.in: New test for partitions.
24256 * Makefile.util.def: Rules for new test.
24258 2010-09-09 Robert Millan <rmh@gnu.org>
24260 * util/grub-probe.c (probe): Fix a pair of unhandled error
24263 2010-09-09 Robert Millan <rmh@gnu.org>
24265 Basic Btrfs support (detection and UUID).
24267 * grub-core/fs/btrfs.c: New file.
24268 * Makefile.util.def (library): Register btrfs.c.
24269 * grub-core/Makefile.core.def: Likewise.
24271 2010-09-08 Robert Millan <rmh@gnu.org>
24273 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
24274 with (optional) parameters to specify device and relative path.
24275 * util/grub-install.in: Use is_path_readable_by_grub() to
24276 verify readability of a few critical files.
24277 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
24278 verify readability of grub.cfg.new.
24280 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24282 Split minix.mod into minix.mod and minix2.mod.
24284 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
24285 * grub-core/Makefile.core.def (minix2): New module.
24286 * grub-core/fs/minix.c: Use definitions instead of runtime version
24288 * grub-core/fs/minix2.c: New file.
24290 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24292 Add new --boot-directory option to replace --root-directory
24294 * util/grub-install.in: Add new --boot-directory option
24295 * util/grub-reboot.in: Likewise.
24296 * util/grub-set-default.in: Likewise.
24298 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24300 * util/grub-mkconfig.in: Use new variable.
24302 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24304 * configure.ac: Define some useful variables.
24306 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24308 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24309 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
24310 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
24311 Use terminfo and don't use cursor-on/cursor-off unless it's known
24313 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
24314 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
24316 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
24318 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
24319 starts with "(,", fill the drive containing the loaded image in
24320 between those two characters, but expect that a full partition
24321 specification including partition map names will follow.
24323 2010-09-08 Robert Millan <rmh@gnu.org>
24325 * configure.ac: Remove `--enable-grub-fstest' option.
24326 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
24328 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
24329 `grub-fstest' instead of `grub-probe' for readability verification.
24330 * util/grub-probe.c (probe): Remove readability verification kludge.
24332 2010-09-08 Robert Millan <rmh@gnu.org>
24334 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
24335 initializing `GRUB_FS'.
24337 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
24339 Not command (!) support to GRUB script.
24341 * tests/grub_script_not.in: New test.
24342 * Makefile.util.def: Rules for new test.
24344 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
24345 ! command as a special case.
24346 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
24348 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24350 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
24353 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24355 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
24357 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24359 * docs/grub.texi (Shell-like scripting): Documentation for break,
24360 continue, shift and return commands.
24362 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
24364 Rename CD-ROM to cd on BIOS.
24366 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
24368 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
24370 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24372 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
24373 * util/grub-probe.c (main): Likewise.
24374 * util/i386/pc/grub-setup.c (main): Likewise.
24375 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24376 Reported and debugged by: alexxy
24378 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24380 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
24383 2010-09-05 Jo Shields <directhex@apebox.org>
24385 * util/grub.d/30_os-prober.in: Add missing classes.
24387 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24389 * docs/grub.texi (Theme file format): Document new position format.
24391 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24393 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
24394 a table. Use @code instead of @verbatim.
24396 2010-09-05 Colin D Bennett <colin@gibibit.com>
24398 Gfxmenu documentation.
24400 * docs/grub.texi (Theme file format): New chapter.
24402 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24404 * grub-core/Makefile.core.def (xzio): New module.
24405 * grub-core/io/xzio.c: New file.
24406 * grub-core/lib/xzembed/xz.h: New file (from xembed).
24407 * grub-core/lib/xzembed/xz_config.h: Likewise.
24408 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
24409 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
24410 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
24411 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
24412 * grub-core/lib/xzembed/xz_private.h: Likewise.
24413 * grub-core/lib/xzembed/xz_stream.h: Likewise.
24414 * include/grub/file.h (grub_file_filter_id): New compression filter
24415 GRUB_FILE_FILTER_XZIO.
24417 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24419 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
24420 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
24423 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24425 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
24426 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
24428 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24430 Uncompressed checksum support.
24432 * grub-core/commands/hashsum.c (options): Add option --uncompress.
24433 (check_list): New parameter uncompress.
24434 (grub_cmd_hashsum): Handle --uncompress.
24436 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24438 Reintroduce testload.
24440 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
24442 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
24443 (GRUB_MOD_INIT): New function.
24444 (GRUB_MOD_FINI): Likewise.
24445 * grub-core/Makefile.core.def (testload): New module.
24447 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24449 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
24450 (uint8_t): New type.
24451 (uint16_t): Likewise.
24452 (uint32_t): Likewise.
24453 (uint64_t): Likewise.
24455 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24457 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
24459 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24461 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
24463 (grub_gzfile_open): Removed. All users updated.
24464 (GRUB_MOD_INIT): New function.
24465 (GRUB_MOD_FINI): Likewise.
24466 * grub-core/kern/file.c (grub_file_filters_all): New variable.
24467 (grub_file_filters_enabled): Likewise.
24468 (grub_file_open): Handle filters.
24469 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
24470 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
24471 * include/grub/file.h (grub_file_filter_id_t): New type.
24472 (grub_file_filter_t): Likewise.
24473 (grub_file_filters_all): New extern variable.
24474 (grub_file_filters_enabled): Likewise.
24475 (grub_file_filter_register): New inline function.
24476 (grub_file_filter_unregister): Likewise.
24477 (grub_file_filter_disable): Likewise.
24478 (grub_file_filter_disable_compression): Likewise.
24479 * include/grub/gzio.h: Removed.
24481 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24483 Filename expansion support for wildcards in GRUB script.
24485 * tests/grub_script_expansion.in: New test.
24486 * Makefile.util.def: Rule for new test.
24488 * grub-core/commands/wildcard.c: New file, implements filename
24489 expansion support for GRUB script.
24490 * grub-core/Makefile.core.def: Rule update for regexp.mod.
24491 * grub-core/script/argv.c: Cosmetic changes.
24492 * grub-core/script/execute.c (grub_script_arglist_to_argv):
24493 Refactored to perform wildcard expansion on arguments.
24494 * include/grub/script_sh.h (grub_script_wildcard_translator): New
24497 * tests/util/grub-shell.in: Fix quoting for read input.
24499 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24501 Support for updating environment variables with matched substrings
24504 * tests/grub_cmd_regexp.in: New test.
24505 * Makefile.util.def: Rule for new test.
24507 * grub-core/commands/regexp.c: New option -s to update environment
24508 variables with regexp matches.
24510 2010-09-04 Szymon Janc <szymon@janc.net.pl>
24512 * include/grub/file.h (grub_file): New member not_easly_seekable.
24513 (grub_file_seekable): New inline function.
24514 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
24516 (grub_gzio_open): Set not_easly_seekable.
24517 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
24518 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
24520 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24522 Support for options to appear multiple times on cmdline.
24524 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
24525 * grub-core/commands/extcmd.c: Support for repeatable option.
24526 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
24527 repeatable option support.
24529 Refactor menuentry into a regular command.
24531 * grub-core/commands/menuentry.c: New file, menuentry command
24533 * grub-core/Makefile.core.def: Rule update for normal.mod.
24534 * grub-core/normal/main.c: Moved menuentry creation to
24535 grub-core/commands/menuentry.c.
24536 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
24537 (grub_menu_execute_entry_real): Removed.
24538 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
24540 (grub_script_execute_menuentry): Removed.
24541 * grub-core/script/parser.y (menuentry): Removed.
24542 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
24543 * grub-core/script/yylex.l (menuentry): Removed.
24544 * include/grub/menu.h (grub_menu_init): New prototype.
24545 (grub_menu_fini): New prototype.
24546 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
24547 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
24548 (grub_script_execute_sourcecode): New prototype.
24550 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24552 "return" command for GRUB script functions.
24554 * tests/grub_script_return.in: New test.
24555 * Makefile.util.def: Rules for new test.
24557 * grub-core/script/execute.c (grub_script_return): New function.
24558 * grub-core/script/main.c: Register/unregister return commaond.
24559 * include/grub/script_sh.h (grub_script_return): New prototype.
24561 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24563 "setparams" command to update positional parameters.
24565 * tests/grub_script_setparams.in: New test.
24566 * Makefile.util.def: Rules for new test.
24568 * grub-core/script/argv.c (grub_script_argv_make): New function.
24569 * grub-core/script/execute.c (replace_scope): New function.
24570 (grub_script_setparams): New function.
24571 * grub-core/script/lexer.c: Remove unused variables.
24572 * grub-core/script/main.c: Register/unregister setparams command.
24573 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
24574 (grub_script_setparams): New prototype.
24576 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24578 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
24581 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24583 Support for passing block of commands as an argument to extcmds.
24585 * Makefile.util.def: Rules for new test.
24586 * tests/grub_script_blockarg.in: New test.
24587 * grub-core/tests/test_blockarg.c: New file, block argument
24588 command used in the test.
24590 * include/grub/extcmd.h (grub_extcmd_context): New struct.
24591 (grub_register_extcmd_prio): New function prototype.
24592 (grub_extcmd_dispatcher): New function prototype.
24593 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
24595 * include/grub/script_sh.h (struct grub_script): New members
24596 `children', `next_siblings' and `refcnt' for block arguments and
24597 reference counting.
24598 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
24599 (grub_script_arg): New member `script' for block argument.
24600 (grub_script_argv): New member `script' for block argument.
24601 (grub_parser_param): New member `scripts' for block argument.
24602 (grub_script_mem_free): New extern function prototype.
24603 (grub_script_ref): New function prototype.
24604 (grub_script_unref): New function prototype.
24606 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
24607 extcmd form to support block arguments.
24608 * grub-core/script/argv.c: Block arguments support.
24609 * grub-core/script/execute.c: Likewise.
24610 * grub-core/script/lexer.c: Likewise.
24611 * grub-core/script/main.c: Likewise.
24612 * grub-core/script/script.c: Likewise.
24613 * grub-core/script/parser.y: Likewise. New `block' and `block0'
24616 * grub-core/commands/acpi.c: Update extcmd implementations with
24617 grub_extcmd_context_t.
24618 * grub-core/commands/cat.c: Likewise.
24619 * grub-core/commands/echo.c: Likewise.
24620 * grub-core/commands/extcmd.c: Likewise.
24621 * grub-core/commands/hashsum.c: Likewise.
24622 * grub-core/commands/hdparm.c: Likewise.
24623 * grub-core/commands/help.c: Likewise.
24624 * grub-core/commands/hexdump.c: Likewise.
24625 * grub-core/commands/i386/cpuid.c: Likewise.
24626 * grub-core/commands/i386/pc/drivemap.c: Likewise.
24627 * grub-core/commands/i386/pc/halt.c: Likewise.
24628 * grub-core/commands/i386/pc/sendkey.c: Likewise.
24629 * grub-core/commands/iorw.c: Likewise.
24630 * grub-core/commands/keystatus.c: Likewise.
24631 * grub-core/commands/loadenv.c: Likewise.
24632 * grub-core/commands/ls.c: Likewise.
24633 * grub-core/commands/lspci.c: Likewise.
24634 * grub-core/commands/memrw.c: Likewise.
24635 * grub-core/commands/probe.c: Likewise.
24636 * grub-core/commands/search_wrap.c: Likewise.
24637 * grub-core/commands/setpci.c: Likewise.
24638 * grub-core/commands/sleep.c: Likewise.
24639 * grub-core/disk/loopback.c: Likewise.
24640 * grub-core/hello/hello.c: Likewise.
24641 * grub-core/loader/i386/bsd.c: Likewise.
24642 * grub-core/loader/xnu.c: Likewise.
24643 * grub-core/term/gfxterm.c: Likewise.
24644 * grub-core/term/serial.c: Likewise.
24645 * grub-core/tests/lib/functional_test.c: Likewise.
24647 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24649 Multi-line quoted strings support.
24651 * grub-core/script/lexer.c (append_newline): Removed.
24652 (grub_script_lexer_yywrap): Refactored.
24653 (grub_script_lexer_init): Refactored.
24654 * grub-core/script/yylex.l (yywrap): New function.
24655 (grub_lexer_resplit): New function.
24656 (grub_lexer_unput): New function.
24657 * include/grub/script_sh.h (grub_lexer_param): New members, unput
24659 * tests/grub_script_echo1.in: Added few more testcases.
24661 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
24663 * grub-core/kern/misc.c: Don't add abort alias in utils.
24664 Reported by: echoline.
24666 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
24668 Add missing files into "make dist" tarball for other platforms.
24670 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
24671 * conf/Makefile.common (dist_noinst_DATA): New variable.
24672 * conf/Makefile.extra-dist: Added missing make dist files.
24673 * grub-core/Makefile.core.def: Likewise.
24675 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24677 Compress grub_prefix.
24679 * grub-core/boot/i386/pc/lnxboot.S: Use
24680 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
24681 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
24682 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
24683 GRUB_MACHINE_PREFIX_END. All users updated.
24684 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
24685 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
24687 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
24688 * util/grub-mkimage.c (image_target_desc): Change data_end to
24689 prefix_end. All users updated.
24691 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24693 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
24695 (grub_openbsd_boot): Likewise.
24696 (grub_netbsd_boot): Likewise.
24697 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
24698 (grub_xnu_boot): Likewise.
24700 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24702 * configure.ac: Clean LIBS variable after tests.
24704 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24706 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
24708 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24710 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
24711 echo if libdevmapper will be used.
24713 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
24715 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
24716 constant for the same file.
24718 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24720 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
24722 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24724 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
24727 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24729 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
24730 required by the boot protocol.
24732 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
24733 ebp and edi members.
24734 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
24735 state.ebp and state.edi.
24736 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
24737 %ebp and %edi according to grub_relocator32_ebp and
24738 grub_relocator32_edi respectively.
24739 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
24742 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24744 Add i386-pc-pxe image target.
24746 * util/grub-mkimage.c (image_target_desc): New enum value
24748 (image_targets): New target i386-pc-pxe.
24749 (generate_image): Handle i386-pc-pxe image.
24751 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24755 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
24756 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
24758 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
24759 (grub_pxe_pxenv): Correct type.
24761 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24763 * NEWS: Document most of the important changes since 1.98.
24765 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24767 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
24768 generated manual page) a little.
24770 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24772 * docs/grub.texi: Add myself as an author.
24774 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24776 * Makefile.util.def (libgrub.a): Add missing sunpc.
24777 Reported by: Seth Goldberg.
24779 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24781 Interrupt wrapping and code simplifications.
24783 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
24784 x86_noieee1275 which are functionaly equivalent in this case.
24785 (grub-install): Make source on each platform explicit. Enable on
24787 * gentpl.py (x86_efi_pc): Removed group.
24788 (x86_noefi): Likewise.
24789 (i386_noefi): Likewise.
24790 (x86_noieee1275): Likewise.
24791 (i386_noieee1275): Likewise.
24792 (i386_noefi_noieee1275): Likewise.
24793 (i386_pc_qemu_coreboot): Likewise.
24794 (i386_coreboot_multiboot): Likewise.
24795 (i386_pc_coreboot_multiboot_qemu): Likewise.
24796 (x86_noefi_mips): Likewise.
24797 (noieee1275): Likewise.
24798 (ieee1275_mips): Likewise.
24799 (noemu_noieee1275): Likewise.
24802 (videoinkernel): Likewise.
24803 (videomodules): Likewise.
24804 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
24805 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24806 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24807 include/grub/loader.h, include/grub/msdos_partition.h,
24808 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24809 include/grub/machine/console.h, include/grub/machine/vga.h,
24810 include/grub/machine/vbe.h, include/grub/machine/init.h,
24811 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24812 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
24813 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
24814 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24815 * grub-core/Makefile.core.def (kernel): Explicit the source for
24816 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24817 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24818 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24819 Use videoinkernel tag.
24820 (usb): Enable on all usb.
24821 (usbserial_common): Likewise.
24822 (usbserial_pl2303): Likewise.
24823 (usbserial_ftdi): Likewise.
24824 (uhci): Enable on all x86.
24825 (ohci): Enable on all pci.
24826 (cmostest): Enable on all CMOS.
24827 (acpi): Include commands/acpi.c on all platforms.
24828 (halt): Add relevant lib/*/halt.c.
24829 (hdparm): Enable on all pci.
24831 (usbtest): Enable on all usb.
24832 (ata): Enable on all pci.
24833 (ata_pthru): Likewise.
24834 (usbms): Enable on all usb.
24835 (usb_keyboard): Likewise.
24836 (font): Use tag videomodules.
24838 (datetime): Use tag cmos. Enable on all noemu.
24839 (mmap): Use tags common and x86.
24840 (gfxterm): Use tag videomodules.
24841 (bitmap): Likewise.
24842 (bitmap_scale): Likewise.
24843 (video_fb): Likewise.
24845 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24846 adjust padding accordingly. All users updated.
24847 (grub_ohci_transaction): Fix bad format specification.
24848 (GRUB_MOD_INIT): Add asserts for struct size.
24849 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24850 (grub_alloc_td): Likewise.
24851 (grub_free_queue): Likewise.
24852 (grub_uhci_transfer): Likewise.
24853 (grub_uhci_transaction): Fix bad format specification.
24854 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24855 (grub_usb_bulk_readwrite): Likewise.
24856 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24857 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24859 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24861 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24862 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24863 Transformed into C.
24864 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24865 Moved from here ...
24866 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24867 ... here. Transformed into C. Made static.
24868 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24869 Moved from here ...
24870 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
24871 ... here. Transformed into C. Made static.
24872 * grub-core/kern/i386/pc/startup.S
24873 (grub_biosdisk_check_int13_extensions): Moved from here ...
24874 * grub-core/disk/i386/pc/biosdisk.c
24875 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
24877 * grub-core/kern/i386/pc/startup.S
24878 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
24879 * grub-core/disk/i386/pc/biosdisk.c
24880 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
24881 Transformed into C. Made static.
24882 * grub-core/kern/i386/pc/startup.S
24883 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
24884 * grub-core/disk/i386/pc/biosdisk.c
24885 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
24886 Transformed into C. Made static.
24887 * grub-core/kern/i386/pc/startup.S
24888 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
24889 * grub-core/disk/i386/pc/biosdisk.c
24890 (grub_biosdisk_get_diskinfo_standard): ... here.
24891 Transformed into C. Made static.
24892 * grub-core/kern/i386/pc/startup.S
24893 (grub_biosdisk_get_num_floppies): Moved from here ...
24894 * grub-core/disk/i386/pc/biosdisk.c
24895 (grub_biosdisk_get_num_floppies): ... here.
24896 Transformed into C. Made static.
24897 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
24899 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
24900 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
24901 Transformed into C. Made static.
24902 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
24903 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
24904 Transformed into C. Made static.
24905 * grub-core/kern/i386/ieee1275/init.c: Removed.
24906 * grub-core/kern/i386/misc.S: Likewise.
24907 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
24908 Splitted from here ...
24909 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
24910 Transformed into C. Made static. All users updated.
24911 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
24912 Transformed into C. Made static. All users updated.
24913 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
24915 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
24916 Transformed into C. Made static. All users updated.
24917 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
24919 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
24920 Transformed into C. Made static. All users updated.
24921 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
24922 Removed (replaced by C version).
24923 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
24925 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
24926 Transformed into C. Made static.
24927 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
24929 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
24930 ... here. Transformed into C.
24931 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
24933 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
24934 ... here. Transformed into C.
24935 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
24937 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
24938 ... here. Transformed into C. Made static.
24939 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
24941 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
24942 ... here. Transformed into C.
24943 * grub-core/kern/i386/pc/startup.S
24944 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
24945 * grub-core/video/i386/pc/vbe.c
24946 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
24947 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
24949 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
24950 ... here. Transformed into C.
24951 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
24953 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
24954 ... here. Transformed into C.
24955 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
24957 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
24958 ... here. Transformed into C.
24959 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
24961 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
24962 ... here. Transformed into C.
24963 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
24965 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
24966 ... here. Transformed into C. Made static.
24967 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
24969 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
24970 ... here. Transformed into C. Made static.
24971 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
24973 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
24974 ... here. Transformed into C. Made static.
24975 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
24976 pxe_rm_entry as third argument.
24977 (grub_bios_interrupt): New function.
24978 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
24979 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
24980 of calling grub_stop.
24981 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
24982 * grub-core/lib/efi/halt.c (grub_halt): ...here.
24983 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
24984 * grub-core/lib/emu/halt.c (grub_halt): ... here.
24985 * grub-core/lib/i386/halt.c: Moved from here ...
24986 * grub-core/lib/i386/halt.c: ... here.
24987 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
24988 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
24989 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
24991 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
24992 * include/grub/i386/coreboot/init.h: Removed.
24993 * include/grub/i386/multiboot/init.h: Likewise.
24994 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
24995 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
24996 * include/grub/i386/pc/int.h: New file.
24997 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
24998 (grub_pxe_scan): Removed.
24999 (grub_pxe_call): Update prototype.
25000 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
25002 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
25003 * include/grub/i386/qemu/init.h: Removed.
25004 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
25006 (grub_halt): Likewise.
25007 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
25008 (grub_reboot): Likewise.
25009 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
25010 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
25011 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
25013 2010-08-30 Robert Millan <rmh@gnu.org>
25015 * NEWS: Document addition of ZFS support in `grub-install' and
25018 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
25020 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
25023 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25025 Remove leftover embedding of font objects.
25027 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
25028 * util/grub-install.in (font): Removed.
25029 * util/grub-mkimage.c (generate_image): Remove font support. All users
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 * docs/grub.texi (Network): Fix reference to pxe_blksize.
25044 Reported by: Ian Turner
25046 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25048 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
25049 timeout to avoid indefinite boot stalling.
25051 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25053 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
25054 (grub_env_write_color_highlight): Likewise.
25056 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25058 * grub-core/normal/term.c (print_more): Return to normal and not
25059 to standard state after printing "---MORE---".
25061 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25063 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
25064 Mask out the bit 0x80 since it has other meaning that specifiing color.
25066 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25068 New relocator. Allows for more kernel support and more straightforward
25071 * Makefile.am (BOOTTARGET): New variable.
25072 (QEMU32): Likewise.
25073 (linux.init.x86_64): New target.
25074 (linux.init.i386): Likewise.
25075 (multiboot.elf): Likewise.
25076 (kfreebsd.elf): Likewise.
25077 (kfreebsd.aout): Likewise.
25078 (pc-chainloader.elf): Likewise.
25079 (pc-chainloader.bin): Likewise.
25080 (ntldr.elf): Likewise.
25081 (ntldr.bin): Likewise.
25082 (multiboot2.elf): Likewise.
25083 (kfreebsd.init.x86_64): Likewise.
25084 (kfreebsd.init.i386): Likewise.
25085 (knetbsd.init.i386): Likewise.
25086 (kopenbsd.init.i386): Likewise.
25087 (knetbsd.init.x86_64): Likewise.
25088 (kopenbsd.init.x86_64): Likewise.
25089 (linux-initramfs.i386): Likewise.
25090 (linux-initramfs.x86_64): Likewise.
25091 (kfreebsd-mfsroot.i386.img): Likewise.
25092 (knetbsd.image.i386): Likewise.
25093 (kopenbsd.image.i386): Likewise.
25094 (kopenbsd.image.x86_64): Likewise.
25095 (knetbsd.miniroot-image.i386.img): Likewise.
25096 (kfreebsd-mfsroot.x86_64.img): Likewise.
25097 (knetbsd.image.x86_64): Likewise.
25098 (knetbsd.miniroot-image.x86_64.img): Likewise.
25099 (kfreebsd-mfsroot.i386.gz): Likewise.
25100 (bootcheck-kfreebsd-i386): Likewise.
25101 (kfreebsd-mfsroot.x86_64.gz): Likewise.
25102 (bootcheck-kfreebsd-x86_64): Likewise.
25103 (knetbsd.miniroot-image.i386.gz): Likewise.
25104 (bootcheck-knetbsd-i386): Likewise.
25105 (bootcheck-kopenbsd-i386): Likewise.
25106 (bootcheck-kopenbsd-x86_64): Likewise.
25107 (knetbsd.miniroot-image.x86_64.gz): Likewise.
25108 (bootcheck-knetbsd-x86_64): Likewise.
25109 (bootcheck-linux-i386): Likewise.
25110 (bootcheck-linux-x86_64): Likewise.
25111 (bootcheck-linux16-i386): Likewise.
25112 (bootcheck-linux16-x86_64): Likewise.
25113 (bootcheck-multiboot): Likewise.
25114 (bootcheck-multiboot2): Likewise.
25115 (bootcheck-kfreebsd-aout): Likewise.
25116 (bootcheck-pc-chainloader): Likewise.
25117 (bootcheck-ntldr): Likewise.
25118 (CLEANFILES): Add new targets.
25119 (BOOTCHECKS): New variable.
25120 (.PHONY): Add bootchecks.
25121 (SUCCESSFUL_BOOT_STRING): New variable.
25122 (BOOTCHECK_TIMEOUT): Likewise.
25123 (bootcheck): New target
25124 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
25125 * configure.ac: Correct efiemu excuse.
25126 * docs/grub.texi (Supported kernels): New chapter.
25127 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
25128 include/grub/mm_private.h. Simplify inclusion of
25129 include/grub/boot.h, include/grub/loader.h
25130 and include/grub/msdos_partition.h
25131 (KERNEL_HEADER_FILES) [i386_coreboot]:
25132 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
25133 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
25134 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
25135 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
25136 include/grub/machine/loader.h.
25137 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
25138 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
25140 (pci.mod): Enable on i386-multiboot.
25141 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
25142 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
25144 (relocator.mod): Rewritten.
25145 (aout.mod): Enable on all x86.
25146 (bsd.mod): Likewise.
25147 (ntldr.mod): New module.
25148 (linux.mod): Use loader/i386/linux.c on all x86.
25149 (xnu.mod): Enable on all x86.
25150 (vga_text.mod): disable on EFI and QEMU.
25151 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
25152 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
25153 * grub-core/efiemu/loadcore.c: Likewise.
25154 * grub-core/efiemu/main.c: Likewise.
25155 (grub_efiemu_exit_boot_services): Removed.
25156 (grub_efiemu_finish_boot_services): Likewise.
25157 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
25159 * grub-core/efiemu/i386/nocfgtables.c: New file.
25160 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
25161 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
25162 (grub_efi_finish_boot_services): Moved from here ...
25163 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
25164 Fille finish memory map and related data.
25165 (finish_mmap_buf): New variable.
25166 (grub_efi_uintn_t finish_mmap_size): Likewise.
25167 (grub_efi_uintn_t finish_key): Likewise.
25168 (grub_efi_uintn_t finish_desc_size): Likewise.
25169 (grub_efi_uint32_t finish_desc_version): Likewise.
25170 (grub_efi_is_finished): Likewise.
25171 (grub_efi_get_memory_map): Use saved memory map if EFI is already
25173 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
25174 (grub_elf64_phdr_iterate): Likewise.
25175 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
25176 (grub_os_area_size): Likewise.
25177 (grub_machine_init): Don't reserve os area.
25178 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
25179 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
25180 * grub-core/kern/i386/loader.S: Removed.
25181 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
25182 (grub_os_area_size): Likewise.
25183 (grub_machine_init): Don't reserve os area.
25184 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
25185 Don't call grub_dl_unload_all.
25186 Don't include loader.S.
25187 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
25188 Declare the memory after _end as available.
25189 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
25190 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
25191 (GRUB_MM_ALLOC_MAGIC): Moved from here...
25192 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
25193 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
25194 * include/grub/mm_private.h (grub_mm_header): ... here.
25195 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
25196 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
25197 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
25198 (grub_mm_region): ..here. Removed addr. Added pre_size.
25200 * grub-core/kern/mm.c (base): Renamed to ...
25201 (grub_mm_base): ... this. Made global.
25202 (grub_real_malloc): Alloc from end of region.
25203 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
25204 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
25205 * grub-core/kern/powerpc/cache_flush.S: ... here.
25206 * grub-core/lib/efi/relocator.c: New file.
25207 * grub-core/lib/i386/relocator.c: Rewritten.
25208 * grub-core/lib/i386/relocator16.S: New file.
25209 * grub-core/lib/i386/relocator32.S: Likewise.
25210 * grub-core/lib/i386/relocator64.S: Likewise.
25211 * grub-core/lib/i386/relocator_asm.S: Rewritten.
25212 * grub-core/lib/i386/relocator_common.S: New file.
25213 * grub-core/lib/ieee1275/relocator.c: Likewise.
25214 * grub-core/lib/mips/relocator.c: Rewritten.
25215 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
25216 stylistic adjustments.
25217 * grub-core/lib/powerpc/relocator.c: New file.
25218 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
25219 * grub-core/lib/relocator.c: Rewritten.
25220 * grub-core/lib/x86_64/relocator_asm.S: New file.
25221 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
25222 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
25223 (bsd_tag): New struct.
25224 (tags): New variable.
25225 (tags_last): Likewise.
25226 (netbsd_module): New struct.
25227 (netbsd_mods): New variable.
25228 (netbsd_mods_last): Likewise.
25229 (openbsd_opts): New parameter "serial".
25230 (OPENBSD_SERIAL_ARG): New definition.
25231 (netbsd_opts): New parameter "serial".
25232 (NETBSD_SERIAL_ARG): New definition.
25233 (grub_freebsd_add_meta): Reorganised into ...
25234 (grub_bsd_add_meta): ...this. All users updated.
25235 (grub_freebsd_add_mmap): Reorganised into ...
25236 (generate_e820_mmap): ...this...
25237 (grub_bsd_add_mmap): ...and this. All users updated.
25238 (grub_freebsd_list_modules): Use tags.
25239 (grub_netbsd_add_meta_module): New function.
25240 (grub_netbsd_list_modules): Likewise.
25241 (grub_freebsd_boot): Use relocator and finish EFI.
25242 (grub_openbsd_boot): Likewise.
25243 (grub_netbsd_setup_video): New function.
25244 (grub_netbsd_add_modules): Likewise.
25245 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
25247 (grub_bsd_unload): Unload tags.
25248 (grub_bsd_load_aout): Use relocator.
25249 (grub_bsd_elf32_size_hook): New function.
25250 (grub_bsd_elf32_hook): Use relocator.
25251 (grub_bsd_elf64_size_hook): New function.
25252 (grub_bsd_elf64_hook): Use relocator.
25253 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
25254 (grub_bsd_load): Zero-out openbsd_ramdisk.
25255 (grub_bsd_load): Use relocator.
25256 (grub_cmd_openbsd): Support serial.
25257 (grub_cmd_netbsd): Support modules.
25258 (grub_cmd_freebsd_module): Use relocator.
25259 (grub_netbsd_module_load): New function.
25260 (grub_cmd_netbsd_module): Likewise.
25261 (grub_cmd_openbsd_ramdisk): Likewise.
25262 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
25264 (GRUB_MOD_FINI): Unregister new commands.
25265 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
25266 (grub_freebsd_load_elfmodule_obj): Use relocator.
25267 (grub_freebsd_load_elfmodule): Likewise.
25268 (grub_freebsd_load_elf_meta): Likewise.
25269 (grub_netbsd_load_elf_meta): New function.
25270 (grub_openbsd_find_ramdisk): Likewise.
25271 * grub-core/loader/i386/bsd_helper.S: Removed.
25272 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
25273 * grub-core/loader/i386/bsd_trampoline.S: Removed.
25274 * grub-core/loader/i386/efi/linux.c: Likewise.
25275 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
25276 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
25277 (DEFAULT_VIDEO_MODE): Likewise.
25278 (real_mode_target): New variable.
25279 (prot_mode_target): Likewise.
25280 (initrd_mem_target): Likewise.
25281 (relocator): Likewise.
25282 (efi_mmap_buf): Likewise.
25283 (efi_mmap_size): Likewise.
25284 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
25285 (free_pages): Use relocator.
25286 (allocate_pages): Account for efi_mmap and use relocator. Return error.
25287 (grub_linux_setup_video): Return error.
25288 (grub_linux_trampoline_start): Removed.
25289 (grub_linux_trampoline_end): Likewise.
25290 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
25291 andd video parameters depending on firmware.
25292 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
25293 [GRUB_MACHINE_EFI]: Pass EFI parameters.
25294 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
25295 (grub_cmd_initrd): Use relocator.
25296 * grub-core/loader/i386/linux_trampoline.S: Removed.
25297 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
25298 (elf_sec_entsize): Likewise.
25299 (elf_sec_shstrndx): Likewise.
25300 (elf_sections): Likewise.
25301 (grub_multiboot_load): Use relocator.
25302 (grub_multiboot_get_mbi_size): Account for sections.
25303 (grub_multiboot_make_mbi): Use relocator and support sections.
25304 (grub_multiboot_add_elfsyms): New function.
25305 (grub_multiboot_free_mbi): Free sections.
25306 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
25307 (grub_linux_real_target): Likewise.
25308 (grub_linux_real_chunk): Likewise.
25309 (grub_linux16_prot_size): Likewise.
25310 (grub_linux16_boot): Use relocator.
25311 (grub_linux_unload): Unload relocator.
25312 (grub_cmd_linux): Use relocator.
25313 (grub_cmd_initrd): Likewise.
25314 * grub-core/loader/i386/pc/ntldr.c: New file.
25315 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
25316 Don't try to guess CPU frequency.
25317 (grub_xnu_set_video): Stretch bitmap.
25318 (grub_xnu_boot): Use relocator.
25319 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
25320 (grub_linux_unload): Free relocator.
25321 (grub_linux_load32): Use relocator.
25322 (grub_linux_load64): Likewise.
25323 (grub_cmd_initrd): Likewise.
25324 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
25325 (grub_multiboot_unload): Unload relocator.
25326 (grub_cmd_multiboot): Use relocator.
25327 (grub_cmd_module): Likewise.
25328 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
25329 Use relocator and support sections.
25330 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
25331 (elf_sec_entsize): Likewise.
25332 (elf_sec_shstrndx): Likewise.
25333 (elf_sections): Likewise.
25334 (grub_multiboot_load): Use relocator.
25335 (grub_multiboot_get_mbi_size): Account for sections.
25336 (grub_multiboot_make_mbi): Use relocator and support sections.
25337 (grub_multiboot_add_elfsyms): New function.
25338 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
25339 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
25340 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
25341 Prototype changed. All users updated.
25342 (grub_xnu_align_heap): Simplified.
25343 (grub_xnu_writetree_toheap): Likewise.
25344 (grub_xnu_unload): Unload relocator.
25345 (grub_cmd_xnu_kernel): Use relocator.
25346 (grub_cmd_xnu_kernel64): Likewise.
25347 (grub_xnu_register_memory): Simplified.
25348 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
25349 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
25351 (grub_console_checkkey): Likewise.
25352 (grub_console_getkey): Likewise.
25353 (grub_console_getwh): Likewise.
25354 (grub_console_getxy): Likewise.
25355 (grub_console_gotoxy): Likewise.
25356 (grub_console_cls): Likewise.
25357 (grub_console_setcolorstate): Likewise.
25358 (grub_console_setcursor): Likewise.
25359 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
25360 * grub-core/tests/boot/kbsd.init-i386.S: New file.
25361 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
25362 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
25363 * grub-core/tests/boot/kernel-8086.S: Likewise.
25364 * grub-core/tests/boot/kernel-i386.S: Likewise.
25365 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
25366 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
25367 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
25368 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
25369 * grub-core/tests/boot/knetbsd.cfg: Likewise.
25370 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
25371 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
25372 * grub-core/tests/boot/linux.cfg: Likewise.
25373 * grub-core/tests/boot/linux.init-i386.S: Likewise.
25374 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
25375 * grub-core/tests/boot/linux16.cfg: Likewise.
25376 * grub-core/tests/boot/multiboot.cfg: Likewise.
25377 * grub-core/tests/boot/multiboot2.cfg: Likewise.
25378 * grub-core/tests/boot/ntldr.cfg: Likewise.
25379 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
25380 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
25381 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
25383 * include/grub/dl.h (grub_dl_unload_all): Removed.
25384 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
25385 (grub_efi_finish_boot_services): Change prototype.
25386 (grub_efi_is_finished): New variable.
25387 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
25389 (grub_efiemu_finish_boot_services): Removed.
25390 (grub_machine_efiemu_init_tables): New prototype.
25391 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
25392 (grub_elf64_phdr_iterate): Likewise.
25393 * include/grub/i386/bsd.h: Include relocator.h.
25394 (freebsd_tag_header): New struct.
25395 (grub_openbsd_bios_mmap): Removed.
25396 (grub_unix_real_boot): Removed.
25397 (grub_freebsd_load_elfmodule32): Changed prototype.
25398 (grub_freebsd_load_elfmodule_obj64): Likewise.
25399 (grub_freebsd_load_elf_meta32): Likewise.
25400 (grub_freebsd_load_elf_meta64): Likewise.
25401 (grub_freebsd_add_meta): Removed.
25402 (grub_netbsd_load_elf_meta32): New prototype.
25403 (grub_netbsd_load_elf_meta64): Likewise.
25404 (grub_bsd_add_meta): Likewise.
25405 (grub_openbsd_ramdisk_descriptor): New struct.
25406 (grub_openbsd_find_ramdisk32): New prototype.
25407 (grub_openbsd_find_ramdisk64): Likewise.
25408 * include/grub/i386/coreboot/loader.h: Removed.
25409 * include/grub/i386/efi/loader.h: Likewise.
25410 * include/grub/i386/ieee1275/loader.h: Likewise.
25411 * include/grub/i386/linux.h (linux_kernel_header): Change void *
25413 * include/grub/i386/loader.h: Removed.
25414 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
25416 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
25417 (grub_phys_addr_t): New type.
25418 (grub_vtop): New inline function.
25419 (grub_map_memory): Likewise.
25420 (grub_unmap_memory): Likewise.
25421 * include/grub/i386/multiboot/loader.h: Removed.
25422 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
25423 (NETBSD_BTINFO_CONSOLE): New definition.
25424 (NETBSD_BTINFO_SYMTAB): Likewise.
25425 (NETBSD_BTINFO_MODULES): Likewise.
25426 (NETBSD_BTINFO_FRAMEBUF): Likewise.
25427 (grub_netbsd_bootinfo): New struct.
25428 (grub_netbsd_btinfo_common): Use explicit bitsize.
25429 (grub_netbsd_btinfo_mmap_entry): Removed.
25430 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
25431 (grub_netbsd_btinfo_bootdisk): New struct.
25432 (grub_netbsd_btinfo_symtab): Likewise.
25433 (grub_netbsd_btinfo_serial): Likewise.
25434 (grub_netbsd_btinfo_modules): Likewise.
25435 (grub_netbsd_btinfo_framebuf): Likewise.
25436 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
25437 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
25439 (grub_openbsd_bootargs): Use explicit bitsize.
25440 (grub_openbsd_bootarg_console): New struct.
25441 (GRUB_OPENBSD_COM_MAJOR): New definition.
25442 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
25443 * include/grub/i386/pc/efiemu.h: Removed.
25444 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
25445 * include/grub/i386/qemu/loader.h: Removed.
25446 * include/grub/i386/relocator.h: Rewritten.
25447 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
25448 * include/grub/mips/memory.h: New file.
25449 * include/grub/mips/multiboot.h: Rewritten.
25450 * include/grub/mips/relocator.h: Rewritten.
25451 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
25452 (grub_vtop): New function.
25453 (grub_map_memory): Likewise.
25454 (grub_unmap_memory): Likewise.
25455 * include/grub/misc.h (ALIGN_DOWN): New definition.
25456 * include/grub/mm.h (grub_mm_check_real): New proto.
25457 (GRUB_MM_CHECK): New definition.
25458 * include/grub/mm_private.h: New file.
25459 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
25460 (grub_multiboot_get_mbi_size): Removed.
25461 (grub_multiboot_make_mbi): Change prottype.
25462 (grub_multiboot_set_accepts_video): New proto.
25463 (grub_multiboot_add_elfsyms): Likewise.
25464 (grub_multiboot_payload_eip): New variable.
25465 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
25467 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
25469 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
25470 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
25471 * include/grub/powerpc/ieee1275/loader.h: Removed.
25472 * include/grub/powerpc/memory.h: New file.
25473 * include/grub/powerpc/relocator.h: Likewise.
25474 * include/grub/relocator.h: Likewise.
25475 * include/grub/relocator_private.h: Likewise.
25476 * include/grub/sparc64/ieee1275/loader.h: Removed.
25477 * include/grub/x86_64/memory.h: New file.
25478 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
25479 (grub_xnu_heap_malloc): Likewise.
25480 (grub_xnu_heap_real_start): Removed.
25481 (grub_xnu_heap_start): Likewise.
25482 (grub_xnu_relocator): New variable.
25483 (grub_xnu_heap_target_start): Likewise.
25484 * tests/util/grub-shell.in: Support non-pc.
25485 * util/grub-mkimage.c (image_targets): Fix multiboot target.
25487 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25489 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
25491 (grub_bidi_logical_to_visual): Check that malloc succeded.
25492 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
25494 (grub_xputs_normal): Likewise.
25496 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25498 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
25501 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25503 * grub-core/efiemu/runtime/efiemu.sh: Removed.
25505 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25507 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
25509 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25511 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
25514 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
25516 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
25518 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25520 * grub-core/normal/term.c (print_more): Fix a memory leak.
25521 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
25522 (grub_xputs_normal): Likewise.
25524 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25526 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
25527 the begining of the string
25529 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25531 * grub-core/script/script.c (grub_script_parse): Free parsed on
25534 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25536 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
25539 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25541 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
25544 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25546 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
25547 (scroll_up): Fix a memory leak.
25549 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25551 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
25554 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
25556 Handle USB pendrives exposed as floppies.
25558 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
25560 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25561 Check for partitions on all devices.
25563 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
25565 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
25566 (readkey): Likewise.
25568 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
25570 Multiple variable names support to "export" command.
25572 * normal/context.c (grub_cmd_export): "export" command supports
25573 multiple variable names.
25575 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
25577 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
25578 --target=drive output to Mach device name.
25580 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25582 New Automake based build system for GRUB.
25584 * ABOUT-NLS: New file.
25585 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
25586 in Makefile.util.def file.
25587 * Makefile.util.def: New file. Autogen build definitions file for
25589 * conf/Makefile.common: New file. Common variables for GRUB host
25590 utils and target modules.
25591 * conf/Makefile.extra-dist: New file. Extra files for make dist.
25592 * docs/Makefile.am: New file. Automake file for docs.
25593 * gentpl.py: New file. Python script to generate Autogen
25595 * grub-core/Makefile.am: New file. GRUB target modules' rules
25596 that doesn't fit in Makefile.core.def file.
25597 * grub-core/Makefile.core.def: New file. Autogen build
25598 definitions file for GRUB target modules.
25599 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
25600 specific setjmp.S file.
25601 * po/Makefile.am: New file.
25603 * .bzrignore: New ignores.
25604 * INSTALL: New requirements, without Ruby.
25605 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
25606 * autogen.sh: Updated to invoke autogen as necessary.
25607 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
25608 and defines for Automake conditionals.
25609 * geninit.sh: Refactoring.
25611 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
25613 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
25616 * include/grub/test.h: Fix functional test modules' naming.
25617 * grub-core/tests/example_functional_test.c: Fix test module name.
25619 * util/misc.c: Hosted versions' of grub functions for libgrub.a
25620 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
25621 * util/grub-editenv.c: Likewise.
25622 * util/grub-fstest.c: Likewise.
25623 * util/grub-mkdevicemap.c: Likewise.
25624 * util/grub-mkfont.c: Likewise.
25625 * util/grub-mkimage.c: Likewise.
25626 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25627 * util/grub-probe.c: Likewise.
25628 * util/grub-script-check.c: Likewise.
25629 * util/i386/pc/grub-setup.c: Likewise.
25630 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25632 * tests/util/grub-shell.in: Fix override directory path.
25633 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
25634 * util/import_gcry.py: Create Makefile.gcry.def file instead.
25636 * util/lvm.c: Update #includes.
25637 * util/raid.c: Likewise.
25638 * util/resolve.c: Likewise.
25639 * grub-core/bus/emu/pci.c: Likewise.
25640 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
25641 * grub-core/lib/posix_wrap/string.h: Likewise.
25642 * grub-core/kern/emu/main.c: Likewise.
25644 * grub-core/gensymlist.sh: New file. Script for generating kernel
25646 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
25648 * grub-core/gentrigtables.c: Fix unused variable warnings.
25650 * Makefile.in: Removed.
25651 * conf/any-emu.rmk: Removed.
25652 * conf/common.rmk: Removed.
25653 * conf/i386-coreboot.rmk: Removed.
25654 * conf/i386-efi.rmk: Removed.
25655 * conf/i386-ieee1275.rmk: Removed.
25656 * conf/i386-multiboot.rmk: Removed.
25657 * conf/i386-pc.rmk: Removed.
25658 * conf/i386-qemu.rmk: Removed.
25659 * conf/i386.rmk: Removed.
25660 * conf/mips-yeeloong.rmk: Removed.
25661 * conf/mips.rmk: Removed.
25662 * conf/powerpc-ieee1275.rmk: Removed.
25663 * conf/sparc64-ieee1275.rmk: Removed.
25664 * conf/tests.rmk: Removed.
25665 * conf/x86-efi.rmk: Removed.
25666 * conf/x86_64-efi.rmk: Removed.
25667 * gendistlist.sh: Removed.
25668 * geninitheader.sh: Removed.
25669 * genkernsyms.sh.in: Removed.
25670 * genmk.rb: Removed.
25671 * gensymlist.sh.in: Removed.
25672 * mkinstalldirs: Removed.
25674 * grub-core/boot: ... to here.
25676 * grub-core/bus: ... to here.
25677 * commands: Moved ...
25678 * grub-core/commands: ... to here.
25680 * grub-core/disk: ... to here.
25681 * efiemu: Moved ...
25682 * grub-core/efiemu: ... to here.
25684 * grub-core/font: ... to here.
25686 * grub-core/fs: ... to here.
25687 * gencmdlist.sh: Moved ...
25688 * grub-core/gencmdlist.sh: ... to here.
25689 * genemuinit.sh: Moved ...
25690 * grub-core/genemuinit.sh: ... to here.
25691 * genemuinitheader.sh: Moved ...
25692 * grub-core/genemuinitheader.sh: ... to here.
25693 * genfslist.sh: Moved ...
25694 * grub-core/genfslist.sh: ... to here.
25695 * genhandlerlist.sh: Moved ...
25696 * grub-core/genhandlerlist.sh: ... to here.
25697 * genmoddep.awk: Moved ...
25698 * grub-core/genmoddep.awk: ... to here.
25699 * genmodsrc.sh: Moved ...
25700 * grub-core/genmodsrc.sh: ... to here.
25701 * genpartmaplist.sh: Moved ...
25702 * grub-core/genpartmaplist.sh: ... to here.
25703 * genparttoollist.sh: Moved ...
25704 * grub-core/genparttoollist.sh: ... to here.
25705 * genterminallist.sh: Moved ...
25706 * grub-core/genterminallist.sh: ... to here.
25707 * gentrigtables.c: Moved ...
25708 * grub-core/gentrigtables.c: ... to here.
25709 * genvideolist.sh: Moved ...
25710 * grub-core/genvideolist.sh: ... to here.
25711 * gettext: Moved ...
25712 * grub-core/gettext: ... to here.
25713 * gfxmenu: Moved ...
25714 * grub-core/gfxmenu: ... to here.
25715 * gnulib: Moved ...
25716 * grub-core/gnulib: ... to here.
25718 * grub-core/hello: ... to here.
25720 * grub-core/hook: ... to here.
25722 * grub-core/io: ... to here.
25724 * grub-core/kern: ... to here.
25726 * grub-core/lib: ... to here.
25727 * loader: Moved ...
25728 * grub-core/loader: ... to here.
25730 * grub-core/mmap: ... to here.
25731 * normal: Moved ...
25732 * grub-core/normal: ... to here.
25733 * partmap: Moved ...
25734 * grub-core/partmap: ... to here.
25735 * parttool: Moved ...
25736 * grub-core/parttool: ... to here.
25737 * script: Moved ...
25738 * grub-core/script: ... to here.
25740 * grub-core/term: ... to here
25741 * tests/example_functional_test.c: Moved ...
25742 * grub-core/tests/example_functional_test.c: ... to here.
25743 * tests/lib/functional_test.c: Moved ...
25744 * grub-core/tests/lib/functional_test.c: ... to here.
25745 * tests/lib/test.c: Moved ...
25746 * grub-core/tests/lib/test.c: ... to here.
25748 * grub-core/video: ... to here.
25750 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25752 Replace --enable-grub-emu-modules with grub-emu-lite.
25754 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
25757 * include/grub/emu/misc.h (grub_emu_init): New prototype.
25758 * kern/emu/full.c: New file. For grub-emu specific initialization.
25759 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
25760 * kern/emu/main.c: Call initialization function grub_emu_init.
25762 * Makefile.in: Include grub-emu-lite in install.
25763 * commands/parttool.c: Use grub_no_autoload to differentiate
25764 between grub-emu and grub-emu-lite.
25765 * include/grub/misc.h: New variable grub_no_autoload.
25767 * conf/any-emu.rmk: New rules for grub-emu-lite.
25768 * configure.ac: Remove --enable-grub-emu-modules.
25769 * genmk.rb: Cleanup unnecessary rules.
25770 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
25772 * normal/main.c: Don't load list files on grub-emu-lite.
25773 * util/misc.c (grub_arch_sync_caches): Removed.
25775 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
25777 * kern/mips/startup.S (grub_prefix): Update comment to refer to
25778 grub-mkimage rather than grub-mkelfimage.
25779 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
25781 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
25783 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
25784 a key after CapsLock or NumLock. It's just a qemu bug.
25786 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25788 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
25789 needed by libusb wrapper.
25791 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25793 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
25795 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25797 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25798 --nounzip is passed.
25800 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25802 USB hotunplugging and USB serial support.
25804 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25805 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25806 (grub_uhci_transfer): Respect timeout and set *actual.
25807 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25808 non-standard length.
25809 (grub_usb_device_attach): Autoload modules.
25810 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25811 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25812 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25814 (grub_usb_add_hub): Fill nports and children.
25815 (attach_root_port): Receive hub instead of controller.
25816 All users updated. Fill hub->devices.
25817 (grub_usb_root_hub): Allocate hub->devices.
25818 (detach_device): New function.
25819 (poll_nonroot_hub): Fill children and detach devices.
25820 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25821 actual arguments. All users updated.
25822 (grub_usb_bulk_read_extended): New function.
25823 * bus/usb/serial/common.c: New file.
25824 * bus/usb/serial/ftdi.c: Likewise.
25825 * bus/usb/serial/pl2303.c: Likewise.
25826 * commands/terminal.c (handle_command): Support wildcard.
25827 * commands/usbtest.c: Output "Unknown" instead of empty string.
25828 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25829 (usbserial_common_mod_SOURCES): New variable.
25830 (usbserial_common_mod_CFLAGS): Likewise.
25831 (usbserial_common_mod_LDFLAGS): Likewise.
25832 (pkglib_MODULES): Add usbserial_pl2303.mod.
25833 (usbserial_pl2303_mod_SOURCES): New variable.
25834 (usbserial_pl2303_mod_CFLAGS): Likewise.
25835 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25836 (pkglib_MODULES): Add usbserial_ftdi.mod.
25837 (usbserial_ftdi_mod_SOURCES): New variable.
25838 (usbserial_ftdi_mod_CFLAGS): Likewise.
25839 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25840 (pkglib_MODULES): Add serial.mod.
25841 (serial_mod_SOURCES): New variable.
25842 (serial_mod_CFLAGS): Likewise.
25843 (serial_mod_LDFLAGS): Likewise.
25844 * conf/i386-pc.rmk: Likewise.
25845 * conf/mips-yeeloong.rmk: Likewise.
25846 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25847 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25848 * disk/usbms.c (first_available_slot): New variable.
25849 (grub_usbms_attach): Don't reuse free slots due to potential cache
25851 * include/grub/serial.h: Moved to ..
25852 * include/grub/ns8250.h: ...this.
25853 * include/grub/serial.h: New file.
25854 * include/grub/term.h (grub_term_poll_usb): New variable.
25855 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25856 readkey. All users updated.
25857 (grub_terminfo_output_state): Pass term to put.
25858 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25859 (grub_usb_controller_dev): Add timeout and actual arguments to
25860 transfer. All users updated.
25861 (grub_usb_interface): New field detach_data.
25862 (grub_usb_device): New fields children and nports.
25863 (grub_usb_ep_type_t): New type.
25864 (grub_usb_get_ep_type): New function.
25865 (grub_usb_bulk_read_extended): Likewise.
25866 * include/grub/usbdesc.h (grub_usb_desc): New type.
25867 * include/grub/usbserial.h: New file.
25868 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25869 * kern/term.c (grub_term_poll_usb): New variable.
25870 (grub_getkey): Call grub_term_poll_usb if set.
25871 (grub_checkkey): Likewise.
25872 (grub_getkeystatus): Likewise.
25873 * term/serial.c: Moved controller-specific parts to ...
25874 * term/ns8250.c: ... here.
25875 * term/serial.c: Mostly rewritten.
25876 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
25879 2010-08-20 Robert Millan <rmh@gnu.org>
25881 Make kFreeBSD code more generic to support ext2fs as root, ufs as
25882 a separate module and maybe other interesting combinations.
25884 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
25885 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
25886 (kfreebsd_entry): Add generic filesystem module load routine.
25887 Map GRUB `ext2' to kFreeBSD `ext2fs'.
25889 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25891 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
25892 "numcenter" (I misunderstood the purpose of this entry).
25893 * docs/grub.texi (sendkey): Likewise.
25895 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25897 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
25898 status flag options; simply omitting the option is equivalent and
25899 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
25900 (keysym_table): Rename "num5numlock" to "numlock".
25901 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
25902 can uniformly say that only the last of multiple `sendkey'
25903 invocations has any effect.
25904 * docs/grub.texi (sendkey): New section.
25906 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
25908 * commands/i386/pc/sendkey.c (options): Fix three typos.
25910 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
25912 Implement sendkey support.
25914 * commands/i386/pc/sendkey.c: New file.
25915 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
25916 (sendkey_mod_SOURCES): New variable.
25917 (sendkey_mod_CFLAGS): Likewise.
25918 (sendkey_mod_LDFLAGS): Likewise.
25920 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25922 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
25923 fix warnings from Autoconf.
25925 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25927 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
25928 to avoid false positives with some assemblers that output things
25929 like "someprefix_func" as part of their output.
25931 2010-08-15 Robert Millan <rmh@gnu.org>
25933 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
25935 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
25936 grub_get_libzfs_handle() errors.
25938 2010-08-14 Robert Millan <rmh@gnu.org>
25940 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
25941 filesystem is not ZFS.
25943 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25945 Fix for misspelled color names defaulting to black/black (bug
25946 reported by Doug Nazar)
25948 * include/grub/normal.h (grub_parse_color_name_pair): Add return
25949 status to prototype.
25950 * normal/color.c (grub_parse_color_name_pair): Return failure
25952 (grub_env_write_color_normal): Ignore bad color names.
25953 (grub_env_write_color_highlight): Likewise.
25954 * normal/main.c (GRUB_MOD_INIT): Set default color names.
25956 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25958 "shift" command support to GRUB script.
25960 * include/grub/script_sh.h (grub_script_shift): New prototype.
25961 * script/execute.c (grub_script_shift): New function.
25962 * script/main.c (grub_script_init): Register shift command.
25963 (grub_script_fini): Unregister shift command.
25964 * util/grub-script-check.c (grub_script_cmd_shift): New function.
25966 * tests/grub_script_shift.in: New testcase.
25967 * conf/tests.rmk: Rules for new testcase.
25969 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25971 "continue" command support to GRUB script.
25973 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
25974 (grub_script_break): Continue support.
25975 * script/main.c (grub_script_init): Register continue command.
25976 (grub_script_fini): Unregister continue command.
25978 * tests/grub_script_continue.in: New testcase.
25979 * conf/tests.rmk: Rules for new testcase.
25981 2010-08-12 BVK Chaitanya <bvk@dbook>
25983 "break" command support to GRUB script.
25985 * conf/common.rmk: Rule updates to grub-script-check.
25986 * include/grub/misc.h (grub_min): New function.
25987 * include/grub/script_sh.h (grub_script_init): New prototype.
25988 (grub_script_fini): New prototype.
25989 (grub_script_break): New prototype.
25990 * script/main.c (grub_script_init): New function.
25991 (grub_script_fini): New function.
25992 * script/execute.c (grub_script_break): New function.
25993 * normal/main.c: Calls to grub_script_{init,fini}.
25994 * util/grub-script-check.c (grub_script_break): New function.
25996 * tests/grub_script_break.in: New testcase.
25997 * conf/tests.rmk: Rules for new test case.
25999 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26001 Function parameters support to GRUB script.
26003 * script/yylex.l (VARIABLE): Regular expression update.
26004 * script/function.c (grub_script_function_call): Moved ...
26005 * script/execute.c (grub_script_function_call): ... to here.
26006 (grub_script_execute_arglist_to_argv): Removed.
26007 (grub_script_arglist_to_argv): New function.
26008 * script/argv.c: New file.
26009 (grub_script_argv_free): New function.
26010 (grub_script_argv_next): Likewise.
26011 (grub_script_argv_append): Likewise.
26012 (grub_script_argv_split_append): Likewise.
26013 * include/grub/script_sh.h (grub_script_argv): New struct.
26014 (grub_script_argv_free): New function.
26015 (grub_script_argv_next): Likewise.
26016 (grub_script_argv_append): Likewise.
26017 (grub_script_argv_split_append): Likewise.
26019 * conf/common.rmk (normal.mod): New source script/argv.c.
26021 * tests/grub_script_echo1.in: More tests.
26022 * tests/grub_script_vars1.in: Likewise.
26023 * tests/grub_script_functions.in: New test case.
26024 * conf/tests.rmk: Rules for new testcase.
26026 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26028 Remove grub_script_cmdblock struct.
26030 * include/grub/script_sh.h: Remove grub_script_cmdblock.
26031 * script/parser.y: Likewise.
26032 * script/execute.c: Rename cmdblock suffix to cmdlist.
26033 * script/script.c: Likewise.
26034 * util/grub-script-check.c: Likewise.
26036 2010-08-11 Yves Blusseau <blusseau@zetam.org>
26038 * .bzrignore: add grub-macho2img
26040 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
26042 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
26044 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
26046 Remove the dump of sm712 initialisation sequence.
26048 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
26049 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
26050 (GRUB_VGA_IO_MISC_WRITE): Likewise.
26051 (GRUB_VGA_CR_*): Added many registers.
26052 (GRUB_VGA_SR_*): Likewise.
26053 (GRUB_VGA_GR_*): Likewise.
26054 (grub_vga_write_arx): New function.
26055 (grub_video_hw_config): New struct.
26056 (grub_vga_set_geometry): New function.
26057 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
26058 GRUB_PCI_CLASS_SUBCLASS_VGA.
26059 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
26060 * video/sm712.c (grub_sm712_write_reg): New function
26061 (grub_sm712_read_reg): Likewise.
26062 (grub_sm712_sr_write): Likewise.
26063 (grub_sm712_gr_write): Likewise.
26064 (grub_sm712_cr_write): Likewise.
26065 (grub_sm712_write_arx): Likewise.
26066 (grub_sm712_cr_shadow_write): Likewise.
26067 (grub_sm712_write_dda_lookup): Likewise.
26068 (grub_video_sm712_setup): Initialise the video rather then
26069 blindly replay the dump.
26070 (main) [TEST]: Add a routine to be able to compile as standalone for
26072 * video/sm712_init.c (sm712_init): Removed.
26073 (sm712_sr_seq1): New array.
26074 (sm712_sr_seq2): Likewise.
26076 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26078 * include/grub/vga.h: Add missing grub/pci.h include.
26080 2010-08-10 Yves Blusseau <blusseau@zetam.org>
26082 * util/grub-macho2img.c (main): fix typo
26084 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26086 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
26087 (grub_vga_gr_read): Likewise.
26088 (grub_vga_cr_write): Likewise.
26089 (grub_vga_cr_read): Likewise.
26090 (grub_vga_sr_write): Likewise.
26091 (grub_vga_sr_read): Likewise.
26092 (grub_vga_palette_read): Likewise.
26093 (grub_vga_palette_write): Likewise.
26094 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
26095 (grub_sm712_sr_read): New function.
26096 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
26097 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
26099 2010-08-09 Robert Millan <rmh@gnu.org>
26101 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
26102 out unused variables on non-ZFS build.
26104 2010-08-08 Robert Millan <rmh@gnu.org>
26106 Fix path generation for sub-filesystems in ZFS.
26108 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
26111 2010-08-08 Robert Millan <rmh@gnu.org>
26113 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
26115 2010-08-08 Robert Millan <rmh@gnu.org>
26117 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
26118 exist, issue a proper error message (rely on `ls' for translated
26121 2010-08-08 Robert Millan <rmh@gnu.org>
26123 Fix grub-probe invocation.
26125 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
26127 2010-08-04 Robert Millan <rmh@gnu.org>
26129 * configure.ac: Remove checks for getfsstat() and getmntany().
26130 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
26131 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
26132 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
26133 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
26134 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
26136 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
26137 via find_mount_point_from_dir() and getfsstat() / getmntany().
26139 2010-08-04 Robert Millan <rmh@gnu.org>
26141 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26142 (grub_find_zpool_from_mount_point): Merge into ...
26143 (grub_find_zpool_from_dir): ... this.
26144 * kern/emu/misc.c: Likewise.
26147 (grub_make_system_path_relative_to_its_root): Replace
26148 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
26149 with grub_find_zpool_from_dir().
26150 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
26152 2010-08-04 Robert Millan <rmh@gnu.org>
26154 Support OpenSolaris in ZFS device resolution.
26156 * configure.ac: Check for getmntany().
26157 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
26158 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
26161 2010-08-03 Robert Millan <rmh@gnu.org>
26163 Fix grub-emu build.
26165 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
26166 * include/grub/emu/misc.h: ... here.
26168 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
26169 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
26171 * util/misc.c: Remove `<grub/util/libzfs.h>'.
26172 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
26173 (grub_get_libzfs_handle): Move to ...
26174 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
26175 (grub_get_libzfs_handle): ... here.
26177 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
26179 * script/execute.c (grub_script_execute_cmdline): Check for NULL
26180 as command name case.
26182 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
26184 * disk/raid.c (insert_array): Select unique numbers for named arrays
26185 as well, for use as keys in the disk cache.
26187 2010-08-01 Robert Millan <rmh@gnu.org>
26189 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
26190 kFreeBSD device name, except on ZFS where the filesystem label is
26192 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
26193 `/boot/zfs/zpool.cache'.
26194 Set mountfrom kernel variable using ${kfreebsd_device}.
26196 2010-08-01 Robert Millan <rmh@gnu.org>
26198 Make it even harder to use uninitialized `libzfs_handle' (and
26199 make the interface a bit simpler).
26201 * include/grub/util/misc.h (grub_util_init_libzfs)
26202 (libzfs_handle): Remove.
26203 (grub_get_libzfs_handle): New prototype.
26205 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
26207 (grub_util_init_libzfs): Remove.
26208 (grub_get_libzfs_handle): New function.
26210 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
26211 grub_get_libzfs_handle() to obtain a libzfs handle instead of
26212 accessing `libzfs_handle' directly.
26214 2010-08-01 Robert Millan <rmh@gnu.org>
26216 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26217 (grub_find_zpool_from_mount_point): New function prototypes.
26219 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26220 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26222 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26223 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26224 `static' attribute.
26226 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26227 finding zpool from mount point into ...
26228 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26230 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26231 requested path is part of a ZFS pool, use
26232 grub_find_zpool_from_mount_point() to detect its filesystem name,
26233 and generate a path with `/fsname@path' syntax.
26235 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26237 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
26238 (void) rather than () so that this is a proper prototype.
26240 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26242 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
26244 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26246 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
26247 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
26249 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26251 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
26253 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26255 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
26257 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26259 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
26260 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
26261 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
26262 disable gfxpayload.
26263 (Shell-like scripting): Add real content.
26264 (Serial terminal): Suggest `terminal_input serial; terminal_output
26265 serial' rather than putting the two commands on separate lines,
26266 since console input will be inoperative after the first command.
26267 (menuentry): Document --class, --users, and --hotkey options.
26268 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
26269 Vladimir Serbinenko).
26271 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26272 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26274 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
26276 2010-08-01 Robert Millan <rmh@gnu.org>
26278 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26279 (grub_find_zpool_from_mount_point): New function prototypes.
26281 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26282 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26284 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26285 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26286 `static' attribute.
26288 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26289 finding zpool from mount point into ...
26290 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26292 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26293 requested path is part of a ZFS pool, use
26294 grub_find_zpool_from_mount_point() to detect its filesystem name,
26295 and generate a path with `/fsname@path' syntax.
26297 2010-08-01 Robert Millan <rmh@gnu.org>
26299 Prevent accidental use of uninitialized libzfs_handle.
26301 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
26302 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
26303 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
26305 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26307 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
26308 util/grub.d/10_linux.in). Fixes Debian bug #591093.
26310 2010-08-01 Robert Millan <rmh@gnu.org>
26312 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
26314 2010-07-31 Robert Millan <rmh@gnu.org>
26316 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
26318 2010-07-31 Robert Millan <rmh@gnu.org>
26320 * kern/emu/misc.c: Add missing license header.
26322 2010-07-31 Robert Millan <rmh@gnu.org>
26324 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
26326 * include/grub/util/libnvpair.h: Include `<config.h>'.
26327 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
26328 declaring libnvpair prototypes ourselves.
26329 * include/grub/util/libzfs.h: Include `<config.h>'.
26330 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
26331 declaring libzfs prototypes ourselves.
26333 (libzfs_handle): Moved to ...
26334 * include/grub/util/misc.h (libzfs_handle): ... here.
26335 Include `<grub/util/libzfs.h>'.
26337 2010-07-30 Robert Millan <rmh@gnu.org>
26339 * include/grub/emu/misc.h: Add missing license header.
26341 2010-07-30 Robert Millan <rmh@gnu.org>
26343 Enable `grub-probe -t device' resolution on ZFS.
26345 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
26346 * include/grub/util/libnvpair.h: New file.
26347 * include/grub/util/libzfs.h: New file.
26349 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
26350 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
26351 `<grub/util/libnvpair.h>'.
26352 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
26354 (find_mount_point_from_dir): New static function.
26355 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
26357 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
26358 find_root_device_from_libzfs() before ressorting to find_root_device().
26360 * include/grub/util/misc.h (grub_util_init_libzfs): New function
26362 * util/misc.c: Include `<grub/util/libzfs.h>'.
26363 (grub_util_init_libzfs): New function.
26364 [HAVE_LIBZFS] (libzfs_handle): New global variable.
26365 [HAVE_LIBZFS] (fini_libzfs): New static function.
26366 (grub_util_init_libzfs): New function.
26367 * util/grub-probe.c (main): Call grub_util_init_libzfs().
26369 2010-07-30 Robert Millan <rmh@gnu.org>
26371 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
26372 (xmalloc, xrealloc, xstrdup, xasprintf): Add
26373 `warn_unused_result' attribute.
26374 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
26375 (grub_xasprintf, grub_xvasprintf): Likewise.
26376 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
26378 2010-07-29 Robert Millan <rmh@gnu.org>
26380 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
26381 (probe): Handle `PRINT_FS_LABEL'.
26382 (main): Handle `-t fs_label'.
26384 2010-07-29 Robert Millan <rmh@gnu.org>
26386 * configure.ac: Remove grub-mkisofs checks.
26388 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
26390 * util/ieee1275/grub-install.in: Don't use empty grub_device.
26391 Reported by: Lennart Sorensen.
26393 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26395 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
26396 prior to terminal_input/terminal_output separation. It's been over 1.5
26397 years and those versions weren't widely deployed.
26399 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
26401 * disk/raid.c (insert_array): Don't count named arrays when looking
26402 for unused array numbers.
26403 Reported and tested by: Michael Guntsche.
26405 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26407 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
26408 implementation of this so that grub-emu links again, with a note
26409 that this should support hotplugging in the future.
26411 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26413 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26415 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26417 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
26419 (grub_loopback_close): Remove empty function.
26420 (grub_loopback_dev): Remove close method.
26422 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26424 Disable EFI cursor when the EFI console becomes inactive.
26426 * term/efi/console.c (grub_efi_console_init): New function.
26427 (grub_efi_console_fini): New function.
26428 (grub_console_term_output): Register init and fini methods.
26430 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26432 * tests/util/grub-shell-tester.in: Remove bashism and declare as
26435 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26437 * disk/loopback.c (grub_loopback): Replace filename with file.
26438 (delete_loopback): Handle new semantics.
26439 (grub_cmd_loopback): Likewise.
26440 (grub_loopback_iterate): Likewise.
26441 (grub_loopback_close): Likewise.
26443 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26445 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
26447 Reported by: Tito Keitel.
26449 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26451 * docs/grub.texi (Naming convention): Document new naming convention.
26453 2010-07-20 Vadim Solomin <vadic052@gmail.com>
26454 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26456 Generate device.map in something closer to the old ordering.
26458 * util/deviceiter.c (struct device): New declaration.
26459 (compare_file_names): Rename to ...
26460 (compare_devices): ... this. Sort by kernel name in preference to
26461 the stable by-id name, but keep the latter as a fallback comparison.
26462 Update header comment.
26463 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
26464 of `struct device' rather than of plain file names.
26466 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
26468 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
26471 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26473 * commands/acpi.c (setup_common_tables): Use sizeof instead of
26475 (setv1table): Likewise.
26477 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26479 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
26480 removing the homehost if present.
26481 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
26482 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
26483 removing the homehost if present.
26484 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
26486 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
26488 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
26489 parameter. Set its pointer target to 0.
26490 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
26491 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
26492 `data_offset' value from the superblock for 1.x metadata.
26493 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
26494 data on the device.
26495 (insert_array): Record the start sector of data on the device.
26496 (grub_raid_register): Pass start_sector parameters to
26497 grub_raid_list->detect and insert_array.
26498 * include/grub/raid.h (struct grub_raid_array): Add start_sector
26500 (struct grub_raid): Add start_sector parameter to `detect'.
26502 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
26503 __attribute__ ((packed)), leaving a comment.
26504 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
26505 (grub_mdraid_detect_09): ... here and ...
26506 (grub_mdraid_detect_1x): ... here.
26508 2010-07-20 Peter Henn <peter.henn@web.de>
26510 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
26511 chunk size and disk size, which are already given as sector counts
26512 as distinct from the 0.90 units. Fetch the correct device number
26513 from the role table instead of using the table index.
26515 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
26517 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
26518 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
26519 (WriteMostly1): New macro.
26520 Set array->name to NULL for metadata format 0.90. Add support for
26521 metadata 1.x. Fix some comments.
26522 * disk/raid.c (): Add support for name based RAID arrays. Fix a
26524 * util/getroot.c (grub_util_get_grub_dev): Add support for
26525 /dev/md/name style devices.
26527 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26529 * .bzrignore: Ignore 20_linux_xen.
26531 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
26533 * util/import_unicode.py: Remove unnecessary imports.
26535 2010-07-17 Aleš Nesrsta <starous@volny.cz>
26537 Hotplugging and USB hub support.
26539 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
26540 (grub_ohci): Likewise.
26541 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
26542 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
26543 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
26544 (GRUB_OHCI_CTRL_EDS): Likewise.
26545 (GRUB_OHCI_BULK_EDS): Likewise.
26546 (GRUB_OHCI_TDS): Likewise.
26547 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
26548 (grub_ohci_ed_phys2virt): New function.
26549 (grub_ohci_virt_to_phys): Likewise.
26550 (grub_ohci_td_phys2virt): Likewise.
26551 (grub_ohci_td_virt2phys): Likewise.
26552 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
26554 (grub_ohci_find_ed): New function.
26555 (grub_ohci_alloc_td): Likewise.
26556 (grub_ohci_free_td): Likewise.
26557 (grub_ohci_free_tds): Likewise.
26558 (grub_ohci_transfer): Use previously allocated memory.
26559 (grub_ohci_portstatus): Reset status changed bit.
26560 (grub_ohci_detect_dev): Supply status changed.
26561 (grub_ohci_fini_hw): Free memory.
26562 (grub_ohci_restore_hw): Reallocate memory.
26563 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
26564 Reset status change.
26565 (grub_uhci_detect_dev): Supply status_change.
26566 * bus/usb/usb.c (attach_hooks): New var.
26567 (grub_usb_device_attach): New function.
26568 (grub_usb_register_attach_hook_class): Likewise.
26569 (grub_usb_unregister_attach_hook_class): Likewise.
26570 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
26571 (grub_usb_add_hub): Reset connection changed bit.
26572 (attach_root_port): New function.
26573 (grub_usb_root_hub): Likewise.
26574 (poll_nonroot_hub): Likewise.
26575 (grub_usb_poll_devices): Likewise.
26576 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
26577 * disk/usbms.c (grub_usbms_open): Use device hooks.
26578 (grub_usbms_iterate) :Poll devices.
26579 (grub_usbms_finddevs): Split into ...
26580 (grub_usbms_attach): ... this ...
26581 (grub_usbms_attach): ... and this.
26582 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
26584 (grub_usb_interface): New fields attached and detach_hook.
26585 (grub_usb_attach_hook_class): New type.
26586 (grub_usb_attach_desc): New struct.
26587 (grub_usb_register_attach_hook_class): New function.
26588 (grub_usb_unregister_attach_hook_class): Likewise.
26589 (grub_usb_poll_devices): Likewise.
26590 (grub_usb_device_attach): Likewise.
26591 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
26592 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
26594 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26596 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
26597 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
26598 delta determination style. Works with most NetBSD partitions too.
26600 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26602 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
26603 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
26605 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26607 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
26609 2010-07-14 Anton Blanchard <anton@samba.org>
26611 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
26614 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26616 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
26618 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26620 * kern/partition.c (grub_partition_check_containment): New function to
26621 check that a partition is physically contained in a parent. Since
26622 offsets are relative (and non-negative), this reduces to checking that
26623 the partition ends before its parent.
26624 (grub_partition_map_probe): Discard out-of-range sub-partitions.
26625 (grub_partition_iterate): Likewise.
26626 * include/grub/partition.h (grub_partition_map): Slightly more detailed
26628 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
26629 partitions that start before their parent, and add debug printfs.
26631 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26633 * Makefile.in (.SUFFIX): Spell correctly, as ...
26634 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
26635 bare module name without `.mod', e.g. `test') tried to invoke a
26638 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26640 * README: Point to the Info manual.
26642 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
26644 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
26645 2nd superblock position from partition size.
26647 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
26649 * Makefile.in (MAINTAINER_CLEANFILES): Remove
26650 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
26651 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
26654 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26656 Restructure SCSI .id handling.
26657 Reported and tested by: Aleš Nesrsta.
26659 * disk/ata.c (grub_atapi_close): Removed. All users updated.
26660 (grub_atapi_dev): Changed .name to "ata". New field .id.
26661 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
26662 (grub_usbms_dev): New field .id.
26663 * disk/scsi.c (grub_scsi_iterate): Generate name.
26664 (grub_scsi_open): Parse name.
26665 * include/grub/scsi.h (grub_make_scsi_id): New function.
26666 (grub_scsi_dev): Change iterate and open to number instead of naming
26667 busses. All users updated.
26668 (grub_scsi): Remove name. Add .bus.
26670 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26672 * commands/help.c (grub_cmd_help): Fix a typo.
26674 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26676 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
26677 Reported and tested by: Colin Watson.
26679 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26681 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
26684 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
26686 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
26688 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
26690 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
26693 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26695 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
26696 and disk/raid6_recover.c.
26697 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26698 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26700 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26702 * term/gfxterm.c (repaint_schedulded): Rename to ...
26703 (repaint_scheduled): ... this. Update all callers.
26704 (repaint_was_schedulded): Rename to ...
26705 (repaint_was_scheduled): ... this. Update all callers.
26707 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26709 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
26710 which we expect to be handled by upper layers.
26712 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
26714 * bus/usb/usbhub.c: #include time.h header.
26716 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26718 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
26719 entry_name also for entries without stat blocks (e.g. ".."); fixes
26720 corruption of the first entry in a directory.
26722 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26724 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
26725 after setting gfxterm as the active terminal. GRUB_BACKGROUND
26726 doesn't work otherwise.
26728 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26730 * docs/grub.texi (Features): Update list of supported file systems.
26731 (GNU/Linux): Update for GRUB 2.
26732 (Serial terminal): Remove mention of --disable-serial, which was a
26733 GRUB Legacy configure option. Update instructions to use
26734 `terminal_input' and `terminal_output' rather than `terminal'.
26735 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
26736 configuration' and `Installing GRUB using grub-install'.
26737 (Menu entry editor): Update for GRUB 2.
26738 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
26739 Document new -a, -u, and -v options.
26740 (initrd): New section.
26741 (initrd16): New section.
26742 (linux): New section.
26743 (linux16): New section.
26744 (search): The `var' argument to `--set' is optional.
26745 (GRUB only offers a rescue shell): Go into a little more detail on
26748 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26750 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
26752 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26754 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
26755 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
26757 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26759 * util/i386/pc/grub-setup.c (setup): Rename prefix to
26760 install_prefix, in line with install_dos_part and install_bsd_part.
26761 Add new prefix variable, which is copied to install_prefix after
26762 comparing core.img in memory with the one read from disk in the
26763 no-embedding case, and use that rather than overwriting
26764 install_prefix immediately when installing to a partition.
26765 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
26768 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26770 * configure.ac: Avoid == in test command, it's not portable.
26771 * util/grub.d/30_os-prober.in: Likewise.
26773 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
26775 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
26777 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26779 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
26780 multiple (top-level) partmaps.
26782 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26784 * util/i386/efi/grub-install.in: Don't use empty grub_device.
26785 Reported by: Tino Keitel.
26787 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26789 Bidi and diacritics support.
26791 * Makefile.in (widthspec.bin): New target.
26792 (widthspec.h): Likewise.
26793 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
26794 * autogen.sh: Generate unidata.c.
26795 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26796 * commands/ls.c (grub_ls_list_devices): Likewise.
26797 (grub_ls_list_files): Likewise.
26798 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26799 (grub_mini_cmd_lsmod): Likewise.
26800 * commands/read.c: Likewise.
26801 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26802 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26803 * lib/arg.c (grub_arg_show_help): Likewise.
26804 * lib/crypto.c (grub_password_get): Likewise.
26805 * normal/auth.c (grub_username_get): Likewise.
26806 * normal/misc.c (grub_normal_print_device_info): Likewise.
26807 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26808 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26809 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26810 (normal/charset.c_DEPENDENCIES): New variable.
26811 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26812 (pkglib_MODULES): Remove charset.mod.
26813 (charset_mod_SOURCES): Removed.
26814 (charset_mod_CFLAGS): Likewise.
26815 (charset_mod_LDFLAGS): Likewise.
26816 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26817 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26819 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26820 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26821 (kernel_img_HEADERS): Add terminfo.h.
26822 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26823 Fill ->font. Reverse ascii bitmaps.
26824 (grub_font_get_xheight): New function.
26825 * font/font.c (grub_font_get_string_width): Moved from here ...
26826 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26827 * font/font.c (grub_font_draw_string): Moved from here ...
26828 * gfxmenu/font.c (grub_font_draw_string): ... here.
26829 * font/font.c (grub_font_dup_glyph): New function.
26830 (grub_font_blit_glyph): Likewise.
26831 (grub_font_blit_glyph_mirror): Likewise.
26832 (blit_comb): Likewise.
26833 (grub_font_construct_dry_run): Likewise.
26834 (grub_font_get_constructed_device_width): Likewise.
26835 (grub_font_construct_glyph): Likewise.
26836 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26837 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26838 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26839 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26840 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26841 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26842 (grub_font_get_xheight): New proto.
26843 (grub_font_get_constructed_device_width): Likewise.
26844 (grub_font_construct_glyph): Likewise.
26845 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26846 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26847 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26848 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26849 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26850 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26851 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26852 (grub_console_getcharwidth): Likewise.
26853 * include/grub/misc.h (grub_xputs): New proto.
26854 (grub_puts): Inlined.
26855 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26856 (grub_normal_get_line_counter): Removed.
26857 (grub_install_newline_hook): Likewise.
26858 (grub_normal_get_char_counter): New proto.
26859 (grub_normal_reset_more): Likewise.
26860 (grub_xputs_normal): Likewise.
26861 * include/grub/powerpc/ieee1275/console.h: Removed.
26862 * include/grub/sparc64/ieee1275/console.h: Likewise.
26863 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26864 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26865 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26866 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26867 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26868 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26869 (grub_term_input): Pass reference to self. All users updated.
26870 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
26871 Pass reference to self. New fields normal_color, highlight_color and
26872 data. All users updated.
26873 (grub_putchar): Removed.
26874 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
26875 (grub_unicode_estimate_width): New function.
26876 (grub_term_getcharwidth): Add defaults.
26877 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
26878 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
26879 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
26880 (grub_cls): Remove EXPORT_FUNC.
26881 (grub_setcolorstate): Inline.
26882 (grub_newline_hook): Removed.
26883 * include/grub/terminfo.h: Rewritten. All users updated.
26884 * include/grub/unicode.h: New file.
26885 * include/grub/video.h (grub_video_signed_rect): New type.
26886 * kern/emu/console.c (grub_console_highlight_color): Removed.
26887 (grub_console_normal_color): Likewise.
26888 (grub_console_standard_color): Made static.
26889 (grub_ncurses_putchar): Remove mapping.
26890 (grub_ncurses_getcharwidth): Removed.
26891 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26892 (grub_ncurses_setcolor): Removed.
26893 (grub_ncurses_getcolor): Likewise.
26894 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
26895 (grub_console_putchar): ... this.
26896 (grub_console_putchar): Handle argument difference.
26897 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
26898 console_init_early and console_init_lately.
26899 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
26900 * kern/misc.c (grub_puts): Removed.
26901 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
26902 (grub_vsnprintf_real): Remove str = NULL support.
26903 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
26904 * normal/charset.c (grub_utf8_to_ucs4): ... here.
26905 * kern/term.c (grub_putcode): Renamed to ...
26906 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
26907 (grub_putchar): Removed.
26908 (grub_xputs_dumb): New function.
26909 (grub_xputs): New variable.
26910 * lib/charset.c: Move from here ...
26911 * normal/charset.c: ... to here.
26912 (grub_ucs4_to_utf8): New function.
26913 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
26914 (join_types): New variable.
26915 (unpack_join): New function.
26916 (bidi_types): New variable.
26917 (unpack_bidi): New function.
26918 (get_bidi_type): Likewise.
26919 (get_join_type): Likewise.
26920 (is_mirrored): Likewise.
26921 (grub_unicode_get_comb_type): Likewise.
26922 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
26923 (is_type_after): Likewise.
26924 (grub_unicode_aglomerate_comb): Likewise.
26925 (bidi_line_wrap): Likewise.
26926 (grub_bidi_line_logical_to_visual): Likewise.
26927 (grub_bidi_logical_to_visual): Likewise.
26928 (grub_unicode_mirror_code): Likewise.
26929 (grub_unicode_shape_code): Likewise.
26930 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
26931 Don't use grub_putchar.
26932 * normal/main.c (grub_normal_init_page): Use grub_putcode.
26933 (grub_normal_reader_init): Likewise.
26934 (grub_xputs_saved): New variable.
26935 (GRUB_MOD_INIT): Set grub_xputs.
26936 (GRUB_MOD_FINI): Restore grub_xputs.
26937 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
26938 (menu_init): Avoid printing gfxmenu error.
26939 (show_menu): Use grub_normal_get_char_counter.
26940 * normal/menu_entry.c (update_screen): Fix out-of-array.
26941 (complete): Avoid NULL dereferencing.
26942 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
26943 * normal/menu_text.c (print_spaces): Removed.
26944 (grub_print_ucs4): Likewise.
26945 (grub_print_message_indented): Use grub_print_ucs4.
26946 (print_message): Use grub_putcode.
26947 (print_entry): Hanlde diacritics.
26948 * normal/term.c (term_state): New type.
26949 (grub_more_lines): Removed.
26950 (term_states): New variable.
26951 (grub_normal_line_counter): Renamed to ..
26952 (grub_normal_char_counter): ...this. All users updated.
26953 (grub_normal_get_line_counter): Renamed to ...
26954 (grub_normal_get_char_counter): ... this.
26955 (grub_normal_reset_more): New function.
26956 (process_newline): Removed.
26957 (print_more): New function.
26958 (grub_install_newline_hook): Removed.
26959 (map_code): New function.
26960 (grub_puts_terminal): Use grub_print_ucs4.
26961 (putglyph): New function.
26962 (putcode_real): Likewise.
26963 (grub_putcode): Use putcode_real.
26964 (get_maxwidth): New function.
26965 (get_startwidth): Likewise.
26966 (print_ucs4_terminal): Likewise.
26967 (find_term_state): Likewise.
26968 (put_glyphs_terminal): Likewise.
26969 (print_backlog): Likewise.
26970 (print_ucs4_real): Likewise.
26971 (grub_print_ucs4): Likewise.
26972 (grub_xputs_normal): Likewise.
26973 * term/efi/console.c (grub_console_putchar): Output diacritics.
26974 (grub_console_getcharwidth): Removed.
26975 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26976 * term/gfxterm.c (clear_char): Free chars.
26977 (scroll_up): Avoid leaking memory.
26978 (grub_gfxterm_putchar): Support diacritics.
26979 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26980 * term/i386/pc/console.c (grub_console_term_output): Declare as
26981 GRUB_TERM_CODE_TYPE_VGA.
26982 * term/i386/pc/vga.c (grub_vga_term): Declare as
26983 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
26984 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
26985 GRUB_TERM_CODE_TYPE_VGA.
26986 * term/i386/vga_common.c (map_char): Removed.
26987 (grub_console_putchar): Likewise.
26988 (grub_console_getcharwidth): Likewise.
26989 * term/ieee1275/ofconsole.c: Simplify using terminfo.
26990 (colors): Reordered to match terminfo.
26991 (grub_ofconsole_normal_color): Removed.
26992 (grub_ofconsole_writeesc): Likewise.
26993 (grub_ofconsole_highlight_color): Likewise.
26994 (grub_ofconsole_getcharwidth): Likewise.
26995 (grub_ofconsole_setcolorstate): Likewise.
26996 (grub_ofconsole_setcolor): Likewise.
26997 (grub_ofconsole_getcolor): Likewise.
26998 (grub_ofconsole_readkey): Renamed to ...
26999 (readkey): ... this. Remove escape sequence handling. Return -1 on no
27001 (grub_ofconsole_checkkey): Removed.
27002 (grub_ofconsole_getkey): Likewise.
27003 (grub_ofconsole_getxy): Likewise.
27004 (grub_ofconsole_gotoxy): Likewise.
27005 (grub_ofconsole_cls): Likewise.
27006 (grub_ofconsole_refresh): Likewise.
27007 (grub_ofconsole_terminfo_input): New struct.
27008 (grub_ofconsole_terminfo_output): Likewise.
27009 (grub_ofconsole_term_input): Use terminfo.
27010 (grub_ofconsole_term_output): Likewise.
27011 (grub_console_init): Split into ...
27012 (grub_console_init_early): ...this and ...
27013 (grub_console_init_lately): ...this. Use terminfo.
27014 (grub_ofconsole_putchar): Renamed to ...
27015 (put): ... this. Remove mapping.
27016 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
27017 * term/serial.c: Simplify using terminfo.
27020 (keep_track): Likewise.
27021 (registered): Likewise.
27022 (input_buf): Likewise.
27023 (npending): Likewise.
27024 (serial_translate_key_sequence): Likewise.
27025 (fill_input_buf): Likewise.
27026 (grub_serial_checkkey): Likewise.
27027 (grub_serial_getkey): Likewise.
27028 (grub_serial_getxy): Likewise.
27029 (grub_serial_gotoxy): Likewise.
27030 (grub_serial_putchar): Likewise.
27031 (grub_serial_cls): Likewise.
27032 (grub_serial_setcolorstate): Likewise.
27033 (grub_serial_setcursor): Likewise.
27034 (serial_hw_init): Use serial_hw_fetch.
27035 (grub_serial_terminfo_input): New variable.
27036 (grub_serial_terminfo_output): Likewise.
27037 (grub_serial_term_input): Use terminfo.
27038 (grub_serial_term_output): Likewise.
27039 * term/terminfo.c (putstr): Use put.
27040 (grub_terminfo_all_free): New function
27041 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
27042 (grub_terminfo_output_register): New function.
27043 (grub_terminfo_output_unregister): Likewise.
27044 (grub_terminfo_getxy): Likewise.
27045 (grub_terminfo_readkey): Likewise.
27046 (grub_terminfo_checkkey): Likewise.
27047 (grub_terminfo_getkey): Likewise.
27048 (grub_terminfo_input_init): Likewise.
27049 (print_terminfo): Likewise.
27050 (grub_cmd_terminfo): Handle encoding.
27051 (grub_terminfo_gotoxy): Track position.
27052 (grub_terminfo_cls): Likewise.
27053 (grub_terminfo_putchar): Likewise.
27054 (grub_terminfo_setcolorstate): Handle colors
27055 (grub_terminfo_cursor_on): This ...
27056 (grub_terminfo_cursor_off): ... and this merged into ...
27057 (grub_terminfo_setcursor): ... this.
27058 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
27059 * unicode/ArabicShaping.txt: New file (imported from Unicode).
27060 * unicode/BidiMirroring.txt: Likewise.
27061 * unicode/UnicodeData.txt: Likewise.
27062 * unicode/COPYING: Likewise.
27063 * util/grub-editenv.c (grub_putchar): Removed.
27064 (grub_xputs_real): New function.
27065 (grub_xputs): New variable.
27066 * util/grub-fstest.c (grub_putchar): Removed.
27067 (grub_xputs_real): New function.
27068 (grub_xputs): New variable.
27069 * util/grub-mkdevicemap.c (grub_putchar): Removed.
27070 (grub_xputs_real): New function.
27071 (grub_xputs): New variable.
27072 * util/grub-probe.c (grub_putchar): Removed.
27073 (grub_xputs_real): New function.
27074 (grub_xputs): New variable.
27075 * util/grub-script-check.c (grub_putchar): Removed.
27076 (grub_xputs_real): New function.
27077 (grub_xputs): New variable.
27078 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
27079 (grub_xputs_real): New function.
27080 (grub_xputs): New variable.
27081 * util/import_unicode.py: New file.
27082 * util/grub-mkfont.c (ft_errmsgs): New array.
27083 (grub_glyph_info): Make bitmap a pointer.
27084 (file_formats): New type WIDTH_SPEC.
27085 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
27086 (options): Add width-spec.
27088 (add_char): Renamed to ...
27089 (add_glyph): ... this.
27090 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
27091 (glyph_replace): New type.
27092 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
27093 (add_char): New function.
27094 (add_subst): Likewise.
27095 (process_cursive): Likewise.
27096 (add_font): Handle GSUB.
27097 (write_font_width_spec): New function.
27098 (main): Sort glyphs.
27099 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
27100 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
27101 * kern/term.c (grub_cls): Moved from here...
27102 * normal/term.c (grub_cls): ... here.
27104 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27106 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
27107 suitable for using within the format argument of printf when
27108 converting grub_size_t.
27109 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
27110 "x" to convert grub_size_t arguments.
27112 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27114 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
27116 (list_get_minimal_size): Take selection box into account.
27118 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27120 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
27123 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27125 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
27126 devices when iterating over /dev/disk/by-id; they will be handled
27127 later if appropriate, which they aren't always (e.g. LVM).
27129 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27131 * include/grub/misc.h (grub_reboot): Declare as noreturn.
27132 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
27134 (grub_halt): Likewise.
27135 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
27137 (grub_halt): Don't return, even if all of shut-down, power-off, and
27140 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27142 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
27143 arguments, not three.
27145 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27147 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
27148 * util/grub.d/10_linux.in: Use it to check for LVM, so that
27149 LVM-on-RAID is handled correctly.
27151 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27153 * docs/grub.texi (Changes from GRUB Legacy): New section.
27154 (Future): Fix typo.
27156 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27158 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
27159 grub.d/README accidentally ends up executable for one reason or
27160 another. Ignore it.
27162 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27164 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
27165 (gpt_partition_map_iterate): Support non-512B sectors.
27167 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27169 * kern/efi/init.c (grub_efi_init): Disable watchdog.
27170 Tested by: Seth Goldberg.
27172 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27174 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
27175 Properly align mbi.
27176 Reported by: Seth Goldberg.
27178 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27180 * util/grub-mkrescue.in: Avoid module duplication.
27182 2010-07-01 Sean Finney <seanius@seanius.net>
27184 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
27186 2010-07-01 Sean Finney <seanius@seanius.net>
27188 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
27190 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27192 * disk/lvm.c (grub_lvm_checkvalue): New function.
27193 (grub_lvm_check_flag): Likewise.
27195 2010-07-01 Robert Millan <rmh@gnu.org>
27197 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
27198 Support 'p' as partition separator on kernel of FreeBSD (used
27200 (grub_util_biosdisk_get_grub_dev): Likewise.
27202 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27204 Yeeloong firmware port.
27206 * boot/mips/yeeloong/fwstart.S: New file.
27207 * bus/cs5536.c (gpiodump): New const.
27208 (set_io_space): New function.
27209 (set_iod): Likewise.
27210 (set_p2d): Likewise.
27211 (grub_cs5536_init_geode): Likewise.
27212 * commands/mips/yeeloong/lsspd.c: New file.
27213 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
27214 (serial_mod_SOURCES): New variable.
27215 (serial_mod_CFLAGS): Likewise.
27216 (serial_mod_LDFLAGS): Likewise.
27217 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
27218 term/terminfo.c and term/tparm.c.
27219 (pkglib_IMAGES): Add fwstart.img.
27220 (fwstart_img_SOURCES): New variable.
27221 (fwstart_img_CFLAGS): Likewise.
27222 (fwstart_img_ASFLAGS): Likewise.
27223 (fwstart_img_LDFLAGS): Likewise.
27224 (fwstart_img_FORMAT): Likewise.
27225 (pkglib_MODULES): Add lsspd.mod.
27226 (lsspd_mod_SOURCES): New variable.
27227 (lsspd_mod_CFLAGS): Likewise.
27228 (lsspd_mod_LDFLAGS): Likewise.
27229 (pkglib_MODULES): Add halt.mod.
27230 (halt_mod_SOURCES): New variable.
27231 (halt_mod_CFLAGS): Likewise.
27232 (halt_mod_LDFLAGS): Likewise.
27233 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
27234 (serial_mod_SOURCES): Removed.
27235 (serial_mod_CFLAGS): Likewise.
27236 (serial_mod_LDFLAGS): Likewise.
27237 * disk/ata.c (check_device): New function.
27238 (grub_ata_device_initialize): Use check_device.
27239 (grub_ata_iterate): Recheck devices.
27240 (grub_ata_open): Likewise.
27241 (grub_atapi_iterate): Likewise.
27242 (grub_atapi_open): Likewise.
27243 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
27244 (GRUB_ATA_CH1_PORT1): Likewise.
27245 (GRUB_ATA_CH0_PORT2): Likewise.
27246 (GRUB_ATA_CH1_PORT2): Likewise.
27247 * include/grub/mips/loongson.h: New file.
27248 * include/grub/mips/yeeloong/ec.h: Likewise.
27249 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
27250 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
27251 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
27252 * include/grub/misc.h (grub_halt): Declare as noreturn.
27253 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
27254 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
27255 (UART_ENABLE_FIFO_TRIGGER1): New definition.
27256 (UART_ENABLE_DTRRTS): Likewise.
27257 (UART_ENABLE_MODEM): Removed.
27258 (UART_ENABLE_OUT2): New const.
27259 * include/grub/term.h (grub_term_register_input_active): New function.
27260 (grub_term_register_output_active): Likewise.
27261 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
27263 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
27264 (init_pci): New function.
27265 (grub_machine_init): Execute platform init when firmware. Init serial.
27266 (grub_halt): Implement.
27267 (grub_exit): Likewise.
27268 (grub_reboot): Likewise.
27269 * term/serial.c (serial_hw_init): Update macros.
27270 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
27271 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
27272 (image_targets): New target mipsel-yeeloong-flash.
27273 (generate_image): Support IMAGE_YEELOONG_FLASH.
27274 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
27275 (grub_video_sm712_setup): Init card.
27276 (grub_video_sm712_set_palette): Removed.
27277 * video/sm712_init.c: New file.
27279 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
27281 * Makefile.in (install-local): Temporarily prepend $(builddir) to
27282 PATH when running help2man and then run it on the unadorned
27283 executable names, rather than passing $(builddir)/* paths to
27284 help2man. This avoids the build directory ending up in generated
27287 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27289 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
27290 to avoid accidents when debugging with 'sh -x'.
27291 * util/grub-mkrescue.in: Likewise.
27292 * util/grub.d/00_header.in: Likewise.
27293 * util/grub.d/10_hurd.in: Likewise.
27294 * util/grub.d/10_kfreebsd.in: Likewise.
27295 * util/grub.d/10_linux.in: Likewise.
27296 * util/grub.d/10_netbsd.in: Likewise.
27297 * util/grub.d/10_windows.in: Likewise.
27298 * util/grub.d/20_linux_xen.in: Likewise.
27299 * util/grub.d/30_os-prober.in: Likewise.
27300 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27302 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27304 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
27305 last character in the buffer.
27306 Reported by: Vladimir Serbinenko.
27308 2010-06-29 Robert Millan <rmh@gnu.org>
27310 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
27311 (Command-line and menu entry commands): Document `badram' command.
27313 2010-06-28 Robert Millan <rmh@gnu.org>
27315 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
27316 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
27317 command using ${GRUB_BADRAM} as parameter.
27319 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27321 * docs/grub.texi (Device map): New section.
27322 (Themes): New section (stub).
27323 * Makefile.in (docs/grub.info): The info documentation now builds
27324 without errors. Make sure it stays that way.
27326 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27328 Use normal parser for menu entries.
27329 Reported by: Thomas Frauendorfer
27331 * include/grub/parser.h (grub_parser_execute): Don't export.
27332 * normal/menu.c (grub_menu_execute_entry_real): New function.
27333 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
27335 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27337 * docs/grub.texi (Embedded configuration): New section (replacing
27338 old "Preset Menu" stub).
27339 (Images): New section.
27340 (configfile): Note that any menu entries defined in `file' are shown
27343 2010-06-28 Josh Triplett <josh@joshtriplett.org>
27345 * mmap/i386/pc/mmap_helper.S: Set CF on return.
27347 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27349 * util/grub-install.in: Add --debug-image= option.
27351 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27353 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
27356 * util/deviceiter.c (check_device): Rename to ...
27357 (check_device_readable_unique): ... this. Update all callers.
27358 Maintain and check a list of which devices (by canonicalized name)
27359 have already been seen.
27360 (clear_seen_devices): New function.
27361 (compare_file_names) [__linux__]: New function.
27362 (grub_util_iterate_devices): Clear the list of seen devices on exit
27363 and (just in case) on entry.
27364 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
27365 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
27366 seen-devices list, superseded by general code in check_device.
27368 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27370 * commands/cat.c (options): New variable.
27371 (grub_cmd_cat): Parse options. If the --dos option is given, print
27372 DOS-style "\r\n" line endings as simple newlines (Debian bug
27374 (GRUB_MOD_INIT): Use extcmd.
27375 (GRUB_MOD_FINI): Likewise.
27376 * docs/grub.texi (cat): Document --dos.
27378 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27380 XEN with Linux grub-mkconfig support.
27382 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
27383 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
27384 GRUB_CMDLINE_XEN_DEFAULT.
27385 * util/grub.d/20_linux_xen.in: New file.
27387 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27389 Initialise VGA video on qemu ourselves.
27391 * boot/i386/qemu/boot.S: Don't call 0xc000.
27392 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
27393 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
27394 (kernel_img_HEADERS): Add pci.h.
27395 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
27396 * configure.ac: Force unifont on qemu and yeeloong.
27397 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
27398 (grub_vga_palette_write): Use correct register.
27399 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
27400 Call grub_qemu_init_cirrus.
27401 * kern/i386/qemu/init.c: New file.
27402 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
27404 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
27406 2010-06-26 Pavel Roskin <proski@gnu.org>
27408 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
27411 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27413 * docs/grub.texi (Simple configuration): Explain that
27414 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
27415 set to `true' to disable their respective recovery entries, not
27418 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27420 Make the `source' command slightly faster.
27422 * normal/main.c (grub_normal_execute): Don't re-read list files when
27425 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27427 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
27428 field position and mask size to red fields from mode_info, not
27430 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
27431 Remove redundant tag->common.framebuffer_type assignment.
27432 Reported by: Seth Goldberg.
27434 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27436 Sync up other versions of the Linux loader with Robert Millan's
27437 change of 2010-01-09, "Make loader output a bit more user-friendly".
27439 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
27441 (grub_cmd_linux): Likewise.
27442 (grub_cmd_initrd): Likewise.
27443 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
27444 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
27446 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
27448 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
27449 larger than MEMORY_MAP_SIZE.
27451 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
27453 Fix parallel build.
27455 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
27457 * script/parser.y: #include grub_script.tab.h header.
27459 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27461 Support >3GiB and <16MiB RAM in i386-qemu.
27463 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
27464 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
27465 (grub_lower_mem): Removed.
27466 (grub_upper_mem): Likewise.
27467 (mem_size): Made static.
27468 (above_4g): New variable.
27469 (grub_machine_mmap_init): Detect small mem_size and above_4g.
27470 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
27473 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27475 Cirrus 5446 and Bochs video cards support.
27477 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
27479 (video_cirrus_mod_SOURCES): New variable.
27480 (video_cirrus_mod_CFLAGS): Likewise.
27481 (video_cirrus_mod_LDFLAGS): Likewise.
27482 (video_bochs_mod_SOURCES): Likewise.
27483 (video_bochs_mod_CFLAGS): Likewise.
27484 (video_bochs_mod_LDFLAGS): Likewise.
27485 * include/grub/vga.h: New file.
27486 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
27487 (grub_video_fb_set_page_t): New type.
27488 (grub_video_fb_setup): New prototype.
27489 (grub_video_fb_swap_buffers): Likewise.
27490 (grub_video_fb_get_info_and_fini): Likewise.
27491 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
27492 (CRTC_DATA_PORT): Likewise.
27493 (CRTC_CURSOR): Likewise.
27494 (CRTC_CURSOR_ADDR_HIGH): Likewise.
27495 (CRTC_CURSOR_ADDR_LOW): Likewise.
27496 (CRTC_CURSOR_DISABLE): Likewise.
27497 (update_cursor): Use grub_vga_cr_write.
27498 (grub_vga_text_setcursor): Likewise.
27499 * video/bochs.c: New file.
27500 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
27501 (palette): Likewise.
27502 (palette_size): Likewise.
27503 (framebuffer): New variable.
27504 (grub_video_fb_init): Use 'framebuffer'.
27505 (grub_video_fb_fini): Likewise.
27506 (grub_video_fb_get_info): Likewise.
27507 (grub_video_fb_get_palette): Likewise.
27508 (grub_video_fb_set_palette): Likewise.
27509 (grub_video_fb_set_viewport): Likewise.
27510 (grub_video_fb_get_viewport): Likewise.
27511 (grub_video_fb_map_color): Likewise.
27512 (grub_video_fb_map_rgb): Likewise.
27513 (grub_video_fb_map_rgba): Likewise.
27514 (grub_video_fb_unmap_color): Likewise.
27515 (grub_video_fb_unmap_color_int): Likewise.
27516 (grub_video_fb_fill_rect): Likewise.
27517 (grub_video_fb_blit_bitmap): Likewise.
27518 (grub_video_fb_blit_render_target): Likewise.
27519 (grub_video_fb_scroll): Likewise.
27520 (grub_video_fb_create_render_target): Likewise.
27521 (grub_video_fb_doublebuf_blit_init): Likewise.
27522 (grub_video_fb_set_active_render_target): Handle doublebuffering.
27523 (doublebuf_pageflipping_update_screen): New function.
27524 (doublebuf_pageflipping_init): Likewise.
27525 (grub_video_fb_setup): Likewise.
27526 (grub_video_fb_swap_buffers): Likewise.
27527 (grub_video_fb_get_info_and_fini): Likewise.
27528 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
27530 (doublebuf_pageflipping_commit): Restructured into ...
27531 (doublebuf_pageflipping_set_page): ... this.
27532 (doublebuf_pageflipping_update_screen): Removed.
27533 (doublebuf_pageflipping_init): Likewise.
27534 (double_buffering_init): Likewise.
27535 (grub_video_vbe_setup): Use grub_video_fb_setup.
27536 (grub_video_vbe_swap_buffers): Removed.
27537 (grub_video_vbe_set_active_render_target): Likewise.
27538 (grub_video_vbe_get_active_render_target): Likewise.
27539 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
27540 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
27541 grub_video_fb_set_active_render_target and
27542 grub_video_fb_get_active_render_target.
27543 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
27544 (SEQUENCER_DATA_PORT): Likewise.
27545 (MAP_MASK_REGISTER): Likewise.
27546 (CRTC_ADDR_PORT): Likewise.
27547 (CRTC_DATA_PORT): Likewise.
27548 (START_ADDR_HIGH_REGISTER): Likewise.
27549 (START_ADDR_LOW_REGISTER): Likewise.
27550 (GRAPHICS_ADDR_PORT): Likewise.
27551 (GRAPHICS_DATA_PORT): Likewise.
27552 (READ_MAP_REGISTER): Likewise.
27553 (INPUT_STATUS1_REGISTER): Likewise.
27554 (INPUT_STATUS1_VERTR_BIT): Likewise.
27555 (get_map_mask): Use grub_vga_sr_read.
27556 (set_map_mask): Use grub_vga_sr_write.
27557 (set_read_map): Use grub_vga_gr_write.
27558 (set_start_address): Use grub_vga_cr_write.
27559 * video/sm712.c (framebuffer): Remove leftover fields.
27561 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
27563 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
27564 setting GRUB_VIDEO_BACKEND. Make it available as a user override
27565 instead. Replace the gfxterm backend check with a check that
27566 ${GRUB_PREFIX}/video.lst is non-empty.
27567 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
27569 (load_video): New generated function. Call it before loading
27570 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
27571 * util/grub.d/10_linux.in (linux_entry): Call load_video.
27572 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
27573 * docs/grub.texi (Simple configuration): Document
27574 GRUB_VIDEO_BACKEND.
27576 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27578 Use video functions in linux and xnu loaders.
27580 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
27581 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
27582 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
27583 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
27584 loader/i386/pc/linux.c.
27585 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
27586 (find_line_len): Removed.
27587 (find_framebuf): Likewise.
27588 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
27589 * loader/i386/efi/xnu.c: Removed.
27590 * loader/i386/pc/xnu.c: Moved from here...
27591 * loader/i386/xnu.c: ...here.
27593 Enable priorities in video drivers.
27595 * include/grub/video.h (grub_video_adapter_prio_t): New type.
27596 (grub_video_adapter): New field prio.
27597 (grub_video_register): Respect prio when inserting.
27598 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
27599 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
27600 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
27601 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
27602 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
27603 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
27604 * video/sm712.c (grub_video_sm712_adapter): Likewise.
27608 * include/grub/video.h (grub_video_driver_id_t): New value
27609 GRUB_VIDEO_DRIVER_SDL.
27610 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
27612 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27614 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
27615 argument to printf.
27616 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27618 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27620 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
27621 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27623 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27625 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
27626 directly, and recommend grub-install instead.
27627 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27629 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27631 Fix i386-pc prefix handling with nested partitions (Debian bug
27632 #585068). Note that the case where the core image is booted using
27633 multiboot and relocated from its original location still requires
27636 * kern/i386/pc/init.c (make_install_device): If the prefix starts
27637 with "(,", fill the boot drive in between those two characters, but
27638 expect that a full partition specification including partition map
27640 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
27641 specified, write a prefix without the drive name but including a
27642 full partition specification.
27644 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
27646 * util/grub-mkconfig.in: Ignore non-option arguments, for
27647 compatibility with older versions (before 2010-06-12) which did the
27648 same. In particular, this makes it easier to ship an update-grub
27649 wrapper which is compatible with that used with GRUB Legacy (Debian
27652 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27654 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
27655 for manual page generation.
27657 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27659 * po/POTFILES: Remove leftover commands/handler.c.
27661 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27663 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
27664 left this script non-functional.
27666 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27668 * docs/man/grub-emu.h2m: New file.
27670 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
27672 * docs/grub.texi (Commands): Document reduced command set in rescue
27674 (cpuid): New section.
27676 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
27678 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
27679 new partition naming style.
27680 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
27682 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
27684 Add "-o grub.iso" like cmdline options support.
27686 * util/grub-install.in: Improve cmdline option parsing.
27687 * util/grub-mkconfig.in: Likewise.
27688 * util/grub-mkrescue.in: Likewise.
27689 * util/grub-reboot.in: Likewise.
27690 * util/grub-set-default.in: Likewise.
27691 * util/i386/efi/grub-install.in: Likewise.
27692 * util/ieee1275/grub-install.in: Likewise.
27693 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27695 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27697 * .bzrignore: Ignore 41_custom.
27699 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27701 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
27703 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27705 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
27706 prototype declarations.
27708 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
27709 generating fs, partmap, and video lists.
27710 * include/grub/fs.h (grub_fs_register): Omit prototype if
27711 GRUB_LST_GENERATOR is defined.
27712 * include/grub/partition.h (grub_partition_map_register): Likewise.
27713 * include/grub/video.h (grub_video_register): Likewise.
27715 2010-06-12 Javier Martín <lordhabbit@gmail.com>
27717 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
27719 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27721 * util/grub-mkrescue.in: Support --xorriso argument.
27723 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27725 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
27726 Suggested by: Thomas Schmitt.
27728 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27730 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
27731 Suggested by: Thomas Schmitt.
27733 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27735 custom.cfg support.
27737 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
27738 * util/grub.d/41_custom.in: New file.
27740 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27742 * util/grub-mkrescue.in (make_image): Remove sh module, which has
27743 been merged back into normal.
27745 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27747 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
27748 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
27750 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27752 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
27753 when generating manual pages.
27754 * docs/man/grub-bin2h.h2m: New file.
27755 * docs/man/grub-editenv.h2m: New file.
27756 * docs/man/grub-fstest.h2m: New file.
27757 * docs/man/grub-install.h2m: New file.
27758 * docs/man/grub-macho2img.h2m: New file.
27759 * docs/man/grub-mkconfig.h2m: New file.
27760 * docs/man/grub-mkdevicemap.h2m: New file.
27761 * docs/man/grub-mkfont.h2m: New file.
27762 * docs/man/grub-mkimage.h2m: New file.
27763 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
27764 * docs/man/grub-mkrelpath.h2m: New file.
27765 * docs/man/grub-mkrescue.h2m: New file.
27766 * docs/man/grub-ofpathname.h2m: New file.
27767 * docs/man/grub-pe2elf.h2m: New file.
27768 * docs/man/grub-probe.h2m: New file.
27769 * docs/man/grub-reboot.h2m: New file.
27770 * docs/man/grub-script-check.h2m: New file.
27771 * docs/man/grub-set-default.h2m: New file.
27772 * docs/man/grub-setup.h2m: New file.
27774 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
27776 Use FOR_* macros instead of *_iterate whenever possible.
27778 * commands/handler.c: Removed.
27779 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
27780 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
27781 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27782 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
27783 (grub_probe_SOURCES): Remove kern/parser.c.
27784 (util/grub-script-check.c_DEPENDENCIES): Removed.
27785 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
27786 and grub_script_check_init.c.
27787 (grub_script_check_init.lst): Removed.
27788 (grub_script_check_init.h): Likewise.
27789 (grub_script_check_init.c): Likewise.
27790 (pkglib_MODULES): Remove handler.mod and sh.mod.
27791 (handler_mod_SOURCES): Removed.
27792 (handler_mod_CFLAGS): Likewise.
27793 (handler_mod_LDFLAGS): Likewise.
27794 (normal_mod_SOURCES): Remove normal/handler.c.
27795 Add script/main.c, script/script.c, script/execute.c,
27796 script/function.c, script/lexer.c, grub_script.tab.c
27797 and grub_script.yy.c.
27798 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27799 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27800 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27801 (grub_setup_SOURCES): Remove kern/parser.c.
27802 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27803 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27804 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27805 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27806 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27807 (grub_setup_SOURCES): Remove kern/parser.c.
27808 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27809 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27810 * include/grub/command.h (grub_command_iterate): Removed.
27811 (FOR_COMMANDS): New macro.
27812 * include/grub/dl.h (grub_dl): New member next.
27813 (grub_dl_iterate): Removed.
27814 (grub_dl_head): New variable declaration.
27815 (FOR_DL_MODULES): New macro.
27816 * include/grub/fs.h: Include list.h.
27817 (grub_fs): Make next first element.
27818 (grub_fs_list): New variable declaration.
27819 (grub_fs_register): Make inline.
27820 (grub_fs_unregister): Likewise.
27821 (grub_fs_iterate): Removed.
27822 (FOR_FILESYSTEMS): New macro.
27823 * include/grub/handler.h: Removed.
27824 * include/grub/list.h (grub_list_hook_t): Removed.
27825 (grub_list_test_t): Likewise.
27826 (grub_list_pop): Likewise.
27827 (grub_list_iterate): Likewise.
27828 (grub_list_insert): Likewise.
27829 (FOR_LIST_ELEMENTS): New macro.
27830 * include/grub/parser.h (grub_parser_class): Removed.
27831 (grub_parser_register): Likewise.
27832 (grub_parser_unregister): Likewise.
27833 (grub_parser_get_current): Likewise.
27834 (grub_parser_set_current): Likewise.
27835 (grub_register_rescue_parser): Likewise.
27836 (grub_rescue_parse_line): New function.
27837 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27838 * include/grub/script_sh.h (grub_script_function_list): New variable
27840 (FOR_SCRIPT_FUNCTIONS): New macro.
27841 (grub_script_function_iterate): Removed.
27842 (grub_normal_parse_line): New prototype.
27843 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27844 (FOR_DISABLED_TERM_INPUTS): Likewise.
27845 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27846 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27847 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27849 (grub_video_register): Inline.
27850 (grub_video_unregister): Likewise.
27851 (grub_video_adapter_list): New variable declaration.
27852 (grub_video_iterate): Removed.
27853 (FOR_VIDEO_ADAPTERS): New macro.
27854 * kern/dl.c (grub_dl_list): Removed. All users updated.
27855 (grub_dl_iterate): Removed.
27856 * kern/fs.c (grub_fs_list): Make global.
27857 (grub_fs_register): Removed.
27858 (grub_fs_unregister): Likewise.
27859 (grub_fs_iterate): Likewise.
27860 * kern/handler.c: Removed.
27861 * kern/list.c (grub_list_pop): Removed.
27862 (grub_list_iterate): Likewise.
27863 (grub_list_insert): Likewise.
27864 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27865 (grub_prio_list_insert): Don't use grub_list_insert.
27866 * kern/main.c (grub_register_rescue_parser): Don't call
27867 grub_register_rescue_parser.
27868 * kern/parser.c (grub_parser_class): Removed.
27869 (grub_parser_execute): Use grub_rescue_parse_line.
27870 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
27871 (grub_rescue_parser): Removed.
27872 (grub_register_rescue_parser): Likewise.
27873 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
27874 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
27875 (grub_auth_check_authentication): Likewise.
27876 * normal/completion.c (iterate_command): Removed.
27877 (grub_normal_do_completion): Use FOR_COMMANDS.
27878 * normal/handler.c: Removed.
27879 * normal/main.c (read_config_file): Remove parser changing.
27880 (grub_normal_execute): Don't call read_handler_list.
27881 (grub_normal_read_line_real): Statically allocate prompt.
27882 (grub_cmdline_run): Use grub_normal_parse_line.
27883 (GRUB_MOD_FINI): Don't call free_handler_list.
27884 * normal/menu_entry.c (run): Likewise.
27885 * script/function.c (grub_script_function_list): Make global.
27886 (grub_script_function_iterate): Removed.
27887 * script/main.c (grub_normal_parse_line): Make global.
27888 (grub_sh_parser): Removed.
27889 (GRUB_MOD_INIT): Likewise.
27890 (GRUB_MOD_FINI): Likewise.
27891 * tests/lib/functional_test.c (grub_functional_test): Use
27893 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
27894 (grub_test_run): Use FOR_LIST_ELEMENTS.
27895 * tests/lib/unit_test.c (main): Likewise.
27896 * util/deviceiter.c (grub_util_iterate_devices): Don't use
27898 * util/grub-fstest.c (grub_term_input_class): Removed.
27899 (grub_term_output_class): Likewise.
27900 * util/grub-probe.c: Likewise.
27901 * util/i386/pc/grub-setup.c: Likewise.
27902 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27903 * util/grub-script-check.c (main): Don't call grub_init_all and
27905 * video/video.c (grub_video_adapter_list): Make global.
27906 (grub_video_register): Removed.
27907 (grub_video_unregister): Likewise.
27908 (grub_video_iterate): Likewise.
27910 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
27912 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
27913 reported by Henrique Ferreiro.
27915 2010-06-09 Robert Millan <rmh@gnu.org>
27917 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
27918 ones, when both are available.
27920 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27922 Make --version uniform and avoid hard-coded program name.
27924 * util/grub-mkimage.c (main): Use `program_name' instead of
27926 * util/i386/pc/grub-setup.c (main): Likewise.
27927 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
27928 * util/grub-install.in: Save the basename of $0 in $self, and use the
27929 latter in informational messages. Use the same format for --version
27930 as the binary programs.
27931 * util/grub-mkconfig.in: Likewise.
27932 * util/grub-mkrescue.in: Likewise.
27933 * util/grub-reboot.in: Likewise.
27934 * util/grub-set-default.in: Likewise.
27935 * util/i386/efi/grub-install.in: Likewise.
27936 * util/ieee1275/grub-install.in: Likewise.
27937 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27939 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27941 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
27942 embedding area. Use <= instead of == when checking for non-emptiness.
27944 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27946 * configure.ac: Add `.' to the directories searched for unifont.
27948 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27950 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
27953 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27955 * docs/grub.texi (History): Expand to cover GRUB 2.
27956 (Serial terminal): Refer to `terminal_input' and `terminal_output'
27957 commands, not `terminal'.
27958 (serial): Likewise.
27959 (terminal_input): New section.
27960 (terminal_output): New section.
27961 (uppermem): New section (stub).
27962 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
27964 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27966 * docs/grub.texi (Security): Menu entries are unrestricted by
27967 default, not restricted to superusers as I had previously thought.
27968 Reword to account for this.
27970 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27972 * kern/emu/misc.c (device_mapper_null_log): New function.
27973 (grub_device_mapper_supported): New function.
27974 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
27976 * kern/emu/hostdisk.c (find_partition_start): Check whether
27977 device-mapper is supported before trying to use it.
27978 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
27980 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27982 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
27983 (File name syntax): Likewise.
27984 (help): --all is no longer supported in GRUB 2. Be more precise
27985 about pattern matching.
27987 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27989 * normal/completion.c (grub_normal_do_completion): When completing
27990 arguments to "set" and the current word contains an equals sign,
27991 skip to after the equals sign before starting completion.
27993 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27995 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
27997 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27999 * docs/grub.texi (Network): New section.
28000 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
28001 `(nd)' as in GRUB Legacy.
28002 (pxe_unload): New section.
28004 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28006 * docs/grub.texi (Troubleshooting): `echo' is not usually available
28007 in the rescue shell, so recommend using `set' instead. Thanks,
28010 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28012 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
28013 (password): New section.
28014 (password_pbkdf2): New section.
28015 (search): New section.
28016 (Security): New section.
28017 (Troubleshooting): New section, currently very incomplete.
28018 (Invoking grub-mkpasswd-pbkdf2): New section.
28019 (Internals): New section, currently very incomplete.
28021 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28023 * util/grub.d/00_header.in: Add some more quoting (of
28024 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
28026 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
28028 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28030 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
28031 to `count', fixing variable shadowing that broke the -c option.
28033 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
28035 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
28036 in case they contain spaces.
28038 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
28040 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
28041 "part_" to partmap module names, in line with grub-install.
28042 Reported by: Jindřich Makovička (Debian bug #584426).
28044 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
28046 * util/grub-mkimage.c: Make target-related error messages slightly
28047 more helpful; -O talks about "format". Explicitly point to the use
28048 of -O if no target is specified.
28049 Reported by: Didier Raboud (Debian bug #584415).
28051 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
28053 * INSTALL: Document several build requirements for optional features
28054 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
28056 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
28058 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
28059 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
28060 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
28062 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28064 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
28065 Thanks to Jordan Uggla for spotting this.
28067 2010-06-02 Aleš Nesrsta <starous@volny.cz>
28069 Finally make USB usable.
28071 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
28072 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
28073 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
28074 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
28075 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
28076 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
28077 (GRUB_OHCI_FSMPS): Likewise.
28078 (GRUB_OHCI_PERIODIC_START): Likewise.
28079 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
28080 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
28081 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
28082 (GRUB_OHCI_SET_PORT_RESET): Likewise.
28083 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
28084 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
28085 (grub_ohci_transaction): Likewise.
28086 (grub_ohci_transfer): Improve condition detection algorithms.
28087 Handle toggle property. Program the transactions correctly.
28088 Improve error handling. Various important fixups.
28089 (grub_ohci_portstatus): Put register writes in right order.
28090 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
28091 (grub_uhci_transfer): Don't show "failed" message on success.
28092 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
28094 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
28095 determine its size.
28096 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
28097 before initialization is completed. Use IN direction for empty
28098 transfers. Use last_trans and compute toggle.
28099 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
28100 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
28101 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
28102 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
28103 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
28104 (grub_usb_device): Increase toggle to 256.
28105 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
28106 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
28107 GRUB_USBMS_SUBCLASS_SFF8070.
28108 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
28109 (grub_scsi_inquiry): New member page and alloc_length.
28110 (grub_scsi_request_sense): New structure.
28111 (grub_scsi_request_sense_data): Likewise.
28112 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
28114 * disk/scsi.c (grub_scsi_request_sense): New function.
28115 (grub_scsi_test_unit_ready): Likewise.
28116 (grub_scsi_inquiry): Fill new fields.
28117 (grub_scsi_read_capacity): Likewise.
28118 (grub_scsi_read10): Add request sense at the end.
28119 (grub_scsi_read12): Likewise.
28120 (grub_scsi_write10): Likewise.
28121 (grub_scsi_write12): Likewise.
28122 (grub_scsi_open): Add Test Unit Ready.
28123 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
28124 Support additional subclasses. Con't clear halt yet. Activate the
28125 proper config. Calculate LUNs correctly.
28126 (grub_usbms_transfer): Various important fixups.
28128 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28130 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
28131 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
28132 (grub_ohci_fini_hw): New function.
28133 (grub_ohci_restore_hw): Likewise.
28134 (GRUB_MOD_INIT(ohci)): Register preboot hook.
28135 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
28136 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
28138 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28140 Dedicated DMA allocations.
28142 * bus/pci.c (grub_memalign_dma32): New function
28143 (grub_dma_free): Likewise.
28144 (grub_dma_get_virt): Likewise.
28145 (grub_dma_get_phys): Likewise.
28146 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
28147 (grub_ohci_pci_iter): Use dma32_alloc.
28148 (grub_ohci_transfer): Likewise.
28149 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
28150 (grub_usb_bulk_readwrite): Likewise.
28151 * include/grub/pci.h: Add declarations.
28153 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28157 * bus/cs5536.c: New file.
28158 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
28159 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
28160 (cs5536_mod_SOURCES): New variable.
28161 (cs5536_mod_CFLAGS): Likewise.
28162 (cs5536_mod_LDFLAGS): Likewise.
28163 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
28165 (kernel_img_SOURCES): Add bus/cs5536.c.
28166 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
28168 (usb_mod_SOURCES): New variable.
28169 (usb_mod_CFLAGS): New variable.
28170 (usb_mod_LDFLAGS): New variable.
28171 (usbtest_mod_SOURCES): New variable.
28172 (usbtest_mod_CFLAGS): New variable.
28173 (usbtest_mod_LDFLAGS): New variable.
28174 (ohci_mod_SOURCES): New variable.
28175 (ohci_mod_CFLAGS): New variable.
28176 (ohci_mod_LDFLAGS): New variable.
28177 (usbms_mod_SOURCES): New variable.
28178 (usbms_mod_CFLAGS): New variable.
28179 (usbms_mod_LDFLAGS): New variable.
28180 (usb_keyboard_mod_SOURCES): New variable.
28181 (usb_keyboard_mod_CFLAGS): New variable.
28182 (usb_keyboard_mod_LDFLAGS): New variable.
28183 * include/grub/smbus.h: New file.
28184 * include/grub/cs5536.h: New file.
28186 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28188 * util/grub.d/00_header.in: Add safety check to make sure that
28189 ${locale_dir} exists before trying to probe it.
28191 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28193 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
28194 per the GNU Coding Standards; this is now too obscure to be worth
28197 (chainloader): Remove cross-reference to `SCO UnixWare'.
28199 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28201 * docs/grub.texi (Chain-loading): New section.
28202 (DOS/Windows): New section, borrowed from GRUB Legacy with details
28203 adjusted for GRUB 2.
28204 (SCO UnixWare): Likewise.
28206 (chainloader): Add reference to `Block list syntax'.
28207 (drivemap): New section.
28208 (parttool): New section.
28210 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28212 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
28214 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
28215 (Installing GRUB using grub-install): Remove reference to the grub
28216 shell; mention `grub-mkimage' and `grub-setup' instead.
28217 (Invoking grub-install): Likewise.
28218 (Interface): Add reference to `Menu entry editor'.
28219 (serial): Remove `--device' option.
28221 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28223 * docs/grub.texi (Configuration): New section, documenting
28224 configuration file generation using grub-mkconfig. I've left a slot
28225 for documenting the full shell scripting format but have not yet
28226 started on writing that up.
28227 (Invoking grub-mkconfig): New section.
28229 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28231 * docs/grub.texi (direntry): Remove grub-terminfo reference.
28232 (GNU GRUB manual): Likewise.
28233 (General commands): Update description of `terminfo' for GRUB 2.
28235 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28237 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
28238 (GRUB_MOD_INIT): Fix capitalisation.
28239 * docs/grub.texi (Command-line and menu entry commands): Document
28240 gettext and gptsync commands.
28242 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28244 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
28245 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
28247 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
28249 Add btrfs probing support, currently only in the single-device case.
28251 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
28253 (grub_guess_root_device): Call find_root_device_from_mountinfo
28254 before looking in /dev.
28256 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28258 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
28259 GRUB_DISK_SIZE_UNKNOWN.
28260 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
28262 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
28264 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
28265 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
28266 corrupted or not synced properly.
28268 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28270 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
28271 Reported by: Seth Goldberg.
28273 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28275 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
28277 Reported by: Seth Goldberg.
28279 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28281 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
28282 Reported by: Seth Goldberg.
28284 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28286 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
28287 64-bit address as signed on MIPS.
28289 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28291 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
28292 to the empty string.
28294 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
28296 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
28298 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
28299 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
28300 * kern/misc.c (__enable_execute_stack): Disable on
28303 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28305 Make grub-probe work with symbolic links under /dev/mapper as well
28306 as with real block devices. The Linux world seems to be (at best)
28307 in transition here, and GRUB shouldn't get caught in the middle.
28309 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
28312 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28314 * util/grub-script-check.c (main): Ensure defined behaviour on empty
28315 input files (in which case exit zero).
28317 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28319 * kern/emu/misc.c (canonicalize_file_name): realpath can still
28320 return NULL for various reasons even if it has a maximum-length
28321 buffer: for example, there might be a symlink loop, or the path
28322 might exceed PATH_MAX. If this happens, return NULL.
28324 2010-05-27 Robert Millan <rmh@gnu.org>
28326 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
28327 partmap module to handle cross-partmap setups.
28328 Reported by Orestes Mas. Gràcies!
28330 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28332 * util/grub-mkrescue.in: Initialise override_dir rather than
28333 assuming that it's unset or empty in the environment.
28335 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
28337 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
28338 variable index into p_index to suppress a warning with -Wshadow.
28340 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
28342 * INSTALL: Added flex >= 2.5.35 requirement.
28344 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28346 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
28348 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28352 * commands/i386/cmostest.c: New file.
28353 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
28354 (cmostest_mod_SOURCES): New variable.
28355 (cmostest_mod_CFLAGS): Likewise.
28356 (cmostest_mod_LDFLAGS): Likewise.
28357 * conf/i386-pc.rmk: Likewise.
28358 * docs/grub.texi (Vendor power-on keys): New section.
28359 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
28360 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
28361 and GRUB_BUTTON_CMOS_ADDRESS.
28362 * util/grub.d/00_header.in: Handle powering-on by separate button.
28364 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28366 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
28367 Removed drawing_scrollbar argument. All users updated
28369 Reported by Jo Shields
28371 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28373 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
28374 buffer since gfxterm handles double repaint.
28376 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28378 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
28379 * term/gfxterm.c (real_scroll): Likewise.
28381 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28383 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
28384 before calling BIOS.
28386 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28388 * include/grub/i18n.h: Always enable grub_gettext.
28390 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28392 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
28393 partition naming style.
28395 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
28397 * util/grub-mkconfig.in: Fix handling of -o so that it works when
28398 not the first option.
28400 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28402 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
28404 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28406 * util/misc.c: Move inclusion of <limits.h> to ...
28407 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
28409 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
28411 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
28412 Fix merge error in NetBSD code.
28413 (find_partition_start) [__NetBSD__]: Likewise.
28415 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
28417 Fix grub-mkrescue usage unit testing.
28419 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
28421 2010-05-18 Christian Franke <franke@computer.org>
28423 * util/grub.d/10_windows.in: Use path names instead of
28424 drive letters to prevent warning from Cygwin 1.7.
28425 Add drivemap command to menuentry if needed.
28427 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
28429 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
28430 gnumach and gnumach.gz.
28432 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28434 * include/grub/i18n.h (gettext): Inline instead of using #define.
28435 (grub_gettext): Likewise.
28438 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28440 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
28441 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
28442 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
28443 (main): Add a slash after pkglibdirroot.
28445 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28447 * util/grub-install.in: Add missing "in" keyword.
28449 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28451 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
28452 Reported by: Seth Goldberg.
28454 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28456 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
28458 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28460 * configure.ac: Check for Linux device-mapper support.
28462 * util/hostdisk.c (device_is_mapped): New function.
28463 (find_partition_start): New function, partly broken out from
28464 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
28465 device-mapper support added.
28466 (linux_find_partition): Use find_partition_start.
28467 (convert_system_partition_to_system_disk): Add `st' argument.
28468 Support Linux /dev/mapper/* devices if device-mapper support is
28469 available; only DM-RAID devices are understood at present.
28470 (find_system_device): Add `st' argument. Pass it to
28471 convert_system_partition_to_system_disk.
28472 (grub_util_biosdisk_get_grub_dev): Pass stat result to
28473 find_system_device and convert_system_partition_to_system_disk. Use
28474 find_partition_start.
28476 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
28477 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
28478 * util/deviceiter.c [__linux__]: Define MINOR.
28479 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
28480 * util/mkdevicemap.c (grub_putchar): New function.
28481 (grub_getkey): New function.
28482 (grub_refresh): New function.
28483 (main): Set debug=all if -v -v is used.
28485 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28487 Fix build with non-GNU libcs.
28489 * util/misc.c (canonicalize_file_name): Move to ...
28490 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
28491 grub_make_system_path_relative_to_its_root.
28493 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28495 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
28496 we handle finding grub-mkimage. Default to finding grub-mkimage in
28497 ${bindir} with program_transform_name applied, and provide a
28498 --grub-mkimage option to override this.
28500 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28502 Remove grub-mkisofs.
28504 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
28505 (grub_mkisofs_SOURCES): Removed.
28506 (grub_mkisofs_CFLAGS): Removed.
28507 * util/mkisofs/defaults.h: Removed.
28508 * util/mkisofs/eltorito.c: Likewise.
28509 * util/mkisofs/exclude.h: Likewise.
28510 * util/mkisofs/hash.c: Likewise.
28511 * util/mkisofs/include/: Likewise.
28512 * util/mkisofs/include/fctldefs.h: Likewise.
28513 * util/mkisofs/include/mconfig.h: Likewise.
28514 * util/mkisofs/include/prototyp.h: Likewise.
28515 * util/mkisofs/include/statdefs.h: Likewise.
28516 * util/mkisofs/iso9660.h: Likewise.
28517 * util/mkisofs/joliet.c: Likewise.
28518 * util/mkisofs/match.c: Likewise.
28519 * util/mkisofs/match.h: Likewise.
28520 * util/mkisofs/mkisofs.c: Likewise.
28521 * util/mkisofs/mkisofs.h: Likewise.
28522 * util/mkisofs/msdos_partition.h: Likewise.
28523 * util/mkisofs/multi.c: Likewise.
28524 * util/mkisofs/name.c: Likewise.
28525 * util/mkisofs/rock.c: Likewise.
28526 * util/mkisofs/tree.c: Likewise.
28527 * util/mkisofs/write.c: Likewise.
28529 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28531 Unify grub-mkimage accross platforms.
28533 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
28534 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
28535 (grub_mkelfimage_SOURCES): Removed.
28536 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
28537 (util/grub-mkimage.c_DEPENDENCIES): .. this.
28538 (bin_UTILITIES): Add grub-mkimage.
28539 (grub_mkimage_SOURCES): New variable.
28540 (kernel_img_HEADERS): Remove machine/kernel.h.
28541 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
28542 (pkglib_PROGRAMS): Add kernel.img.
28543 (kernel_img_HEADERS): Add machine/kernel.h.
28544 (kernel_img_FORMAT): Removed.
28545 (bin_UTILITIES): Remove grub-mkimage.
28546 (grub_mkimage_SOURCES): Removed.
28547 (grub_mkimage_CFLAGS): Likewise.
28548 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28549 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
28550 (pkglib_PROGRAMS): Add kernel.img.
28551 (bin_UTILITIES): Remove grub-mkimage.
28552 (grub_mkimage_SOURCES): Removed.
28553 (grub_mkimage_CFLAGS): Likewise.
28554 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28555 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
28556 (pkglib_PROGRAMS): Add kernel.img.
28557 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
28558 (pkglib_PROGRAMS): Add kernel.img.
28559 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
28560 (grub_mkimage_SOURCES): Removed.
28561 (grub_mkimage_CFLAGS): Likewise.
28562 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28563 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
28564 (pkglib_PROGRAMS): Add kernel.img.
28565 (bin_UTILITIES): Remove grub-mkimage.
28566 (grub_mkimage_SOURCES): Removed.
28567 (grub_mkimage_CFLAGS): Likewise.
28568 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28569 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
28570 (grub_mkimage_SOURCES): Removed.
28571 (grub_mkimage_CFLAGS): Likewise.
28572 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28573 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
28574 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
28575 (grub_pe32_optional_header): ... this.
28576 (grub_pe64_optional_header): ... and this. All users updated.
28577 (GRUB_PE32_PE32_MAGIC): Split into ..
28578 (GRUB_PE32_PE32_MAGIC): .. this.
28579 (GRUB_PE32_PE64_MAGIC): .. and this.
28580 (GRUB_PE32_SIGNATURE_SIZE): New definition.
28581 * include/grub/elf.h (PT_GNU_STACK): New definition.
28582 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
28583 * include/grub/i386/efi/kernel.h: Likewise.
28584 * include/grub/i386/kernel.h: Likewise.
28585 * include/grub/i386/pc/kernel.h: Likewise.
28586 * include/grub/i386/qemu/boot.h: Likewise.
28587 * include/grub/mips/kernel.h: Likewise.
28588 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28589 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28590 * include/grub/powerpc/kernel.h: Likewise.
28591 * include/grub/sparc64/ieee1275/boot.h: Likewise.
28592 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28593 * include/grub/sparc64/kernel.h: Likewise.
28594 * include/grub/x86_64/efi/kernel.h: Likewise.
28595 * include/grub/x86_64/kernel.h: Likewise.
28596 * include/grub/offsets.h: New file.
28597 * include/grub/kernel.h (grub_module_info): Split into ...
28598 (grub_module_info32): ... this.
28599 (grub_module_info64): ... and this.
28600 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
28601 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
28602 (grub_boot_blocklist): Moved from here ...
28603 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
28604 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
28605 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
28606 * include/grub/types.h (grub_target_to_host16): Removed.
28607 (grub_target_to_host32): Likewise.
28608 (grub_target_to_host64): Likewise.
28609 (grub_host_to_target16): Likewise.
28610 (grub_host_to_target32): Likewise.
28611 (grub_host_to_target64): Likewise.
28612 (grub_host_to_target_addr): Likewise.
28614 Support grub-mkrescue for efi, coreboot and qemu.
28616 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
28617 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
28618 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
28619 * util/grub-mkrawimage.c: Moved from here ...
28620 * util/grub-mkimage.c: ... here. All users updated.
28621 (ALIGN_ADDR): Use image_target.
28622 (TARGET_NO_FIELD): New const.
28623 (image_target_desc): New type.
28624 (image_targets): New array.
28625 (grub_target_to_host64): Use image_target.
28626 (grub_target_to_host32): Likewise.
28627 (grub_target_to_host16): Likewise.
28628 (grub_host_to_target64): Likewise.
28629 (grub_host_to_target32): Likewise.
28630 (grub_host_to_target16): Likewise.
28631 (grub_host_to_target_addr): Likewise.
28632 (generate_image): Handle multiimage.
28633 (main): Require -O parameter. All users updated.
28634 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
28635 util/efi/grub-mkimage.c
28636 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
28637 New option --rom-directory.
28639 * util/i386/efi/grub-mkimage.c: Removed.
28640 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
28641 (grub_target_to_host32): Likewise.
28642 (grub_target_to_host64): Likewise.
28643 (grub_host_to_target16): Likewise.
28644 (grub_host_to_target32): Likewise.
28645 (grub_host_to_target64): Likewise.
28646 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
28647 (grub_target_to_host32): Likewise.
28648 (grub_target_to_host64): Likewise.
28649 (grub_host_to_target16): Likewise.
28650 (grub_host_to_target32): Likewise.
28651 (grub_host_to_target64): Likewise.
28653 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
28655 Source tree is reorganized for emu build.
28657 * include/grub/util/console.h: Move from here...
28658 * include/grub/emu/console.h: ...to here.
28659 * include/grub/util/getroot.h: Move from here...
28660 * include/grub/emu/getroot.h: ...to here.
28661 * include/grub/util/hostdisk.h: Move from here...
28662 * include/grub/emu/hostdisk.h: ...to here.
28663 * util/console.c: Move from here...
28664 * kern/emu/console.c: ...to here.
28665 * util/getroot.c: Move from here...
28666 * kern/emu/getroot.c: ...to here.
28667 * util/grub-emu.c: Move from here...
28668 * kern/emu/main.c: ...to here.
28669 * util/hostdisk.c: Move from here...
28670 * kern/emu/hostdisk.c: ...to here.
28671 * util/hostfs.c: Move from here...
28672 * kern/emu/hostfs.c: ...to here.
28673 * util/mm.c: Move from here...
28674 * kern/emu/mm.c: ...to here.
28675 * util/pci.c: Move from here...
28676 * bus/emu/pci.c: ...to here.
28677 * util/sdl.c: Move from here...
28678 * video/emu/sdl.c: ...to here.
28679 * util/time.c: Move from here...
28680 * kern/emu/time.c: ...to here.
28681 * util/usb.c: Move from here...
28682 * bus/usb/emu/usb.c: ...to here.
28684 * include/grub/emu/misc.h: New header for grub-emu functions.
28685 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
28687 * conf/any-emu.rmk: Rule updates for above renames.
28688 * conf/common.rmk: Likewise.
28689 * conf/i386-pc.rmk: Likewise.
28690 * conf/i386-qemu.rmk: Likewise.
28691 * conf/mips.rmk: Likewise.
28692 * conf/sparc64-ieee1275.rmk: Likewise.
28693 * conf/x86-efi.rmk: Likewise.
28695 * disk/lvm.h: #include updates for above renames.
28696 * util/grub-mkrelpath.c: Likewise.
28697 * util/grub-probe.c: Likewise.
28698 * util/i386/pc/grub-setup.c: Likewise.
28699 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28700 * kern/emu/console.c: Likewise.
28701 * kern/emu/getroot.c: Likewise.
28702 * kern/emu/hostdisk.c: Likewise.
28703 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
28705 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
28706 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
28707 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
28708 * util/misc.c: Remove grub-emu functions.
28710 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
28713 Reported by: Thorsten Grützmacher.
28715 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
28717 (circprog_set_property): Register and unregister timeout hook.
28718 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
28719 (label_destroy): Free template. and unregister hook.
28720 (label_set_state): New function.
28721 (label_set_property): Handle templates and hooks.
28722 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
28724 (progress_bar_set_property): Register and unregister timeout hook.
28725 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
28726 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
28727 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
28728 (update_timeout_visit): Removed.
28729 (update_timeouts): New function.
28730 (redraw_timeouts): Likewise.
28731 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
28732 (grub_gfxmenu_clear_timeout): Likewise.
28733 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
28734 (grub_gfxmenu_timeout_notify): Likewise.
28735 (grub_gfxmenu_timeout_notifications): New external variable.
28736 (grub_gfxmenu_timeout_register): New function.
28737 (grub_gfxmenu_timeout_unregister): Likewise.
28739 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
28741 Transform (broken) vga terminal into (working) vga video driver.
28743 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
28744 video/i386/pc/vga.c.
28745 * include/grub/video.h (grub_video_driver_id):
28746 Add GRUB_VIDEO_DRIVER_VGA.
28747 * term/i386/pc/vga.c: Renamed to ...
28748 * video/i386/pc/vga.c: ...this
28749 (DEBUG_VGA): Removed.
28750 (CHAR_WIDTH): Likewise.
28751 (CHAR_HEIGHT): Likewise.
28752 (TEXT_WIDTH): Likewise.
28753 (TEXT_HEIGHT): Likewise.
28754 (DEFAULT_FG_COLOR): Likewise.
28755 (DEFAULT_BG_COLOR): Likewise.
28756 (colored_char): Likewise.
28759 (cursor_state): Likewise.
28760 (fg_color): Likewise.
28761 (bg_color): Likewise.
28762 (text_buf): Likewise.
28765 (framebuffer): New variable.
28766 (set_read_map): Disabled.
28767 (setup): New variable.
28768 (is_target): Likewise.
28769 (grub_vga_mod_init): Likewise.
28770 (grub_vga_mod_fini): Likewise.
28771 (check_vga_mem): Likewise.
28772 (write_char): Likewise.
28773 (write_cursor): Likewise.
28774 (scroll_up): Likewise.
28775 (grub_vga_putchar): Likewise.
28776 (grub_vga_getcharwidth): Likewise.
28777 (grub_vga_getwh): Likewise.
28778 (grub_vga_getxy): Likewise.
28779 (grub_vga_gotoxy): Likewise.
28780 (grub_vga_cls): Likewise.
28781 (grub_vga_setcolorstate): Likewise.
28782 (grub_vga_setcursor): Likewise.
28783 (grub_video_vga_init): New function.
28784 (grub_video_vga_setup): Likewise.
28785 (grub_video_vga_fini): Likewise.
28786 (update_target): Likewise.
28787 (grub_video_vga_blit_bitmap): Likewise.
28788 (grub_video_vga_blit_render_target): Likewise.
28789 (grub_video_vga_set_active_render_target): Likewise.
28790 (grub_video_vga_get_active_render_target): Likewise.
28791 (grub_video_vga_swap_buffers): Likewise.
28792 (grub_video_vga_set_palette): Likewise.
28793 (grub_video_vga_get_info_and_fini): Likewise.
28794 (grub_vga_term): Removed.
28795 (grub_video_vga_adapter): New variable.
28796 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28797 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28799 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28801 * video/readers/jpeg.c: Indented.
28803 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28805 Various jpeg cleanups.
28807 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28808 (grub_jpeg_decode_quan_table): Use sizeof.
28809 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28811 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
28813 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28814 tables. Ignore non-last ac bit.
28815 (grub_jpeg_decode_quan_table): Likewise.
28817 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28819 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28820 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28821 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28822 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28823 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28824 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28826 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28828 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28831 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28833 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28835 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28837 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28840 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28842 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28845 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28847 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28850 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28852 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28854 2010-05-01 Christian Franke <franke@computer.org>
28856 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28857 Remove broken Cygwin path conversion.
28858 * util/misc.c: [__CYGWIN__] Add include and define.
28859 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28861 (make_system_path_relative_to_its_root): Simplify loop, replace early
28863 [__CYGWIN__] Add conversion to win32 path.
28864 Include "/" case in trailing slash removal.
28866 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28868 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28869 Reported by: Seth Goldberg
28871 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28873 * commands/help.c (grub_cmd_help): Fix a typo.
28874 Reported by: Seth Goldberg
28876 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28878 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
28880 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
28881 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
28882 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
28883 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
28884 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
28885 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
28886 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28887 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28888 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28889 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28890 * normal/context.c (GRUB_MOD_INIT): Likewise.
28891 * normal/main.c (GRUB_MOD_INIT): Likewise.
28892 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28893 * term/serial.c (GRUB_MOD_INIT): Likewise.
28894 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28896 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28898 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
28901 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28903 * commands/iorw.c: New file.
28904 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
28905 (iorw_mod_SOURCES): New variable.
28906 (iorw_mod_CFLAGS): Likewise.
28907 (iorw_mod_LDFLAGS): Likewise.
28909 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28913 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
28914 * normal/main.c (hotkey_aliases): New variable.
28915 (grub_normal_add_menu_entry): Parse "--hotkey".
28916 * normal/menu_text.c (run_menu): Handle hotkeys.
28918 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28920 * kern/i386/coreboot/init.c (grub_machine_init): Call
28921 grub_machine_mmap_init on qemu.
28923 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28925 * boot/i386/qemu/boot.S: Add a missing .code16.
28927 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28929 Use LBIO on coreboot.
28931 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
28932 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
28933 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
28935 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
28936 grub_machine_mmap_init on coreboot.
28937 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
28938 GRUB_LINUXBIOS_MEMBER_LINK.
28939 (grub_machine_mmap_iterate): Fix declaration.
28940 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
28942 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28944 Split coreboot and multiboot ports.
28946 * conf/i386-multiboot.rmk: New file.
28947 * configure.ac: Add multiboot port.
28948 * include/grub/i386/multiboot/boot.h: New file.
28949 * include/grub/i386/multiboot/console.h: Likewise.
28950 * include/grub/i386/multiboot/init.h: Likewise.
28951 * include/grub/i386/multiboot/kernel.h: Likewise.
28952 * include/grub/i386/multiboot/loader.h: Likewise.
28953 * include/grub/i386/multiboot/memory.h: Likewise.
28954 * include/grub/i386/multiboot/serial.h: Likewise.
28955 * include/grub/i386/multiboot/time.h: Likewise.
28956 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
28957 * loader/multiboot.c: Likewise.
28958 * loader/multiboot_mbi2.c: Likewise.
28959 * util/grub-mkrescue.in: Generate multiboot rescue.
28961 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28963 * kern/parser.c (grub_parser_execute): Cope with read-only config.
28965 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28967 Merge handling of input and output terminals. Fix a hang.
28969 * commands/terminal.c (abstract_terminal): New struct.
28970 (handle_command): New function. Based on grub_cmd_terminal_input.
28971 (grub_cmd_terminal_input): Use handle_command.
28972 (grub_cmd_terminal_output): Use handle_command.
28974 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
28976 Fix comment handling.
28978 * tests/grub_script_comments.in: New testcase.
28979 * conf/tests.rmk: Rules for new testcase.
28980 * script/yylex.l: Updated flex rules.
28982 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
28984 * docs/grub.texi (play): Document that zero pitches produce rests.
28985 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
28988 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
28990 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
28993 2010-04-26 Christian Franke <franke@computer.org>
28995 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
28996 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
28997 (grub_get_prefix): Remove function.
28998 * util/grub-emu.c (main): Replace grub_get_prefix () call by
28999 make_system_path_relative_to_its_root ().
29000 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
29002 2010-04-24 Christian Franke <franke@computer.org>
29004 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
29005 (kernel_img_LDFLAGS): Remove -static-libgcc.
29007 2010-04-24 Christian Franke <franke@computer.org>
29009 * configure.ac: Do not CHECK_BSS_START_SYMBOL
29010 and CHECK_END_SYMBOL if grub-emu is built.
29011 Unset TARGET_OBJ2ELF if grub-emu is built
29012 without module support.
29014 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
29018 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
29019 (grub_fstest_SOURCES): Likewise.
29020 (pkglib_MODULES): Add nilfs2.mod.
29021 (nilfs2_mod_SOURCES): New variable.
29022 (nilfs2_mod_CFLAGS): Likewise.
29023 (nilfs2_mod_LDFLAGS): Likewise.
29024 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
29025 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
29026 * fs/nilfs2.c: New file.
29028 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
29030 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
29033 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
29035 Add grub-mkconfig support for NetBSD.
29037 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
29038 * util/grub-mkconfig.in: export new NetBSD specific variables.
29039 * po/POTFILES-shell: added 10_netbsd.in.
29040 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
29042 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
29044 Fix emu build with grub-emu-pci and grub-emu-modules.
29046 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
29048 * include/grub/libpciaccess.h: New file.
29049 * conf/any-emu.rmk: Update kernel headers for emu build.
29051 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
29053 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
29055 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
29057 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
29059 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29061 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
29062 Retrieve chosen/bootpath if bootpath isn't hardcoded.
29063 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
29064 util/ieee1275/ofpath.c.
29065 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
29066 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
29067 * include/grub/sparc64/ieee1275/boot.h
29068 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
29069 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
29070 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
29071 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
29073 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
29074 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
29075 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
29078 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
29080 * util/grub-mkconfig.in: Corrected two == equality tests.
29081 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
29082 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
29083 expect a number appended to it.
29084 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
29085 expects a number appended to it.
29087 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29089 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
29091 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29093 * util/hostdisk.c (make_device_name): Change to new partition naming.
29095 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
29097 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
29099 2010-04-17 Christian Franke <franke@computer.org>
29101 * Makefile.in: Add missing localedir setting.
29103 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
29105 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
29106 mistake in r2156. Noticed by Anthony Fok.
29108 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
29110 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
29112 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
29114 Fix a spurious, uninitialized variable warning.
29116 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
29117 Initialize variable, shdr.
29118 (grub_freebsd_load_elfmodule): Likewise.
29119 (grub_freebsd_load_elf_meta): Likewise.
29121 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
29123 Fix for escaped dollar in double quoted strings.
29125 * script/yylex.l: Updated flex rules.
29126 * conf/tests.rmk: Rule for new testcase.
29127 * tests/grub_script_dollar.in: New testcase.
29129 2010-04-13 Carles Pina i Estany <carles@pina.cat>
29130 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
29132 Enclose all translated strings in grub.cfg in single quotes, and
29133 escape them appropriately (Ubuntu bug #552921).
29135 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
29136 * util/grub.d/10_hurd.in: Use it.
29137 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
29138 * util/grub.d/10_linux.in (linux_entry): Likewise.
29140 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29142 Fix cygwin compilation.
29144 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
29145 * include/grub/misc.h (__register_frame_info)
29146 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
29147 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29148 * kern/misc.c (__register_frame_info)
29149 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
29150 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29152 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29154 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
29156 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29158 Unify libgcc processing.
29160 * Makefile.in (kernel_img_LDFLAGS): New variable.
29161 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
29162 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
29164 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
29165 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
29166 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
29167 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
29168 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
29169 overwriting. Remove -lgcc and -static-libgcc
29170 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
29171 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29172 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29173 (kernel_img_LDFLAGS): Append instead of overwriting.
29174 Remove -lgcc and -static-libgcc
29175 * conf/sparc64-ieee1275.rmk: Likewise.
29176 * include/grub/powerpc/libgcc.h: Move to ...
29177 * include/grub/libgcc.h: .. this.
29178 * include/grub/libgcc.h: Don't export most of the function on x86.
29179 (__bswapsi2): New export.
29180 (__bswapdi2): Likewise.
29181 * include/grub/mips/libgcc.h: Removed.
29182 * include/grub/sparc64/libgcc.h: Likewise.
29184 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29186 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
29187 disk_info_msg (conflicts with gettexting into languages with cases).
29189 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
29191 Add grub-probe support for NetBSD.
29193 * util/getroot.c (find_root_device): Convert block device to
29194 character device on NetBSD.
29195 * util/probe.c (probe): Require character device on NetBSD.
29196 * util/hostdisk.c: NetBSD specific headers.
29197 (configure_device_driver): new function to tune device driver
29198 parameters (currently only for NetBSD floppy driver).
29199 (grub_util_biosdisk_open): NetBSD specific code (get disk size
29200 via disklabel ioctl).
29201 (open_device): call configure_device_driver on NetBSD.
29202 (convert_system_partition_to_system_disk): NetBSD specific code.
29203 (device_is_wholedisk): Likewise.
29204 (grub_util_biosdisk_get_grub_dev): Likewise.
29205 (make_device_name): Fixed a typo in bsd_part_str.
29206 * configure.ac: check for opendisk() and getrawpartition() on
29207 NetBSD and set LIBUTIL.
29208 * Makefile.in: add LIBUTIL to LIBS.
29210 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29214 * util/grub-script-check.c: Better help message.
29216 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29220 * configure.ac: Flex version check.
29221 * conf/common.rmk: Add -Wno-error to sh.mod.
29222 * script/yylex.l: Remove all #pragma.
29224 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29226 * include/grub/util/misc.h (canonicalise_file_name): Add missing
29228 Reported by: Seth Goldberg.
29230 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29232 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
29233 Rename "module" to "module2".
29234 Reported by: Seth Goldberg.
29236 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29238 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
29240 Reported by: Seth Goldberg.
29242 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29244 * lib/posix_wrap/locale.h: Add missing file.
29245 Reported by: Seth Goldberg.
29247 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29249 grub-emu module load support.
29251 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
29252 NO_DYNAMIC_MODULES switched to this.
29253 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
29254 (CFLAGS): Likewise.
29255 * conf/any-emu.rmk: Generate symlist.
29256 (kernel_img_HEADERS): Add util/datetime.h.
29257 (kernel_img_HEADERS) [sdl]: Add sdl.h.
29258 (kernel_img_HEADERS) [libusb]: Add libusb.h.
29259 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
29260 kern/$(target_cpu)/cache.S.
29261 * configure.ac (grub-emu-modules): New option.
29262 * genmk.rb: Handle multiple source lists.
29263 * include/grub/sdl.h: New file.
29264 * include/grub/libusb.h: Likewise.
29265 * util/grub-emu.c (main): Hanle (host) root.
29266 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
29267 GRUB_ERR_UNKNOWN_DEVICE.
29268 * util/misc.c: Move mm functions to ...
29269 * util/mm.c: ... here. All users updated.
29271 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29273 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
29274 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
29276 (maintainer-clean): Remove libgcrypt-grub.
29278 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29280 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
29282 2010-04-09 EFI Coder <eficoder@hotmail.com>
29284 * normal/menu_text.c (print_message): Clean up the message and show
29285 the Fn information when on EFI
29286 * term/efi/console.c (grub_console_checkkey): Add F4 support.
29288 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29290 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
29292 * normal/crypto.c (read_crypto_list): Likewise.
29293 * normal/dyncmd.c (read_command_list): Likewise.
29294 * normal/term.c (read_terminal_list): Likewise.
29295 * normal/main.c (read_lists): Use explicit prefix.
29296 (read_lists_hook): Use read_lists.
29297 (grub_normal_execute): Likewise.
29299 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29301 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
29302 Reported by: Thomas Schmitt.
29303 Add -no-emul-boot to grub-mkisofs parameters.
29305 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29307 * font/font.c: Indented.
29309 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29311 Elif support to GRUB script (by Deepak Vankadaru).
29313 * tests/grub_script_if.in: New testcase.
29314 * conf/tests.rmk: Rule for new testcase.
29315 * script/parser.y: Grammar rules for elif.
29317 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29319 While and until loops support to GRUB script.
29321 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
29322 (grub_script_create_cmdwhile): New function prototype.
29323 (grub_script_execute_cmdwhile): New function prototype.
29324 * script/execute.c (grub_script_execute_cmdwhile): New function.
29325 * script/parser.y (command): New commands.
29326 (whilecmd): New grammar rule.
29327 (untilcmd): New grammar rule.
29328 * script/script.c (grub_script_create_cmdwhile): New function.
29329 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
29332 * tests/grub_script_while1.in: New testcase.
29333 * conf/tests.rmk: Rule for new testcase.
29335 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29337 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
29340 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
29342 GRUB_BACKGROUND support.
29344 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
29345 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
29347 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29349 Load fonts and modules for gfxmenu in grub-mkconfig.
29350 Idea by: Mario Vazquez
29352 * util/grub.d/00_header.in: Load pf2 and image modules.
29354 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29356 grub-mkconfig multiple terminal support.
29358 * util/grub-mkconfig.in: Handle multiple terminals correctly.
29359 * util/grub.d/00_header.in: Likewise.
29361 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29363 * Makefile.in: Specify files explicitly instead of using $< and $@ since
29364 we use cd $(srcdir).
29366 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
29368 * util/grub.d/10_linux.in: Only use the first word of
29369 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
29370 spaces in GRUB_DISTRIBUTOR.
29371 * util/grub.d/10_kfreebsd.in: Likewise.
29372 * util/grub.d/10_hurd.in: Likewise.
29374 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
29376 Fix unit testing framework for Qemu 0.12.
29378 * tests/util/grub-shell.in: Remove -serial stdio option.
29380 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
29382 POSIX header file wrappers.
29384 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
29386 * lib/posix_wrap/ctype.h: Likewise.
29387 * lib/posix_wrap/errno.h: Likewise.
29388 * lib/posix_wrap/langinfo.h: Likewise.
29389 * lib/posix_wrap/limits.h: Likewise.
29390 * lib/posix_wrap/localcharset.h: Likewise.
29391 * lib/posix_wrap/stdint.h: Likewise.
29392 * lib/posix_wrap/stdio.h: Likewise.
29393 * lib/posix_wrap/stdlib.h: Likewise.
29394 * lib/posix_wrap/string.h: Likewise.
29395 * lib/posix_wrap/sys/types.h: Likewise.
29396 * lib/posix_wrap/unistd.h: Likewise.
29397 * lib/posix_wrap/wchar.h: Likewise.
29398 * lib/posix_wrap/wctype.h: Likewise.
29399 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
29400 (grub_script.yy.h): Likewise.
29401 * script/yylex.l: Remove POSIX emulation #defines.
29402 * Makefile.in (POSIX_CFLAGS): New variable.
29403 (GNULIB_UTIL_CFLAGS): Likewise.
29407 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
29408 (regexp_mod_SOURCES): New variable.
29409 (regexp_mod_CFLAGS): Likewise.
29410 (regexp_mod_LDFLAGS): Likewise.
29411 * commands/regexp.c: New file.
29412 * gnulib/regcomp.c: New file. Imported from gnulib.
29413 * gnulib/regex.c: Likewise.
29414 * gnulib/regex_internal.c: Likewise.
29415 * gnulib/regex_internal.h: Likewise.
29416 * gnulib/regexec.c: Likewise.
29417 * gnulib/regex.h: Likewise.
29419 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29421 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
29422 unsupported video mode types.
29424 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29426 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
29428 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29430 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
29431 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
29433 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
29435 Remove unused grub_vga_get_font.
29437 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
29438 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
29440 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29442 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
29443 * include/grub/misc.h: Likewise.
29445 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29447 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
29448 for which failure is fatal.
29450 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29452 * util/grub-install.in: Use mkdir -p to create grub directory.
29453 * util/i386/efi/grub-install.in: Likewise.
29454 * util/ieee1275/grub-install.in: Likewise.
29456 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29458 * Makefile.in (LEX): new variable.
29460 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29462 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
29463 `=' and added double quotes on operands of this equality test.
29465 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29467 * Makefile.in (uninstall): Remove a leftover debug echo.
29468 Reported by: Grégoire Sutre
29470 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29472 MIPS multiboot2 support.
29474 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
29475 (multiboot2_mod_SOURCES): New variable.
29476 (multiboot2_mod_CFLAGS): Likewise.
29477 (multiboot2_mod_LDFLAGS): Likewise.
29478 (multiboot2_mod_ASFLAGS): Likewise.
29479 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
29481 (MULTIBOOT_ENTRY_REGISTER): Likewise.
29482 (MULTIBOOT_MBI_REGISTER): Likewise.
29483 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
29484 (MULTIBOOT_ELF32_MACHINE): Likewise.
29485 (MULTIBOOT_ELF64_MACHINE): Likewise.
29486 * include/grub/mips/multiboot.h: New file.
29487 * include/grub/video.h (grub_video_driver_id): New type
29488 GRUB_VIDEO_DRIVER_SM712.
29489 (grub_video_get_info_and_fini): Export.
29490 (grub_video_get_palette): Likewise.
29491 (grub_video_get_driver_id): Likewise.
29492 * include/multiboot2.h: Resynced with spec.
29493 * loader/i386/multiboot.c: Moved from here ...
29494 * loader/multiboot.c: ... here. All users updated.
29495 (grub_multiboot_boot): Use platform-specific macros.
29496 * loader/i386/multiboot_elfxx.c: Moved from here ...
29497 * loader/multiboot_elfxx.c: ... here. All users updated.
29498 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
29499 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
29500 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
29502 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
29504 Import gnulib argp module.
29506 * gnulib/argp-ba.c: New file.
29507 * gnulib/argp-eexst.c: Likewise.
29508 * gnulib/argp-fmtstream.c: Likewise.
29509 * gnulib/argp-fmtstream.h: Likewise.
29510 * gnulib/argp-fs-xinl.c: Likewise.
29511 * gnulib/argp-help.c: Likewise.
29512 * gnulib/argp-namefrob.h: Likewise.
29513 * gnulib/argp-parse.c: Likewise.
29514 * gnulib/argp-pin.c: Likewise.
29515 * gnulib/argp-pv.c: Likewise.
29516 * gnulib/argp-pvh.c: Likewise.
29517 * gnulib/argp-version-etc.c: Likewise.
29518 * gnulib/argp-version-etc.h: Likewise.
29519 * gnulib/argp-xinl.c: Likewise.
29520 * gnulib/argp.h: Likewise.
29522 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29524 * kern/device.c (grub_device_iterate): Clear errors after failed
29527 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29529 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
29530 returned by firmware.
29532 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
29534 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
29535 compilation on coreboot and qemu
29537 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29539 * include/multiboot2.h: Resync with spec.
29541 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29543 Multiboot2 tag support
29545 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
29546 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
29547 Remove loader/multiboot_loader.c.
29548 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
29549 (grub_multiboot2_real_boot): Likewise.
29550 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
29551 (grub_get_multiboot_mmap_count): New proto.
29552 (grub_fill_multiboot_mmap): Likewise.
29553 (grub_multiboot_set_video_mode): Likewise.
29554 (grub_multiboot_set_console): Likewise.
29555 (grub_multiboot_load): Likewise.
29556 (grub_multiboot_load_elf): Likewise.
29557 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
29558 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
29559 * include/multiboot.h: Resynced with specification.
29560 * include/multiboot2.h: Resynced with specification.
29561 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
29562 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
29563 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
29564 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
29566 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
29567 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
29568 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
29570 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
29572 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
29573 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
29575 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
29576 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
29577 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
29579 * loader/i386/multiboot_mbi2.c: New file.
29581 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29583 Resync with gnulib.
29585 * Makefile.in (GNULIB_CFLAGS): New variable.
29586 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
29587 (grub_script_check_CFLAGS): New variable.
29588 * gnulib/alloca.h: Resync with gnulib.
29589 * gnulib/error.c: Likewise.
29590 * gnulib/error.h: Likewise.
29591 * gnulib/fnmatch.c: Likewise.
29592 * gnulib/fnmatch_loop.c: Likewise.
29593 * gnulib/getdelim.c: Likewise.
29594 * gnulib/getline.c: Likewise.
29595 * gnulib/getopt.c: Likewise.
29596 * gnulib/getopt1.c: Likewise.
29597 * gnulib/getopt_int.h: Likewise.
29598 * gnulib/gettext.h: Likewise.
29599 * gnulib/progname.c: Likewise.
29600 * gnulib/progname.h: Likewise.
29602 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
29604 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
29605 which is the case with --disabled-nls.
29607 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
29608 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
29609 * util/misc.c: Likewise.
29610 * util/mkisofs/mkisofs.c: Likewise.
29611 * util/mkisofs/mkisofs.h: Likewise.
29613 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29615 Simplify Apple CC support.
29617 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
29618 Add 0 byte at the end not to have a symbol with empty target.
29619 * mmap/i386/pc/mmap_helper.S: Likewise.
29620 * genmk.rb: Ignore errors 2030 and 2050.
29621 * kern/i386/pc/startup.S: Use LOCAL when possible.
29623 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
29625 Testcase and the fix for final semicolon on cmdline.
29627 * tests/grub_script_final_semicolon.in: New testcase.
29628 * conf/tests.rmk: Rules for the new testcase.
29629 * script/parser.y: Grammar fix.
29631 2010-03-26 BVK Chaitanya <bvk@localhost>
29633 Blank lines testcase for GRUB script.
29635 * tests/grub_script_blanklines.in: New testcase.
29636 * conf/tests.rmk: Rules for the new testcase.
29638 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29640 Don't use __FILE__.
29642 * genmk.rb: Add -DGRUB_FILE to all C targets.
29643 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
29644 * include/grub/list.h: Likewise.
29645 * include/grub/misc.h: Likewise.
29646 * include/grub/mm.h: Likewise.
29647 * include/grub/test.h: Likewise.
29648 * kern/mm.c: Likewise.
29649 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29651 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29653 Sunpc partitions support.
29655 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
29656 (grub_fstest_SOURCES): Likewise.
29657 (pkglib_MODULES): Add part_sunpc.mod.
29658 (part_sunpc_mod_SOURCES): New variable.
29659 (part_sunpc_mod_CFLAGS): Likewise.
29660 (part_sunpc_mod_LDFLAGS): Likewise.
29661 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
29662 * partmap/sunpc.c: New file.
29664 2010-03-26 BVK Chaitanya <bvk@localhost>
29666 For loop support to GRUB script.
29668 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
29669 (grub_script_create_cmdfor): New function prototype.
29670 (grub_script_execute_cmdfor): New function prototype.
29671 * script/execute.c (grub_script_execute_cmdfor): New function.
29672 * script/parser.y (command): New for command.
29673 (forcmd): New grammar rule.
29674 * script/script.c (grub_script_create_cmdfor): New function.
29675 * util/grub-script-check.c (grub_script_execute_cmdfor): New
29677 * tests/grub_script_for1.in: New testcase.
29678 * conf/tests.rmk: Rules for new testcase.
29680 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29684 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
29685 'partition' is NULL, grub_partition_get_start already does that.
29686 * commands/loadenv.c (check_blocklists): Likewise.
29687 (write_blocklists): Likewise.
29688 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
29689 (grub_fstest_SOURCES): Likewise.
29690 (pkglib_MODULES): Add part_bsd.mod.
29691 (part_bsd_mod_SOURCES): New variable.
29692 (part_bsd_mod_CFLAGS): Likewise.
29693 (part_bsd_mod_LDFLAGS): Likewise.
29694 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
29695 (grub_emu_SOURCES): Likewise.
29696 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29697 * include/grub/bsdlabel.h: New file.
29698 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
29700 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
29701 (grub_partition_map_list): New variable.
29702 (grub_partition_map_register): Inline.
29703 (grub_partition_map_unregister): Likewise.
29704 (FOR_PARTITION_MAPS): New macro.
29705 (grub_partition_map_iterate): Removed.
29706 (grub_partition_get_start): Handle nested partitions.
29707 * include/grub/msdos_partition.h: Remove bsd-related entries.
29708 (grub_pc_partition): Remove.
29709 * kern/disk.c (grub_disk_close): Free partition data.
29710 (grub_disk_adjust_range): Handle nested partitions.
29711 * kern/partition.c (grub_partition_map_probe): New function.
29712 (grub_partition_probe): Parse name to number, handle subpartitions.
29713 (get_partmap): New function.
29714 (grub_partition_iterate): Handle subpartitions.
29715 (grub_partition_get_name): Likewise.
29716 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
29717 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
29718 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
29719 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
29721 (acorn_partition_map_probe): Remove.
29722 (acorn_partition_map_get_name): Likewise.
29723 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
29725 Set 'index' to 0 since there can be only one partition entry per sector.
29726 (amiga_partition_map_probe): Remove.
29727 (amiga_partition_map_get_name): Likewise.
29728 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
29730 Set 'offset' and 'index' to real positions of partitions.
29731 (apple_partition_map_probe): Remove.
29732 (apple_partition_map_get_name): Likewise.
29733 * partmap/bsdlabel.c: New file.
29734 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
29736 Allocate 'data' so it can be correctly freed.
29737 Set 'index' to offset inside sector.
29738 (gpt_partition_map_probe): Remove.
29739 (gpt_partition_map_get_name): Likewise.
29740 * partmap/msdos.c (grub_partition_parse): Remove.
29741 (pc_partition_map_iterate): Don't force raw access.
29743 Make 'ext_offset' a local variable.
29744 (pc_partition_map_probe): Remove.
29745 (pc_partition_map_get_name): Remove.
29746 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
29748 (sun_partition_map_probe): Remove.
29749 (sun_partition_map_get_name): Likewise.
29750 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
29751 (grub_pcpart_type): Likewise.
29752 * util/hostdisk.c (open_device): Handle new numbering scheme.
29753 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
29754 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
29755 * util/grub-probe.c (probe_partmap): Handle nested paritions.
29756 * util/grub-install.in: Insert all subpartition modules.
29757 * util/ieee1275/grub-install.in: Likewise.
29759 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
29761 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
29764 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
29766 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
29768 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
29770 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
29771 match where 'make install' puts them.
29772 * util/i386/efi/grub-install.in: Likewise.
29774 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
29776 * .bzrignore: Add gentrigtables, grub-script-check,
29777 grub_script_check_init.c, grub_script_check_init.h, and
29780 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
29782 * kern/parser.c: Indented.
29784 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29786 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
29788 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29790 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
29791 alpha_mask_size == 0 case.
29793 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
29795 GRUB shell lexer and parser improvements.
29797 * conf/any-emu.rmk: Build rule updates.
29798 * conf/common.rmk: Likewise.
29799 * conf/i386-coreboot.rmk: Likewise.
29800 * conf/i386-efi.rmk: Likewise.
29801 * conf/i386-ieee1275.rmk: Likewise.
29802 * conf/i386-pc.rmk: Likewise.
29803 * conf/powerpc-ieee1275.rmk: Likewise.
29804 * conf/x86_64-efi.rmk: Likewise.
29806 * configure.ac: Configure check for flex.
29808 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29810 (grub_lexer_param): Struct member updates.
29811 (grub_parser_param): Likewise.
29812 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29813 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29814 (grub_script_lexer_init): Prototype update.
29815 (grub_script_lexer_record_start): Likewise.
29816 (grub_script_lexer_record_stop): Likewise.
29817 (grub_script_lexer_yywrap): New function prototype.
29818 (grub_script_lexer_fini): Likewise.
29819 (grub_script_execute_argument_to_string): Removed by...
29820 (grub_script_execute_argument_to_argv): ...better version.
29822 * script/execute.c (ROUND_UPTO): New macro.
29823 (grub_script_execute_cmdline): Out of memory fixes.
29824 (grub_script_execute_menuentry): Likewise.
29825 (grub_script_execute_argument_to_string): Removed. Update all
29827 (grub_script_execute_argument_to_argv): ...better version.
29828 * script/function.c (grub_script_function_create): Use
29829 grub_script_execute_argument_to_argv instead of
29830 grub_script_execute_argument_to_string.
29832 * script/lexer.c (check_varstate): Removed.
29833 (check_textstate): Removed.
29834 (grub_script_lexer_record_start): Likewise.
29835 (grub_script_lexer_record_stop): Likewise.
29836 (recordchar): Replaced with...
29837 (grub_script_lexer_record): ...new function.
29838 (nextchar): Removed.
29839 (grub_script_lexer_init): Rewritten.
29840 (grub_script_yylex): Rewritten.
29841 (append_newline): New function.
29842 (grub_script_lexer_yywrap): New function.
29843 (grub_script_lexer_fini): New function.
29844 (grub_script_yyerror): Sets error flag.
29846 * script/yylex.l: New file.
29847 (grub_lexer_yyfree): Wrapper for flex yyffre.
29848 (grub_lexer_yyalloc): Likewise.
29849 (grub_lexer_yyrealloc): Likewise.
29850 * script/parser.y: Refactored.
29852 * script/script.c (grub_script_arg_add): Out of memory fixes.
29853 (grub_script_add_arglist): Likewise.
29854 (grub_script_create_cmdline): Likewise.
29855 (grub_script_create_cmdmenu): Likewise.
29856 (grub_script_add_cmd): Likewise.
29857 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29858 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29861 * tests/grub_script_echo1.in: New testcase.
29862 * tests/grub_script_vars1.in: New testcase.
29863 * tests/grub_script_echo_keywords.in: New testcase.
29865 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29867 Remove some redundancy in build system.
29869 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
29870 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
29871 (TARGET_LDFLAGS): Add -nostdlib.
29872 (TARGET_IMG_LDFLAGS): Likewise.
29873 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
29874 anything since mmap isn't available.
29875 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
29877 (pkglib_MODULES): Remove reboot.mod.
29878 (reboot_mod_SOURCES): Removed.
29879 (reboot_mod_CFLAGS): Likewise.
29880 (reboot_mod_LDFLAGS): Likewise.
29881 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
29882 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
29883 (DEFSYMFILES): Add kernel_syms.lst.
29884 (kernel_img_HEADERS): Add common headers.
29885 (symlist.c): New target.
29886 (kernel_syms.lst): Likewise.
29887 (pkglib_MODULES): Add memdisk.mod.
29888 (memdisk_mod_SOURCES): New variable.
29889 (memdisk_mod_CFLAGS): Likewise.
29890 (memdisk_mod_LDFLAGS): Likewise.
29891 (pkglib_MODULES): Add reboot.mod.
29892 (reboot_mod_SOURCES): New variable.
29893 (reboot_mod_CFLAGS): Likewise.
29894 (reboot_mod_LDFLAGS): Likewise.
29895 (pkglib_MODULES): Add date.mod.
29896 (date_mod_SOURCES): New variable.
29897 (date_mod_CFLAGS): Likewise.
29898 (date_mod_LDFLAGS): Likewise.
29899 (pkglib_MODULES): Add datehook.mod.
29900 (datehook_mod_SOURCES): New variable.
29901 (datehook_mod_CFLAGS): Likewise.
29902 (datehook_mod_LDFLAGS): Likewise.
29903 (pkglib_MODULES): Add lsmmap.mod.
29904 (lsmmap_mod_SOURCES): New variable.
29905 (lsmmap_mod_CFLAGS): Likewise.
29906 (lsmmap_mod_LDFLAGS): Likewise.
29907 (pkglib_MODULES): Add boot.mod.
29908 (boot_mod_SOURCES): New variable.
29909 (boot_mod_CFLAGS): Likewise.
29910 (boot_mod_LDFLAGS): Likewise.
29911 * conf/i386-coreboot.rmk: Removed redundant parts.
29912 * conf/i386-ieee1275.rmk: Likewise.
29913 * conf/i386-pc.rmk: Likewise.
29914 * conf/mips-yeeloong.rmk: Likewise.
29915 * conf/mips.rmk: Likewise.
29916 * conf/powerpc-ieee1275.rmk: Likewise.
29917 * conf/sparc64-ieee1275.rmk: Likewise.
29918 * conf/x86_64-efi.rmk: Likewise.
29919 * conf/i386-coreboot.rmk: Moved qemu parts ..
29920 * conf/i386-qemu.rmk: ... here
29921 * conf/i386-efi.rmk: Moved common parts to...
29922 * conf/x86-efi.rmk: ... here.
29923 * conf/i386.rmk: Added modules common to all x86 variants.
29924 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
29925 * disk/memdisk.c: Remove grub/machine/kernel.h.
29926 * gensymlist.sh.in: Include symbol.h.
29927 * hook/datehook.c: Correct module name.
29928 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
29929 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
29930 * include/grub/i386/efi/serial.h: New file.
29931 * include/grub/x86_64/efi/serial.h: Likewise.
29932 * util/time.c: Likewise.
29933 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
29935 2010-03-14 Colin King <colin.king@ubuntu.com>
29936 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29938 Shrink the pre-partition-table part of boot.img by eight bytes.
29940 * boot/i386/pc/boot.S (ERR): New macro.
29941 (chs_mode): Use ERR.
29942 (geometry_error): Likewise.
29943 (hd_probe_error): Remove. This is only used once, so we wrwite
29945 (read_error): Instead of printing read_error_string, just set up
29946 %si and fall through to ...
29947 (error_message): ... this new function, also used by ERR.
29949 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29951 Speed up consecutive hostdisk operations on the same device.
29953 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
29954 (grub_util_biosdisk_open): Initialise disk->data.
29955 (struct linux_partition_cache): New structure.
29956 (linux_find_partition): Cache partition start positions; these are
29957 expensive to compute on every read and write.
29958 (open_device): Cache open file descriptor in disk->data, so that we
29959 don't have to reopen it and flush the buffer cache for consecutive
29960 operations on the same device.
29961 (grub_util_biosdisk_close): New function.
29962 (grub_util_biosdisk_dev): Set `close' member.
29964 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
29965 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
29966 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
29967 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
29968 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
29970 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29972 Compile parts of grub-emu as modules.
29974 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
29975 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
29976 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
29977 (all-local): Add $(GRUB_EMU).
29978 (install-local): Install $(GRUB_EMU).
29979 (uninstall): Uninstall $(GRUB_EMU).
29980 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
29981 * kern/dl.c: Likewise.
29982 * commands/sleep.c: Not include machine/time.h.
29983 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
29984 (COMMON_CFLAGS): Likewise.
29985 (sbin_UTILITIES): Remove grub-emu.
29986 (grub_emu_SOURCES): Removed.
29987 (kernel_img_RELOCATABLE): New variable.
29988 (pkglib_PROGRAMS): Add kernel.img.
29989 (kernel_img_SOURCES): New variable
29990 (kernel_img_CFLAGS): Likewise.
29991 (kernel_img_LDFLAGS): Likewise.
29992 (TARGET_NO_STRIP): Likewise.
29993 (TARGET_NO_DYNAMIC_MODULES): Likewise.
29994 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
29995 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
29996 (grub-emu): New target.
29997 (GRUB_EMU): New variable.
29998 * configure.ac: Whitelist -emu as possible x86_64 architecture.
29999 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
30000 * loader/xnu.c: Likewise.
30001 * include/grub/pci.h: Likewise.
30002 * genemuinit.sh: New file.
30003 * genemuinitheader.sh: Likewise.
30004 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
30005 Support TARGET_NO_DYNAMIC_MODULES.
30006 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
30007 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
30008 * disk/loopback.c: Likewise.
30009 * font/font_cmd.c: Likewise.
30010 * partmap/acorn.c: Likewise.
30011 * partmap/amiga.c: Likewise.
30012 * partmap/apple.c: Likewise.
30013 * partmap/gpt.c: Likewise.
30014 * partmap/msdos.c: Likewise.
30015 * partmap/sun.c: Likewise.
30016 * parttool/msdospart.c: Likewise.
30017 * term/gfxterm.c: Likewise.
30018 * video/bitmap.c: Likewise.
30019 * video/readers/jpeg.c: Likewise.
30020 * video/readers/png.c: Likewise.
30021 * video/readers/tga.c: Likewise.
30022 * video/video.c: Likewise.
30023 * util/grub-emu.c (read_command_list): Removed.
30024 (main): Don't call util_init_nls.
30025 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
30026 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
30028 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30030 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
30031 date.mod, datehook.mod.
30032 (datetime_mod_SOURCES): New variable.
30033 (datetime_mod_CFLAGS): Likewise.
30034 (datetime_mod_LDFLAGS): Likewise.
30035 (date_mod_SOURCES): Likewise.
30036 (date_mod_CFLAGS): Likewise.
30037 (date_mod_LDFLAGS): Likewise.
30038 (datehook_mod_SOURCES): Likewise.
30039 (datehook_mod_CFLAGS): Likewise.
30040 (datehook_mod_LDFLAGS): Likewise.
30041 * conf/sparc64-ieee1275.rmk: Likewise.
30042 * lib/ieee1275/datetime.c: New file.
30044 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30046 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
30047 (ieee1275_fb_mod_SOURCES): New variable.
30048 (ieee1275_fb_mod_CFLAGS): Likewise.
30049 (ieee1275_fb_mod_LDFLAGS): Likewise.
30050 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
30052 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
30053 (HEAP_MAX_ADDR): Likewise.
30054 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
30056 Correct stop condition.
30057 (grub_ieee1275_devices_iterate): New function.
30058 * video/ieee1275.c: New file.
30060 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30062 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
30064 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
30066 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
30067 SCRATCH_PAD_DISKBOOT as scratch.
30068 (bootit): Pass Openfirmware pointer in %o4.
30069 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
30071 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
30072 with util/grub-mkrawimage.c.
30073 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
30074 * include/grub/aout.h (AOUT_MID_SUN): New definition.
30075 (grub_aout_get_type) [GRUB_UTIL]: Removed.
30076 (grub_aout_load) [GRUB_UTIL]: Likewise.
30077 * include/grub/kernel.h (grub_modules_get_end): New proto.
30078 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
30079 (SCRATCH_PAD_BOOT): New definition.
30080 (SCRATCH_PAD_DISKBOOT): Likewise.
30081 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
30082 * include/grub/sparc64/ieee1275/ieee1275.h
30083 (grub_ieee1275_original_stack): New variable
30084 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
30086 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
30087 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
30088 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
30089 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
30090 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
30091 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
30092 (grub_platform_image_format_t): New type.
30093 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
30094 * kern/main.c (grub_modules_get_end)
30095 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
30096 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
30097 (codestart): Switch stacks.
30098 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
30100 (grub_heap_init): Use grub_modules_get_end.
30101 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
30103 * util/grub-mkrawimage.c (generate_image): Support sparc64.
30105 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
30107 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
30109 * util/grub-mkrescue.in: Base ISO UUID on UTC.
30111 2010-03-08 Matt Kraai <kraai@ftbfs.org>
30113 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
30116 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
30118 * genmoddep.awk: Output all missing symbols and not only first.
30120 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30122 * NEWS: Put the date of 1.98 release.
30124 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30126 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
30129 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30131 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
30132 completition in the middle of string.
30134 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30136 * util/grub-mkrescue.in: Use mktemp with explicit template.
30138 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30140 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
30142 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30144 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
30147 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30149 Fix FreeBSD compilation.
30151 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
30152 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
30154 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30156 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
30158 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30160 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
30162 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30164 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
30166 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
30168 Support relative image path in theme file.
30170 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
30171 (image_set_property): Handle theme_dir and relative path.
30173 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30175 * configure.ac: Alias amd64 to x86_64.
30177 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30179 * NEWS: mention multiboot on EFI.
30181 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30183 * kern/main.c (grub_load_modules): Handle errors from init functions of
30186 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30188 * normal/autofs.c (autoload_fs_module): Handle errors.
30190 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30192 Disable linux.mod on qemu-mips since it's not functional and leads
30193 to compilation failure.
30195 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
30196 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
30197 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
30198 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
30199 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
30200 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
30201 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
30202 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
30203 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
30204 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
30205 Reported by: BVK Chaitanya
30207 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
30209 * INSTALL: Add gettext as a dependency and add qemu to a new section
30210 "Prerequisites for make-check".
30212 2010-03-04 Christian Franke <franke@computer.org>
30214 * util/grub-pe2elf.c: Add missing include "progname.h".
30216 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30218 * normal/crypto.c (read_crypto_list): Fix a typo.
30219 Reported by: Seth Goldberg.
30221 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30223 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
30224 Reported by: Seth Goldberg.
30226 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30228 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
30231 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30233 * genmk.rb: Remove terminal*.lst in make clean.
30234 Reported by: Seth Goldberg.
30236 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30238 * util/i386/efi/grub-install.in: Copy gettext files.
30240 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30242 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
30244 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30246 Wait for user entry basing on presence of output rather than on errors.
30248 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
30249 (grub_install_newline_hook): Likewise.
30250 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
30251 * normal/menu.c (show_menu): Check line_counter to determine presence
30253 * normal/term.c (grub_normal_line_counter): New variable.
30254 (grub_normal_get_line_counter): New function.
30255 (grub_install_newline_hook): Likewise.
30257 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30259 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
30261 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30263 * configure.ac: Update version to 1.98.
30265 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
30267 * util/grub.d/10_linux.in (linux_entry): Don't default to
30268 gfxpayload=keep if Linux doesn't support video handover.
30270 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
30272 Don't compile video modules on yeeloong since video subsystem is part
30275 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
30276 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
30277 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
30278 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
30279 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
30280 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
30281 * include/grub/bitmap_scale.h: Likewise.
30282 * include/grub/bufio.h: Likewise.
30283 * include/grub/font.h: Likewise.
30284 * include/grub/gfxterm.h: Likewise.
30285 * include/grub/video.h: Likewise.
30286 * include/grub/vbe.h: Don't include video_fb.h.
30287 * video/i386/pc/vbe.c: Include video_fb.h.
30288 * commands/i386/pc/vbetest.c: Include video.h.
30290 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
30292 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
30293 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
30294 default entry if GRUB_SAVEDEFAULT=true. This allows using
30295 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
30296 saving a new default on every boot.
30298 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30300 * normal/crypto.c (read_crypto_list): Fix a memory leak.
30301 * normal/term.c (read_terminal_list): Likewise.
30302 * normal/main.c (grub_normal_init_page): Likewise.
30303 (grub_normal_read_line_real): Likewise.
30305 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30307 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
30309 Reported by: Seth Goldberg.
30311 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
30313 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
30314 duplicate declaration of `start'.
30316 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30318 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
30320 Reported by: Georgy Buranov
30322 2010-02-20 Carles Pina i Estany <carles@pina.cat>
30324 * util/grub-mkrawimage.c (usage): Change string formatting to
30327 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
30329 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
30332 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30334 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
30335 Reported by: Michael Suchanek.
30337 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
30339 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
30340 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
30342 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
30344 Remove any reference to non-free fonts.
30346 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
30347 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
30348 uses non-free components.
30349 * font/font.c (grub_font_get_name): Remove example name.
30350 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
30351 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
30352 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
30353 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
30355 2010-02-16 Georgy Buranov <gburanov@gmail.com>
30357 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
30359 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30361 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
30363 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
30365 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
30367 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30369 * gensymlist.sh.in: Use TARGET_CC instead of CC.
30371 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30373 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
30374 * docs/grub.texi (Command-line and menu entry commands): Document play
30377 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30379 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
30380 parse arguments as inline tempo and notes. Move code for playing notes
30382 (play): ... new function.
30384 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30386 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
30387 grub_uint16_t instead of short.
30388 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
30389 disk from little endian to cpu endianness.
30391 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30393 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
30394 GRUB_TICKS_PER_SECOND instead of 120.
30396 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30398 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
30399 escape sequence after \e.
30401 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30403 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
30404 non-ASCII characters.
30406 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30408 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
30409 set root in single quotes to prevent \, from being unescaped.
30411 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30413 Prevent unknown commands from stopping menuentry execution.
30415 * script/execute.c (grub_script_execute_cmdline): Print error after
30418 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30420 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
30421 Reported by: Pavel Pisa.
30423 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30425 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
30427 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30429 Merge grub_ieee1275_map_physical into grub_map and rename to
30432 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
30433 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
30435 * kern/ieee1275/openfw.c (grub_map): Rename to ...
30436 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
30438 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
30440 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30442 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
30443 opening and not after.
30445 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30447 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
30450 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30452 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
30453 (alloc_phys): Use ALIGN_UP instead of align_addr.
30455 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30457 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
30459 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30461 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
30463 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30465 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
30468 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30470 Fix over-4GiB seek on sparc64.
30472 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
30473 Replace pos_i and pos_lo with pos. All users updated.
30474 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30476 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30478 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
30481 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30483 * util/grub-mkrawimage.c (main): Call set_program_name.
30485 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30487 Properly align 64-bit targets.
30489 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
30490 (generate_image): Use ALIGN_ADDR.
30492 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30494 Properly create cross-endian images.
30496 * include/grub/types.h (grub_host_to_target_addr): New macro
30497 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
30499 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30501 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
30503 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30505 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
30507 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
30508 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
30509 (grub_linux_boot): Divide by 64K when on VESA.
30511 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30513 Support GRUB_GFXPAYLOAD_LINUX.
30515 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
30516 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
30518 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30520 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
30521 to show messages instead of discarding them.
30522 Process errors after executing command and not before. Keep old method
30525 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
30527 * configure.ac: Check for ft2build.h.
30529 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30531 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
30533 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30535 * genkernsyms.sh.in: Use TARGET_CC.
30537 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
30541 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30543 * include/grub/multiboot2.h: Remove leftover file.
30544 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
30545 * include/grub/partition.h [GRUB_UTIL]: Likewise.
30547 2010-02-07 Yves Blusseau <blusseau@zetam.org>
30549 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
30551 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30553 Fix warnings in grub-emu when compiling with maximum warning options.
30555 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
30556 (grub_arch_modules_addr): Return 0 and not NULL.
30557 * util/misc.c (ENABLE_RELOCATABLE): New definition.
30558 (xstrdup): Use newstr instead of dup.
30559 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
30560 of disk to dsk to avoid shadowing.
30561 (find_free_slot): Fix prototype.
30562 * util/getroot.c (grub_util_is_dmraid): Make static.
30563 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
30564 Add missing prototype.
30565 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
30567 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30569 * loader/i386/linux.c (grub_linux_setup_video): Handle error
30572 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30574 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
30577 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30579 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
30580 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
30581 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
30582 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
30583 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
30584 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
30586 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30588 * include/grub/err.h (grub_err_printf): Don't export.
30590 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30592 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
30594 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30596 * include/grub/i18n.h (grub_gettext_dummy): Removed.
30597 * kern/misc.c (grub_gettext_dummy): Make static.
30599 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30601 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
30603 * kern/term.c (grub_putchar): Likewise.
30605 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30607 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
30608 buggy hook call and memory leak.
30610 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30612 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
30614 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30616 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
30618 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30620 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
30622 Return grub_errno on allocation error.
30624 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30626 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
30628 2010-02-06 Yves Blusseau <blusseau@zetam.org>
30630 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
30631 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
30633 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30635 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
30637 (grub_pxefs_open): Likewise.
30639 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30641 * util/grub.d/10_hurd.in: Add --class information to menuentries.
30642 * util/grub.d/10_kfreebsd.in: Likewise.
30643 * util/grub.d/10_linux.in: Likewise.
30645 2010-02-06 Colin D Bennett <colin@gibibit.com>
30647 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
30648 (gfxmenu_mod_SOURCES): New variable.
30649 (gfxmenu_mod_CFLAGS): Likewise.
30650 (gfxmenu_mod_LDFLAGS): Likewise.
30651 * include/grub/term.h (grub_term_set_current_output): Declare
30653 * docs/gfxmenu-theme-example.txt: New file.
30654 * gfxmenu/gfxmenu.c: Likewise.
30655 * gfxmenu/gui_box.c: Likewise.
30656 * gfxmenu/gui_canvas.c: Likewise.
30657 * gfxmenu/gui_circular_progress.c: Likewise.
30658 * gfxmenu/gui_image.c: Likewise.
30659 * gfxmenu/gui_label.c: Likewise.
30660 * gfxmenu/gui_list.c: Likewise.
30661 * gfxmenu/gui_progress_bar.c: Likewise.
30662 * gfxmenu/gui_string_util.c: Likewise.
30663 * gfxmenu/gui_util.c: Likewise.
30664 * gfxmenu/icon_manager.c: Likewise.
30665 * gfxmenu/model.c: Likewise.
30666 * gfxmenu/named_colors.c: Likewise.
30667 * gfxmenu/theme_loader.c: Likewise.
30668 * gfxmenu/view.c: Likewise.
30669 * gfxmenu/widget-box.c: Likewise.
30670 * include/grub/gfxmenu_model.h: Likewise.
30671 * include/grub/gfxmenu_view.h: Likewise.
30672 * include/grub/gfxwidgets.h: Likewise.
30673 * include/grub/gui.h: Likewise.
30674 * include/grub/gui_string_util.h: Likewise.
30675 * include/grub/icon_manager.h: Likewise.
30677 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30679 Agglomerate scrolling in gfxterm.
30681 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
30682 (grub_virtual_screen_setup): Initialise 'total_screen'.
30683 (write_char): Split to ...
30684 (paint_char): ... this ...
30685 (write_char): ... and this.
30686 (paint_char): Handle delayed scrolling.
30687 (draw_cursor): Likewise.
30688 (scroll_up): Split to ...
30689 (real_scroll): ... this ...
30690 (scroll_up): ... and this.
30691 (real_scroll): Handle multi-line scroll and draw below-the-bottom
30693 (grub_gfxterm_refresh): Call real_scroll.
30695 2010-02-06 Colin D Bennett <colin@gibibit.com>
30697 * include/grub/misc.h (grub_iscntrl): New inline function.
30698 (grub_isalnum): Likewise.
30699 (grub_strtol): Likewise.
30701 2010-02-06 Colin D Bennett <colin@gibibit.com>
30703 * normal/menu_text.c (get_entry_number): Move from here ...
30704 * normal/menu.c (get_entry_number): ... moved here.
30705 * include/grub/menu.h (grub_menu_get_default_entry_index):
30707 * normal/menu.c (grub_menu_get_default_entry_index): New function.
30708 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
30709 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
30710 (grub_menu_viewer_should_return): Likewise.
30711 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
30712 * normal/menu_text.c (run_menu): Enable menu switching.
30713 * normal/menu_viewer.c (should_return): New variable.
30714 (menu_viewer_changed): Likewise.
30715 (grub_menu_viewer_show_menu): Handle menu viewer changes.
30716 (grub_menu_viewer_should_return): New function.
30717 (menuviewer_write_hook): Likewise.
30718 (grub_menu_viewer_init): Likewise.
30720 2010-02-06 Colin D Bennet <colin@gibibit.com>
30721 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30723 Support for gfxterm in a window.
30725 * include/grub/gfxterm.h: New file.
30726 * include/grub/video.h (struct grub_video_rect): New declaration.
30727 (grub_video_rect_t): Likewise.
30728 * term/gfxterm.c (struct grub_gfxterm_window): New type.
30729 (refcount): New variable.
30730 (render_target): Likewise.
30731 (window): Likewise.
30732 (repaint_callback): Likewise.
30733 (grub_virtual_screen_setup): Use 'render_target'.
30734 (init_window): New function.
30735 (grub_gfxterm_init_window): Likewise.
30736 (grub_gfxterm_init): Check reference counter.
30738 (destroy_window): New function.
30739 (grub_gfxterm_destroy_window): Likewise.
30740 (grub_gfxterm_fini): Check reference counter.
30741 Use destroy_window.
30742 (redraw_screen_rect): Restore viewport.
30743 Use 'render_target' and 'window'.
30744 Call 'repaint_callback'.
30745 (write_char): Use 'render_target'.
30746 (draw_cursor): Likewise.
30747 (scroll_up): Restore viewport.
30748 Use 'render_target' and 'window'.
30749 Call 'repaint_callback'.
30750 (grub_gfxterm_cls): Likewise.
30751 (grub_gfxterm_refresh): Use 'window'.
30752 (grub_gfxterm_set_repaint_callback): New function.
30753 (grub_gfxterm_background_image_cmd): Use 'window'.
30754 (grub_gfxterm_get_term): New function.
30755 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
30757 2010-02-06 Colin D Bennett <colin@gibibit.com>
30759 Bitmap scaling support.
30761 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
30762 (bitmap_scale_mod_SOURCES): New variable.
30763 (bitmap_scale_mod_CFLAGS): Likewise.
30764 (bitmap_scale_mod_LDFLAGS): Likewise.
30765 * include/grub/bitmap_scale.h: New file.
30766 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
30767 (background_image_cmd_options): New variable.
30768 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
30769 (cmd): Rename and change type to ...
30770 (background_image_cmd_handle): ... this. All users updated.
30771 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
30772 * video/bitmap_scale.c: New file.
30774 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30778 * Makefile.in (LIBSDL): New variable.
30779 (enable_grub_emu_sdl): Likewise.
30780 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
30781 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
30782 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
30783 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
30784 * util/sdl.c: New file.
30786 2010-02-06 Colin D Bennett <colin@gibibit.com>
30787 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30789 Double buffering support.
30791 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
30792 * include/grub/video.h: Update comment.
30793 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
30795 (grub_video_fb_doublebuf_blit_init): New prototype.
30796 * term/gfxterm.c (scroll_up): Support double buffering.
30797 (grub_gfxterm_refresh): Likewise.
30798 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30799 (grub_video_fb_doublebuf_blit_init): Likewise.
30800 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30801 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30802 'displayed_page', 'render_page' and 'update_screen'.
30803 (grub_video_vbe_fini): Free offscreen buffer.
30804 (doublebuf_pageflipping_commit): New function.
30805 (doublebuf_pageflipping_update_screen): Likewise.
30806 (doublebuf_pageflipping_init): Likewise.
30807 (double_buffering_init): Likewise.
30808 (grub_video_vbe_setup): Enable doublebuffering.
30809 (grub_video_vbe_swap_buffers): Implement.
30810 (grub_video_vbe_set_active_render_target): Handle double buffering.
30811 (grub_video_vbe_get_active_render_target): Likewise.
30812 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30813 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30814 (grub_video_vbe_enable_double_buffering): Likewise.
30815 (grub_video_vbe_swap_buffers): Use update_screen.
30816 (grub_video_set_mode): Use double buffering.
30818 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30820 * maintainance/gentrigtables.py: Remove.
30821 * lib/trig.c: Likewise.
30823 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30825 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30827 (trigtables.c): New rule.
30828 (gentrigtables): Likewise.
30829 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30831 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30833 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30836 2010-02-06 Colin D Bennet <colin@gibibit.com>
30838 Trigonometry support.
30840 * include/grub/trig.h: New file.
30841 * lib/trig.c: Likewise.
30842 * maintainance/gentrigtables.py: Likewise.
30843 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30844 (trig_mod_SOURCES): New variable.
30845 (trig_mod_CFLAGS): Likewise.
30846 (trig_mod_LDFLAGS): Likewise.
30848 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30850 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30853 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30855 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30858 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30860 * util/hostdisk.c (open_device): Don't use partition device when reading
30861 before the partition.
30862 (grub_util_biosdisk_read): Don't read from partition and before the
30863 partition in single operation.
30864 (grub_util_biosdisk_write): Don't write to partition and before the
30865 partition in single operation.
30867 2010-02-03 Torsten Landschoff <torsten@debian.org>
30869 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30872 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30874 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
30876 (grub_biosdisk_write): Refuse to write to CDROM.
30878 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30880 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
30882 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30884 * font/font.c (find_glyph): Check that bmp_idx is available before
30886 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
30887 with (font == NULL).
30889 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
30891 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
30893 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
30895 * include/grub/script_sh.h (sourcecode): Add const qualifier.
30896 * util/grub-script-check.c (getline): Fix empty lines case.
30898 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
30900 * Makefile.in (check): Exit with fail status when one of the tests
30902 * tests/example_functional_test.c (example_test): Fix reversed assert.
30903 * tests/example_unit_test.c (example_test): Likewise.
30905 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
30907 * util/grub.d/10_linux.in: This script does not use any of the
30908 contents of gettext.sh, only the external command `gettext', so stop
30909 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
30910 the same prefix as GRUB.)
30911 * util/grub.d/10_kfreebsd.in: Likewise.
30913 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30915 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
30918 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30920 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30923 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30925 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
30926 having a 4KiB and not 32KiB buffer size.
30928 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30930 * util/hostfs.c: Include `<errno.h>'.
30931 (grub_hostfs_read): Handle errors from fseeko() and fread().
30933 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30935 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
30936 loop when using read hooks on files whose size isn't sector-aligned.
30938 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30940 Remove unused parameter.
30942 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
30943 (grub_iso9660_open): Remove initialization of `data->length'.
30945 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30947 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
30948 memleak conditions.
30950 2010-01-27 Carles Pina i Estany <carles@pina.cat>
30952 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
30953 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
30955 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30957 * util/bin2h.c (usage): Fix warning (space after backslash).
30959 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30961 * font/font.c: Include `grub/fontformat.h.
30962 Remove font file format constants.
30963 (grub_font_load): Use the new macros.
30964 * include/grub/fontformat.h: New file.
30965 * util/grub-mkfont.c: Include `grub/fontformat.c'.
30966 (write_font_pf2): Use the new macros.
30968 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30970 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
30973 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30975 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
30977 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
30978 (_start): Macroify `0x7F'.
30980 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
30981 (make_install_device): Use "(pxe)" as fallback prefix when booting
30984 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
30986 * configure.ac: Reset LIBS after check for libgcc symbols.
30988 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
30990 * util/hostdisk.c (open_device): Add trailing newline to debug
30993 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
30995 * configure.ac: Check for `limits.h'.
30996 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
30998 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
31000 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
31001 capitalize error strings.
31003 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
31005 * util/grub.d/10_hurd.in: Add a recovery mode.
31007 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
31009 * configure.ac: Check for libgcc symbols with -nostdlib.
31011 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
31013 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
31015 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31017 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
31018 stack since heap may be unavailable at that point.
31019 (grub_ofconsole_gotoxy): Likewise.
31021 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31023 * configure.ac: Check for _restgpr_14_x.
31024 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
31025 and _savegpr_* prototypes.
31027 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
31029 Use generic grub_reboot() for i386-efi.
31031 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
31032 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
31033 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
31035 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31037 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
31038 presence of "prefix" variable as it breaks when normal.mod is
31041 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31043 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
31044 stack since heap is unavailable at that point.
31046 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31048 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
31049 (grub_freebsd_bootinfo): Rewritten.
31050 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
31052 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31054 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
31056 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
31058 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
31061 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
31063 * util/misc.c (make_system_path_relative_to_its_root): Change the work
31064 around for handling "/" to the correct fix. Fix a memory leak. Use
31065 xstrdup instead of strdup.
31067 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31069 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
31071 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31073 Optimise glyph lookup by Basic Multilingual Plane lookup array.
31075 * font/font.c (struct grub_font): New member 'bmp_idx'.
31076 (font_init): Initialise 'bmp_idx'.
31077 (load_font_index): Fill 'bmp_idx'.
31078 (find_glyph): Make inline. Use bmp_idx for BMP characters.
31080 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31082 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
31085 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31087 Move context handling out of the kernel.
31089 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
31090 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
31091 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
31092 * conf/i386-efi.rmk: Likewise.
31093 * conf/i386-ieee1275.rmk: Likewise.
31094 * conf/i386-pc.rmk: Likewise.
31095 * conf/powerpc-ieee1275.rmk: Likewise.
31096 * conf/sparc64-ieee1275.rmk: Likewise.
31097 * conf/x86_64-efi.rmk: Likewise.
31098 * include/grub/env.h: Include grub/menu.h.
31099 (grub_env_var_type): Removed.
31100 (grub_env_var): Replaced field 'type' with 'global'.
31101 (grub_env_find): New prototype.
31102 (grub_env_context_open): Remove EXPORT_FUNC.
31103 (grub_env_context_close): Likewise.
31104 (grub_env_export): Likewise.
31105 (grub_env_set_data_slot): Removed.
31106 (grub_env_get_data_slot): Likewise.
31107 (grub_env_unset_data_slot): Likewise.
31108 (grub_env_unset_menu): New prototype.
31109 (grub_env_set_menu): Likewise.
31110 (grub_env_get_menu): Likewise.
31111 * include/grub/env_private.h: New file.
31112 * include/grub/normal.h (grub_context_init): New prototype.
31113 (grub_context_fini): Likewise.
31114 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
31115 * normal/context.c (grub_cmd_export): ... to here.
31116 * kern/env.c: Include env_private.h.
31117 (HASHSZ): Moved to include/grub/env_private.h.
31118 (grub_env_context): Likewise.
31119 (grub_env_sorted_var): Likewise.
31120 (current_context): Renamed from this ...
31121 (grub_current_context): ...to this. 'static' removed. All users updated.
31122 (grub_env_find): Removed 'static'.
31123 (grub_env_context_open): Moved to normal/context.c.
31124 (grub_env_context_close): Likewise.
31125 (grub_env_export): Likewise.
31126 (mangle_data_slot_name): Removed.
31127 (grub_env_set_data_slot): Likewise.
31128 (grub_env_get_data_slot): Likewise.
31129 (grub_env_unset_data_slot): Likewise.
31130 * kern/main.c (grub_set_root_dev): Don't export root.
31131 It will be done later.
31132 (grub_main): Don't export prefix.
31133 It will be done later.
31134 * normal/context.c: New file.
31135 * normal/main.c (free_menu): Use grub_env_unset_menu.
31136 (grub_normal_add_menu_entry): Use grub_env_get_menu.
31137 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
31138 (GRUB_MOD_INIT(normal)): Call grub_context_init.
31139 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
31141 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31145 * commands/setpci.c: New file.
31146 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
31147 (setpci_mod_SOURCES): New variable.
31148 (setpci_mod_CFLAGS): Likewise.
31149 (setpci_mod_LDFLAGS): Likewise.
31151 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31153 Byte-addressable PCI configuration space.
31155 * bus/pci.c (grub_pci_make_address): Use byte address instead of
31157 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
31158 GRUB_PCI_REG_CACHELINE.
31159 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
31160 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
31161 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
31162 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
31163 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
31164 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
31165 grub_pci_make_address.
31166 (lock_rom_area): Likewise.
31167 * commands/lspci.c (grub_lspci_iter): Use macroses
31168 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
31169 of grub_pci_make_address.
31170 * disk/ata.c (grub_ata_pciinit): Likewise.
31171 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
31172 (GRUB_PCI_REG_VENDOR): Likewise.
31173 (GRUB_PCI_REG_DEVICE): Likewise.
31174 (GRUB_PCI_REG_COMMAND): Likewise.
31175 (GRUB_PCI_REG_STATUS): Likewise.
31176 (GRUB_PCI_REG_REVISION): Likewise.
31177 (GRUB_PCI_REG_CLASS): Likewise.
31178 (GRUB_PCI_REG_CACHELINE): Likewise.
31179 (GRUB_PCI_REG_LAT_TIMER): Likewise.
31180 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
31181 (GRUB_PCI_REG_BIST): Likewise.
31182 (GRUB_PCI_REG_ADDRESSES): Likewise.
31183 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31184 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31185 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31186 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31187 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31188 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31189 (GRUB_PCI_REG_CIS_POINTER): Likewise.
31190 (GRUB_PCI_REG_SUBVENDOR): Likewise.
31191 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
31192 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
31193 (GRUB_PCI_REG_CAP_POINTER): Likewise.
31194 (GRUB_PCI_REG_IRQ_LINE): Likewise.
31195 (GRUB_PCI_REG_IRQ_PIN): Likewise.
31196 (GRUB_PCI_REG_MIN_GNT): Likewise.
31197 (GRUB_PCI_REG_MAX_LAT): Likewise.
31198 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
31199 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
31200 * video/efi_uga.c (find_framebuf): Likewise.
31201 * video/sm712.c (grub_video_sm712_setup): Likewise.
31202 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
31205 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31207 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
31208 can be reliably determined to be supported.
31210 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31212 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
31213 that VESA is supported.
31214 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
31217 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31219 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
31221 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31223 * util/misc.c (make_system_path_relative_to_its_root): Work around
31224 special-casing of "/", as previous incarnation of this routine did.
31226 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31228 Fix any-emu compilation.
31230 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
31231 * grub_bin2h_SOURCES: New variable.
31233 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31235 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
31237 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31239 * util/grub.d/00_header.in: Fix handling of locale_dir.
31241 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31243 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
31244 as possible unifont location (Gentoo).
31245 Reported by: Alexander Brüning
31247 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31249 Don't try to generate lists for kernel.img.
31251 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
31252 (pkglib_MODULES): Remove kernel.img.
31253 (kernel_img_EXPORTS): Removed.
31254 (kernel_img_RELOCATABLE): New variable.
31255 * conf/x86_64-efi.rmk: Likewise.
31256 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
31258 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31260 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
31261 grub_xasprintf or grub_snprintf.
31262 (grub_vsprintf): Likewise.
31263 (grub_snprintf): New proto.
31264 (grub_vsnprintf): Likewise.
31265 (grub_xasprintf): Likewise.
31266 (grub_xvasprintf): Likewise.
31267 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
31268 (grub_sprintf): Removed.
31269 (grub_vsnprintf): New function.
31270 (grub_snprintf): Likewise.
31271 (grub_xvasprintf): Likewise.
31272 (grub_xasprintf): Likewise.
31273 (grub_vsprintf): Renamed to ...
31274 (grub_vsnprintf_real): ...this. New argument max_len.
31276 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
31278 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
31279 fix grub-script-check warning.
31281 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31283 * include/grub/font.h (grub_font_load): Fix prototype.
31285 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31287 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
31289 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31291 * include/grub/x86_64/at_keyboard.h: New file.
31293 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31295 * loader/mips/linux.c: Include missing grub/i18n.h.
31297 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31299 * normal/menu.c (notify_execution_failure): Clarify error message.
31301 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31303 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
31304 return value (and revert all return statements). Update users.
31306 2010-01-20 Dan Merillat <debian@dan.merillat.org>
31308 * kern/device.c (grub_device_iterate): Allocate new part_ent
31309 structure based on sizeof (*p) rather than sizeof (p->next), to
31310 account for structure padding.
31312 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
31313 disk is NULL, which might happen for LVM physical volumes with no
31316 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31318 * loader/mips/linux.c (grub_cmd_initrd)
31319 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
31321 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31323 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
31324 (grub_video_video_init, grub_video_bitmap_init)
31325 (grub_font_manager_init, grub_term_gfxterm_init)
31326 (grub_at_keyboard_init): New extern declarations.
31327 (grub_machine_init): Initialize gfxterm and at_keyboard.
31329 * kern/main.c (grub_main): Revert grub_printf delay kludge.
31331 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
31332 `gfxterm.mod' into core image.
31334 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31335 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31336 (kernel_img_FORMAT): Copy to ...
31338 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31339 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31340 (kernel_img_FORMAT): ... here, and ...
31342 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31343 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31344 (kernel_img_FORMAT): ... here.
31346 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
31347 and input (at_keyboard) terminals in kernel.
31348 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
31350 (pkglib_MODULES): Remove `pci.mod'.
31351 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
31352 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
31353 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
31354 (at_keyboard_mod_LDFLAGS): Remove variables.
31356 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
31358 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
31360 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
31362 * include/grub/mips/libgcc.h: Only export symbols for functions
31363 that libgcc provides.
31365 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
31369 * bus/bonito.c: New file.
31370 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
31371 GRUB_PCI_NUM_DEVICES.
31372 * term/i386/pc/serial.c: Move to ...
31373 * term/serial.c: ... here. All users updated.
31374 * util/i386/pc/grub-mkimage.c: Move to ...
31375 * util/grub-mkrawimage.c: ... here. All users updated.
31376 * term/i386/pc/at_keyboard.c: Move to ...
31377 * term/at_keyboard.c: ... here. All users updated.
31378 * conf/mips-qemu-mips.rmk: New file.
31379 * conf/mips-yeeloong.rmk: Likewise.
31380 * conf/mips.rmk: Likewise.
31381 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
31383 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
31385 (grub_ata_pciinit): Support CS5536.
31386 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
31387 * font/font_cmd.c (loadfont_command): Open file before passing it to
31389 (pseudo_file_read): New function.
31390 (pseudo_file_close): Likewise.
31391 (pseudo_fs): New structure.
31392 (load_font_module): New function.
31393 (GRUB_MOD_INIT(font_manager)): Load embedded font.
31394 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
31395 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
31396 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
31397 * include/grub/i386/at_keyboard.h: Split into ...
31398 * include/grub/at_keyboard.h: ... this ...
31399 * include/grub/i386/at_keyboard.h: ... and this.
31400 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
31402 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
31404 (grub_elf64_size): Likewise.
31405 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
31407 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
31408 * include/grub/i386/coreboot/serial.h: Rewritten.
31409 * include/grub/i386/ieee1275/serial.h: Include
31410 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
31411 * include/grub/i386/pc/serial.h: Moved from here ...
31412 * include/grub/serial.h: ... to here. All users updated.
31413 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
31414 (GRUB_PCI_NUM_BUS): Likewise.
31415 (GRUB_PCI_NUM_DEVICES): Likewise.
31416 (grub_pci_device_map_range): Add missing volatile keyword.
31417 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
31418 * include/grub/mips/at_keyboard.h: New file.
31419 * include/grub/mips/cache.h: Likewise.
31420 * include/grub/mips/io.h: Likewise.
31421 * include/grub/mips/kernel.h: Likewise.
31422 * include/grub/mips/libgcc.h: Likewise.
31423 * include/grub/mips/pci.h: Likewise.
31424 * include/grub/mips/qemu-mips/boot.h: Likewise.
31425 * include/grub/mips/qemu-mips/kernel.h: Likewise.
31426 * include/grub/mips/qemu-mips/loader.h: Likewise.
31427 * include/grub/mips/qemu-mips/memory.h: Likewise.
31428 * include/grub/mips/qemu-mips/serial.h: Likewise.
31429 * include/grub/mips/qemu-mips/time.h: Likewise.
31430 * include/grub/mips/relocator.h: Likewise.
31431 * include/grub/mips/time.h: Likewise.
31432 * include/grub/mips/types.h: Likewise.
31433 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
31434 * include/grub/mips/yeeloong/boot.h: Likewise.
31435 * include/grub/mips/yeeloong/kernel.h: Likewise.
31436 * include/grub/mips/yeeloong/loader.h: Likewise.
31437 * include/grub/mips/yeeloong/memory.h: Likewise.
31438 * include/grub/mips/yeeloong/pci.h: Likewise.
31439 * include/grub/mips/yeeloong/serial.h: Likewise.
31440 * include/grub/mips/yeeloong/time.h: Likewise.
31441 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
31442 * kern/elf.c (grub_elf32_size): New parameter. All users
31444 (grub_elf64_size): Likewise.
31445 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
31446 Load modules before saying "Welcome to GRUB!".
31447 Call grub_refresh after saying "Welcome to GRUB!".
31448 * kern/mips/cache.S: New file.
31449 * kern/mips/cache_flush.S: Likewise.
31450 * kern/mips/dl.c: Likewise.
31451 * kern/mips/init.c: Likewise.
31452 * kern/mips/qemu-mips/init.c: Likewise.
31453 * kern/mips/startup.S: Likewise.
31454 * kern/mips/yeeloong/init.c: Likewise.
31455 * kern/term.c (grub_putcode): Handle NULL terminal.
31456 (grub_getcharwidth): Likewise.
31457 (grub_getkey): Likewise.
31458 (grub_checkkey): Likewise.
31459 (grub_getkeystatus): Likewise.
31460 (grub_getxy): Likewise.
31461 (grub_getwh): Likewise.
31462 (grub_gotoxy): Likewise.
31463 (grub_cls): Likewise.
31464 (grub_setcolorstate): Likewise.
31465 (grub_setcolor): Likewise.
31466 (grub_getcolor): Likewise.
31467 (grub_refresh): Likewise.
31468 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
31469 (write_jump): Add hatch nop.
31470 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
31471 * lib/mips/setjmp.S: New file.
31472 * loader/mips/linux.c: Likewise.
31473 * term/i386/pc/at_keyboard.c: Move from here ...
31474 * term/at_keyboard.c: ... to here.
31475 * term/i386/pc/serial.c: Moved from here ...
31476 * term/serial.c: ... to here. All users updated.
31477 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
31478 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
31479 (serial_translate_key_sequence): Avoid deadlock.
31480 (grub_serial_getkey): Handle backspace.
31481 (grub_serial_putchar): Fix newline handling.
31482 * util/i386/pc/grub-mkimage.c: Move from here ...
31483 * util/grub-mkrawimage.c: ... to here. All users updated.
31484 (generate_image): New parameters 'font_path' and 'format'.
31485 Support embedding font.
31486 Use grub_host_to_target* instead of grub_cpu_to_le*.
31487 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
31488 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
31489 (options): New option "--font".
31491 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
31492 (main): Handle "--font".
31493 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
31494 (grub_virtual_screen_setup): Set bg_color_display.
31495 (redraw_screen_rect): Use bg_color_display instead of incorrect
31497 (grub_gfxterm_cls): Likewise.
31498 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
31499 Support embedding config file.
31500 (add_segments): Likewise.
31501 (options): New option "--config".
31502 (main): Handle "--config".
31503 * video/sm712.c: New file.
31505 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31507 Fix parallel builds.
31509 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
31510 font.c depend on ascii.h).
31512 2010-01-12 Carles Pina i Estany <carles@pina.cat>
31514 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
31516 2010-01-11 Carles Pina i Estany <carles@pina.cat>
31518 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
31519 By default: disabled.
31520 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
31523 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31525 * font/font.c: Update copyright years.
31526 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
31528 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31530 * font/font.c: Include `ascii.h'.
31531 (ASCII_BITMAP_SIZE): New macro.
31532 (ascii_font_glyph): Define.
31533 (ascii_glyph_lookup): New function.
31534 (grub_font_get_string_width): Change comment. If glyph not found, use
31535 ascii_glyph_lookup.
31536 (grub_font_get_glyph_with_fallback): If glyph not available returns
31537 ascii_glyph_lookup.
31538 * util/grub-mkfont.c (file_formats): New enum.
31539 (options): Add `ascii-bitmaps' new option.
31540 (usage): Add `asii-bitmaps' new option.
31541 (write_font_ascii_bitmap): New function.
31542 (write_font): Rename to ...
31543 (write_font_p2): ... this. Remove print_glyphs call.
31544 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
31545 used. Call print_glyphs.
31546 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
31548 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31550 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
31551 (grub_bin2h_SOURCES): New variable.
31552 * util/bin2h.c: New file.
31554 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31556 * include/multiboot.h: Resynced with spec.
31557 * include/multiboot2.h: Likewise.
31558 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
31559 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
31561 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31563 * include/grub/term.h (grub_term_register_input,
31564 grub_term_register_output): Check return of terminal init()
31565 routines, and abort if errors are raised.
31567 * commands/terminal.c: Update copyright year.
31569 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31571 * commands/terminal.c (grub_cmd_terminal_input)
31572 (grub_cmd_terminal_output): Check return of terminal init()
31573 routines, and abort if errors are raised.
31575 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31577 * include/grub/i386/bsd.h: Fix include pathes.
31579 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31581 Add missing *BSD copyright headers.
31583 * include/grub/aout.h: Add BSD licence.
31584 * include/grub/i386/bsd.h: Parts under different licences moved to ...
31585 * include/grub/i386/freebsd_linker.h: ... here,
31586 * include/grub/i386/freebsd_reboot.h: ... here,
31587 * include/grub/i386/netbsd_bootinfo.h: ... here,
31588 * include/grub/i386/netbsd_reboot.h: ... here,
31589 * include/grub/i386/openbsd_bootarg.h: ... here,
31590 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
31591 licence to each file.
31593 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31595 * acinclude.m4: Remove `nop' assembly instruction; it's not
31596 implemented by all architectures.
31598 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31600 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
31601 ELILO. This is no longer necessary.
31603 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
31605 Added new tool, grub-scrit-check to verify grub.cfg syntax.
31607 * util/grub-script-check.c: grub-script-check tool.
31608 * conf/common.rmk: Make rules for grub-script-check.
31610 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31612 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
31613 spotting it back in 2008. Shame on me for forgetting he did.
31615 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
31617 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31619 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
31620 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
31621 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
31622 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
31623 (GRUB_VIDEO_TYPE_EFI): Rename to ...
31624 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
31626 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
31628 * include/grub/test.h: Add license header.
31629 * tests/example_functional_test.c: Likewise.
31630 * tests/example_unit_test.c: Likewise.
31631 * tests/lib/functional_test.c: Likewise.
31632 * tests/lib/test.c: Likewise.
31633 * tests/lib/unit_test.c: Likewise.
31635 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
31637 Use flag-based instead of hook-based video mode selection and "auto"
31640 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
31641 (grub_video_set_mode): Changed prototype. All users updated.
31642 (grub_video_check_mode_flag): New inline function.
31643 * video/video.c (parse_modespec): New function.
31644 (grub_video_set_mode): Parse flags and keywords.
31646 2010-01-17 Carles Pina i Estany <carles@pina.cat>
31648 * util/misc.c (grub_util_info): Fix the order of the parameters in a
31651 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
31653 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
31655 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31657 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
31659 * util/grub-emu.c (usage): Likewise.
31660 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
31661 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31662 * util/i386/pc/grub-mkimage.c (usage): Likewise.
31663 * util/i386/pc/grub-setup.c (usage): Likewise.
31665 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31667 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
31669 (grub_util_info): Likewise.
31670 (grub_util_error): Likewise.
31671 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
31672 and/or new lines in `grub_util_warna', `grub_util_info',
31673 `grub_util_error' calls.
31674 * util/getroot.c: Likewise.
31675 * util/grub-editenv.c: Likewise.
31676 * util/grub-emu.c: Likewise.
31677 * util/grub-fstest.c: Likewise.
31678 * util/grub-mkdevicemap.c: Likewise.
31679 * util/grub-mkfont.c: Likewise.
31680 * util/grub-mkpasswd-pbkdf2.c: Likewise.
31681 * util/grub-mkrelpath.c: Likewise.
31682 * util/grub-pe2elf.c: Likewise.
31683 * util/grub-probe.c: Likewise.
31684 * util/hostdisk.c: Likewise.
31685 * util/i386/efi/grub-mkimage.c: Likewise.
31686 * util/i386/pc/grub-mkimage.c: Likewise.
31687 * util/i386/pc/grub-setup.c: Likewise.
31688 * util/ieee1275/ofpath.c: Likewise.
31689 * util/mkisofs/eltorito.c: Likewise.
31690 * util/mkisofs/rock.c: Likewise.
31691 * util/mkisofs/write.c: Likewise.
31692 * util/raid.c: Likewise.
31693 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31694 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31696 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31698 Enable multiboot on non-pc.
31700 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
31701 multiboot.mod and multiboot2.mod to ...
31702 * conf/i386.rmk (pkglib_MODULES): ... here.
31703 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
31705 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
31706 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
31708 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
31709 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
31711 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
31712 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
31714 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
31715 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
31717 (ata_mod_SOURCES): Removed.
31718 (ata_mod_CFLAGS): Likewise.
31719 (ata_mod_LDFLAGS): Likewise.
31720 (relocator_mod_SOURCES): Removed.
31721 (relocator_mod_CFLAGS): Likewise.
31722 (relocator_mod_ASFLAGS): Likewise.
31723 (relocator_mod_LDFLAGS): Likewise.
31725 * include/grub/x86_64/multiboot.h: New file.
31726 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
31729 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31731 Video multiboot support.
31733 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
31735 * include/multiboot.h: Resynced with multiboot specification.
31736 * include/multiboot2.h: Likewise.
31737 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
31738 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
31739 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
31740 (HAS_VGA_TEXT): Likewise.
31741 (accepts_video): New variable.
31742 (grub_multiboot_set_accepts_video): New function.
31743 (grub_multiboot_get_mbi_size): Account for video structures.
31744 (set_video_mode): New function.
31745 (retrieve_video_parameters): Likewise.
31746 (grub_multiboot_make_mbi): Fill video fields.
31748 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31752 * include/grub/video.h (grub_video_driver_id): New type.
31753 (grub_video_adapter): New member 'id'. All users updated.
31754 (grub_video_get_driver_id): New proto.
31755 * video/video.c (grub_video_get_driver_id): New function.
31757 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31759 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
31762 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31764 * normal/cmdline.c (print_completion): Gettextizze.
31766 2001-01-14 Carles Pina i Estany <carles@pina.cat>
31768 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
31770 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31772 * gettext/gettext.c (grub_gettext_translate): Push and pop
31774 (grub_gettext_delete_list): Change comment style.
31775 * kern/err.c (grub_error): Gettextizze.
31776 (grub_fatal): Gettextizze.
31778 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31780 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
31781 (grub_linux16_real_boot): ... this.
31782 * kern/i386/loader.S: Likewise.
31783 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
31784 (grub_linux16_boot): New function. Switches to text mode and calls
31785 grub_linux16_real_boot().
31787 * loader/i386/bsd.c: Include `<grub/video.h>'.
31788 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
31789 text mode before calling grub_unix_real_boot().
31791 * loader/i386/multiboot.c: Include `<grub/video.h>'.
31792 (grub_multiboot_boot): Switch to text mode before calling
31793 grub_relocator32_boot().
31795 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31796 (grub_chainloader_boot): Switch to text mode before calling
31797 grub_chainloader_real_boot().
31799 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31800 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31802 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31805 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31806 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31808 * util/grub.d/00_header.in: Define a "savedefault" function for use
31810 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31812 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31813 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31815 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31816 saved_entry if boot_once is unset.
31817 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31818 previous saved entry (i.e. grub-reboot).
31820 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31822 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31824 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31826 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31828 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31830 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31832 * util/grub-reboot.in: Fix --version output.
31833 * util/grub-set-default.in: Likewise.
31835 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31837 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31840 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31842 * util/grub.d/00_header.in: Quote the value assigned to `default',
31843 in case it contains spaces.
31845 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31847 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31848 `save_default_entry' call from the macosx case to the linux case.
31850 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
31851 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
31853 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31854 in `chosen' environment variable.
31855 * normal/menu_text.c (get_entry_number): Check if the variable
31856 matches the title of a menu entry.
31857 (run_menu): Pass menu to get_entry_number.
31859 * util/grub-reboot.in: New file.
31860 * util/grub-set-default.in: New file.
31861 * conf/common.rmk (grub-reboot): New utility.
31862 (grub-set-default): New utility.
31864 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31865 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31866 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31867 move it to `saved_entry' for the next boot. Load environment on
31869 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
31870 * util/grub.d/10_hurd.in: Likewise.
31871 * util/grub.d/10_linux.in (linux_entry): Likewise.
31872 * util/grub.d/10_windows.in: Likewise.
31873 * util/grub.d/30_os-prober.in: Likewise.
31875 * util/grub-install.in: Create environment block.
31876 * util/i386/efi/grub-install.in: Likewise.
31877 * util/ieee1275/grub-install.in: Likewise.
31878 * util/sparc64/ieee1275/grub-install.in: Likewise.
31880 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
31882 Unit testing framework for GRUB.
31884 * Makefile.in: Test framework build rules for 'make check'.
31885 * conf/tests.rmk: Build rules for individual tests and framework.
31887 * include/grub/test.h: Header file for whitebox tests.
31888 * tests/lib/functional_test.c: Framework support for whitebox
31890 * tests/lib/test.c: Common whitebox testing code for unit and
31892 * tests/lib/unit_test.c: Framework support for whitebox unit
31895 * tests/util/grub-shell-tester.in: Support utility for grub-script
31897 * tests/util/grub-shell.in: Utility to execute grub-script
31898 commands in a Qemu instance.
31900 * tests/example_functional_test.c: Example whitebox functional
31902 * tests/example_grub_script_test.in: Example grub-script test.
31903 * tests/example_scripted_test.in: Example scripted test.
31904 * tests/example_unit_test.c: Example whitebox unit test.
31906 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
31908 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
31909 Add loader/i386/multiboot_mbi.c.
31910 (multiboot2_mod_SOURCES): Likewise.
31911 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
31912 (multiboot2_mod_SOURCES): Likewise.
31913 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
31914 (grub_multiboot_make_mbi): Likewise.
31915 (grub_multiboot_free_mbi): Likewise.
31916 (grub_multiboot_init_mbi): Likewise.
31917 (grub_multiboot_add_module): Likewise.
31918 (grub_multiboot_set_bootdev): Likewise.
31919 * loader/i386/multiboot.c (mbi): Removed.
31920 (mbi_dest): Likewise.
31921 (alloc_mbi): New variable.
31922 (grub_multiboot_payload_size): Removed. All users updated.
31923 (grub_multiboot_pure_size): New variable.
31924 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
31925 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
31926 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
31927 (grub_fill_multiboot_mmap): Likewise.
31928 (grub_multiboot_get_bootdev): Likewise.
31929 (grub_multiboot): Use multiboot_mbi functions.
31930 * loader/i386/multiboot_mbi.c: New file.
31932 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31934 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
31935 it would result in module crash.
31937 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31939 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
31940 (grub_ofconsole_getwh): Split to ...
31941 (grub_ofconsole_getwh): ... this.
31942 (grub_ofconsole_dimensions): ...and this.
31943 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
31945 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
31947 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
31949 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31951 * loader/i386/pc/multiboot2.c: Removed stalled file.
31953 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31955 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
31956 Reported by: Grégoire Sutre
31958 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
31960 * util/misc.c (canonicalize_file_name): New function.
31961 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
31962 instead of realpath().
31964 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
31966 * util/grub-install.in (usage): Clarify meaning of --root-directory,
31967 and make it clearer that it's optional. Based on confusion
31970 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31972 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
31973 in premature implicit newline.
31975 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31977 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
31978 which resulted in garbled command line at the end of screen.
31980 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31982 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
31983 initialization with similar approach as with other Linux loaders.
31985 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31987 Fix i386-ieee1275 build.
31989 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
31990 and grub_term_height() for video_{width,height} initialization.
31992 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31994 Fix grub-emu build.
31996 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
31998 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31999 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
32001 Support for multiple terminals.
32003 * Makefile.in (pkglib_DATA): terminal.lst.
32004 (terminal.lst): New target.
32005 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
32006 (GRUB_MOD_INIT(handler)): Likewise.
32007 (GRUB_MOD_FINI(handler)): Likewise.
32008 * commands/help.c (grub_cmd_help): Handle multiple terminals.
32009 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
32010 * commands/sleep.c (do_print): Use grub_term_restore_pos.
32011 (grub_cmd_sleep): Use grub_term_save_pos.
32012 * commands/terminal.c: New file.
32013 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
32014 commands/terminal.c and lib/charset.c.
32015 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
32016 (pkglib_MODULES): Add terminal.mod.
32017 (terminal_mod_SOURCES): New variable.
32018 (terminal_mod_CFLAGS): Likewise.
32019 (terminal_mod_LDFLAGS): Likewise.
32020 * genhandlerlist.sh: Don't handle terminals.
32021 * genmk.rb: Generate terminal-*.lst.
32022 * genterminallist.sh: New file.
32023 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
32024 (grub_is_valid_utf8): Likewise.
32025 (grub_utf8_to_ucs4_alloc): Likewise.
32026 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
32027 (grub_menu_register_viewer): Changed argument.
32028 (grub_menu_try_text): New proto.
32029 (grub_gfxmenu_try_hook): New declaration.
32030 * include/grub/normal.h (grub_normal_exit_level): New declaration.
32031 (grub_menu_init_page): Additional argument term.
32032 (grub_normal_init_page): Likewise.
32033 (grub_cmdline_get): Arguments simplified.
32034 (grub_utf8_to_ucs4_alloc): Removed.
32035 (grub_print_ucs4): Additional argument term.
32036 (grub_getstringwidth): Likewise.
32037 (grub_print_message_indented): Likewise.
32038 (grub_menu_text_register_instances): New proto.
32039 (grub_show_menu): Likewise.
32040 (read_terminal_list): Likewise.
32041 (grub_set_more): Likewise.
32042 * include/grub/parser.h: Include handler.h.
32043 * include/grub/reader.h: Rewritten.
32044 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
32045 (GRUB_TERM_WIDTH): Changed to function.
32046 (GRUB_TERM_HEIGHT): Likewise.
32047 (GRUB_TERM_BORDER_WIDTH): Likewise.
32048 (GRUB_TERM_BORDER_HEIGHT): Likewise.
32049 (GRUB_TERM_NUM_ENTRIES): Likewise.
32050 (GRUB_TERM_ENTRY_WIDTH): Likewise.
32051 (GRUB_TERM_CURSOR_X): Likewise.
32052 (grub_term_input_class): Likewise.
32053 (grub_term_output_class): Likewise.
32054 (grub_term_outputs_disabled): New declaration.
32055 (grub_term_inputs_disabled): Likewise.
32056 (grub_term_outputs): Likewise.
32057 (grub_term_inputs): Likewise.
32058 (grub_term_register_input): Rewritten.
32059 (grub_term_register_output): Likewise.
32060 (grub_term_unregister_input): Likewise.
32061 (grub_term_unregister_output): Likewise.
32062 (FOR_ACTIVE_TERM_INPUTS): New macro.
32063 (FOR_DISABLED_TERM_INPUTS): Likewise.
32064 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
32065 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
32066 * include/grub/terminfo.h: Add oterm argument to all protypes.
32067 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
32068 Use grub_rescue_run.
32069 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
32071 * kern/reader.c: Removed. All users updated.
32072 * kern/rescue_reader.c (grub_rescue_init): Removed.
32073 (grub_rescue_reader): Likewise.
32074 (grub_register_rescue_reader): Likewise.
32075 (grub_rescue_run): New function based on kern/reader.c.
32076 * kern/term.c: Adapted for multiterm.
32077 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
32078 (grub_is_valid_utf8): Likewise.
32079 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
32080 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
32082 * loader/i386/linux.c (grub_linux_boot): Likewise.
32083 * normal/auth.c (grub_username_get): New function.
32084 (grub_auth_check_authentication): Use grub_username_get.
32085 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
32086 * normal/color.c: Adapt for multiterm.
32087 * normal/main.c (read_config_file): Don't use grub_reader_loop.
32088 (grub_normal_init_page): Additional argument term.
32089 (read_lists): Call read_terminal_lists.
32090 (grub_enter_normal_mode): Call grub_cmdline_run.
32091 Handle grub_normal_exit_level.
32092 (grub_cmd_normal): Make reentrant.
32093 (grub_cmd_normal_exit): New function.
32094 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
32095 * normal/menu.c: Adapt for multiterm.
32096 * normal/menu_entry.c: Likewise.
32097 * normal/menu_text.c: Likewise.
32098 * normal/menu_viewer.c: Removed. All users updated.
32099 * normal/term.c: New file.
32100 * util/console.c: Change order of includes to workaround a bug in
32102 * term/terminfo.c: New argument oterm on all exported functions.
32104 * util/grub-editenv.c (grub_term_input_class): Removed.
32105 (grub_term_output_class): Likewise.
32107 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
32109 Make loader output a bit more user-friendly.
32111 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
32112 is being loaded. Likewise for the Hurd.
32114 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
32115 that kernel of FreeBSD ${version} is being loaded.
32117 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
32119 (grub_cmd_initrd): Likewise.
32120 * util/grub.d/10_linux.in (linux_entry): Print message indicating
32121 that Linux ${version} is being loaded. Likewise for initrd.
32123 2010-01-09 Carles Pina i Estany <carles@pina.cat>
32125 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
32127 2010-01-08 Carles Pina i Estany <carles@pina.cat>
32129 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
32130 (GRUB_MOD_INIT): Gettextizze.
32131 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
32132 (GRUB_MOD_INIT): Gettextizze.
32133 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
32134 (grub_cmd_linux): Capitalise Linux.
32135 (GRUB_MOD_INIT): Gettextizze.
32136 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
32137 (grub_cmd_linux): Capitalise Linux.
32138 (GRUB_MOD_INIT): Gettextizze.
32139 * loader/i386/linux.c: Include `<grub/i18n.h>'.
32140 (grub_cmd_linux): Capitalise Linux.
32141 (GRUB_MOD_INIT): Gettextizze.
32142 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
32143 (GRUB_MOD_INIT): Gettextizze.
32144 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
32145 (grub_cmd_linux): Capitalise Linux.
32146 (GRUB_MOD_INIT): Gettextizze.
32147 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
32148 (grub_cpu_xnu_init): Gettextizze.
32149 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
32150 (GRUB_MOD_INIT): Gettextizze.
32151 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
32152 (GRUB_MOD_INIT): Gettextizze.
32153 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
32154 (grub_linux_load64): Capitalise Linux.
32155 (GRUB_MOD_INIT): Gettextizze.
32156 * loader/xnu.c: Include `<grub/i18n.h>'.
32157 (GRUB_MOD_INIT): Gettextizze.
32158 * po/POTFILES: Add `loader/efi/appleloader.c',
32159 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
32160 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
32161 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
32162 `loader/i386/xnu.c', `loader/multiboot_loader.c',
32163 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
32164 and `loader/xnu.c'.
32166 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32168 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
32170 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32172 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
32173 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
32174 * util/mkisofs/mkisofs.c (main): Readjust --version output.
32176 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32178 Reset Multiboot 2 support. New loader implements the draft in
32179 /branches/multiboot2 and shares as much code as possible with the
32180 production Multiboot 1 implementation.
32182 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
32183 * loader/multiboot2.c: Likewise.
32184 * loader/i386/multiboot_helper.S: Likewise.
32185 * include/multiboot2.h: Replace with latest version from the draft
32186 in /branches/multiboot2.
32188 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
32189 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
32190 and `loader/multiboot2.c'.
32191 (pkglib_MODULES): Add `multiboot2.mod'.
32192 (multiboot2_mod_SOURCES): New variable.
32193 (multiboot2_mod_LDFLAGS): Likewise.
32194 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
32196 * conf/i386-pc.rmk: Likewise.
32198 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
32199 (multiboot_mod_SOURCES): Remove variable.
32200 (multiboot_mod_LDFLAGS): Likewise.
32201 (multiboot_mod_CFLAGS): Likewise.
32203 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
32204 `<multiboot2.h>' instead of `<multiboot.h>'.
32205 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
32206 (MULTIBOOT_HEADER_MAGIC): New macros.
32208 * loader/multiboot_loader.c (module_version_status): Remove variable.
32209 (find_multi_boot2_header): Remove function.
32210 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
32211 logic. Always check for the Multiboot version we're compiling for.
32212 (grub_cmd_module_loader): Likewise.
32213 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
32214 command instead of `multiboot'.
32216 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32218 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
32219 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
32222 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32223 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32225 Fix breakage introduced with previous commit.
32227 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
32229 * normal/handler.c (read_handler_list): Revert part of previous commit
32230 affecting this file.
32231 * normal/main.c (read_lists): Move read_handler_list() call back to ...
32232 (grub_normal_execute): ... here.
32234 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32236 Merge prefix-redefinition-fix branch.
32238 * normal/autofs.c (read_fs_list): Make function capable of being
32239 run multiple times, gracefuly replacing the previous data
32241 * normal/dyncmd.c (read_command_list): Likewise.
32242 * normal/handler.c (read_handler_list): Likewise.
32243 * normal/main.c (read_lists): New function. Calls all the
32244 list reading functions.
32245 (grub_normal_execute): Use read_lists() instead of calling all
32246 list reading functions explicitly. Register read_lists() as a
32247 variable hook attached to ${prefix}.
32249 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32251 Merge crypto branch.
32253 * Makefile.in (pkglib_DATA): Add crypto.lst.
32254 (crypto.lst): New target.
32255 * commands/hashsum.c: New file.
32256 * commands/password.c (check_password): Use grub_crypto_memcmp.
32257 * commands/password_pbkdf2.c: New file.
32258 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
32259 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
32260 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
32261 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
32262 -I$(srcdir)/lib/libgcrypt_wrap.
32263 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
32264 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
32265 password_pbkdf2.mod.
32266 (crypto_mod_SOURCES): New variable.
32267 (crypto_mod_CFLAGS): Likewise.
32268 (crypto_mod_LDFLAGS): Likewise.
32269 (hashsum_mod_SOURCES): New variable.
32270 (hashsum_mod_CFLAGS): Likewise.
32271 (hashsum_mod_LDFLAGS): Likewise.
32272 (pbkdf2_mod_SOURCES): New variable.
32273 (pbkdf2_mod_CFLAGS): Likewise.
32274 (pbkdf2_mod_LDFLAGS): Likewise.
32275 (password_pbkdf2_mod_SOURCES): New variable.
32276 (password_pbkdf2_mod_CFLAGS): Likewise.
32277 (password_pbkdf2_mod_LDFLAGS): Likewise.
32278 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
32279 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
32280 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
32281 Include conf/gcry.rmk.
32282 * include/grub/auth.h: Rewritten.
32283 * include/grub/crypto.h: New file.
32284 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
32285 * include/grub/normal.h (read_crypto_list): New prototype.
32286 * lib/crypto.c: New file.
32287 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
32288 * lib/pbkdf2.c: Likewise.
32289 * normal/auth.c (grub_auth_strcmp): Removed.
32290 (grub_iswordseparator): Likewise.
32291 (grub_auth_strword): Likewise.
32292 (is_authenticated): Use grub_strword.
32293 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
32294 and grub_strword. Pass entered password to authentication callback.
32295 * normal/crypto.c: New file.
32296 * normal/main.c: Call read_crypto_list.
32297 * util/grub-mkpasswd-pbkdf2.c: New file.
32298 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
32300 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
32302 Fix descent and ascent calculation.
32304 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
32305 (options): New option "asce".
32307 (add_char): Ignore invalid glyphs for descent calculation.
32308 Calculate ascent from actual content.
32309 (print_glyphs): Use 'asce'.
32310 (write_font): Likewise. Allow ascent override.
32311 (main): Handle "asce" option.
32313 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32315 * kern/err.c: Include `<grub/i18n.h>'.
32316 (grub_print_error): Add full stop. Gettextizze.
32317 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
32318 (grub_bsd_load_elf): Capitalise ELF.
32319 (grub_cmd_freebsd_loadenv): Add `s' in error string.
32320 (grub_cmd_freebsd_module): Likewise.
32321 (grub_cmd_freebsd_module_elf): Likewise.
32322 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
32324 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32326 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
32327 * commands/search_file.c (HELP_MESSAGE): New macro.
32328 * commands/search_label.c (HELP_MESSAGE): Likewise.
32329 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
32330 * po/POTFILES: Add `commands/search_file.c',
32331 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
32332 `commands/search.c'.
32334 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32336 * config.rpath: Update from Gnulib.
32338 2010-01-05 Yves Blusseau <blusseau@zetam.org>
32340 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
32342 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
32344 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
32346 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32348 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
32349 arguments to fread so that we get a return value in bytes, rather
32350 than something that will normally be rounded down to 0.
32351 Adjust error handling to avoid producing garbage when size_t is not
32352 the same size as long long.
32354 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32356 * util/mkisofs/write.c (padblock_write): Check return value of
32359 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32361 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
32364 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
32366 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32368 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
32369 instead of manual alignment.
32370 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
32371 verbose). Avoid attempts to read past end of the device
32372 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
32373 but GRUB_DISK_CACHE_SIZE may exceed that).
32375 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32377 * commands/crc.c (grub_cmd_crc): Abort on read errors.
32378 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
32381 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32383 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
32385 (grub_efi_piwg_device_path): New structure
32386 (grub_efi_piwg_device_path_t): New type.
32387 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
32388 (devpath_1): Transform to a structure. All users updated.
32389 (devpath_2): Likewise.
32390 (devpath_3): Likewise.
32391 (devpath_4): Likewise.
32392 (devpath_5): Likewise.
32394 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32396 * loader/efi/appleloader.c: Restored. Update all users.
32398 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32400 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
32402 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
32403 (struct boot_blocklist): Move from here ...
32404 * include/grub/i386/pc/boot.h [ASM_FILE]
32405 (struct grub_boot_blocklist): ... to here. Update all users.
32406 (setup): Only initialize `start' member of `first_block'
32407 structure. Add assert() calls to verify the other members.
32409 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
32410 (generate_image): Fix broken blocklist length initialization.
32411 Add assert() call to verify blocklist `segment' field.
32413 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32415 * loader/efi/appleloader.c: Remove. Update all users.
32417 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32419 * boot/i386/pc/boot.S: Update copyright year.
32420 * boot/i386/pc/cdboot.S: Likewise.
32421 * boot/i386/pc/diskboot.S: Likewise.
32422 * boot/i386/pc/lnxboot.S: Likewise.
32423 * boot/i386/pc/pxeboot.S: Likewise.
32424 * bus/pci.c: Likewise.
32425 * commands/cmp.c: Likewise.
32426 * commands/help.c: Likewise.
32427 * commands/hexdump.c: Likewise.
32428 * commands/i386/pc/halt.c: Likewise.
32429 * commands/i386/pc/play.c: Likewise.
32430 * commands/i386/pc/vbeinfo.c: Likewise.
32431 * commands/ls.c: Likewise.
32432 * commands/test.c: Likewise.
32433 * disk/dmraid_nvidia.c: Likewise.
32434 * disk/i386/pc/biosdisk.c: Likewise.
32435 * disk/ieee1275/nand.c: Likewise.
32436 * disk/ieee1275/ofdisk.c: Likewise.
32437 * disk/lvm.c: Likewise.
32438 * disk/raid.c: Likewise.
32439 * disk/raid6_recover.c: Likewise.
32440 * disk/scsi.c: Likewise.
32441 * fs/affs.c: Likewise.
32442 * fs/cpio.c: Likewise.
32443 * fs/ext2.c: Likewise.
32444 * fs/hfs.c: Likewise.
32445 * fs/iso9660.c: Likewise.
32446 * fs/ntfs.c: Likewise.
32447 * fs/sfs.c: Likewise.
32448 * fs/udf.c: Likewise.
32449 * fs/ufs.c: Likewise.
32450 * fs/xfs.c: Likewise.
32451 * gencmdlist.sh: Likewise.
32452 * genmk.rb: Likewise.
32453 * include/grub/disk.h: Likewise.
32454 * include/grub/efi/api.h: Likewise.
32455 * include/grub/efi/efi.h: Likewise.
32456 * include/grub/efi/pe32.h: Likewise.
32457 * include/grub/elf.h: Likewise.
32458 * include/grub/fs.h: Likewise.
32459 * include/grub/i386/at_keyboard.h: Likewise.
32460 * include/grub/i386/pc/memory.h: Likewise.
32461 * include/grub/i386/pc/vbe.h: Likewise.
32462 * include/grub/i386/pci.h: Likewise.
32463 * include/grub/i386/tsc.h: Likewise.
32464 * include/grub/ieee1275/ieee1275.h: Likewise.
32465 * include/grub/ntfs.h: Likewise.
32466 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32467 * include/grub/sparc64/libgcc.h: Likewise.
32468 * include/grub/symbol.h: Likewise.
32469 * include/grub/types.h: Likewise.
32470 * include/multiboot2.h: Likewise.
32471 * io/gzio.c: Likewise.
32472 * kern/device.c: Likewise.
32473 * kern/disk.c: Likewise.
32474 * kern/efi/efi.c: Likewise.
32475 * kern/efi/mm.c: Likewise.
32476 * kern/elf.c: Likewise.
32477 * kern/file.c: Likewise.
32478 * kern/i386/dl.c: Likewise.
32479 * kern/i386/pc/init.c: Likewise.
32480 * kern/i386/pc/startup.S: Likewise.
32481 * kern/ieee1275/ieee1275.c: Likewise.
32482 * kern/ieee1275/init.c: Likewise.
32483 * kern/main.c: Likewise.
32484 * kern/mm.c: Likewise.
32485 * kern/powerpc/dl.c: Likewise.
32486 * kern/sparc64/dl.c: Likewise.
32487 * kern/x86_64/dl.c: Likewise.
32488 * lib/hexdump.c: Likewise.
32489 * loader/efi/appleloader.c: Likewise.
32490 * loader/i386/ieee1275/linux.c: Likewise.
32491 * loader/i386/pc/chainloader.c: Likewise.
32492 * loader/i386/pc/linux.c: Likewise.
32493 * loader/i386/pc/multiboot2.c: Likewise.
32494 * loader/ieee1275/multiboot2.c: Likewise.
32495 * loader/multiboot2.c: Likewise.
32496 * loader/multiboot_loader.c: Likewise.
32497 * loader/powerpc/ieee1275/linux.c: Likewise.
32498 * normal/completion.c: Likewise.
32499 * normal/menu_entry.c: Likewise.
32500 * partmap/apple.c: Likewise.
32501 * util/grub.d/10_hurd.in: Likewise.
32502 * util/hostfs.c: Likewise.
32503 * video/readers/png.c: Likewise.
32505 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
32507 * include/grub/misc.h (GNUC_PREREQ): New macro.
32508 (ATTRIBUTE_ERROR): New macro.
32509 * include/grub/list.h (grub_bad_type_cast_real): Use
32512 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32514 * normal/menu_text.c (print_message): Change messages.
32516 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32518 * normal/menu_entry.c (store_completion): Gettextizze.
32520 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32522 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
32524 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32526 * po/POTFILES: Sort correctly.
32528 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32530 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
32531 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
32532 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
32534 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
32535 summary. Gettextizze the strings.
32536 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
32537 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
32538 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
32540 (GRUB_MOD_INIT): Remove command name from summary.
32541 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
32543 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
32544 * term/i386/pc/serial.c (options): Add full stops.
32545 (GRUB_MOD_INIT): Remove command name from the summary.
32547 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32549 * commands/acpi.c: Gettextizze help strings and/or options. Include
32550 `grub/i18n.h' if needed.
32551 * commands/blocklist.c: Likewise.
32552 * commands/boot.c: Likewise.
32553 * commands/cat.c: Likewise.
32554 * commands/cmp.c: Likewise.
32555 * commands/configfile.c: Likewise.
32556 * commands/crc.c: Likewise.
32557 * commands/date.c: Likewise.
32558 * commands/echo.c: Likewise.
32559 * commands/efi/fixvideo.c: Likewise.
32560 * commands/efi/loadbios.c: Likewise.
32561 * commands/gptsync.c: Likewise.
32562 * commands/halt.c: Likewise.
32563 * commands/handler.c: Likewise.
32564 * commands/hdparm.c: Likewise.
32565 * commands/hexdump.c: Likewise.
32566 * commands/i386/cpuid.c: Likewise.
32567 * commands/i386/pc/drivemap.c: Likewise.
32568 * commands/i386/pc/halt.c: Likewise.
32569 * commands/i386/pc/pxecmd.c: Likewise.
32570 * commands/i386/pc/vbeinfo.c: Likewise.
32571 * commands/i386/pc/vbetest.c: Likewise.
32572 * commands/ieee1275/suspend.c: Likewise.
32573 * commands/keystatus.c: Likewise.
32574 * commands/loadenv.c: Likewise.
32575 * commands/ls.c: Likewise.
32576 * commands/lsmmap.c: Likewise.
32577 * commands/lspci.c: Likewise.
32578 * commands/memrw.c: Likewise.
32579 * commands/minicmd.c: Likewise.
32580 * commands/parttool.c: Likewise.
32581 * commands/password.c: Likewise.
32582 * commands/probe.c: Likewise.
32583 * commands/read.c: Likewise.
32584 * commands/reboot.c: Likewise.
32585 * commands/search.c: Likewise.
32586 * commands/sleep.c: Likewise.
32587 * commands/test.c: Likewise.
32588 * commands/true.c: Likewise.
32589 * commands/usbtest.c: Likewise.
32590 * commands/videotest.c: Likewise.
32591 * commands/xnu_uuid.c: Likewise.
32592 * disk/loopback.c: Likewise.
32593 * hello/hello.c: Likewise.
32594 * loader/i386/bsd.c: Likewise.
32595 * term/i386/pc/serial.c: Likewise.
32596 * po/POTFILES: Add new files.
32598 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
32600 * term/i386/pc/at_keyboard.c
32601 (keyboard_controller_wait_untill_ready): Rename to ...
32602 (keyboard_controller_wait_until_ready): ... this. Update all users.
32604 2010-01-01 Carles Pina i Estany <carles@pina.cat>
32606 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
32607 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
32608 string using string width.
32609 * normal/menu_text.c (grub_print_message_indented): Use
32610 grub_print_spaces and not print_spaces.
32611 (print_timeout): Likewise.
32612 (print_spaces): Move to...
32613 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
32615 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
32617 Import from Gnulib.
32619 * gnulib/getdelim.c: New file.
32620 * gnulib/getline.c: Likewise.
32622 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
32624 * include/grub/list.h (grub_assert_fail): Removed.
32625 (grub_bad_type_cast_real): New function.
32626 (grub_bad_type_cast): New macro.
32627 (GRUB_AS_LIST): Use grub_bad_type_cast.
32628 (GRUB_AS_LIST_P): Likewise.
32629 (GRUB_AS_NAMED_LIST): Likewise.
32630 (GRUB_AS_NAMED_LIST_P): Likewise.
32631 (GRUB_AS_PRIO_LIST): Likewise.
32632 (GRUB_AS_PRIO_LIST_P): Likewise.
32633 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
32635 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
32637 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
32640 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
32642 * configure.ac: Check for TARGET_CFLAGS initialization before we
32643 initialize it ourselves (sigh).
32644 Move a few modifications to TARGET_CFLAGS to be unconditional
32645 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
32648 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
32649 * term/i386/pc/at_keyboard.c
32650 (keyboard_controller_wait_untill_ready): Likewise.
32651 (keyboard_controller_led): Rename `led_status' paramter to avoid
32654 2009-12-28 Carles Pina i Estany <carles@pina.cat>
32656 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
32659 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32661 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
32663 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32665 * normal/menu_text.c (grub_print_message_indented): Prevent
32666 past-the-end-of-array dereference.
32668 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32670 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
32671 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
32673 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32675 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
32676 * normal/main.c (grub_normal_read_line): Remove a space from the
32679 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32681 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
32682 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32683 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32684 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32685 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32686 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32687 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32689 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32691 * video/readers/jpeg.c (cmd): Declare.
32692 (grub_cmd_jpegtest): Use `grub_command_t' type.
32693 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32695 (GRUB_MOD_FINI): Use `cmd' to unregister.
32696 * video/readers/png.c (cmd): Declare.
32697 (grub_cmd_pngtest): Use `grub_command_t' type.
32698 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32700 (GRUB_MOD_FINI): Use `cmd' to unregister.
32701 * video/readers/tga.c (cmd): Declare.
32702 (grub_cmd_tgatest): Use `grub_command_t' type.
32703 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32705 (GRUB_MOD_FINI): Use `cmd' to unregister.
32707 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32709 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
32711 * kern/corecmd.c (grub_register_core_commands): Likewise.
32712 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
32713 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32714 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
32715 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32716 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32717 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
32718 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32719 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
32720 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32721 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32722 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32723 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32724 * normal/handler.c (insert_handler): Likewise.
32725 * normal/main.c (GRUB_MOD_INIT): Likewise.
32726 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
32728 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32730 * commands/help.c (grub_cmd_help): Print the command name before the
32732 (GRUB_MOD_INIT): Remove command name from the summary.
32733 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
32735 * lib/arg.c (find_long): Print the command name before the summary.
32736 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
32738 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
32739 * commands/cat.c (GRUB_MOD_INIT): Likewise.
32740 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
32741 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32742 * commands/crc.c (GRUB_MOD_INIT): Likewise.
32743 * commands/date.c (GRUB_MOD_INIT): Likewise.
32744 * commands/echo.c (GRUB_MOD_INIT): Likewise.
32745 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
32746 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32747 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32748 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
32749 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
32750 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
32751 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
32752 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32753 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
32754 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
32755 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
32756 * commands/ls.c (GRUB_MOD_INIT): Likewise.
32757 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32758 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32759 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32760 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
32761 * commands/password.c (GRUB_MOD_INIT): Likewise.
32762 * commands/probe.c (GRUB_MOD_INIT): Likewise.
32763 * commands/read.c (GRUB_MOD_INIT): Likewise.
32764 * commands/search.c (GRUB_MOD_INIT): Likewise.
32765 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
32766 * commands/test.c (GRUB_MOD_INIT): Likewise.
32767 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
32768 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
32769 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
32770 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
32771 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
32772 * lib/arg.c (GRUB_MOD_INIT): Likewise.
32773 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
32774 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32775 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32776 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32777 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
32778 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
32779 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
32780 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
32782 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32784 Use search command for preliminar UUID search.
32786 * commands/search.c: Split into ...
32787 * commands/search_wrap.c: ...this
32788 * commands/search.c: ...and this.
32789 * commands/search_file.c: New file.
32790 * commands/search_label.c: New file.
32791 * commands/search_uuid.c: New file.
32792 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
32793 Add commands/search_wrap.c, commands/search_file.c,
32794 commands/search_label.c and commands/search_uuid.c.
32795 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32796 (search_mod_SOURCES): Set to commands/search_wrap.c.
32797 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32799 (search_fs_file_mod_SOURCES): New variable.
32800 (search_fs_file_mod_CFLAGS): Likewise.
32801 (search_fs_file_mod_LDFLAGS): Likewise.
32802 (search_label_mod_SOURCES): Likewise.
32803 (search_label_mod_CFLAGS): Likewise.
32804 (search_label_mod_LDFLAGS): Likewise.
32805 (search_fs_uuid_mod_SOURCES): New variable.
32806 (search_fs_uuid_mod_CFLAGS): Likewise.
32807 (search_fs_uuid_mod_LDFLAGS): Likewise.
32808 (fs_file_mod_SOURCES): Removed.
32809 (fs_file_mod_CFLAGS): Likewise.
32810 (fs_file_mod_LDFLAGS): Likewise.
32811 (fs_uuid_mod_SOURCES): Removed.
32812 (fs_uuid_mod_CFLAGS): Likewise.
32813 (fs_uuid_mod_LDFLAGS): Likewise.
32814 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32815 Set to util/grub-install.in.
32816 * disk/fs_file.c: Removed.
32817 * disk/fs_uuid.c: Likewise.
32818 * include/grub/search.h: New file.
32819 * util/grub-install.in: Handle sparc64.
32820 Create and use load.cfg.
32821 * util/sparc64/ieee1275/grub-install.in: Removed.
32823 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32825 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32826 Ignore return status if CF is cleared.
32827 (grub_biosdisk_get_diskinfo_standard): Likewise.
32829 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32831 * term/i386/pc/at_keyboard.c
32832 (keyboard_controller_wait_untill_ready): New function.
32833 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32834 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32835 for keyboard polling, rather than duplicate the same loop. This
32836 saves a few bytes in code size.
32838 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32840 Support for (pxe[:server[:gateway]]) syntax and
32841 use environment variable for PXE.
32843 * commands/i386/pc/pxecmd.c (options): Removed.
32844 (print_ip): Removed.
32845 (grub_cmd_pxe): Removed
32846 (grub_cmd_pxe_unload): New function.
32847 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32848 (grub_pxe_your_ip): Made static.
32849 (grub_pxe_default_server_ip): Likewise.
32850 (grub_pxe_default_gateway_ip): Likewise.
32851 (grub_pxe_blksize): Likewise.
32852 (parse_ip): New function.
32853 (grub_pxe_open): Support server and gateway specification.
32854 (grub_pxe_close): Free disk->data.
32855 (grub_pxefs_open): Use disk->data.
32856 (grub_pxefs_read): Likewise.
32857 (grub_env_write_readonly): New function.
32858 (set_mac_env): Likewise.
32859 (set_env_limn_ro): Likewise.
32860 (parse_dhcp_vendor): Likewise.
32861 (grub_pxe_detect): Set the environment variables.
32862 (set_ip_env): New function.
32863 (write_ip_env): Likewise.
32864 (grub_env_write_pxe_default_server): Likewise.
32865 (grub_env_write_pxe_default_gateway): Likewise.
32866 (grub_env_write_pxe_blocksize): Likewise.
32867 (GRUB_MOD_INIT(pxe)): Set environment variables.
32868 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32869 (grub_pxe_mac_addr_t): ... this. All users updated.
32870 (grub_pxe_your_ip): Removed.
32871 (grub_pxe_server_ip): Likewise.
32872 (grub_pxe_gateway_ip): Likewise.
32873 (grub_pxe_blksize): Likewise.
32875 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32877 * commands/help.c: Include `<grub/i18n.h>'.
32878 (grub_cmd_help): Gettextizze.
32879 (GRUB_MOD_INIT): Likewise.
32880 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
32881 (GRUB_MOD_INIT): Gettextizze.
32882 * commands/search.c: Include `<grub/i18n.h>'.
32883 (options): Gettextizze.
32884 (GRUB_MOD_INIT): Gettextizze.
32885 * lib/arg.c: Include `<grub/i18n.h>'.
32886 (help_options): Gettextizze.
32887 (find_long): Likewise.
32888 (grub_arg_show_help): Likewise.
32889 * normal/dyncmd.c: Include `<grub/i18n.h>'.
32890 (read_command_list): Gettextizze.
32891 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
32892 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
32894 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32896 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
32897 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
32898 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
32899 (led_status): New variable.
32900 (keyboard_controller_led): New function.
32901 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
32902 update led status for caps lock, num lock and scroll lock.
32904 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
32906 * util/hostdisk.c (open_device): Fix a comment.
32908 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32910 * util/grub-install.in (host_os): New variable.
32911 * util/i386/efi/grub-install.in (host_os): Likewise.
32913 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32915 * util/mkisofs/write.c (padblock_write): Abort when given an
32916 excedingly large embed image, instead of silently truncating it.
32918 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32920 * include/multiboot.h: Indentation fixes.
32922 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32924 * include/multiboot.h (struct multiboot_aout_symbol_table)
32925 (struct multiboot_elf_section_header_table): New structure
32926 declarations (stolen from GRUB Legacy).
32927 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
32930 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
32931 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
32934 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32936 * include/multiboot.h: Make comments src2texi-friendly.
32938 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32940 For consistency with [multiboot]/docs/boot.S.
32942 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
32943 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
32944 (MULTIBOOT_MAGIC2): Rename from this ...
32945 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
32947 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32949 * include/multiboot.h: Remove `<grub/types.h>'.
32950 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
32951 types. Update all users.
32953 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32955 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
32956 `couldn't' and `can not' by `cannot'.
32957 * commands/i386/pc/drivemap.c: Likewise.
32958 * disk/ata.c: Likewise.
32959 * disk/ieee1275/nand.c: Likewise.
32960 * fs/affs.c: Likewise.
32961 * fs/fat.c: Likewise.
32962 * fs/hfs.c: Likewise.
32963 * fs/hfsplus.c: Likewise.
32964 * fs/iso9660.c: Likewise.
32965 * fs/jfs.c: Likewise.
32966 * fs/minix.c: Likewise.
32967 * fs/reiserfs.c: Likewise.
32968 * fs/sfs.c: Likewise.
32969 * fs/udf.c: Likewise.
32970 * fs/ufs.c: Likewise.
32971 * fs/xfs.c: Likewise.
32972 * loader/powerpc/ieee1275/linux.c: Likewise.
32973 * loader/sparc64/ieee1275/linux.c: Likewise.
32974 * util/grub-probe.c: Likewise.
32975 * util/misc.c: Likewise.
32977 2009-12-24 Carles Pina i Estany <carles@pina.cat>
32979 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
32981 * commands/acpi.c: Likewise.
32982 * commands/blocklist.c: Likewise.
32983 * commands/efi/loadbios.c: Likewise.
32984 * commands/i386/pc/drivemap.c: Likewise.
32985 * commands/loadenv.c: Likewise.
32986 * commands/memrw.c: Likewise.
32987 * commands/password.c: Likewise.
32988 * commands/videotest.c: Likewise.
32989 * disk/ata.c: Likewise.
32990 * disk/ata_pthru.c: Likewise.
32991 * disk/dmraid_nvidia.c: Likewise.
32992 * disk/ieee1275/nand.c: Likewise.
32993 * disk/ieee1275/ofdisk.c: Likewise.
32994 * disk/loopback.c: Likewise.
32995 * disk/lvm.c: Likewise.
32996 * disk/mdraid_linux.c: Likewise.
32997 * disk/raid.c: Likewise.
32998 * disk/raid6_recover.c: Likewise.
32999 * disk/scsi.c: Likewise.
33000 * efiemu/main.c: Likewise.
33001 * efiemu/mm.c: Likewise.
33002 * efiemu/pnvram.c: Likewise.
33003 * efiemu/symbols.c: Likewise.
33004 * font/font.c: Likewise.
33005 * fs/cpio.c: Likewise.
33006 * fs/hfsplus.c: Likewise.
33007 * fs/iso9660.c: Likewise.
33008 * fs/jfs.c: Likewise.
33009 * fs/minix.c: Likewise.
33010 * fs/ntfs.c: Likewise.
33011 * fs/ntfscomp.c: Likewise.
33012 * fs/reiserfs.c: Likewise.
33013 * fs/ufs.c: Likewise.
33014 * fs/xfs.c: Likewise.
33015 * gettext/gettext.c: Likewise.
33016 * include/grub/auth.h: Likewise.
33017 * kern/elf.c: Likewise.
33018 * kern/file.c: Likewise.
33019 * kern/ieee1275/init.c: Likewise.
33020 * kern/ieee1275/mmap.c: Likewise.
33021 * kern/ieee1275/openfw.c: Likewise.
33022 * kern/powerpc/dl.c: Likewise.
33023 * kern/sparc64/dl.c: Likewise.
33024 * lib/arg.c: Likewise.
33025 * loader/i386/bsd.c: Likewise.
33026 * loader/i386/bsdXX.c: Likewise.
33027 * loader/i386/efi/linux.c: Likewise.
33028 * loader/i386/efi/xnu.c: Likewise.
33029 * loader/i386/ieee1275/linux.c: Likewise.
33030 * loader/i386/linux.c: Likewise.
33031 * loader/i386/multiboot.c: Likewise.
33032 * loader/i386/pc/linux.c: Likewise.
33033 * loader/i386/pc/multiboot2.c: Likewise.
33034 * loader/i386/xnu.c: Likewise.
33035 * loader/ieee1275/multiboot2.c: Likewise.
33036 * loader/macho.c: Likewise.
33037 * loader/machoXX.c: Likewise.
33038 * loader/multiboot2.c: Likewise.
33039 * loader/multiboot_loader.c: Likewise.
33040 * loader/powerpc/ieee1275/linux.c: Likewise.
33041 * loader/sparc64/ieee1275/linux.c: Likewise.
33042 * loader/xnu.c: Likewise.
33043 * loader/xnu_resume.c: Likewise.
33044 * mmap/i386/pc/mmap.c: Likewise.
33045 * normal/menu_viewer.c: Likewise.
33046 * partmap/acorn.c: Likewise.
33047 * partmap/amiga.c: Likewise.
33048 * partmap/apple.c: Likewise.
33049 * script/lexer.c: Likewise.
33050 * term/gfxterm.c: Likewise.
33051 * term/i386/pc/serial.c: Likewise.
33052 * term/i386/pc/vga.c: Likewise.
33053 * term/ieee1275/ofconsole.c: Likewise.
33054 * term/terminfo.c: Likewise.
33055 * video/bitmap.c: Likewise.
33056 * video/efi_gop.c: Likewise.
33057 * video/efi_uga.c: Likewise.
33058 * video/fb/video_fb.c: Likewise.
33059 * video/i386/pc/vbe.c: Likewise.
33060 * video/readers/tga.c: Likewise.
33061 * video/video.c: Likewise.
33063 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
33065 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
33066 * commands/lspci.c: Likewise.
33067 * commands/probe.c: Likewise.
33068 * commands/xnu_uuid.c: Likewise.
33069 * conf/i386-coreboot.rmk: Likewise.
33070 * conf/i386-efi.rmk: Likewise.
33071 * conf/i386-ieee1275.rmk: Likewise.
33072 * conf/i386-pc.rmk: Likewise.
33073 * conf/powerpc-ieee1275.rmk: Likewise.
33074 * conf/sparc64-ieee1275.rmk: Likewise.
33075 * conf/x86_64-efi.rmk: Likewise.
33076 * fs/i386/pc/pxe.c: Likewise.
33077 * gettext/gettext.c: Likewise.
33078 * include/grub/efi/graphics_output.h: Likewise.
33079 * include/grub/i386/pc/memory.h: Likewise.
33080 * kern/env.c: Likewise.
33081 * kern/i386/qemu/startup.S: Likewise.
33082 * lib/i386/pc/biosnum.c: Likewise.
33083 * lib/i386/relocator.c: Likewise.
33084 * lib/i386/relocator_asm.S: Likewise.
33085 * lib/relocator.c: Likewise.
33086 * loader/i386/bsd.c: Likewise.
33087 * loader/i386/multiboot.c: Likewise.
33088 * loader/i386/pc/chainloader.c: Likewise.
33089 * loader/i386/xnu.c: Likewise.
33090 * loader/xnu.c: Likewise.
33091 * normal/main.c: Likewise.
33092 * normal/menu_text.c: Likewise.
33093 * util/getroot.c: Likewise.
33094 * util/grub-mkconfig_lib.in: Likewise.
33095 * util/grub.d/00_header.in: Likewise.
33096 * util/i386/pc/grub-mkimage.c: Likewise.
33097 * util/mkisofs/eltorito.c: Likewise.
33098 * util/mkisofs/exclude.h: Likewise.
33099 * util/mkisofs/hash.c: Likewise.
33100 * util/mkisofs/iso9660.h: Likewise.
33101 * util/mkisofs/joliet.c: Likewise.
33102 * util/mkisofs/mkisofs.c: Likewise.
33103 * util/mkisofs/mkisofs.h: Likewise.
33104 * util/mkisofs/multi.c: Likewise.
33105 * util/mkisofs/name.c: Likewise.
33106 * util/mkisofs/rock.c: Likewise.
33107 * util/mkisofs/tree.c: Likewise.
33108 * util/mkisofs/write.c: Likewise.
33109 * video/efi_gop.c: Likewise.
33111 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
33113 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
33116 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33118 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
33119 * genmk.rb (class SCRIPT): Modify the target file instead of source.
33121 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33123 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
33124 (GRUB_MOD_INIT(memrw)): Update help line.
33126 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33128 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
33129 Use grub_extcmd_t. All users updated.
33130 (options): New variable.
33131 (grub_cmd_read): Restructure for readability. Support "-v" option.
33132 (grub_cmd_write): Restructure for readability.
33134 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33136 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
33138 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33140 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
33141 with the actual contents of the correspondending make variable.
33142 * util/grub-mkrescue.in (pkglib_DATA): New variable.
33143 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
33144 specifying `*.lst' and `efiemu??.o'
33146 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33148 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
33149 after function name.
33150 Noticed by Rene Engelhard <rene@debian.org>.
33152 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33154 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
33155 (options): New variable.
33156 (iospace): Likewise.
33157 (grub_lspci_iter): List IO spaces if "-i" was given.
33158 (grub_cmd_lspci): Parse options.
33159 (GRUB_MOD_INIT(lspci)): Use extcmd.
33160 (GRUB_MOD_FINI(lspci)): Likewise.
33162 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33164 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
33165 `function' keyword.
33166 Patch by Tony Mancill <tmancill@debian.org>.
33168 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33170 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
33171 (grub_uhci_portstatus): Likewise.
33172 (grub_uhci_portstatus): Add necessary delay.
33173 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
33175 2009-12-21 Carles Pina i Estany <carles@pina.cat>
33177 * commands/acpi.c (options): Fix capitalizations and/or full stops.
33178 (GRUB_MOD_INIT): Likewise.
33179 * commands/boot.c (GRUB_MOD_INIT): Likewise.
33180 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
33181 * commands/echo.c (options): Fix capitalizations and/or full stops.
33182 * commands/efi/loadbios.c (enable_rom_area): Likewise.
33183 (enable_rom_area): Likewise.
33184 (GRUB_MOD_INIT): Likewise.
33185 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
33186 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
33187 * commands/handler.c (GRUB_MOD_INIT): Likewise.
33188 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
33189 * commands/hexdump.c (options): Likewise.
33190 * commands/i386/cpuid.c (options): Likewise.
33191 (GRUB_MOD_INIT): Likewise.
33192 * commands/i386/pc/drivemap.c (options): Likewise.
33193 (GRUB_MOD_INIT): Likewise.
33194 * commands/i386/pc/halt (options): Likewise.
33195 (GRUB_MOD_INIT): Likewise.
33196 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
33197 * commands/i386/pc/pxecmd.c (options): Likewise.
33198 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
33199 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
33200 * commands/keystatus.c (options): Likewise.
33201 (GRUB_MOD_INIT): Likewise.
33202 * commands/loadenv.c (options): Likewise.
33203 * commands/ls.c (options): Likewise.
33204 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
33205 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
33206 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
33207 * commands/parttool.c (helpmsg): Likewise.
33208 * commands/probe.c (options): Likewise.
33209 * commands/read.c (GRUB_MOD_INIT): Likewise.
33210 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
33211 * commands/search.c (options): Likewise.
33212 * commands/sleep.c (options): Likewise.
33213 * commands/test.c (GRUB_MOD_INIT): Likewise.
33214 * commands/true.c (GRUB_MOD_INIT): Likewise.
33215 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
33216 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
33217 * lib/arg.c (help_options): Likewise.
33218 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
33220 * po/POTFILES: Add `commands/loadenv.c'.
33222 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
33224 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
33225 instead of specifying them explicit.
33227 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33229 * NEWS: Add grub-probe support for GNU/Hurd.
33231 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33233 * NEWS: gettext was added after 1.97.
33235 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33237 * util/mkisofs/msdos_partition.h: New file (based on
33238 include/grub/msdos_partition.h).
33239 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
33240 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
33241 (ld_options, main): Recognize --protective-msdos-label.
33242 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
33243 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
33244 (padblock_write): If `use_protective_msdos_label' is set, patch a
33245 protective DOS-style label in the output image.
33247 * util/grub-mkrescue.in: Use --protective-msdos-label.
33249 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33251 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
33254 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33256 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
33258 (ld_options, main): Recognize `--embedded-boot'.
33259 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
33261 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
33262 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
33263 (padblock_write): Likewise. Rewrite to support embedded boot image.
33265 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
33266 for BIOS-based disk boot instead of only ElTorito.
33268 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33270 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
33271 build (not needed for bootstrap).
33273 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33275 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
33276 from i386-pc build (not needed for bootstrap).
33277 Rewrite a pair of strings.
33279 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33281 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
33283 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
33285 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
33287 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33289 * kern/env.c (grub_env_context_open): Mark exported variable for
33292 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33294 * kern/env.c (grub_env_export): Create nonexistent variables before
33297 2009-12-20 Carles Pina i Estany <carles@pina.cat>
33299 * include/grub/auth.h: Include `<grub/i18n.h>'.
33300 (GRUB_GET_PASSWORD): Gettextizze string.
33301 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
33303 (grub_utf8_to_ucs4_alloc): Fix indentation.
33304 (grub_print_ucs4): Likewise.
33305 (grub_getstringwidth): Likewise.
33306 (print_message_indented): New declaration.
33307 * normal/auth.c: Include `<grub/i18n.h>'.
33308 (grub_auth_check_authentication): Gettexttize string.
33309 * normal/cmdline.c: Include `<grub/i18n.h>'.
33310 (grub_cmdline_get): Gettextizze.
33311 * normal/color.c: Include `<grub/i18n.h>'.
33312 (grub_parse_color_name_pair): Gettexttize strings.
33313 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
33314 string (use `print_message_indented').
33315 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
33316 `include/grub/normal.h'.
33317 (print_message_indented): Renamed to ...
33318 (grub_print_message_indented): ... this. Remove `static' qualifer (now
33319 used in normal/main.c).
33320 (print_message): Use `grub_print_message_indented' instead of
33321 `print_message_indented'.
33322 (print_timeout): Likewise.
33323 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
33324 (grub_normal_print_device_info): Gettexttize strings.
33325 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
33327 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33329 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
33330 of arguments. Return number of tokens and not arguments. All users
33333 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33335 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
33336 non-MSDOS paritions.
33338 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
33340 * include/grub/types.h (UNUSED): Removed since it conflicts with
33341 NetBSD headers. All users changed to direct __attribute__ ((unused)).
33342 Reported by Grégoire Sutre.
33344 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33346 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
33347 (grub_print_ucs4_alloc): Likewise.
33348 (grub_getstringwidth): Likewise.
33349 * normal/main.c (grub_normal_init_page): Gettextize version string.
33350 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
33351 (getstringwidth): Renamed to ...
33352 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
33353 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
33354 (grub_print_ucs4): Remove `static' qualifer (now used in
33356 * po/POTFILES: Add normal/main.c.
33358 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33360 * normal/menu_text.c (STANDARD_MARGIN): New macro.
33361 (print_message_indented): Add `margin_left' and `margin_right'
33363 (print_message): Update `print_message_indented' calls. Adds '\n' to the
33365 (print_timeout): Use `print_message_indented' to print the message.
33366 Deletes `second_stage' parameter.
33367 (run_menu): Update `print_timeout' calls.
33369 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33371 Fix console palette on OpenFirmware.
33373 * term/ieee1275/ofconsole.c (MAX): Removed.
33374 (colors): Redone based on VGA palette.
33375 (grub_ofconsole_setcolor): Discard brightness bit since only 8
33376 colors are supported.
33377 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
33379 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33381 Fix potential EfiEmu double prepare.
33383 * efiemu/main.c (prepared): New variable
33384 (grub_efiemu_unload): Set prepare to '0'.
33385 (grub_efiemu_prepare): Return if already prepared. Set prepared.
33387 set_virtual_address_map support.
33389 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
33391 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
33393 (grub_efiemu_crc32): Likewise.
33394 (grub_efiemu_crc64): Likewise.
33395 (grub_efiemu_set_virtual_address_map): Likewise.
33396 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
33398 (grub_autoefi_set_virtual_address_map): Likewise.
33399 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
33400 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
33401 Restructure flow to accomodate it.
33402 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
33403 (grub_efiemu_crc): Recompute CRC32.
33404 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
33405 (efiemu_ptv_relocated): ... this. Made global. All users updated.
33406 * efiemu/symbols.c (relocated_handle): New variable.
33407 (grub_efiemu_free_syms): Free relocated_handle.
33408 (grub_efiemu_alloc_syms): Allocate relocated_handle.
33409 (grub_efiemu_write_sym_markers): New function.
33410 (grub_efiemu_set_virtual_address_map): Likewise.
33412 Newer XNU parameters.
33414 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
33415 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
33416 (grub_xnu_fill_devicetree): New prototype.
33417 (grub_xnu_heap_real_start): New variable.
33418 * loader/xnu.c (get_name_ptr): New function.
33419 (grub_xnu_load_driver): Fill namelen and name.
33421 64-bit xnu support.
33423 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
33424 and 'loader/macho64.c'.
33425 * conf/i386-pc.rmk: Likewise.
33426 * conf/x86_64-efi.rmk: Likewise.
33427 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
33428 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
33429 * include/grub/macho.h (grub_macho_segment64): New structure.
33430 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
33431 (grub_macho_size32): ... to this.
33432 (grub_macho32_get_entry_point): Renamed from ...
33433 (grub_macho_get_entry_point32): ... to this.
33434 (grub_macho_contains_macho64): New prototype.
33435 (grub_macho_size64): Likewise.
33436 (grub_macho_get_entry_point64): Likewise.
33437 (grub_macho32_load): Renamed from ...
33438 (grub_macho_load32): ... to this.
33439 (grub_macho32_filesize): Renamed from ...
33440 (grub_macho_filesize32): ... to this.
33441 (grub_macho32_readfile): Renamed from ...
33442 (grub_macho_readfile32): ... to this.
33443 (grub_macho_filesize64): New prototype.
33444 (grub_macho_readfile64): Likewise.
33445 (grub_macho_parse32): Likewise.
33446 (grub_macho_parse64): Likewise.
33447 * loader/macho.c: Split into ...
33448 * loader/machoXX.c: ... and this. Replace 32 with XX.
33449 * loader/macho32.c: New file.
33450 * loader/macho64.c: Likewise.
33451 * loader/xnu.c (grub_xnu_is_64bit): New variable.
33452 (grub_cmd_xnu_kernel): Make 32-bit only.
33453 (grub_cmd_xnu_kernel64): New function.
33454 (grub_xnu_load_driver): Support Mach-O 64.
33455 (grub_cmd_xnu_mkext): Likewise.
33456 * util/grub.d/30_os-prober.in (osx_entry): New function.
33457 Generate entries for 64-bit boot too.
33459 Eliminate ad-hoc tree format in XNU and EfiEmu.
33461 * efiemu/main.c (grub_efiemu_prepare): Update comment.
33462 * efiemu/pnvram.c: Rewritten to use environment variables.
33465 Inline utf16_to_utf8.
33467 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
33468 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
33470 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
33472 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
33473 * commands/usbtest.c (grub_usb_get_string): ... move here.
33474 (usb_print_str): Fix error handling.
33475 * include/grub/usb.h (grub_usb_get_string): Remove.
33477 UTF-8 to UTF-16 transformation.
33479 * conf/common.rmk (pkglib_MODULES): Add charset.mod
33480 (charset_mod_SOURCES): New variable.
33481 (charset_mod_CFLAGS): Likewise.
33482 (charset_mod_LDFLAGS): Likewise.
33483 * include/grub/utf.h: New file.
33484 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
33486 Support for device properties.
33488 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
33489 (grub_xnu_devprop_device_header): Likewise.
33490 (grub_xnu_devprop_device_descriptor): Likewise.
33491 (grub_xnu_devprop_add_device): New prototype.
33492 (grub_xnu_devprop_remove_device): Likewise.
33493 (grub_xnu_devprop_remove_property): Likewise.
33494 (grub_xnu_devprop_add_property_utf8): Likewise.
33495 (grub_xnu_devprop_add_property_utf16): Likewise.
33496 (grub_cpu_xnu_init): Likewise.
33497 (grub_cpu_xnu_fini): Likewise.
33498 (grub_cpu_xnu_unload): Likewise.
33499 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
33500 (property_descriptor): Likewise.
33501 (devices): New variable.
33502 (grub_xnu_devprop_remove_property): New function.
33503 (grub_xnu_devprop_add_device): Likewise.
33504 (grub_xnu_devprop_remove_device): Likewise.
33505 (grub_xnu_devprop_add_property): Likewise.
33506 (grub_xnu_devprop_add_property_utf8): Likewise.
33507 (grub_xnu_devprop_add_property_utf16): Likewise.
33508 (hextoval): Likewise.
33509 (grub_cpu_xnu_fill_devprop): Likewise.
33510 (grub_cmd_devprop_load): Likewise.
33511 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
33512 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
33513 (cmd_devprop_load): New variable.
33514 (grub_cpu_xnu_init): New function.
33515 (grub_cpu_xnu_fini): Likewise.
33516 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
33517 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
33518 (grub_cmd_xnu_devtree): Likewise.
33519 (hextoval): New function.
33520 (unescape): Likewise.
33521 (grub_xnu_fill_devicetree): Likewise.
33523 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
33524 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
33526 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33528 Workaround for broken ATI VBE.
33530 * video/i386/pc/vbe.c (last_set_mode): New variable.
33531 (grub_vbe_set_video_mode): Set 'last_set_mode'.
33532 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
33533 (grub_video_vbe_setup): Don't check for reserved flag.
33535 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
33537 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
33538 the `find' command.
33540 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
33542 UUID support for HFS.
33544 * fs/hfs.c (grub_hfs_uuid): New function.
33545 (grub_hfs_fs): New value .uuid.
33546 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
33548 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
33550 Fix a segfault with parsing unknown long options.
33552 * util/grub-mkrelpath.c (options): Zero terminate it.
33554 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33556 * include/grub/misc.h (grub_puts): New declaration.
33557 (grub_puts_): Likewise.
33558 * kern/misc.c (grub_puts): New definition.
33559 (grub_puts_): Likewise.
33561 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33563 * util/grub-probe.c (probe): Improve error message.
33565 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33567 * loader/i386/multiboot_elfxx.c
33568 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
33571 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33573 Relocator framework
33575 * loader/i386/xnu_helper.S: Removed. All users updated.
33576 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
33577 (relocator_mod_SOURCES): New variable.
33578 (relocator_mod_CFLAGS): Likewise.
33579 (relocator_mod_LDFLAGS): Likewise.
33580 (relocator_mod_ASFLAGS): Likewise.
33581 * conf/x86_64.rmk: Likewise.
33582 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
33583 (grub_multiboot_payload_entry_offset): Likewise.
33584 (grub_multiboot_forward_relocator): Likewise.
33585 (grub_multiboot_forward_relocator_end): Likewise.
33586 (grub_multiboot_backward_relocator): Likewise.
33587 (grub_multiboot_backward_relocator_end): Likewise.
33588 (grub_multiboot_payload_eip): New variable.
33589 (grub_multiboot_payload_orig): Likewise.
33590 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
33591 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
33592 * include/grub/i386/memory.h
33593 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
33594 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
33595 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
33596 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
33597 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
33598 * include/grub/i386/relocator.h: New file.
33599 * include/grub/x86_64/relocator.h: Likewise.
33600 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
33601 (XNU_RELOCATOR): New macro.
33602 (grub_xnu_launcher_start): Remove.
33603 (grub_xnu_launcher_end): Likewise.
33604 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
33605 (grub_xnu_heap_real_start): Remove.
33606 (grub_xnu_heap_start): Change to void *. All users updated.
33607 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
33608 * lib/i386/relocator.c: New file.
33609 * lib/i386/relocator_asm.S: Likewise.
33610 * lib/i386/relocator_backward.S: Likewise.
33611 * lib/mips/relocator.c: Likewise.
33612 * lib/mips/relocator_asm.S: Likewise.
33613 * lib/relocator.c: Likewise.
33614 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
33616 (playground): Likewise.
33617 (grub_multiboot_payload_orig): New variable.
33618 (grub_multiboot_payload_dest): Likewise.
33619 (grub_multiboot_payload_size): Likewise.
33620 (grub_multiboot_payload_eip): Likewise.
33621 (grub_multiboot_payload_esp): Likewise.
33622 (grub_multiboot_boot): Use grub_relocator32_boot.
33623 (grub_multiboot_unload): Free relocators.
33624 (grub_multiboot): Setup stack. Use relocators.
33625 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
33626 (grub_multiboot_load_elfXX): Use relocators.
33627 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
33628 (grub_multiboot_payload_size): Likewise.
33629 (grub_multiboot_payload_dest): Likewise.
33630 (grub_multiboot_payload_entry_offset): Likewise.
33631 (grub_multiboot_forward_relocator): Likewise.
33632 (grub_multiboot_backward_relocator): Likewise.
33633 (grub_multiboot_real_boot): Likewise.
33634 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
33635 (grub_xnu_entry_point): Likewise.
33636 (grub_xnu_arg1): Likewise.
33637 (grub_xnu_stack): Likewise.
33638 (grub_xnu_launch): Removed.
33639 (grub_xnu_boot_resume): New function.
33640 (grub_xnu_boot): Use relocators.
33641 * loader/i386/xnu_helper.S: Removed.
33642 * loader/xnu.c (grub_xnu_heap_start): New variable.
33643 (grub_xnu_heap_size): Likewise.
33644 (grub_xnu_heap_malloc): Use relocators.
33645 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
33647 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33649 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
33652 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33654 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
33655 GRUB_ERR_NONE before calling grub_env_set.
33657 2009-12-12 Robert Millan <rmh@aybabtu.com>
33659 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
33660 * genmk.rb (video): New variable.
33661 (CLEANFILES, VIDEOFILES): Add #{video}.
33662 (#{video}): New target rule.
33663 * genvideolist.sh: New file.
33664 * Makefile.in (pkglib_DATA): Add video.lst.
33665 (video.lst): New target rule.
33666 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
33668 * util/grub.d/30_os-prober.in: Replace `vbe' with
33669 ${GRUB_VIDEO_BACKEND}.
33671 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
33673 * THANKS: Add David Miller.
33675 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
33677 libpciaccess support.
33679 * Makefile.in (LIBPCIACCESS): New variable.
33680 (enable_grub_emu_pci): Likewise.
33681 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
33682 util/pci.c and commands/lspci.c.
33683 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
33684 * configure.ac (grub-emu-pci): New option.
33685 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
33686 (grub_pci_device_unmap_range): Likewise.
33687 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
33688 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
33689 (grub_pci_address_t) [!GRUB_UTIL]: New type.
33690 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
33691 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
33692 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
33693 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
33694 * include/grub/pciutils.h: New file.
33695 * util/pci.c: Likewise.
33697 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
33699 * util/misc.c: Don't include <errno.h> twice.
33701 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
33703 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
33704 name in an error message.
33705 (grub_biosdisk_rw): Likewise.
33707 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33709 Eliminate NTFS 4Gib barrier.
33711 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
33712 (read_run_data): Likewise.
33713 (grub_ntfs_read_run_list): Likewise.
33714 (grub_ntfs_read_block): Likewise.
33715 (grub_ntfs_iterate_dir): Likewise.
33716 (read_mft): Likewise.
33717 (read_data): Likewise.
33719 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
33720 to avoid 64-bit division
33721 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
33722 (grub_ntfs_rlst): Use grub_disk_addr_t.
33724 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33726 Eliminate grub-fstest 4Gib barrier.
33728 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
33729 (read_file): Fix error reporting.
33731 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33733 Eliminate hexdump 4Gib barrier.
33735 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
33736 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
33738 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33740 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
33743 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
33745 Remove miscellaneous files in distclean target.
33747 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
33749 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
33751 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
33752 if they're already set. This resolves the conflict between my
33753 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
33754 fixing the --grub-probe option again.
33755 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
33756 change on 2009-10-06, so that we now once again source
33757 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33759 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
33761 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
33762 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
33763 `util/devicemap.c'.
33765 2009-12-08 Carles Pina i Estany <carles@pina.cat>
33767 * include/grub/misc.h (grub_printf_): New declaration.
33768 * kern/misc.c (grub_printf_): New definition.
33769 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
33770 instead of `grub_printf' and `_'.
33771 * normal/menu_entry.c (store_completion): Likewise.
33773 (grub_menu_entry_run): Likewise.
33774 * normal/menu_text.c (grub_wait_after_message): Likewise.
33775 (notify_booting): Likewise.
33776 (notify_fallback): Likewise.
33777 (notify_execution_failure): Likewise.
33779 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
33781 * configure.ac: Check for vasprintf.
33782 * util/misc.c (asprintf): Move allocation from here ...
33783 (vasprintf): ... to here. New function.
33784 (xasprintf): New function.
33785 * include/grub/util/misc.h (vasprintf, xasprintf): Add
33787 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
33788 * util/grub-mkfont.c (write_font): Likewise.
33789 * util/grub-probe.c (probe): Likewise.
33790 * util/hostdisk.c (make_device_name): Likewise.
33792 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
33794 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
33795 anything even prefixed with 'cdrom' as a cdrom.
33797 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
33799 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33802 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33804 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33805 grub_gettext_msg_list.
33806 (grub_gettext_gettranslation_from_position): Return const char *
33808 (grub_gettext_translate): Add the translated strings into a list,
33809 returns from the list if existing there.
33810 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33811 (grub_gettext_delete_list): Delete the list.
33812 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33813 lang environment variable is changed.
33814 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33816 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33818 Rename kernel.mod to kernel.img.
33820 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33821 (kernel_mod_EXPORTS): Rename to ...
33822 (kernel_img_EXPORTS): ... this.
33823 (kernel_mod_SOURCES): Rename to ...
33824 (kernel_img_SOURCES): ... this.
33825 (kernel_mod_HEADERS): Rename to ...
33826 (kernel_img_HEADERS): ... this. All users updated.
33827 (kernel_mod_CFLAGS): Rename to ...
33828 (kernel_img_CFLAGS): ... this.
33829 (kernel_mod_ASFLAGS): Rename to ...
33830 (kernel_img_ASFLAGS): ... this.
33831 (kernel_mod_LDFLAGS): Rename to ...
33832 (kernel_img_LDFLAGS): ... this.
33833 * conf/x86_64-efi.rmk: Likewise.
33834 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33835 (read_kernel_image): ... this. All users updated.
33836 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33838 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33840 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33841 (print_spaces): New function.
33842 (grub_print_ucs4): New function.
33843 (getstringwidth): New function.
33844 (print_message_indented): New function.
33845 (print_message): Gettexttize strings using print_message_indented.
33846 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33848 (get_entry_number): Gettextize and uses dynamic terminal width.
33849 (notify_booting, notify_fallback, notify_execution_failure):
33851 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33854 (grub_menu_entry_run): Likewise.
33855 * PO/POTFILES: Add normal/menu_entry.c.
33857 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33859 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33861 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33863 * util/grub-install.in: Install gettext .mo files.
33864 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33866 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33868 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
33871 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
33873 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
33874 non-firmware-dependant one in realmode.S takes precedence.
33876 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
33878 * commands/halt.c: Replace misc arch-specific headers with
33880 * commands/reboot.c: Likewise.
33881 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
33883 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
33884 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
33885 (kernel_img_SOURCES): ... to here.
33887 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
33888 * include/grub/i386/pc/init.h: Likewise.
33889 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33890 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33892 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
33894 * include/grub/i386/halt.h: Remove.
33895 * include/grub/i386/reboot.h: Likewise.
33897 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
33899 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
33901 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
33902 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
33903 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
33905 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33906 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33907 (usage): Add missing comma in printf.
33909 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
33911 Use the same reboot approach on i386 coreboot and qemu as we do on
33914 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
33915 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
33916 * kern/i386/reboot.c: Remove.
33917 * include/grub/i386/reboot.h (grub_reboot): Export function.
33918 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
33919 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
33920 0xf000:0xfff0 instead of 0xffff:0x0000.
33921 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
33922 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
33924 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
33926 Fix $srcdir != $objdir build.
33928 * Makefile.in (po/%.po): Rewrite as ...
33929 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
33931 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
33933 Fix GNU/Hurd grub-install crash.
33934 * util/grub-probe.c (probe): Try to access `path' only when it is not
33937 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33939 Correct module naming.
33941 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33942 (GRUB_MOD_INIT(efi_uga)): ... to this
33943 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33944 (GRUB_MOD_FINI(efi_uga)): ... to this
33945 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33946 (GRUB_MOD_INIT(efi_gop)): ... to this
33947 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33948 (GRUB_MOD_FINI(efi_gop)): ... to this
33950 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
33952 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
33954 (usage): Translate `arg' strings using gettext().
33955 Thanks to Jordi Mallach for the suggestion.
33957 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33959 GOP support. Based on patch from Bean
33960 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
33962 * video/efi_gop.c: New file.
33963 * include/grub/efi/graphics_output.h: Likewise.
33964 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
33965 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
33967 * conf/x86_64-efi.rmk: Likewise.
33969 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33971 Rename efi_fb to efi_uga.
33973 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33975 (efi_fb_mod_SOURCES): Rename this ...
33976 (efi_uga_mod_SOURCES): ... to this.
33977 (efi_fb_mod_CFLAGS): Rename this ...
33978 (efi_uga_mod_CFLAGS): ... to this.
33979 (efi_fb_mod_LDFLAGS): Rename this ...
33980 (efi_uga_mod_LDFLAGS): ... to this.
33981 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33983 (efi_fb_mod_SOURCES): Rename this ...
33984 (efi_uga_mod_SOURCES): ... to this.
33985 (efi_fb_mod_CFLAGS): Rename this ...
33986 (efi_uga_mod_CFLAGS): ... to this.
33987 (efi_fb_mod_LDFLAGS): Rename this ...
33988 (efi_uga_mod_LDFLAGS): ... to this.
33989 * video/efi_fb.c: Move this ...
33990 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
33992 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33994 * po/README: New file. Explain our PO file workflow.
33996 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33998 * po/ChangeLog: Remove. Move relevant entries back to ...
33999 * ChangeLog: ... here.
34000 * po/ca.po: Remove (now handled by TLP).
34001 * po/id.po: Likewise.
34002 * po/zh_CN.po: Likewise.
34003 * Makefile.in (LINGUAS): Initialize in a way that supports
34006 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
34008 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
34009 reliing on po/LINGUAS.
34010 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
34011 (po/%.po): ... this.
34013 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34015 * util/i386/efi/grub-mkimage.c: Include "progname.h".
34016 (main): Use `program_name' instead of nonexistent `progname'.
34018 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34020 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34021 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
34023 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
34025 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
34027 * conf/i386-efi.rmk: Likewise.
34028 * conf/i386-ieee1275.rmk: Likewise.
34029 * conf/powerpc-ieee1275.rmk: Likewise.
34030 * conf/sparc64-ieee1275.rmk: Likewise.
34031 * conf/x86_64-efi.rmk: Likewise.
34033 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34035 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
34037 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34039 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
34041 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
34043 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
34044 (grub_mkdevicemap_SOURCES): New variable.
34045 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
34046 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
34047 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
34048 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
34049 (grub_mkdevicemap_SOURCES): Remove.
34050 * conf/i386-efi.rmk: Likewise.
34051 * conf/i386-ieee1275.rmk: Likewise.
34052 * conf/i386-pc.rmk: Likewise.
34053 * conf/powerpc-ieee1275.rmk: Likewise.
34054 * conf/sparc64-ieee1275.rmk: Likewise.
34055 * conf/x86_64-efi.rmk: Likewise.
34056 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
34057 (usage): Fix strings to use `program_name'.
34058 (main): Initialize gettext.
34059 * util/grub-editenv.c: Likewise.
34060 * util/grub-emu.c: Likewise.
34061 * util/grub-fstest.c: Likewise.
34062 * util/grub-mkdevicemap.c: Likewise.
34063 * util/grub-mkfont.c: Likewise.
34064 * util/grub-mkrelpath.c: Likewise.
34065 * util/grub-pe2elf.c: Likewise.
34066 * util/grub-probe.c: Likewise.
34067 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
34068 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
34069 * util/sparc64/ieee1275/grub-setup.c: Likewise.
34071 * util/misc.c: Include `"progname.h"'.
34072 (progname): Remove variable.
34073 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
34075 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
34077 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
34078 printf and print a newline after the menuentry header line.
34079 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34081 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
34083 autoconf >= 2.60 support $(localedir).
34085 * INSTALL: Note that autoconf 2.60 is required.
34086 * configure.ac (AC_PREREQ): Bump to 2.60.
34087 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
34088 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
34090 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
34092 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
34095 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34097 * normal/main.c (grub_normal_read_line): Fix off-by-one
34100 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34102 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
34103 "parser.grub" in grub_command_execute() call.
34105 2009-11-24 Carles Pina i Estany <carles@pina.cat>
34107 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
34108 * conf/i386-efi.rmk: Likewise.
34109 * conf/i386-ieee1275.rmk: Likewise.
34110 * conf/i386-pc.rmk: Likewise.
34111 * conf/powerpc-ieee1275.rmk: Likewise.
34112 * conf/sparc64-ieee1275.rmk: Likewise.
34113 * conf/x86_64-efi.rmk: Likewise.
34114 * gettext/gettex.c: Include <grub/i18n.h>.
34115 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
34117 * include/grub/i18n.h: ... to here
34118 * include/grub/i18n.h: ... to here.
34119 * kern/misc.c: Include <grub/i18n.h>
34120 (grub_gettext_dummy): Move above user.
34122 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34124 * util/Makefile.in (install-local): Convert a `for' into a normal
34127 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
34129 * autogen.sh: Add automake call.
34130 * config.guess: Remove.
34131 * config.sub: Likewise.
34132 * install-sh: Likewise.
34134 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34136 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
34138 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34140 * util/Makefile.in (install-local): Convert a make `$(foreach)'
34141 function to a normal shell `for'.
34143 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34145 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34147 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34149 * util/grub-mkrelpath.c: New file.
34150 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
34151 (grub_mkrelpath_SOURCES): New variable.
34152 * include/grub/util/misc.h: New function prototype.
34153 * util/misc.c (make_system_path_relative_to_its_root): New function.
34155 * util/grub-mkconfig_lib.in (bindir): New variable.
34156 (grub_mkrelpath): Likewise.
34157 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
34159 * util/probe.c (probe): Make the file path relative to its root.
34160 Change a info message to use the GRUB path. Enable again the
34161 check if we can read the file with GRUB facilities.
34163 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
34166 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34168 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
34171 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34173 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
34176 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34178 * util/getroot.c (grub_util_is_dmraid): New function.
34179 (grub_util_get_dev_abstraction): Treat dmraid and multipath
34180 devices as normal ones, not as LVM.
34182 2009-11-23 Carles Pina i Estany <carles@pina.cat>
34184 * conf/common.rmk: Add grub-gettext_lib target and updates
34185 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
34187 * gettext/gettext.c: New file. (Reads mo files).
34188 * include/grub/file.h (grub_file_pread): New prototype.
34189 * include/grub/i18n.h (_): New prototype.
34190 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
34192 * kern/misc.c (grub_gettext_dummy): New function.
34193 * normal/menu_text.c: Include <grub/i18n.h>.
34194 * normal/menu_text.c (print_timeout): Gettexttize string.
34195 * normal/menu_text.c (print_message): Gettexttize string.
34196 * po/POTFILES: Add `normal/menu_text.c'.
34197 * po/ca.po: Add new translations.
34198 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
34199 gettext module and defines locale_dir and lang in grub.cfg.
34200 * NEWS: Add gettext support.
34202 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34204 * util/hostdisk.c: Include `<grub/i18n.h>'.
34205 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
34206 (make_device_name): Rewrite using asprintf.
34207 (convert_system_partition_to_system_disk): Replace 0 with NULL.
34208 (find_system_device): If a device is not found, generate one just
34209 by reusing the OS path name.
34210 (read_device_map): Make it permissible for device.map not to exist.
34212 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34214 * script/sh/execute.c: Move from here ...
34215 * script/execute.c: ... to here. Update all users.
34216 * script/sh/function.c: Move from here ...
34217 * script/function.c: ... to here. Update all users.
34218 * script/sh/lexer.c: Move from here ...
34219 * script/lexer.c: ... to here. Update all users.
34220 * script/sh/main.c: Move from here ...
34221 * script/main.c: ... to here. Update all users.
34222 * script/sh/parser.y: Move from here ...
34223 * script/parser.y: ... to here. Update all users.
34224 * script/sh/script.c: Move from here ...
34225 * script/script.c: ... to here. Update all users.
34227 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34229 * configure.ac: Detect all `emu' platforms. Define
34230 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
34231 --enable-grub-emu logic. Disable include/grub/machine
34232 symlink on `emu' platforms.
34234 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
34235 * gensymlist.sh.in: Likewise.
34237 * include/grub/i386/coreboot/machine.h: Remove file.
34238 * include/grub/i386/efi/machine.h: Likewise.
34239 * include/grub/i386/ieee1275/machine.h: Likewise.
34240 * include/grub/i386/pc/machine.h: Likewise.
34241 * include/grub/i386/qemu/machine.h: Likewise.
34242 * include/grub/powerpc/ieee1275/machine.h: Likewise.
34243 * include/grub/sparc64/ieee1275/machine.h: Likewise.
34244 * include/grub/x86_64/efi/machine.h: Likewise.
34246 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
34247 * commands/halt.c: Likewise.
34248 * commands/reboot.c: Likewise.
34249 * include/grub/autoefi.h: Likewise.
34250 * include/grub/i386/at_keyboard.h: Likewise.
34251 * include/grub/i386/kernel.h: Likewise.
34252 * include/grub/i386/loader.h: Likewise.
34253 * include/grub/i386/pc/memory.h: Likewise.
34254 * kern/dl.c: Likewise.
34255 * kern/i386/coreboot/init.c: Likewise.
34256 * loader/i386/bsd.c: Likewise.
34257 * loader/i386/linux.c: Likewise.
34258 * loader/multiboot_loader.c: Likewise.
34259 * term/i386/pc/serial.c: Likewise.
34260 * term/usb_keyboard.c: Likewise.
34262 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
34263 `<grub/machine/machine.h>'
34264 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
34265 * util/misc.c: Remove `<grub/machine/machine.h>' and
34266 `<grub/machine/time.h>'.
34268 * Makefile.in (enable_grub_emu): Remove variable.
34269 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
34271 * conf/any-emu.rmk: New file.
34272 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
34273 (grub_emu_init.c): Move from here ...
34274 * conf/any-emu.rmk: ... to here.
34276 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
34277 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
34278 * conf/any-emu.rmk: ... to here.
34280 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34282 * include/grub/parser.h (grub_parser_register): Document need
34283 of `name' parameter.
34284 * normal/main.c (grub_normal_read_line): Simplify prompt string.
34285 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
34288 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34290 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
34292 * include/grub/i18n.h (N_): New macro.
34293 * util/mkisofs/mkisofs.h: Likewise.
34294 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
34296 (usage): Use gettext() to translate help strings when printing them.
34298 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34300 Based on patch from Bean
34301 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34303 * video/efi_fb.c: New file.
34304 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
34305 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34307 * conf/x86_64-efi.rmk: Likewise.
34309 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
34311 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
34312 * util/i386/pc/grub-setup.c: Likewise.
34314 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
34316 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
34318 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
34319 file_get_storage_info to implement grub_guess_root_device.
34321 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34323 * Makefile.in (target): Use make's builtin $(shell) function
34324 instead of calling directly $(SHELL) to create the locale directories,
34325 inside the $(foreach) function.
34327 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34329 * util/grub-mkrescue.in: Print an error and usage if output option
34330 has not been given.
34332 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34334 Patch from Loïc Minier <loic.minier@ubuntu.com>.
34335 * util/grub.d/30_os-prober.in: Cope with Linux entries where
34336 root and /boot are on different devices.
34338 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34340 Fix build for srcdir != objdir.
34342 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
34343 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
34345 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
34346 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
34347 reference for input.
34349 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34351 * util/grub-mkrescue.in: Use source directory direcly (without copiing
34352 or hardlinking it). Remove -J option, Joliet is not compatible with
34353 multiple source directories.
34355 2009-11-21 Carles Pina i Estany <carles@pina.cat>
34356 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34358 * util/grub-mkrescue.in: Recognize `--override-directory' option.
34359 (process_input_dir): New function. Process an arbitrary input
34361 Misc adjustments to support both "override mode" and system-wide mode.
34363 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34365 * configure.ac (UNIFONT_BDF): Rename to ...
34366 (FONT_SOURCE): ... this. Update all users.
34368 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34370 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
34371 to the list of unifont files to look for.
34373 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34375 Patch from Joe Auricchio <jauricchio@gmail.com>
34376 * commands/minicmd.c (grub_mini_cmd_clear): New function.
34377 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
34378 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
34380 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34382 * Makefile.in (install-local): Add a missing backslash.
34384 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34386 * include/grub/x86_64/io.h: New file.
34388 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34390 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
34391 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
34392 Include `"progname.h"'.
34393 (main): Initialize gettext.
34394 * util/i386/pc/grub-setup.c: Gettexttize.
34395 * util/i386/pc/grub-mkimage.c: Likewise.
34397 * Makefile.in (po/*.po): Redefine as ...
34398 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
34400 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
34402 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34404 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
34405 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
34406 (program_name): Remove.
34407 (main): Initialize gettext support.
34408 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
34409 Include `<libintl.h>'.
34412 * util/mkisofs/eltorito.c: Gettexttize.
34413 * util/mkisofs/joliet.c: Likewise.
34414 * util/mkisofs/mkisofs.c: Likewise.
34415 * util/mkisofs/multi.c: Likewise.
34416 * util/mkisofs/rock.c: Likewise.
34417 * util/mkisofs/tree.c: Likewise.
34418 * util/mkisofs/write.c: Likewise.
34420 * po/POTFILES: Update with new files.
34422 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34424 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
34425 * util/mkisofs/iso9660.h: Likewise.
34426 * util/mkisofs/joliet.c: Likewise.
34427 * util/mkisofs/mkisofs.c: Likewise.
34428 * util/mkisofs/mkisofs.h: Likewise.
34429 * util/mkisofs/rock.c: Likewise.
34430 * util/mkisofs/tree.c: Likewise.
34431 * util/mkisofs/write.c: Likewise.
34433 * util/mkisofs/eltorito.c (rcsid): Remove.
34434 * util/mkisofs/hash.c: Likewise.
34435 * util/mkisofs/joliet.c: Likewise.
34436 * util/mkisofs/name.c: Likewise.
34437 * util/mkisofs/rock.c: Likewise.
34438 * util/mkisofs/tree.c: Likewise.
34439 * util/mkisofs/write.c: Likewise.
34441 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34443 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
34444 instead of static allocation.
34445 * util/mkisofs/match.h: Likewise.
34447 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34449 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
34450 and `util/grub.d/10_linux.in'.
34451 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
34452 translatable Shell files.
34454 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34456 * Makefile.in ($(srcdir)/aclocal.m4): New target.
34458 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34460 * INSTALL: Document Automake is needed for bootstrap.
34461 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
34462 * util/grub.d/10_kfreebsd.in (bindir): New variable.
34463 Add gettext initialization.
34464 (kfreebsd_entry): Make menuentry output translatable.
34466 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34468 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
34469 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
34470 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
34471 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
34472 (LINGUAS): Auto-generate using `po/LINGUAS'.
34473 * po/LINGUAS: New file.
34475 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34477 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
34479 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
34480 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
34481 bindtextdomain() calls for gettext initialization.
34483 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34485 * gnulib/progname.c: New file (imported from Gnulib).
34486 * gnulib/progname.h: Likewise.
34487 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34488 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
34489 (usage): Replace `progname' with `program_name'.
34490 (main): Use set_program_name() for program name initialization.
34492 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34494 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
34496 * Makefile.in (CPPFLAGS): ... to here.
34498 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34500 * aclocal.m4: Move from here ...
34501 * acinclude.m4: ... to here.
34502 * autogen.sh: Add call to `aclocal'.
34503 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
34505 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34507 * Makefile.in (CLEANFILES): Add `po/*.mo'.
34508 (LINGUAS): New variable.
34509 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
34510 (install-local): Install MO files.
34511 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
34512 * include/grub/i18n.h: New file.
34513 * po/POTFILES: New file.
34514 * po/ca.po: New file.
34515 * util/grub.d/10_linux.in (bindir): New variable.
34516 Add gettext initialization.
34517 (linux_entry): Make menuentry output translatable.
34518 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
34519 (usage): Make --help output translatable.
34520 (main): Initialize gettext.
34522 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34524 * import_gcry.py: New file (written by Vladimir with minor
34526 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
34528 * INSTALL: Document that Python is required for bootstrap.
34530 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34532 Import ciphers from libgcrypt 1.4.4.
34534 * lib/libgcrypt/cipher/ChangeLog
34535 * lib/libgcrypt/cipher/ac.c
34536 * lib/libgcrypt/cipher/arcfour.c
34537 * lib/libgcrypt/cipher/bithelp.h
34538 * lib/libgcrypt/cipher/blowfish.c
34539 * lib/libgcrypt/cipher/camellia-glue.c
34540 * lib/libgcrypt/cipher/camellia.c
34541 * lib/libgcrypt/cipher/camellia.h
34542 * lib/libgcrypt/cipher/cast5.c
34543 * lib/libgcrypt/cipher/cipher.c
34544 * lib/libgcrypt/cipher/crc.c
34545 * lib/libgcrypt/cipher/des.c
34546 * lib/libgcrypt/cipher/dsa.c
34547 * lib/libgcrypt/cipher/ecc.c
34548 * lib/libgcrypt/cipher/elgamal.c
34549 * lib/libgcrypt/cipher/hash-common.c
34550 * lib/libgcrypt/cipher/hash-common.h
34551 * lib/libgcrypt/cipher/hmac-tests.c
34552 * lib/libgcrypt/cipher/md.c
34553 * lib/libgcrypt/cipher/md4.c
34554 * lib/libgcrypt/cipher/md5.c
34555 * lib/libgcrypt/cipher/primegen.c
34556 * lib/libgcrypt/cipher/pubkey.c
34557 * lib/libgcrypt/cipher/rfc2268.c
34558 * lib/libgcrypt/cipher/rijndael-tables.h
34559 * lib/libgcrypt/cipher/rijndael.c
34560 * lib/libgcrypt/cipher/rmd.h
34561 * lib/libgcrypt/cipher/rmd160.c
34562 * lib/libgcrypt/cipher/rsa.c
34563 * lib/libgcrypt/cipher/seed.c
34564 * lib/libgcrypt/cipher/serpent.c
34565 * lib/libgcrypt/cipher/sha1.c
34566 * lib/libgcrypt/cipher/sha256.c
34567 * lib/libgcrypt/cipher/sha512.c
34568 * lib/libgcrypt/cipher/tiger.c
34569 * lib/libgcrypt/cipher/twofish.c
34570 * lib/libgcrypt/cipher/whirlpool.c
34572 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34574 Fix build for systems without error().
34576 * gnulib/error.c: New file (imported from Gnulib).
34577 * gnulib/error.h: Likewise.
34578 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
34579 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
34580 (this variable is now used by error()).
34582 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34584 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
34585 instead of relying that char is signed.
34587 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
34589 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
34590 blocksize different from specified.
34591 (grub_pxefs_read): Likewise.
34593 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34595 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
34597 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
34598 (grub_ata_readwrite): Likewise. Update 2 format strings.
34599 (grub_atapi_read): Likewise.
34601 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
34602 * conf/i386.rmk (pkglib_MODULES): ... to here ...
34603 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
34604 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
34605 (ata_mod_LDFLAGS): Move from here ...
34606 * conf/i386.rmk: ... to here ...
34607 * conf/x86_64-efi.rmk: ... and here.
34608 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
34609 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
34611 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34613 Relicense multiboot.h, with RMS' blessing.
34615 * include/multiboot.h: Change to X11 license.
34617 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
34619 Support --version in grub-mkisofs.
34621 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
34622 (OPTION_VERSION): New macro.
34623 (ld_options): Recognize --version.
34624 (usage): Move `program_name' from here ...
34625 (program_name): ... to here. Add `static' qualifier.
34626 (main): Recognize `OPTION_VERSION'.
34628 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
34630 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
34631 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
34633 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34635 Fix help2man generation for mkisofs.
34637 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
34638 (usage): Send output to stdout (rather than stderr).
34640 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34642 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
34643 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34644 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
34645 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34646 (bin_SCRIPTS): Add `grub-mkfloppy'.
34647 (grub_mkfloppy_SOURCES): New variable.
34649 * util/grub-mkrescue.in: New file.
34650 * util/i386/pc/grub-mkfloppy.in: New file.
34652 * util/i386/coreboot/grub-mkrescue.in: Remove.
34653 * util/i386/pc/grub-mkrescue.in: Remove.
34655 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34657 * include/grub/multiboot.h (struct grub_multiboot_header): Move
34659 * include/multiboot.h (struct multiboot_header): ... to here. Update
34661 * include/grub/multiboot.h (struct grub_multiboot_info): Move
34663 * include/multiboot.h (struct multiboot_info): ... to here. Update
34665 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
34667 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
34669 * include/grub/multiboot.h (struct grub_mod_list): Move
34671 * include/multiboot.h (struct multiboot_mod_list): ... to here.
34674 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34676 * include/multiboot2.h (multiboot_word): Rename from this ...
34677 (multiboot2_word): ... to this. Update all users.
34678 (multiboot_header): Rename from this ...
34679 (multiboot2_header): ... to this. Update all users.
34680 (multiboot_tag_header): Rename from this ...
34681 (multiboot2_tag_header): ... to this. Update all users.
34682 (multiboot_tag_start): Rename from this ...
34683 (multiboot2_tag_start): ... to this. Update all users.
34684 (multiboot_tag_name): Rename from this ...
34685 (multiboot2_tag_name): ... to this. Update all users.
34686 (multiboot_tag_module): Rename from this ...
34687 (multiboot2_tag_module): ... to this. Update all users.
34688 (multiboot_tag_memory): Rename from this ...
34689 (multiboot2_tag_memory): ... to this. Update all users.
34690 (multiboot_tag_unused): Rename from this ...
34691 (multiboot2_tag_unused): ... to this. Update all users.
34692 (multiboot_tag_end): Rename from this ...
34693 (multiboot2_tag_end): ... to this. Update all users.
34695 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34697 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
34698 this platform we should support Multiboot1 first.
34700 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
34701 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
34702 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
34704 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34706 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
34707 of write calls (converting them to fwrite() if they aren't already).
34708 (get_torito_desc): Likewise.
34709 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
34711 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34713 * util/i386/pc/grub-install.in: Move from here ...
34714 * util/grub-install.in: ... to here. Update all users.
34716 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
34718 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
34720 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34722 Support for El Torito without floppy emulation.
34724 * util/mkisofs/eltorito.c: Include `<errno.h>'.
34725 (init_boot_catalog): Improve error handling.
34726 (get_torito_desc): Don't use floppy emulation unless requested by
34727 user. Patch boot information table when requested via
34728 `-boot-info-table'.
34729 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
34730 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
34731 (use_boot_info_table): New variables.
34732 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
34733 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
34734 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
34735 `--eltorito-emul-floppy'.
34736 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
34737 and `OPTION_ELTORITO_EMUL_FLOPPY'.
34738 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
34739 (use_boot_info_table, get_731): New prototypes.
34740 * util/mkisofs/write.c (get_731): New function.
34742 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
34744 Fix the generation of the man page.
34746 * util/pc/i386/grub-install.in: Source
34747 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
34749 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34751 Large file support for grub-mkisofs.
34753 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
34754 * util/mkisofs/mkisofs.c (next_extent, last_extent)
34755 (session_start): Upgrade type to `uint64_t'. Update all users.
34756 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
34757 (struct directory_entry): Upgrade type of `starting_block' and
34758 `size' to `uint64_t'. Update all users.
34759 (struct deferred): Remove unused structure.
34760 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
34762 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
34763 file is larger than `UINT32_MAX'.
34764 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
34765 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
34767 (struct deferred_write): Upgrade type of `extent' and `size' to
34768 `uint64_t'. Update all users.
34769 (last_extent_written): Upgrade type to `uint64_t'. Update all
34771 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
34772 Update all users. Upgrade type of `remain' to `int64_t' and
34773 `use' to `size_t'. Use error() to handle fread() errors.
34774 (write_files): Rely on write_one_file() rather than calling
34775 xfwrite() directly.
34777 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
34779 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
34781 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34783 * util/mkisofs/fnmatch.c: Remove.
34784 * util/mkisofs/getopt1.c: Likewise.
34785 * util/mkisofs/getopt.c: Likewise.
34786 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
34787 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
34788 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
34789 `gnulib/getopt1.c' and `gnulib/getopt.c'.
34790 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
34792 * configure.ac: Detect `mingw32msvc' host_os.
34793 Check for lstat(), getuid() and getgid().
34795 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34796 instances of `u_char' with `uint8_t'.
34798 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34799 [!HAVE_GETUID] (getuid): New function (stub).
34800 [!HAVE_GETGID] (getgid): Likewise.
34801 [!HAVE_LSTAT] (lstat): Likewise.
34802 [!S_IROTH] (S_IROTH): New macro (dummy).
34803 [!S_IRGRP] (S_IRGRP): Likewise.
34805 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34807 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34808 conditional expression).
34810 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34812 Import from Gnulib.
34814 * gnulib/fnmatch.c: New file.
34815 * gnulib/fnmatch.h: Likewise.
34816 * gnulib/fnmatch_loop.c: Likewise.
34817 * gnulib/getopt.c: Likewise.
34818 * gnulib/getopt.h: Likewise.
34819 * gnulib/getopt1.c: Likewise.
34820 * gnulib/getopt_int.h: Likewise.
34821 * gnulib/gettext.h: Likewise.
34823 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34825 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34826 * normal/handler.c (read_handler_list): Likewise.
34828 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34832 * kern/command.c (grub_register_command_prio): Use
34833 grub_zalloc() instead of explicitly zeroing data.
34834 * kern/list.c: Include `<grub/mm.h>'.
34835 (grub_named_list_find): Replace `0' with `NULL'.
34836 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34837 (fs_module_list): Change type to `grub_named_list_t'. Update all
34839 * normal/dyncmd.c (read_command_list): Add space between function
34840 call and parenthesis.
34841 * normal/handler.c (read_handler_list): Likewise.
34843 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34845 * normal/auth.c (punishment_delay): Moved from here ...
34846 (grub_auth_strcmp): ... to here (inside function).
34848 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34850 * include/grub/list.h (struct grub_named_list): Remove `const'
34851 qualifier from `name'.
34852 (struct grub_prio_list): Likewise.
34854 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34856 * normal/auth.c: Include `<grub/time.h>'.
34857 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34859 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34861 * normal/auth.c (punishment_delay): New variable.
34862 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34863 (grub_auth_check_authentication): Punish failed login attempts with
34864 an incremental (2^N) delay.
34866 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34868 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34869 path with $(srcdir).
34871 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34873 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
34875 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34877 * util/i386/coreboot/grub-mkrescue.in: New file.
34878 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
34881 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
34882 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
34883 * configure.ac: Add header and function checks to satisfy grub-mkisofs
34885 * util/mkisofs/defaults.h: New file.
34886 * util/mkisofs/eltorito.c: Likewise.
34887 * util/mkisofs/exclude.h: Likewise.
34888 * util/mkisofs/fnmatch.c: Likewise.
34889 * util/mkisofs/getopt.c: Likewise.
34890 * util/mkisofs/getopt1.c: Likewise.
34891 * util/mkisofs/hash.c: Likewise.
34892 * util/mkisofs/include/fctldefs.h: Likewise.
34893 * util/mkisofs/include/mconfig.h: Likewise.
34894 * util/mkisofs/include/prototyp.h: Likewise.
34895 * util/mkisofs/include/statdefs.h: Likewise.
34896 * util/mkisofs/iso9660.h: Likewise.
34897 * util/mkisofs/joliet.c: Likewise.
34898 * util/mkisofs/match.c: Likewise.
34899 * util/mkisofs/match.h: Likewise.
34900 * util/mkisofs/mkisofs.c: Likewise.
34901 * util/mkisofs/mkisofs.h: Likewise.
34902 * util/mkisofs/multi.c: Likewise.
34903 * util/mkisofs/name.c: Likewise.
34904 * util/mkisofs/rock.c: Likewise.
34905 * util/mkisofs/tree.c: Likewise.
34906 * util/mkisofs/write.c: Likewise.
34908 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34910 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
34913 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34915 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
34916 `grub-mkimage' (and use $0 when possible).
34918 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34920 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
34921 error message for excessively large memory map.
34923 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34925 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
34928 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34930 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
34931 message for coreboot users.
34933 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
34935 Fix build with GNU gold.
34937 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
34938 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
34939 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
34941 * aclocal.m4: Likewise.
34943 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
34945 * configure.ac (AC_PREREQ): Bump to 2.59d.
34946 * INSTALL: Make it more clear when Autoconf and Ruby are
34947 needed and when to run `./autogen.sh'.
34949 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34951 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
34954 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34956 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
34958 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34960 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
34961 giving it to GNU Mach.
34963 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34965 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
34966 GNU partition number to get internal GRUB partition number.
34968 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34970 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
34971 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
34973 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
34975 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
34976 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
34979 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
34981 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
34983 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34987 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
34988 `-isystem=$(srcdir)/include'.
34990 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34992 * util/i386/pc/grub-install.in: Remove hint that device.map should be
34993 checked (grub-install doesn't currently rely on it).
34995 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
34999 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
35000 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
35001 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
35002 * conf/i386-ieee1275.rmk: Likewise.
35003 * conf/i386-pc.rmk: Likewise.
35004 * conf/powerpc-ieee1275.rmk: Likewise.
35005 * conf/sparc64-ieee1275.rmk: Likewise.
35006 * conf/x86_64-efi.rmk: Likewise.
35008 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
35010 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
35012 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
35014 * include/grub/misc.h: Stop checking for APPLE_CC.
35016 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
35018 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
35019 doesn't cause an infinite call loop.
35021 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
35023 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
35026 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35028 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
35030 * Makefile.in: Likewise.
35032 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35034 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
35036 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35038 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
35040 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35042 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
35044 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35046 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
35048 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
35050 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35052 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
35053 in $(MAKEINFO) invocation. This makes it clear in output that
35054 errors are being ignored.
35056 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35058 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
35060 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
35061 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
35062 * conf/i386-ieee1275.rmk: Likewise.
35063 * conf/i386-pc.rmk: Likewise.
35064 * conf/powerpc-ieee1275.rmk: Likewise.
35065 * conf/sparc64-ieee1275.rmk: Likewise.
35066 * conf/x86_64-efi.rmk: Likewise.
35068 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
35070 * util/grub-editenv.c (main): If only a command is given, use
35071 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
35072 (usage): FILENAME is now optional and has a default.
35074 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
35076 Improve grub-mkconfig performance when there are several menu
35077 entries on a single filesystem.
35079 * util/grub.d/10_linux.in (linux_entry): Cache the output of
35080 prepare_grub_to_access_device.
35081 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
35082 * util/grub.d/30_os-prober.in: Likewise.
35084 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35086 * util/grub.d/10_freebsd.in: Remove.
35087 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
35088 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
35090 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35092 * docs/grub.cfg: Fix example usage of *BSD loaders.
35094 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35096 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
35097 grub_util_error() call.
35099 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35101 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
35102 `reserved_first_sector' member.
35103 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
35104 `reserved_first_sector' to 1.
35105 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
35106 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
35107 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
35108 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
35109 filesystems which begin at first sector.
35110 (options): New option --skip-fs-probe.
35111 (main): Handle --skip-fs-probe and pass it to setup().
35113 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35115 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
35116 (memset): Fix function prototype.
35118 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35119 2009-10-25 Vasily Averin <vvs@parallels.com>
35121 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
35122 `dirent.direntlen == 0'.
35124 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35126 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
35128 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
35130 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35132 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
35133 `__trampoline_setup' and `__ucmpdi2'.
35134 * include/grub/powerpc/libgcc.h: Only export symbols for functions
35135 that libgcc provides.
35137 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35139 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
35140 * include/grub/sparc64/libgcc.h (memset): Likewise.
35141 * include/grub/misc.h (memset, memcmp): New function prototypes.
35143 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35145 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
35147 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
35149 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35151 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
35152 * docs/grub.cfg: Compensate for recent change in multiboot
35153 loader (since 2009-08-14 it won't pass filename to payload).
35154 * util/grub.d/10_hurd.in: Likewise.
35156 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
35158 * config.guess: Update to latest version from config git
35160 * config.sub: Likewise.
35162 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
35164 Fix build on sparc64.
35166 * configure.ac: Perform checks for libgcc symbols before
35167 adding `-nostdlib' to LDFLAGS.
35169 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35171 Let user specify OpenBSD root device.
35173 * loader/i386/bsd.c (openbsd_root): New variable.
35174 (openbsd_opts): New option 'root'.
35175 (OPENBSD_ROOT_ARG): New macro.
35176 (grub_openbsd_boot): Use 'openbsd_root'.
35177 (grub_cmd_openbsd): Fill 'openbsd_root'.
35179 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35181 * NEWS: Misc adjustments.
35183 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35185 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
35187 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35189 * configure.ac: Bump version to 1.97.
35191 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
35193 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
35194 -mno-3dnow on x86 architectures. Some toolchains enable these
35195 features by default, but they rely on registers that aren't enabled
35196 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
35198 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
35200 Make entry text a bit more readable.
35202 * util/grub.d/10_linux.in: Add `with' before `Linux'.
35204 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35206 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
35208 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35210 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
35213 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35215 * configure.ac: Add missing dollar.
35217 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35219 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
35221 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
35222 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
35224 * include/grub/sparc64/libgcc.h: Likewise. Use
35225 preprocessor conditionals.
35227 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35229 * conf/common.rmk (grub-dumpbios): Remove rule.
35230 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
35231 * util/grub-dumpbios.in: Remove file.
35233 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35235 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
35236 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
35238 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
35239 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
35242 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
35243 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
35244 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
35245 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
35248 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
35250 * term/tparm.c: Switch to GPLv3.
35252 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35254 * include/grub/i386/cpuid.h: Add header protection.
35256 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35258 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
35260 * include/grub/i386/cpuid.h: New file.
35261 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
35262 (has_longmode): Rename to ...
35263 (grub_cpuid_has_longmode): ... this. Update all users. Remove
35264 `static' attribute.
35265 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
35266 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
35267 on a CPU that doesn't implement AMD64 instruction set.
35269 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35271 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
35272 that version.texi is rebuilt on version number changes.
35274 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35276 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
35279 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35281 * util/i386/pc/grub-install.in: Source
35282 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
35283 that the --grub-probe option will work.
35284 * util/sparc64/ieee1275/grub-install.in: Likewise.
35286 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
35288 * configure.ac: Bump version to 1.97~beta4.
35290 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
35292 Resync grub-mkdevicemap in x86_64-efi.
35294 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
35295 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
35296 `util/devicemap.c'.
35298 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
35300 * util/grub-editenv.c (create_envblk_file): Write new block with a
35301 .new suffix and then rename it into place, to ensure atomic
35304 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
35306 Do not automatically install headers.
35308 * Makefile.in (include_DATA): Remove. Update all users.
35310 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
35312 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
35313 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
35315 * util/osdetect.lua: Remove.
35316 * script/lua/lauxlib.c: Likewise.
35317 * script/lua/ldebug.c: Likewise.
35318 * script/lua/grub_main.c: Likewise.
35319 * script/lua/lauxlib.h: Likewise.
35320 * script/lua/ldebug.h: Likewise.
35321 * script/lua/ltablib.c: Likewise.
35322 * script/lua/liolib.c: Likewise.
35323 * script/lua/lstrlib.c: Likewise.
35324 * script/lua/lualib.h: Likewise.
35325 * script/lua/ldo.c: Likewise.
35326 * script/lua/ldump.c: Likewise.
35327 * script/lua/ldo.h: Likewise.
35328 * script/lua/loslib.c: Likewise.
35329 * script/lua/lundump.c: Likewise.
35330 * script/lua/grub_lib.c: Likewise.
35331 * script/lua/ldblib.c: Likewise.
35332 * script/lua/lundump.h: Likewise.
35333 * script/lua/lmem.c: Likewise.
35334 * script/lua/grub_lib.h: Likewise.
35335 * script/lua/lmathlib.c: Likewise.
35336 * script/lua/lstate.c: Likewise.
35337 * script/lua/ltm.c: Likewise.
35338 * script/lua/lvm.c: Likewise.
35339 * script/lua/lmem.h: Likewise.
35340 * script/lua/lstate.h: Likewise.
35341 * script/lua/ltm.h: Likewise.
35342 * script/lua/ltable.c: Likewise.
35343 * script/lua/lvm.h: Likewise.
35344 * script/lua/llex.c: Likewise.
35345 * script/lua/lgc.c: Likewise.
35346 * script/lua/grub_lua.h: Likewise.
35347 * script/lua/loadlib.c: Likewise.
35348 * script/lua/lfunc.c: Likewise.
35349 * script/lua/lopcodes.c: Likewise.
35350 * script/lua/lparser.c: Likewise.
35351 * script/lua/ltable.h: Likewise.
35352 * script/lua/llex.h: Likewise.
35353 * script/lua/lgc.h: Likewise.
35354 * script/lua/lfunc.h: Likewise.
35355 * script/lua/lbaselib.c: Likewise.
35356 * script/lua/lopcodes.h: Likewise.
35357 * script/lua/lparser.h: Likewise.
35358 * script/lua/lzio.c: Likewise.
35359 * script/lua/linit.c: Likewise.
35360 * script/lua/lobject.c: Likewise.
35361 * script/lua/llimits.h: Likewise.
35362 * script/lua/lstring.c: Likewise.
35363 * script/lua/lzio.h: Likewise.
35364 * script/lua/lapi.c: Likewise.
35365 * script/lua/lcode.c: Likewise.
35366 * script/lua/lua.h: Likewise.
35367 * script/lua/lobject.h: Likewise.
35368 * script/lua/lstring.h: Likewise.
35369 * script/lua/lapi.h: Likewise.
35370 * script/lua/lcode.h: Likewise.
35371 * script/lua/luaconf.h: Likewise.
35373 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
35375 * docs/grub.texi (Command-line and menu entry commands): Document
35376 date and echo commands.
35378 2009-09-24 Pavel Roskin <proski@gnu.org>
35380 * include/grub/kernel.h (struct grub_module_header): Remove
35381 `grub_module_header_types'. Make `type' unsigned. Make `size'
35382 32-bit on all platforms.
35383 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
35384 8-bit field. Use grub_host_to_target32() for `size'.
35385 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
35386 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
35387 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
35389 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35391 Fix "lost keypress" bug in at_keyboard.
35393 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
35394 Checks for readyness of input buffer (without flushing it).
35395 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
35396 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
35398 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35400 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
35401 size check within GRUB_MACHINE_PCBIOS section.
35403 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35405 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
35407 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
35408 KEYBOARD_ISREADY check.
35409 (grub_at_keyboard_checkkey): Rename to ...
35410 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
35411 Remove gratuitous cast.
35413 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
35415 * configure.ac: Call AC_PROG_MKDIR_P.
35416 * Makefile.in (docs/stamp-vti): Create docs directory. Create
35417 version.texi in $(builddir) rather than $(srcdir).
35418 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
35419 to makeinfo's @include search path.
35421 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35423 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
35425 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35427 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
35430 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
35432 Build info documentation. Some code borrowed from Automake.
35434 * configure.ac: Check for makeinfo.
35435 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
35436 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
35438 (MOSTLYCLEANFILES): Add vti.tmp.
35439 (docs/version.texi, docs/stamp-vti): Update automatically.
35440 (docs/grub.info): Build info documentation. Use --force and ignore
35442 (all-local): Add $(INFOS).
35443 (install-local): Install info files.
35444 (uninstall): Uninstall info files.
35445 * docs/version.texi: Remove from revision control. This file is
35446 automatically generated on build now.
35447 * gendistlist.sh: Add `*.info'.
35449 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35451 * kern/term.c: Fix indentation.
35453 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35455 * util/hostdisk.c: Fix a comment.
35457 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
35459 Fix regression introduced in r2539.
35461 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
35464 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
35466 * util/grub.d/30_os-prober.in: Don't throw away stderr from
35467 os-prober. Under normal operation, it does not print anything to
35468 stderr; if it does, we need to debug it, and throwing away stderr
35469 makes that excessively difficult.
35471 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
35473 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
35475 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35477 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
35478 AC_LANG_PROGRAM from autoconf.
35479 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
35480 prototypes (fixes warning).
35482 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
35483 `--disable-werror' was used.
35485 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35487 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
35488 uninitialized `lastaddr'.
35490 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
35492 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
35494 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35496 * commands/test.c (get_fileinfo): Return immediately if
35497 grub_fs_probe fails.
35499 2009-09-14 José Martínez <xosemp@gmail.com>
35501 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
35503 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35505 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
35508 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
35510 * configure.ac: Remove --enable-grub-pe2elf. Only build
35511 grub-pe2elf when needed by the build system itself.
35512 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
35514 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35516 * configure.ac: Bump version to 1.97~beta3.
35517 * docs/version.texi: Likewise.
35519 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35521 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
35522 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
35524 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
35525 (grub_linux_setup_video): ... to here (with some adjustments).
35527 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35529 Fix memory corruption issue (spotted by Colin Watson).
35531 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
35532 causing returned size to be stored in an incorrect memory location.
35533 Fix use of uninitialized value when storing the returned size.
35535 2009-09-12 Yves Blusseau <blusseau@zetam.org>
35537 Change clean rules to properly remove files
35539 * genmk.rb: add new clean rules
35540 * Makefile.in (clean): add the new targets
35541 (mostlyclean): likewise
35543 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35545 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
35547 * fs/ntfs.c (init_file): Understand 64-bit sizes for
35548 non-resident files.
35550 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35552 * configure.ac: Don't look for help2man when cross-compiling. Fixes
35553 part of bug #27349.
35555 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35557 * util/grub-mkconfig.in: Make the created config mode 400 and
35558 print a warning if it fails.
35560 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
35562 * util/grub.d/40_custom.in: Ask user to type custom entries below
35563 comment, rather than below 'exec tail' line.
35565 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35567 * util/grub.d/40_custom.in: Make sure that the explanatory text is
35568 visible in grub.cfg.
35570 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35572 * util/grub.d/40_custom.in: Make it a little clearer how to use this
35575 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35577 * docs/grub.cfg: Add an example menu entry for memtest86+.
35579 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
35581 * config.guess: Update to latest version from config git.
35582 * config.sub: Likewise.
35584 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
35586 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
35587 unknown-command case. Fixes bug #27320.
35589 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
35591 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
35592 `help' if the command exists.
35594 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
35596 * INSTALL: Require GCC 4.1.3 or later.
35598 2009-09-06 Yves Blusseau <blusseau@zetam.org>
35600 * Makefile.in (RMKFILES): add i386-qemu.rmk
35601 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
35602 $(srcdir)/stamp-h.in
35604 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
35606 * util/grub-probe.c (probe): Comment out buggy codepath, which
35607 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
35608 should be re-enabled after 1.97.
35610 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
35612 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
35615 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
35617 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
35618 unnecessary calls to grub_error.
35620 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
35622 * NEWS: Mention `keystatus' and Unicode fonts.
35624 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
35626 * configure.ac: Bump version to 1.97~beta2.
35627 * docs/version.texi: Likewise.
35629 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35631 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
35632 containing unwind information in some cases where it previously did
35633 not. Use -fno-dwarf2-cfi-asm if available to restore the old
35634 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
35637 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
35639 Embedding loadenv module into grub-emu
35641 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
35643 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
35644 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
35645 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
35646 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
35647 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
35648 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
35650 2009-09-03 Magnus Granberg <zorry@ume.nu>
35652 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
35653 include -fPIE in the default specs.
35654 * configure.ac: Check if pie_possible is yes and add -fno-PIE
35657 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
35659 * INSTALL: Note that GNU Bison 2.3 or later is required.
35661 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35663 * kern/i386/pc/startup.S: Fix typo.
35665 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
35667 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
35670 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35672 * docs/grub.texi (Naming convention): Describe one-based partition
35674 (Device syntax): Likewise.
35675 (File name syntax): Likewise.
35676 (Block list syntax): Likewise.
35677 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
35679 (File name syntax): Likewise.
35680 (Command-line and menu entry commands): Document acpi, blocklist,
35681 crc, export, insmod, keystatus, ls, set, and unset commands.
35683 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35685 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
35686 to avoid implying that only one of --shift, --ctrl, or --alt may be
35689 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35691 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
35692 rather than comparing against S_IFREG, which will almost never work.
35694 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
35696 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
35697 (write_blocklists): Likewise.
35699 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
35701 * script/lua/grub_lua.h (fputs): Supply a format string as the first
35702 argument to grub_printf.
35704 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
35706 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
35709 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35711 * kern/file.c (grub_file_read): Spelling fix
35713 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35715 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
35716 loading of headers in some cases.
35718 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
35720 * configure.ac: Bump version to 1.97~beta1.
35721 * docs/version.texi: Likewise.
35723 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
35725 * include/grub/i386/xnu.h: Add license header.
35726 include grub/err.h explicitly.
35728 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35730 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
35731 to `ufs' in the vfs.root.mountfrom kernel parameter.
35733 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35735 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
35737 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
35738 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
35740 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
35741 `ARRAY_SIZE' macro.
35743 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35745 * kern/file.c (grub_file_read): Check offset.
35746 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
35747 * fs/jfs.c (grub_jfs_read_file): Likewise.
35748 * fs/ntfs.c (grub_ntfs_read): Likewise.
35749 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
35750 * fs/minix.c (grub_minix_read_file): Correct offset check.
35751 * fs/ufs.c (grub_ufs_read_file): Likewise.
35753 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35755 * term/i386/pc/console.c (bios_data_area): Cast
35756 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
35758 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35760 1-bit optimised blitters.
35762 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
35764 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35765 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35766 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35767 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35768 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35769 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35770 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
35772 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35773 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35774 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35775 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35776 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35777 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35778 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
35780 * video/video.c (grub_video_get_blit_format): Return
35781 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
35783 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35785 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
35786 the first argument to grub_printf.
35788 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35789 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
35791 Add `getkeystatus' terminal method. Add a new `keystatus' command
35794 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
35795 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35796 modifier key bitmasks.
35797 (struct grub_term_input): Add `getkeystatus' member.
35798 (grub_getkeystatus): Add prototype.
35799 * kern/term.c (grub_getkeystatus): New function.
35801 * include/grub/i386/pc/memory.h
35802 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35803 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35805 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35806 (grub_console_term_input): Set `getkeystatus' member.
35807 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35809 (grub_usb_keyboard_getreport): Likewise.
35810 (grub_usb_keyboard_checkkey): Likewise.
35811 (grub_usb_keyboard_getkeystatus): New function.
35812 (grub_usb_keyboard_term): Set `getkeystatus' member.
35814 * commands/keystatus.c: New file.
35815 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35816 (keystatus_mod_SOURCES): New variable.
35817 (keystatus_mod_CFLAGS): Likewise.
35818 (keystatus_mod_LDFLAGS): Likewise.
35819 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35820 commands/keystatus.c.
35821 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35822 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35823 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35824 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35825 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35826 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35828 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35830 Split befs.mod and afs.mod into *_be.mod and *.mod
35832 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35833 (grub_fstest_SOURCES): Likewise.
35834 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35835 (afs_be_mod_SOURCES): New variable.
35836 (afs_be_mod_CFLAGS): Likewise.
35837 (afs_be_mod_LDFLAGS): Likewise.
35838 (befs_be_mod_SOURCES): Likewise.
35839 (befs_be_mod_CFLAGS): Likewise.
35840 (befs_be_mod_LDFLAGS): Likewise.
35841 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35842 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35843 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35844 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35845 (grub_emu_SOURCES): Likewise.
35846 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35847 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35848 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35849 * fs/afs_be.c: New file.
35850 * fs/befs_be.c: New file.
35851 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35852 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35853 (U16): Replaced with ...
35854 (grub_afs_to_cpu16): ...this. All users updated.
35855 (U32): Replaced with ...
35856 (grub_afs_to_cpu32): ...this. All users updated.
35857 (U64): Replaced with ...
35858 (grub_afs_to_cpu64): ...this. All users updated.
35859 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35860 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
35861 (grub_afs_validate_sblock): Check only one endianness.
35862 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35863 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35864 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35865 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35866 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35867 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35868 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35869 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35871 2009-08-26 Bean <bean123ch@gmail.com>
35873 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
35875 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
35876 (grub_xfs_inode_block): Change return type to grub_uint64_t.
35877 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
35879 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35881 NetBSD memory map support.
35883 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
35884 (grub_netbsd_btinfo_mmap_header): New structure.
35885 (grub_netbsd_btinfo_mmap_entry): Likewise.
35886 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
35888 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35890 Enable bsd.mod on coreboot.
35892 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
35893 (bsd_mod_SOURCES): New variable.
35894 (bsd_mod_CFLAGS): Likewise.
35895 (bsd_mod_LDFLAGS): Likewise.
35896 (bsd_mod_ASFLAGS): Likewise.
35897 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
35898 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
35900 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35902 Cleanup NetBSD root support.
35904 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
35905 grub_bsd_get_device.
35908 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
35910 * util/grub.d/00_header.in: Move check for the video backend of
35911 gfxterm from here ...
35912 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
35913 a suitable video backend.
35915 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35917 Fix breakage in grub-setup.
35919 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
35920 "msdos_partition_map".
35922 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35924 Fix breakage in normal/auth.c.
35926 * normal/auth.c (grub_iswordseparator): New function.
35928 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35930 Authentication support.
35932 * commands/password.c: New file.
35933 * conf/common.rmk (pkglib_MODULES): Add password.mod.
35934 (password_mod_SOURCES): New variable.
35935 (password_mod_CFLAGS): Likewise.
35936 (password_mod_LDFLAGS): Likewise.
35937 (normal_mod_SOURCES): Add normal/auth.c.
35938 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
35940 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35941 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35942 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35943 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35944 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35945 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35946 * include/grub/auth.h: New file.
35947 * include/grub/err.h (grub_err_t): New enum value
35948 GRUB_ERR_ACCESS_DENIED.
35949 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
35951 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
35952 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
35954 * normal/auth.c: New file.
35955 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
35956 (grub_cmdline_run): Don't allow to go to command line without
35958 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
35959 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
35960 menuentry without superuser rights.
35961 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
35962 user isn't a superuser.
35964 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35966 Save space by inlining misc.c functions.
35968 * kern/misc.c (grub_iswordseparator): Made static.
35969 * kern/misc.c (grub_strcat): Moved from here ...
35970 * include/grub/misc.h (grub_strcat): ... here. Inlined.
35971 * kern/misc.c (grub_strncat): Moved from here ...
35972 * include/grub/misc.h (grub_strncat): ... here. Inlined.
35973 * kern/misc.c (grub_strcasecmp): Moved from here ...
35974 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
35975 * kern/misc.c (grub_strncasecmp): Moved from here ...
35976 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
35977 * kern/misc.c (grub_isalpha): Moved from here ...
35978 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
35979 * kern/misc.c (grub_isdigit): Moved from here ...
35980 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
35981 * kern/misc.c (grub_isgraph): Moved from here ...
35982 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
35983 * kern/misc.c (grub_tolower): Moved from here ...
35984 * include/grub/misc.h (grub_tolower): ... here. Inlined.
35986 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35988 * script/sh/function.c (grub_script_function_find): Cut error message
35989 not to flood terminal.
35990 * script/sh/lexer.c (grub_script_yylex): Remove command line length
35992 * script/sh/script.c (grub_script_arg_add): Duplicate string.
35994 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
35996 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
35997 `report' grub_uint8_t *.
35998 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
35999 Use a 50-millisecond timeout rather than just repeating
36000 grub_usb_keyboard_getreport 50 times.
36001 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
36003 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36005 Rename *_partition_map to part_*
36007 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
36008 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
36009 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
36010 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
36012 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
36014 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
36015 * util/grub-probe.c (probe_partmap): Don't transform partition name
36016 to get module name.
36018 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36020 Fix OpenBSD and NetBSD support.
36022 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
36023 memory address conflict.
36024 (OPENBSD_MMAP_ACPI): New definition.
36025 (OPENBSD_MMAP_NVS): Likewise.
36026 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
36027 and OPENBSD_MMAP_NVS.
36028 Add memory map terminator
36029 Explicit cast when calling grub_unix_real_boot.
36030 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
36032 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36034 Let user specify NetBSD root device.
36036 * loader/i386/bsd.c (netbsd_root): New variable.
36037 (netbsd_opts): New option 'root'.
36038 (NETBSD_ROOT_ARG): New macro.
36039 (grub_netbsd_boot): Use 'netbsd_root'.
36040 (grub_bsd_unload): Free 'netbsd_root'.
36041 (grub_cmd_netbsd): Fill 'netbsd_root'.
36043 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36045 Support for 64-bit NetBSD.
36047 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
36048 point when booting non-FreeBSD.
36050 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36052 Support --no-smp and --no-acpi for NetBSD.
36054 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
36055 (NETBSD_AB_NOACPI): Likewise.
36056 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
36057 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
36059 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36061 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
36063 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
36064 errors. Call grub_error when needed.
36066 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36068 * commands/search.c (search_fs): Try searching without autoload first.
36069 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
36070 filesystem module explicitly for faster booting.
36072 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
36074 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
36076 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
36078 * util/grub.d/30_os-prober.in: Disable os-prober if
36079 `GRUB_DISABLE_OS_PROBER' was set to true.
36081 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
36083 * partmap/pc.c: Rename to ...
36084 * partmap/msdos.c: ... this. Update all users.
36085 (grub_pc_partition_map): Rename to ...
36086 (grub_msdos_partition_map): ... this. Update all users.
36088 * parttool/pcpart.c: Rename to ...
36089 * parttool/msdospart.c: ... this. Update all users.
36091 * include/grub/pc_partition.h: Rename to ...
36092 * include/grub/msdos_partition.h: ... this. Update all users.
36093 (grub_pc_partition_bsd_entry): Rename to ...
36094 (grub_msdos_partition_bsd_entry): ... this. Update all users.
36095 (grub_pc_partition_disk_label): Rename to ...
36096 (grub_msdos_partition_disk_label): ... this. Update all users.
36097 (grub_pc_partition_entry): Rename to ...
36098 (grub_msdos_partition_entry): ... this. Update all users.
36099 (grub_pc_partition_mbr): Rename to ...
36100 (grub_msdos_partition_mbr): ... this. Update all users.
36101 (grub_pc_partition): Rename to ...
36102 (grub_msdos_partition): ... this. Update all users.
36103 (grub_pc_partition_is_empty): Rename to ...
36104 (grub_msdos_partition_is_empty): ... this. Update all users.
36105 (grub_pc_partition_is_extended): Rename to ...
36106 (grub_msdos_partition_is_extended): ... this. Update all users.
36107 (grub_pc_partition_is_bsd): Rename to ...
36108 (grub_msdos_partition_is_bsd): ... this. Update all users.
36110 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
36111 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
36112 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
36113 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
36114 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
36115 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
36116 (gpt_mod_LDFLAGS): Rename to ...
36117 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
36118 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
36119 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
36120 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
36121 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
36122 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
36123 (part_gpt_mod_LDFLAGS): ... this.
36124 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
36125 `pcpart.mod' to `msdospart.mod'.
36126 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
36128 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
36129 (msdospart_mod_LDFLAGS): ... this.
36131 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36133 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
36134 (openbsd_opts): Likewise.
36135 (netbsd_opts): Likewise.
36136 (freebsd_flags): Added 0 terminator.
36137 (openbsd_flags): Likewise.
36138 (netbsd_flags): Likewise.
36139 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
36140 (grub_cmd_freebsd): Transformed into extended command.
36141 (grub_cmd_openbsd): Likewise.
36142 (grub_cmd_netbsd): Likewise.
36143 (cmd_freebsd): Changed type to grub_extcmd_t.
36144 (cmd_openbsd): Likewise.
36145 (cmd_netbsd): Likewise.
36146 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
36147 grub_cmd_openbsd as extended commands.
36148 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
36149 cmd_netbsd and cmd_openbsd
36151 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
36153 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
36155 2009-08-21 Pavel Roskin <proski@gnu.org>
36157 * Makefile.in (install-local): When checking if a file is in the
36158 build directory, use "test -e" to detect symlinks.
36160 * Makefile.in (install-local): Remove all files in
36161 $(DESTDIR)$(pkglibdir) before installing new files there.
36163 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36165 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
36168 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36170 * util/grub-mkconfig.in: Don't use gfxterm by default if not
36171 explicitly specified by the user.
36173 2009-08-18 Pavel Roskin <proski@gnu.org>
36175 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
36176 grub_uint8_t pointer for data.
36177 * include/grub/fbutil.h (struct grub_video_fbblit_info):
36179 * video/fb/fbutil.c: Remove unnecessary casts.
36181 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36185 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
36186 (grub_vbe_set_video_mode): Save active mode info
36187 only after setting the mode.
36188 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
36191 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36193 Rename variables for clarity.
36195 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
36196 (active_vbe_mode_info): ... this. All users updated.
36197 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
36199 (initial_mode): Rename to ...
36200 (initial_vbe_mode): ... this. All users updated.
36201 (mode_in_use): Rename to ..
36202 (vbe_mode_in_use): ... this. All users updated.
36203 (mode_list): Rename to ..
36204 (vbe_mode_list): ... this. All users updated.
36205 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
36206 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
36207 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
36208 'mode_list_size' to 'vbe_mode_list_size'.
36209 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
36210 'best_mode_info' to 'best_vbe_mode_info' and
36211 'best_mode' to 'best_vbe_mode'
36213 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36215 Remove duplicate grub_video_fb_get_video_ptr.
36217 * include/grub/fbutil.h (get_data_ptr): Rename to ...
36218 (grub_video_fb_get_video_ptr): ... this.
36219 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
36220 * video/fb/fbutil.c: Add comment about addressing.
36221 (get_data_ptr): Rename to ...
36222 (grub_video_fb_get_video_ptr): ... this. All users updated.
36223 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
36225 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36227 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
36228 grub_dprintf() that was just added.
36230 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36232 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
36233 (DEFAULT_VIDEO_MODE): Remove macros.
36234 (grub_linux_boot): Remove assumption that Linux has FB support,
36235 and use "text" as default video mode.
36237 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
36239 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
36241 * fs/fat.c (grub_fat_read_data): Likewise.
36243 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36245 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
36247 (grub_module): Likewise.
36249 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36251 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
36252 mbi->cmdline but free playground.
36254 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36256 Handle group offset on UFS1.
36258 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
36259 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
36261 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36263 Split ufs.mod into ufs1.mod and ufs2.mod.
36265 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
36266 (grub_fstest_SOURCES): Likewise.
36267 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
36268 (ufs_mod_SOURCES): Remove.
36269 (ufs_mod_CFLAGS): Likewise.
36270 (ufs_mod_LDFLAGS): Likewise.
36271 (ufs1_mod_SOURCES): New variable.
36272 (ufs1_mod_CFLAGS): Likewise.
36273 (ufs1_mod_LDFLAGS): Likewise.
36274 (ufs2_mod_SOURCES): New variable.
36275 (ufs2_mod_CFLAGS): Likewise.
36276 (ufs2_mod_LDFLAGS): Likewise.
36277 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
36278 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36280 (grub_emu_SOURCES): Likewise.
36281 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36282 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36283 (grub_setup_SOURCES): Likewise.
36284 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36285 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
36286 (grub_setup_SOURCES): Likewise.
36287 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36289 * fs/ufs2.c: New file.
36290 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
36292 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36296 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
36297 subsystem at the end.
36298 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
36299 (video_fb_mod_SOURCES): New variable.
36300 (video_fb_mod_CFLAGS): Likewise.
36301 (video_fb_mod_LDFLAGS): Likewise.
36302 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
36303 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
36304 * video/i386/pc/vbeblit.c: Moved from here ...
36305 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
36306 * video/i386/pc/vbefill.c: Moved from here ...
36307 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
36308 * video/i386/pc/vbeutil.c: Moved from here ...
36309 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
36310 * include/grub/i386/pc/vbeblit.h: Moved from here ...
36311 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
36312 * include/grub/i386/pc/vbefill.h: Moved from here ...
36313 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
36314 * include/grub/i386/pc/vbeutil.h: Moved from here ...
36315 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
36316 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
36317 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
36318 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
36319 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
36320 (grub_video_adapter): Added 'get_info_and_fini'.
36321 (grub_video_get_info_and_fini): New prototype.
36322 (grub_video_set_mode): make modestring const char *.
36323 * loader/i386/linux.c (grub_linux_setup_video): Use
36324 grub_video_get_info_and_fini.
36325 (grub_linux_boot): Move modesetting just before booting.
36326 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
36327 grub_video_get_info_and_fini.
36328 * video/i386/pc/vbe.c: Moved framebuffer part ...
36329 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
36330 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
36331 grub_video_fbstd_colors and grub_video_fb_set_palette.
36332 (grub_video_vbe_init): Clear 'framebuffer' variable and use
36333 grub_video_fb_init.
36334 (grub_video_vbe_fini): Use grub_video_fb_fini.
36335 (grub_video_vbe_setup): Use framebuffer.render_target instead of
36336 render_target and use grub_video_fb_set_active_render_target and
36337 grub_video_fb_set_palette.
36338 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
36339 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
36340 (grub_video_vbe_adapter): Use framebuffer.
36341 * video/video.c (grub_video_get_info_and_fini): New function.
36342 (grub_video_set_mode): Make modestring const char *.
36343 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
36344 values are already initialised.
36346 2009-08-14 Pavel Roskin <proski@gnu.org>
36348 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
36350 * boot/i386/pc/diskboot.S: Likewise.
36351 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
36352 sectors allow compilation on MacOSX.
36353 * conf/i386-pc.rmk: Enable unconditional compilation of
36356 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
36358 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
36359 * util/grub.d/00_header.in: Enter interruptible sleep if
36360 GRUB_HIDDEN_TIMEOUT is set.
36362 2009-08-13 Yves Blusseau <blusseau@zetam.org>
36364 * include/grub/symbol.h: Add the LOCAL macro.
36365 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
36366 starting with "L_".
36368 2009-08-13 Pavel Roskin <proski@gnu.org>
36370 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
36371 any modern compilers we support.
36373 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
36374 Use local labels starting with "L_" so that Apple assembler
36375 knows they are local.
36377 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
36379 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
36380 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
36381 (bsd_kernel_types): ... this enum.
36383 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
36384 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
36385 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
36387 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
36388 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
36389 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
36392 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36394 * util/grub-dumpdevtree: Moved from here ...
36395 * util/i386/efi/grub-dumpdevtree: ... to here.
36396 (hexify): New function. Converts a string to its hex version.
36397 Generate hex versions of "efi" and "device-properties" by calling
36398 hexify() on the ASCII strings rather than by hardcoding numbers.
36400 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36402 * fs/jfs.c: Update copyright year.
36404 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36406 * util/grub.d/00_header.in: Fix a comment.
36407 * util/grub.d/10_linux.in: Likewise.
36408 * util/grub.d/10_windows.in: Likewise.
36409 * util/grub.d/10_hurd.in: Likewise.
36411 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36413 * util/grub-mkconfig.in: Allow the user to specify the used font
36416 2009-08-08 Pavel Roskin <proski@gnu.org>
36418 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
36419 available, xfs.mod needs it now.
36421 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
36422 the "g" modifier in sed when the intention is to strip something
36423 once. This fixes comparison of kernels with multiple dashes.
36425 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
36426 on it. Add missing space before closing bracket. Fix
36427 misleading formatting.
36429 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36431 * docs/grub.texi: Major overhaul. Remove all sections that are
36432 specific to GRUB Legacy, or mostly composed of Legacy-specific
36435 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36437 * docs/version.texi: New file. Provides version information for
36440 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36442 * docs/grub.texi: Update CVS information to SVN.
36443 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
36445 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36447 * util/grub-mkconfig.in: Remove a wrong `fi'.
36449 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36451 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
36452 (grub_jfs_uuid): New function.
36453 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
36455 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36457 * util/grub-mkconfig_lib.in (font_path): Move the functionality
36459 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
36460 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
36462 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36464 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
36465 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
36468 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
36469 not just "vmlinu[zx]".
36470 Moved from here ...
36471 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
36474 * util/grub.d/10_linux.in (find_latest): Moved from here ...
36475 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
36478 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36480 * util/grub.d/10_freebsd.in: Use an absolute device path for
36481 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
36483 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
36485 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
36486 handling of multiple abstraction modules.
36488 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
36490 Fix a bug resulting in black screen when loading Linux using a
36493 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
36496 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
36497 (grub_vbe_bios_getset_dac_palette_width): New function.
36498 (grub_vbe_bios_get_dac_palette_width)
36499 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
36500 grub_vbe_bios_getset_dac_palette_width()).
36502 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
36503 check for return status.
36504 (grub_vbe_get_video_mode_info): When getting information for a packed
36505 mode (<= 8 bpp), obtain DAC palette width using
36506 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
36507 {red,green,blue}_mark_size.
36509 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
36511 * commands/search.c (options): Fix help output to match actual code.
36513 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
36515 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
36518 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36520 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
36521 on XFS or ReiserFS.
36523 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36525 Support Apple partition map with sector size different from 512 bytes.
36527 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
36528 (apple_partition_map_iterate): Respect 'aheader.blocksize'
36529 and 'apart.partmap_size'.
36531 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36532 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
36536 * commands/i386/cpuid.c (options): New variable.
36537 (grub_cmd_cpuid): Return real error.
36538 (GRUB_MOD_INIT(cpuid)): Declare options.
36540 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
36542 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
36545 2009-07-31 Bean <bean123ch@gmail.com>
36547 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
36549 (grub_fshelp_node): Move inode field to the end.
36550 (grub_xfs_data): Remove inode field.
36551 (grub_xfs_inode_block): Calculate inode size using sblock.
36552 (grub_xfs_inode_offset): Likewise.
36553 (grub_xfs_read_inode): Calculate inode size using sblock.
36554 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
36555 (grub_xfs_iterate_dir): Calculate inode size using sblock.
36556 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
36557 to match inode size.
36558 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
36559 not accessible when data is null.
36560 (grub_xfs_open): Likewise.
36562 2009-07-31 Bean <bean123ch@gmail.com>
36564 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
36565 Don't change pv->disk if it's already set.
36567 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
36568 (grub_raid_register): ... here.
36569 (grub_raid_rescan): Removed.
36571 * include/grub/raid.h (grub_raid_rescan): Removed.
36573 * util/grub-fstest.c: Remove include file <grub/raid.h>.
36574 (fstest): Replace grub_raid_rescan with module fini function followed
36577 * util/grub-probe.c: Add include file <grub/raid.h>.
36578 (probe_raid_level): New function.
36579 (probe): Detect abstraction by walking the disk device, support two
36580 level of abstraction (LVM on RAID) when detecting partition map.
36582 2009-07-31 Pavel Roskin <proski@gnu.org>
36584 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
36585 to grub_zalloc(), it was erroneous.
36586 Reported by Bean <bean123ch@gmail.com>
36588 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
36590 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
36591 embedding zone, not only the first one.
36593 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
36595 * term/gfxterm.c (clear_char): New function.
36596 (grub_virtual_screen_setup): Use clear_char.
36597 (scroll_up): Likewise.
36598 (grub_virtual_screen_cls): Likewise.
36600 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
36602 * util/deviceiter.c (get_acceleraid_disk_name): New static
36604 (grub_util_iterate_devices): Handle Accelraid devices.
36605 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
36607 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
36609 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
36610 separator for the suggested gfxpayload string (';' collides with the
36611 parser and needs escaping).
36613 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
36615 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
36616 Clear direction flag before jumping to OS.
36617 (grub_multiboot2_real_boot): Likewise.
36619 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36621 * util/i386/pc/grub-install: Fix parsing of --disk-module
36624 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36626 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
36629 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
36631 * util/grub-mkconfig.in (package_version): New variable.
36632 Use it do display the version.
36634 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36636 * kern/file.c (grub_file_open): Revert to previous check with
36639 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36641 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
36642 from help line. It's out of sync with code.
36644 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36646 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
36647 entries on failed boot.
36649 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36651 * kern/file.c (grub_file_open): Fix an error check.
36653 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
36655 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
36656 partition map couldn't be identified.
36658 2009-07-23 Pavel Roskin <proski@gnu.org>
36660 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
36661 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
36662 case of little endian words becomes just an optimization.
36663 Respect const modifier.
36664 (md5_final): Use code that doesn't depend on endianness.
36666 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
36667 to avoid loss of upper bits if align is unsigned and shorter
36670 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36672 UUID support for UFS
36674 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
36675 (grub_ufs_uuid): New function.
36676 (grub_ufs_fs): add .uuid
36678 2009-07-21 Pavel Roskin <proski@gnu.org>
36680 * kern/dl.c (grub_dl_check_header): Make static.
36682 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
36684 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
36685 add drivemap for Vista. It breaks Windows 7.
36687 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36689 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
36692 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36696 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
36697 (grub_fstest_SOURCES): Likewise.
36698 (pkglib_MODULES): Add befs.mod.
36699 (befs_mod_SOURCES): New variable.
36700 (befs_mod_CFLAGS): Likewise.
36701 (befs_mod_LDFLAGS): Likewise.
36702 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36703 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36704 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36705 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36706 (grub_setup_SOURCES): Likewise.
36707 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36708 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36709 (grub_setup_SOURCES): Likewise.
36710 * fs/befs.c: New file.
36711 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
36712 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
36713 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
36714 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
36715 (B_KEY_INDEX_ALIGN): New declaration.
36716 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
36717 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
36718 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
36719 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
36720 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
36721 (grub_afs_mount) [MODE_BFS]: Likewise.
36722 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
36723 (grub_afs_fs): Use GRUB_AFS_FSNAME
36724 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
36725 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
36726 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
36727 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
36729 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
36731 * util/getroot.c (find_root_device): Add support for MacOSX.
36732 * util/hostdisk.c: Likewise.
36734 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36736 * font/font.c (find_glyph): Check whether a font is present to avoid
36737 segmentation fault.
36739 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
36741 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
36743 2009-07-20 Pavel Roskin <proski@gnu.org>
36745 * configure.ac: Trim excessively wordy excuses.
36747 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36749 Add symlink, mtime and label support to AtheFS.
36751 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
36752 (grub_afs_iterate_dir): Handle symlinks.
36753 (grub_afs_open): Use grub_afs_read_symlink.
36754 (grub_afs_dir): Likewise.
36756 (grub_afs_label): New function.
36757 (grub_afs_fs): Add grub_afs_label.
36758 (grub_afs_read_symlink): New function.
36760 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36762 Fix AtheFS support.
36764 * fs/afs.c: Fix comments style.
36765 (grub_afs_blockrun): Declare as packed.
36766 (grub_afs_datastream): Likewise.
36767 (grub_afs_bnode): Likewise.
36768 (grub_afs_btree): Likewise.
36769 (grub_afs_sblock): Likewise.
36770 Declare `name' as char.
36771 (grub_afs_inode): Declare as packed.
36772 Change void *vnode to grub_uint32_t unused.
36773 (grub_afs_iterate_dir): Check that key_size is positive.
36774 (grub_afs_mount): Don't read superblock twice.
36775 (grub_afs_dir): Don't free node in case of error,
36776 grub_fshelp_find_file already handles this.
36777 (grub_afs_open): Likewise.
36779 2009-07-19 Pavel Roskin <proski@gnu.org>
36781 * Makefile.in: Remove LIBLZO and enable_lzo.
36782 * conf/i386-pc.rmk: Remove lzo support.
36783 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
36784 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
36786 * kern/i386/pc/lzo1x.S: Remove.
36787 * kern/i386/pc/startup.S: Remove lzo support.
36788 * util/i386/pc/grub-mkimage.c: Likewise.
36790 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
36792 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
36793 * fs/xfs.c (grub_xfs_dir): Likewise.
36794 * fs/afs.c (grub_afs_dir): Likewise.
36795 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36796 (grub_iso9660_open): Likewise.
36797 * fs/jfs.c (grub_jfs_open): Likewise.
36798 * fs/ext2.c (grub_ext2_dir): Likewise.
36799 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36800 * script/sh/lexer.c (grub_script_yylex): Likewise.
36802 2009-07-16 Pavel Roskin <proski@gnu.org>
36804 * configure.ac: Never add "-c" to CFLAGS.
36806 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36808 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36809 grub_cv_cc_efiemu should be used.
36811 * configure.ac: Typo fixes.
36813 * kern/mm.c (grub_zalloc): New function.
36814 (grub_debug_zalloc): Likewise.
36815 * include/grub/mm.h: Declare grub_zalloc() and
36816 grub_debug_zalloc().
36817 * util/misc.c (grub_zalloc): New function.
36818 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36819 instead of grub_malloc(), remove unneeded initializations.
36820 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36821 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36822 * commands/parttool.c (grub_cmd_parttool): Likewise.
36823 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36824 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36825 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36826 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36827 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36828 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36829 (grub_cmd_efiemu_pnvram): Likewise.
36830 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36831 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36832 (grub_iso9660_iterate_dir): Likewise.
36833 * fs/jfs.c (grub_jfs_opendir): Likewise.
36834 * fs/ntfs.c (list_file): Likewise.
36835 (grub_ntfs_mount): Likewise.
36836 * kern/disk.c (grub_disk_open): Likewise.
36837 * kern/dl.c (grub_dl_load_core): Likewise.
36838 * kern/elf.c (grub_elf_file): Likewise.
36839 * kern/env.c (grub_env_context_open): Likewise.
36840 (grub_env_set): Likewise.
36841 (grub_env_set_data_slot): Likewise.
36842 * kern/file.c (grub_file_open): Likewise.
36843 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36844 * loader/i386/multiboot.c (grub_module): Likewise.
36845 * loader/xnu.c (grub_xnu_create_key): Likewise.
36846 (grub_xnu_create_value): Likewise.
36847 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36848 (read_config_file): Likewise.
36849 * normal/menu_entry.c (make_screen): Likewise.
36850 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36851 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36852 * script/sh/script.c (grub_script_parse): Likewise.
36853 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36854 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36855 * video/readers/png.c (grub_png_output_byte): Likewise.
36856 (grub_video_reader_png): Likewise.
36858 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36860 Enable all targets that can be built by default
36862 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
36863 grub-mkfont and grub-fstest if they can be built
36865 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36867 Fix hang and segmentation fault in grub-emu-usb
36869 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
36870 * util/usb.c (grub_libusb_devices): likewise
36871 (grub_libusb_init): rename to ...
36872 (GRUB_MOD_INIT (libusb)):...this
36873 (grub_libusb_fini): rename to ..
36874 (GRUB_MOD_FINI (libusb)):...this
36875 * disk/usbms.c (grub_usbms_transfer): fix retry logic
36876 * include/grub/disk.h (grub_raid_init): removed, it's useless
36877 (grub_raid_fini): likewise
36878 (grub_lvm_init): likewise
36879 (grub_lvm_fini): likewise
36880 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
36883 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36887 * Makefile.in (LIBUSB): new macro
36888 * genmk.rb (Utility/print_tail): new method
36889 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
36890 (top level): call util.print_tail at the end.
36892 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36894 Make FreeBSD accept zpool.cache
36896 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
36897 type is /boot/zfs/zpool.cache
36899 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36903 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
36904 correct wrong typedef
36905 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
36907 2009-07-15 Pavel Roskin <proski@gnu.org>
36909 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
36910 * kern/disk.c (struct grub_disk_cache): Likewise.
36912 * commands/probe.c (options): Typo fix.
36914 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
36915 Increase to 0x5a to accommodate FAT32. Adjust other offsets
36917 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
36919 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
36920 the end of "Error" to make the message more readable.
36922 * boot/i386/pc/boot.S (kernel_segment): Remove.
36923 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
36926 * boot/i386/pc/boot.S (boot_version): Remove.
36927 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
36930 * include/grub/i386/pc/boot.h: Sort all offsets.
36931 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
36932 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
36933 * boot/i386/pc/boot.S: Assert location of every offset listed in
36934 include/grub/i386/pc/boot.h.
36936 2009-07-13 Pavel Roskin <proski@gnu.org>
36938 * include/grub/i386/coreboot/machine.h: Rename
36939 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
36940 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
36941 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
36943 * kern/dl.c: Force native word size to suppress warnings when
36944 compiling grub-emu.
36946 * kern/device.c (grub_device_iterate): Change struct part_ent to
36947 hold the name, not a pointer to it. Use one grub_malloc() per
36948 partition, not two. Free partition_name if grub_malloc() fails.
36949 Set ents to NULL only before grub_partition_iterate() is called.
36951 2009-07-11 Bean <bean123ch@gmail.com>
36953 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
36956 2009-07-10 Bean <bean123ch@gmail.com>
36957 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
36959 * kern/ieee1275/openfw.c (grub_children_iterate)
36960 (grub_devalias_iterate): Fix size evaluation for property or path
36961 strings, which was broken since r2132.
36963 2009-07-07 Pavel Roskin <proski@gnu.org>
36965 * commands/search.c (search_file): Merge into ...
36966 (search_fs): ... this. Accept search type as argument.
36967 (grub_cmd_search): Pass search type to search_fs().
36969 * include/grub/util/console.h: New file.
36970 * util/console.c: Use it instead of grub/machine/console.h.
36971 * util/grub-emu.c: Likewise.
36973 * lib/arg.c (find_long_option): Remove.
36974 (find_long): Add `len' argument, make `s' const char *.
36975 (grub_arg_parse): Parse long options in place, not in a
36978 2009-07-06 Pavel Roskin <proski@gnu.org>
36980 * commands/search.c (search_fs): Fix potential NULL pointer
36983 * commands/search.c (search_fs): Replace QUID macro with quid_fn
36986 2009-07-06 Daniel Mierswa <impulze@impulze.org>
36988 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
36991 2009-07-05 Pavel Roskin <proski@gnu.org>
36993 * include/grub/i386/linux.h (struct linux_kernel_params):
36994 Restore padding3, it's still needed.
36996 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
36998 * util/osdetect.lua: Likewise.
37000 2009-07-05 Bean <bean123ch@gmail.com>
37002 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
37004 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
37005 (grub_lua_getenv): Likewise.
37006 (grub_lua_setenv): Likewise.
37007 (save_errno): New function.
37008 (push_result): Likewise.
37009 (grub_lua_enum_device): Likewise.
37010 (grub_lua_enum_file): Likewise.
37011 (grub_lua_file_open): Likewise.
37012 (grub_lua_file_close): Likewise.
37013 (grub_lua_file_seek): Likewise.
37014 (grub_lua_file_read): Likewise.
37015 (grub_lua_file_getline): Likewise.
37016 (grub_lua_file_getsize): Likewise.
37017 (grub_lua_file_getpos): Likewise.
37018 (grub_lua_file_eof): Likewise.
37019 (grub_lua_file_exist): Likewise.
37020 (grub_lua_add_menu): Likewise.
37022 * script/lua/grub_lua.h (isupper): New inline function.
37023 (islower): Likewise.
37024 (ispunct): Likewise.
37025 (isxdigit): Likewise.
37026 (strcspn): Change to normal function.
37027 (strpbkr): New function declaration.
37028 (memchr): Likewise.
37030 * script/lua/grub_main.c (scan_str): New function.
37031 (strcspn): Likewise.
37032 (strpbrk): Likewise.
37033 (memchr): Likewise.
37035 * script/lua/linit.c (lualibs): Enable the string library.
37037 * util/osdetect.lua: New file.
37039 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
37041 * include/grub/i386/linux.h (struct linux_kernel_params): Add
37042 `capabilities' member.
37044 2009-07-02 Pavel Roskin <proski@gnu.org>
37046 * genparttoollist.sh: Add missing newline at the end.
37048 2009-07-01 Pavel Roskin <proski@gnu.org>
37050 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
37052 * util/hostdisk.c (open_device): Remove `const' from
37053 `sysctl_size', as sysctlbyname() can change it (in this case it
37054 doesn't actually happen).
37056 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
37057 using signed long int constants.
37059 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
37060 constant to avoid a warning on FreeBSD.
37062 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
37065 * Makefile.in: Install include/grub/machine symlink.
37067 * Makefile.in: When installing symlinks, use "cp -fR", which
37068 works on FreeBSD and MacOSX.
37069 From Yves Blusseau <cl7m42e02@sneakemail.com>
37071 * kern/dl.c (grub_dl_resolve_symbol): Make static.
37072 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
37074 * util/misc.c: Move grub_reboot() and grub_halt() ...
37075 * util/grub-emu.c: ... here. Make main_env static.
37076 * include/grub/util/misc.h: Remove main_env.
37078 * kern/mm.c: Use correct format to print size_t.
37080 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
37081 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
37082 * kern/powerpc/dl.c: Likewise.
37083 * kern/sparc64/dl.c: Likewise.
37084 * kern/x86_64/dl.c: Likewise.
37086 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37088 Fix grub-emu build on sparc64-ieee1275.
37090 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
37091 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
37093 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37095 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
37096 (grub_reboot, grub_halt): New functions.
37098 * util/i386/pc/misc.c: Delete. Update all users.
37099 * util/sparc64/ieee1275/misc.c: Likewise.
37100 * util/powerpc/ieee1275/misc.c: Likewise.
37102 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37104 * conf/i386.rmk (setjmp_mod_SOURCES)
37105 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
37106 * conf/common.rmk (setjmp_mod_SOURCES)
37107 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
37108 to use $(target_cpu).
37109 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
37110 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
37111 * conf/powerpc-ieee1275.rmk: Likewise.
37112 * conf/sparc64-ieee1275.rmk: Likewise.
37114 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
37115 $(target_cpu) for kern/$(target_cpu)/dl.c.
37116 * conf/i386-efi.rmk: Likewise.
37117 * conf/i386-ieee1275.rmk: Likewise.
37118 * conf/x86_64-efi.rmk: Likewise.
37119 * conf/i386-coreboot.rmk: Likewise.
37120 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
37121 $(target_cpu) for kern/$(target_cpu)/dl.c and for
37122 kern/$(target_cpu)/cache.S.
37123 * conf/sparc64-ieee1275.rmk: Likewise.
37125 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37127 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
37128 type to `grub_uint8_t', and adjust `padding9' accordingly.
37130 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37132 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
37134 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
37135 assembly in final jump, using register constraints.
37137 (grub_linux_boot): For text mode, initialize `have_vga' using
37138 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
37140 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
37141 right before the final jump.
37143 Set `video_mode' to 0x3.
37145 Document initialization of `video_page', `video_mode' and
37148 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37150 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
37151 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
37152 and set GRUB_LINUX_FLAG_QUIET appropriately.
37154 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37156 Fix build on Debian / sparc.
37158 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
37160 2009-06-28 Pavel Roskin <proski@gnu.org>
37162 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
37165 * util/grub.d/10_linux.in: Match SUSE style initrd names.
37167 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37169 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
37172 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37176 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
37177 file can't be opened. grub_file_open() is already supposed to set
37178 grub_errno / grub_errmsg appropriately.
37179 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37181 2009-06-27 Pavel Roskin <proski@gnu.org>
37182 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37184 * include/grub/dl.h: Include grub/elf.h.
37185 (struct grub_dl): Add symtab field.
37186 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
37187 GRUB_MODULES_MACHINE_READONLY.
37188 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
37189 of the header for read-only modules.
37190 (grub_dl_unload): Free mod->symtab for read-only modules.
37191 * kern/i386/dl.c: Use mod->symtab.
37192 * kern/powerpc/dl.c: Likewise.
37193 * kern/sparc64/dl.c: Likewise.
37194 * kern/x86_64/dl.c: Likewise.
37196 * conf/i386-qemu.rmk: New file.
37197 * kern/i386/qemu/startup.S: Likewise.
37198 * kern/i386/qemu/mmap.c: Likewise.
37199 * boot/i386/qemu/boot.S: Likewise.
37200 * include/grub/i386/qemu/time.h: Likewise.
37201 * include/grub/i386/qemu/serial.h: Likewise.
37202 * include/grub/i386/qemu/kernel.h: Likewise.
37203 * include/grub/i386/qemu/console.h: Likewise.
37204 * include/grub/i386/qemu/boot.h: Likewise.
37205 * include/grub/i386/qemu/init.h: Likewise.
37206 * include/grub/i386/qemu/machine.h: Likewise.
37207 * include/grub/i386/qemu/loader.h: Likewise.
37208 * include/grub/i386/qemu/memory.h: Likewise.
37210 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
37211 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
37212 [qemu] (pkglib_IMAGES): Add `boot.img'.
37213 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
37214 [qemu] (boot_img_FORMAT): New variables.
37215 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
37216 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
37217 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
37218 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
37219 [qemu] (kernel_img_FORMAT): New variables.
37221 * configure.ac: Recognise `i386-qemu'.
37223 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
37224 (for no compression).
37225 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
37226 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
37227 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
37228 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
37231 2009-06-27 Pavel Roskin <proski@gnu.org>
37233 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
37235 * efiemu/prepare32.c: Likewise.
37236 * efiemu/prepare64.c: Likewise.
37238 2009-06-26 Pavel Roskin <proski@gnu.org>
37240 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
37241 * include/grub/elf.h: Define symbols without "32" or "64" based
37242 on GRUB_TARGET_WORDSIZE.
37243 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
37244 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
37246 * efiemu/loadcore64.c: Likewise.
37247 * loader/i386/bsd32.c: Likewise.
37248 * loader/i386/bsd64.c: Likewise.
37249 * kern/dl.c: Remove own ELF definitions.
37250 * util/i386/efi/grub-mkimage.c: Likewise.
37252 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
37254 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
37255 segment 0x0 unconditionally, because the reference generated by
37256 GAS is an absolute address.
37258 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37260 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
37261 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
37263 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37265 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
37266 indexes. Check for -f explicitly.
37267 (search_file): Improve error message.
37268 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
37270 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37272 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
37273 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
37275 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37277 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
37278 * conf/i386-ieee1275.rmk: Likewise.
37279 * conf/i386-coreboot.rmk: Likewise.
37281 * kern/i386/pc/startup.S (grub_stop): Remove function.
37282 * kern/i386/ieee1275/startup.S: Likewise.
37283 * kern/i386/coreboot/startup.S: Likewise.
37284 * kern/i386/misc.S (grub_stop): New function.
37286 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37288 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
37289 * kern/i386/realmode.S (real_to_prot): ... to here.
37291 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37293 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
37295 (kernel_elf_SOURCES): Rename to ...
37296 (kernel_img_SOURCES): ... this.
37297 (kernel_elf_HEADERS): Rename to ...
37298 (kernel_img_HEADERS): ... this. Update all users.
37299 (kernel_elf_ASFLAGS): Rename to ...
37300 (kernel_img_ASFLAGS): ... this.
37301 (kernel_elf_CFLAGS): Rename to ...
37302 (kernel_img_CFLAGS): ... this.
37303 (kernel_elf_LDFLAGS): Rename to ...
37304 (kernel_img_LDFLAGS): ... this.
37305 * conf/i386-coreboot.rmk: Likewise.
37306 * conf/powerpc-ieee1275.rmk: Likewise.
37308 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
37311 2009-06-21 Pavel Roskin <proski@gnu.org>
37313 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
37314 to match nested functions.
37315 * loader/sparc64/ieee1275/linux.c: Likewise.
37317 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
37319 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37321 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
37322 all i386 platforms.
37324 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37326 Fix asm file handling on ELF, and remove workarounds.
37328 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
37329 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
37330 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
37331 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
37333 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
37335 Load BSD ELF modules
37337 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
37338 and loader/i386/bsd64.c
37339 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
37340 (FREEBSD_MODTYPE_ELF_MODULE): New definition
37341 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
37342 (grub_freebsd_load_elfmodule32): New declaration
37343 (grub_freebsd_load_elfmoduleobj64): Likewise
37344 (grub_freebsd_load_elf_meta32): Likewise
37345 (grub_freebsd_load_elf_meta64): Likewise
37346 (grub_freebsd_add_meta): Likewise
37347 (grub_freebsd_add_meta_module): Likewise
37348 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
37349 (grub_freebsd_add_meta_module): Likewise and move module-specific
37350 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
37351 (grub_cmd_freebsd): Add elf-kernel specific parts
37352 based on grub_freebsd_add_meta_module
37353 (grub_cmd_freebsd_module): Add type parsing moved from
37354 grub_freebsd_add_meta_module
37355 (grub_cmd_freebsd_module_elf): New function
37356 (cmd_freebsd_module_elf): New variable
37357 (GRUB_MOD_INIT): Register freebsd_module_elf
37358 * loader/i386/bsd32.c: New file
37359 * loader/i386/bsd64.c: Likewise
37360 * loader/i386/bsdXX.c: Likewise
37361 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
37362 (grub_elf64_load): Likewise
37363 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
37365 (grub_elf64_load_hook_t): Likewise
37367 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
37369 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
37371 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
37372 don't write a menu entry for recovery mode.
37374 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37376 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
37377 after it's no longer needed.
37379 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37381 * include/grub/i386/loader.h (grub_linux_prot_size)
37382 (grub_linux_tmp_addr, grub_linux_real_addr)
37383 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
37384 GRUB_MACHINE_PCBIOS.
37385 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
37386 common grub_util_info() call to ...
37387 (generate_image): ... here.
37388 Fix use of uninitialized memory, comparison of signed with
37389 unsigned integers and memory leak.
37390 Remove bogus module address message.
37392 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
37394 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
37396 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
37398 2009-06-19 Pavel Roskin <proski@gnu.org>
37400 * configure.ac: Remove stray AC_MSG_CHECKING.
37402 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
37404 * disk/scsi.c (grub_scsi_open): use continue instead of big if
37406 2009-06-18 Pavel Roskin <proski@gnu.org>
37408 * conf/common.rmk: Add fs_file.mod.
37409 * disk/fs_file.c: New file.
37410 * include/grub/disk.h (enum grub_disk_dev_id): Add
37411 GRUB_DISK_DEVICE_FILE_ID.
37413 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37415 Fix build with Apple's toolchain. Part 2
37417 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
37420 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37422 Fix build with Apple's toolchain. Part 1
37424 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
37426 * configure.ac: remove a leftover AC_MSG_RESULT
37427 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
37430 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37434 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
37435 (decomp_block): initialize ch
37436 use grub_memcpy instead of memcpy
37438 2009-06-17 Pavel Roskin <proski@gnu.org>
37440 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
37441 version, use declarations needed to use vga_text as the startup
37444 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
37445 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
37447 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
37448 and grub_at_keyboard_fini(), it's done on module load and
37451 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
37453 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
37454 file can't be found.
37455 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37457 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37459 Fix newline handling
37461 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
37462 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
37463 (grub_script_yylex): don't segfault on unterminated script
37464 newline terminates command and variable
37466 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37468 avoid double grub_adjust_range call. Bug reported by David Simner
37470 * kern/disk.c (grub_disk_write): change to raw disk access before
37473 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
37475 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
37476 spaces, for the benefit of help2man.
37477 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37479 2009-06-16 Pavel Roskin <proski@gnu.org>
37481 * kern/i386/halt.c: Include grub/machine/init.h.
37482 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
37484 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
37486 * util/grub.d/30_os-prober.in: Use ${root} in the generated
37487 drivemap menuentry.
37489 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
37491 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
37494 2009-06-16 Pavel Roskin <proski@gnu.org>
37496 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
37497 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
37498 save %dx, we only need %dl and we never change it.
37499 * boot/i386/pc/cdboot.S: Don't set the root drive.
37500 * boot/i386/pc/pxeboot.S: Likewise.
37501 * include/grub/i386/pc/boot.h: Remove
37502 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
37503 GRUB_BOOT_MACHINE_DRIVE_CHECK.
37504 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
37505 * kern/i386/pc/init.c (make_install_device): Remove references
37506 to grub_root_drive.
37507 * kern/i386/pc/startup.S: Likewise.
37508 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
37510 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37514 * commands/xnu_uuid.c: new file
37515 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
37516 (xnu_uuid_mod_SOURCES): new variable
37517 (xnu_uuid_mod_CFLAGS): likewise
37518 (xnu_uuid_mod_LDFLAGS): likewise
37519 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37520 * conf/i386-ieee1275.rmk: likewise
37521 * conf/i386-pc.rmk: likewise
37522 * conf/powerpc-ieee1275.rmk: likewise
37523 * conf/sparc64-ieee1275.rmk: likewise
37524 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
37526 2009-06-16 Pavel Roskin <proski@gnu.org>
37528 * configure.ac: Avoid '==' in test command, it's not portable.
37530 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37534 * commands/probe.c: new file
37535 * conf/common.rmk (pkglib_MODULES): add probe.mod
37536 (probe_mod_SOURCES): new variable
37537 (probe_mod_CFLAGS): likewise
37538 (probe_mod_LDFLAGS): likewise
37539 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37540 * conf/i386-ieee1275.rmk: likewise
37541 * conf/i386-pc.rmk: likewise
37542 * conf/powerpc-ieee1275.rmk: likewise
37543 * conf/sparc64-ieee1275.rmk: likewise
37545 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
37547 Fix handling of string like \"hello\" and "a
37550 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
37551 (grub_script_yylex): fix parsing of quoting, escaping and newline
37553 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
37555 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
37558 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
37560 * util/grub-mkconfig.in: Fix parsing of --output option.
37562 2009-06-12 Pavel Roskin <proski@gnu.org>
37564 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
37565 genmk.rb don't need to be generated or installed.
37567 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
37569 * commands/i386/pc/drivemap_int13h.S: add more comments
37571 2009-06-11 Pavel Roskin <proski@gnu.org>
37573 * Makefile.in (uninstall): Uninstall manuals.
37575 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
37576 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
37577 and update-grub_lib in two places.
37578 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
37580 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
37581 a compiler warning.
37583 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
37584 `entry_lo' to fix variable shadowing.
37586 2009-06-11 Christian Franke <franke@computer.org>
37588 * kern/misc.c (__enable_execute_stack): Add missing return type
37589 to prevent gcc warning.
37591 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37593 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
37595 2009-06-11 Pavel Roskin <proski@gnu.org>
37597 * Makefile.in: Don't rely on any scripts being executable.
37598 Always use $(SHELL) to run shell scripts.
37600 * configure.ac: Always define ___main if using -nostdlib. This
37601 fixes tests on Cygwin.
37603 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
37607 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
37608 is in bytes and not in blocks
37610 2009-06-11 Pavel Roskin <proski@gnu.org>
37612 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
37615 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37617 * util/grub.d/30_os-prober.in: Fix a comment. Source
37618 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
37619 to set the root device. Place drivemap command in the generated
37622 2009-06-11 Pavel Roskin <proski@gnu.org>
37624 * configure.ac: Remove host_m32. Issues with 64-bit utilities
37625 have long been resolved.
37627 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
37629 * util/grub.d/10_linux.in: Capitalise "Linux".
37631 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
37633 2009-06-11 Pavel Roskin <proski@gnu.org>
37635 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
37636 fix a gcc warning and ensure that the function won't ever exit.
37638 * kern/i386/ieee1275/init.c: Add missing prototype for
37639 grub_stop_floppy().
37641 * loader/ieee1275/multiboot2.c [__i386__]: Include
37642 grub/cpu/multiboot.h.
37644 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
37645 casts to short - they are not portable and cause warnings. Fix
37646 use of uninitialized values in input_buf. Use ARRAY_SIZE.
37648 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
37652 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
37654 (grub_get_root_biosnumber_saved): new variable
37655 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
37656 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
37657 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
37658 %dx after the call if necessary
37659 * conf/common.rmk (pkglib_MODULES): remove boot.mod
37660 (boot_mod_SOURCES): remove
37661 (boot_mod_CFLAGS): remove
37662 (boot_mod_LDFLAGS): remove
37663 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
37664 (boot_mod_SOURCES): new variable
37665 (boot_mod_CFLAGS): likewise
37666 (boot_mod_LDFLAGS): likewise
37667 * conf/i386-efi.rmk: likewise
37668 * conf/i386-ieee1275.rmk: likewise
37669 * conf/i386-pc.rmk: likewise
37670 * conf/powerpc-ieee1275.rmk: likewise
37671 * conf/sparc64-ieee1275.rmk: likewise
37672 * conf/x86_64-efi.rmk: likewise
37673 * include/grub/i386/pc/biosnum.h: new file
37674 * lib/i386/pc/biosnum.c: likewise
37675 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
37676 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
37677 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
37679 2009-06-10 Pavel Roskin <proski@gnu.org>
37681 * io/gzio.c (test_header): Don't reuse one buffer for all data.
37682 Use separate variables. Read only the file size at the end, but
37683 not the checksum that we don't use.
37685 * kern/file.c (grub_file_read): Use void pointer for the buffer.
37686 Adjust all callers.
37688 * kern/ieee1275/openfw.c: Remove libc includes.
37689 * kern/ieee1275/cmain.c: Likewise.
37690 * include/grub/ieee1275/ieee1275.h: Likewise.
37692 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
37695 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37697 * Makefile.in: Remove all trailing whitespace.
37698 * conf/i386-pc.rmk: Likewise.
37699 * conf/powerpc-ieee1275.rmk: Likewise.
37700 * conf/sparc64-ieee1275.rmk: Likewise.
37701 * docs/grub.texi: Likewise.
37702 * docs/texinfo.tex: Likewise.
37703 * disk/fs_uuid.c: Likewise.
37704 * disk/lvm.c: Likewise.
37705 * disk/scsi.c: Likewise.
37706 * disk/ata.c: Likewise.
37707 * disk/ieee1275/ofdisk.c: Likewise.
37708 * disk/i386/pc/biosdisk.c: Likewise.
37709 * disk/host.c: Likewise.
37710 * disk/raid.c: Likewise.
37711 * disk/efi/efidisk.c: Likewise.
37712 * disk/usbms.c: Likewise.
37713 * disk/memdisk.c: Likewise.
37714 * disk/loopback.c: Likewise.
37715 * kern/powerpc/dl.c: Likewise.
37716 * kern/device.c: Likewise.
37717 * kern/dl.c: Likewise.
37718 * kern/sparc64/dl.c: Likewise.
37719 * kern/ieee1275/ieee1275.c: Likewise.
37720 * kern/term.c: Likewise.
37721 * kern/fs.c: Likewise.
37722 * kern/i386/dl.c: Likewise.
37723 * kern/i386/pc/startup.S: Likewise.
37724 * kern/i386/pc/init.c: Likewise.
37725 * kern/i386/pc/mmap.c: Likewise.
37726 * kern/i386/pc/lzo1x.S: Likewise.
37727 * kern/i386/ieee1275/init.c: Likewise.
37728 * kern/i386/realmode.S: Likewise.
37729 * kern/i386/tsc.c: Likewise.
37730 * kern/partition.c: Likewise.
37731 * kern/corecmd.c: Likewise.
37732 * kern/file.c: Likewise.
37733 * kern/efi/efi.c: Likewise.
37734 * kern/efi/init.c: Likewise.
37735 * kern/efi/mm.c: Likewise.
37736 * kern/main.c: Likewise.
37737 * kern/err.c: Likewise.
37738 * kern/env.c: Likewise.
37739 * kern/disk.c: Likewise.
37740 * kern/generic/millisleep.c: Likewise.
37741 * kern/generic/rtc_get_time_ms.c: Likewise.
37742 * kern/misc.c: Likewise.
37743 * kern/parser.c: Likewise.
37744 * genmk.rb: Likewise.
37745 * configure.ac: Likewise.
37746 * boot/i386/pc/diskboot.S: Likewise.
37747 * boot/i386/pc/pxeboot.S: Likewise.
37748 * boot/i386/pc/boot.S: Likewise.
37749 * boot/i386/pc/lnxboot.S: Likewise.
37750 * boot/i386/pc/cdboot.S: Likewise.
37751 * parttool/pcpart.c: Likewise.
37752 * video/readers/tga.c: Likewise.
37753 * video/video.c: Likewise.
37754 * video/bitmap.c: Likewise.
37755 * lib/envblk.c: Likewise.
37756 * lib/i386/setjmp.S: Likewise.
37757 * fs/xfs.c: Likewise.
37758 * fs/afs.c: Likewise.
37759 * fs/fat.c: Likewise.
37760 * fs/ntfs.c: Likewise.
37761 * fs/udf.c: Likewise.
37762 * fs/affs.c: Likewise.
37763 * fs/iso9660.c: Likewise.
37764 * fs/hfs.c: Likewise.
37765 * fs/fshelp.c: Likewise.
37766 * fs/ext2.c: Likewise.
37767 * fs/jfs.c: Likewise.
37768 * fs/reiserfs.c: Likewise.
37769 * fs/hfsplus.c: Likewise.
37770 * fs/minix.c: Likewise.
37771 * fs/cpio.c: Likewise.
37772 * fs/sfs.c: Likewise.
37773 * fs/ufs.c: Likewise.
37774 * efiemu/prepare.c: Likewise.
37775 * efiemu/loadcore_common.c: Likewise.
37776 * efiemu/runtime/efiemu.sh: Likewise.
37777 * efiemu/runtime/efiemu.S: Likewise.
37778 * efiemu/runtime/efiemu.c: Likewise.
37779 * efiemu/pnvram.c: Likewise.
37780 * efiemu/main.c: Likewise.
37781 * efiemu/i386/pc/cfgtables.c: Likewise.
37782 * efiemu/i386/loadcore64.c: Likewise.
37783 * efiemu/i386/loadcore32.c: Likewise.
37784 * efiemu/loadcore.c: Likewise.
37785 * efiemu/symbols.c: Likewise.
37786 * efiemu/mm.c: Likewise.
37787 * include/grub/autoefi.h: Likewise.
37788 * include/grub/datetime.h: Likewise.
37789 * include/grub/term.h: Likewise.
37790 * include/grub/hfs.h: Likewise.
37791 * include/grub/lvm.h: Likewise.
37792 * include/grub/i386/tsc.h: Likewise.
37793 * include/grub/i386/linux.h: Likewise.
37794 * include/grub/i386/xnu.h: Likewise.
37795 * include/grub/i386/efiemu.h: Likewise.
37796 * include/grub/i386/pc/biosdisk.h: Likewise.
37797 * include/grub/i386/pc/memory.h: Likewise.
37798 * include/grub/i386/pc/vbe.h: Likewise.
37799 * include/grub/parttool.h: Likewise.
37800 * include/grub/video.h: Likewise.
37801 * include/grub/memory.h: Likewise.
37802 * include/grub/fs.h: Likewise.
37803 * include/grub/partition.h: Likewise.
37804 * include/grub/xnu.h: Likewise.
37805 * include/grub/efi/api.h: Likewise.
37806 * include/grub/efi/pe32.h: Likewise.
37807 * include/grub/efi/memory.h: Likewise.
37808 * include/grub/multiboot.h: Likewise.
37809 * include/grub/usbdesc.h: Likewise.
37810 * include/grub/multiboot2.h: Likewise.
37811 * include/grub/acpi.h: Likewise.
37812 * include/grub/efiemu/efiemu.h: Likewise.
37813 * include/grub/disk.h: Likewise.
37814 * include/grub/ieee1275/ieee1275.h: Likewise.
37815 * include/grub/net.h: Likewise.
37816 * include/grub/machoload.h: Likewise.
37817 * include/grub/macho.h: Likewise.
37818 * include/multiboot.h: Likewise.
37819 * genmoddep.awk: Likewise.
37820 * normal/main.c: Likewise.
37821 * normal/menu_entry.c: Likewise.
37822 * normal/menu_viewer.c: Likewise.
37823 * normal/completion.c: Likewise.
37824 * normal/cmdline.c: Likewise.
37825 * normal/misc.c: Likewise.
37826 * normal/datetime.c: Likewise.
37827 * bus/usb/usbtrans.c: Likewise.
37828 * bus/usb/ohci.c: Likewise.
37829 * bus/usb/uhci.c: Likewise.
37830 * bus/usb/usb.c: Likewise.
37831 * mmap/efi/mmap.c: Likewise.
37832 * mmap/i386/pc/mmap_helper.S: Likewise.
37833 * mmap/i386/pc/mmap.c: Likewise.
37834 * mmap/i386/mmap.c: Likewise.
37835 * mmap/i386/uppermem.c: Likewise.
37836 * mmap/mmap.c: Likewise.
37837 * commands/acpi.c: Likewise.
37838 * commands/echo.c: Likewise.
37839 * commands/blocklist.c: Likewise.
37840 * commands/loadenv.c: Likewise.
37841 * commands/usbtest.c: Likewise.
37842 * commands/boot.c: Likewise.
37843 * commands/parttool.c: Likewise.
37844 * commands/search.c: Likewise.
37845 * commands/cat.c: Likewise.
37846 * commands/i386/pc/play.c: Likewise.
37847 * commands/i386/pc/drivemap.c: Likewise.
37848 * commands/i386/pc/vbeinfo.c: Likewise.
37849 * commands/i386/pc/acpi.c: Likewise.
37850 * commands/i386/pc/vbetest.c: Likewise.
37851 * commands/ls.c: Likewise.
37852 * commands/cmp.c: Likewise.
37853 * commands/test.c: Likewise.
37854 * commands/efi/acpi.c: Likewise.
37855 * commands/gptsync.c: Likewise.
37856 * commands/help.c: Likewise.
37857 * partmap/amiga.c: Likewise.
37858 * partmap/apple.c: Likewise.
37859 * partmap/acorn.c: Likewise.
37860 * partmap/pc.c: Likewise.
37861 * partmap/sun.c: Likewise.
37862 * partmap/gpt.c: Likewise.
37863 * script/sh/lexer.c: Likewise.
37864 * script/sh/function.c: Likewise.
37865 * font/font.c: Likewise.
37866 * font/font_cmd.c: Likewise.
37867 * loader/powerpc/ieee1275/linux.c: Likewise.
37868 * loader/efi/chainloader.c: Likewise.
37869 * loader/multiboot_loader.c: Likewise.
37870 * loader/macho.c: Likewise.
37871 * loader/i386/multiboot.c: Likewise.
37872 * loader/i386/linux.c: Likewise.
37873 * loader/i386/pc/linux.c: Likewise.
37874 * loader/i386/pc/multiboot2.c: Likewise.
37875 * loader/i386/pc/chainloader.c: Likewise.
37876 * loader/i386/pc/xnu.c: Likewise.
37877 * loader/i386/bsd_trampoline.S: Likewise.
37878 * loader/i386/efi/linux.c: Likewise.
37879 * loader/i386/multiboot_elfxx.c: Likewise.
37880 * loader/i386/bsd_helper.S: Likewise.
37881 * loader/i386/bsd.c: Likewise.
37882 * loader/i386/linux_trampoline.S: Likewise.
37883 * loader/i386/xnu_helper.S: Likewise.
37884 * loader/i386/xnu.c: Likewise.
37885 * loader/i386/bsd_pagetable.c: Likewise.
37886 * loader/i386/multiboot_helper.S: Likewise.
37887 * loader/xnu.c: Likewise.
37888 * loader/xnu_resume.c: Likewise.
37889 * io/gzio.c: Likewise.
37890 * term/efi/console.c: Likewise.
37891 * term/terminfo.c: Likewise.
37892 * term/ieee1275/ofconsole.c: Likewise.
37893 * term/i386/pc/serial.c: Likewise.
37894 * term/i386/pc/vesafb.c: Likewise.
37895 * term/i386/pc/vga.c: Likewise.
37896 * term/usb_keyboard.c: Likewise.
37897 * term/gfxterm.c: Likewise.
37898 * aclocal.m4: Likewise.
37899 * util/lvm.c: Likewise.
37900 * util/grub.d/30_os-prober.in: Likewise.
37901 * util/grub.d/10_hurd.in: Likewise.
37902 * util/console.c: Likewise.
37903 * util/grub-macho2img.c: Likewise.
37904 * util/grub-probe.c: Likewise.
37905 * util/hostfs.c: Likewise.
37906 * util/i386/pc/grub-mkimage.c: Likewise.
37907 * util/i386/pc/grub-setup.c: Likewise.
37908 * util/i386/efi/grub-mkimage.c: Likewise.
37909 * util/grub-mkconfig.in: Likewise.
37910 * util/raid.c: Likewise.
37911 * util/resolve.c: Likewise.
37912 * util/grub-mkdevicemap.c: Likewise.
37913 * util/grub-emu.c: Likewise.
37914 * util/getroot.c: Likewise.
37915 * util/hostdisk.c: Likewise.
37916 * util/usb.c: Likewise.
37917 * util/grub-editenv.c: Likewise.
37918 * util/misc.c: Likewise.
37920 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37922 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
37923 `genparttoollist.sh'.
37924 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
37925 Add `*.sh' to the list find searches for and change `mdate.sh'
37928 2009-06-10 Pavel Roskin <proski@gnu.org>
37930 * include/grub/multiboot2.h: Provide compatibility defines for
37932 * include/multiboot2.h: Include stdint.h only if needed, using
37934 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
37936 * loader/ieee1275/multiboot2.c: Likewise.
37937 * loader/multiboot2.c: Likewise.
37938 * loader/multiboot_loader.c: Likewise.
37940 * configure.ac: Use -nostdlib when probing for the target. It
37941 should not be required to have libc for the target.
37943 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
37944 they fail without libc headers for the target.
37945 * include/grub/powerpc/libgcc.h: Use weak attribute for all
37947 * include/grub/sparc64/libgcc.h: Likewise. Don't use
37948 preprocessor conditionals.
37950 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
37951 build system doesn't need to be aware of the tar.c internals.
37953 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
37955 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
37957 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
37959 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
37960 disk limit to 26 for IDE, Virtio, Xen and SCSI.
37962 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
37964 * util/i386/pc/grub-install.in: Change the error message if UUIDs
37965 aren't available if ata.mod gets used.
37967 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
37969 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
37970 initialising controller.
37971 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37973 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37975 * util/i386/pc/grub-install.in: Add a parameter --disk-module
37976 to choose between ata and biosdisk module on i386-pc.
37978 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
37980 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
37981 Subclass and Programming Interface fields in terms of the 3 byte
37982 Class Code register.
37983 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37985 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
37986 interface is OHCI. Add grub_dprintf for symmetry with
37988 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
37989 interface is UHCI. Add interf variable for programming
37990 interface. Print interface with class/subclass.
37992 * bus/usb/ohci.c: Set interf with correct field.
37994 * bus/usb/uhci.c: Remove unneeded doubled lines.
37995 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
37996 Remove whitespace inside comment.
37998 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
38000 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
38001 as fallback an equivalent option without depth.
38003 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
38005 Not fail if unable to retrieve C/H/S on LBA disks
38007 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
38008 if unable to retrieve C/H/S on LBA disks
38010 2009-06-08 Pavel Roskin <proski@gnu.org>
38012 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
38015 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38017 * Makefile.in (uninstall): Remove all $lib_DATA files.
38019 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
38021 Bugfix: install on partitionless device
38023 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
38026 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38028 * Makefile.in (uninstall): Remove all $include_DATA files.
38030 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38032 * commands/true.c: New file. Implement the true and false commands.
38033 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
38034 (true_mod_SOURCES): New variable.
38035 (true_mod_CFLAGS): Likewise.
38036 (true_mod_LDFLAGS): Likewise.
38038 2009-06-05 Colin D Bennett <colin@gibibit.com>
38040 Optimized font character lookup using binary search instead of linear
38041 search. Fonts now are required to have the character index ordered by
38044 * font/font.c (load_font_index): Verify that fonts have ordered
38046 (find_glyph): Use binary search instead of linear search to find a
38047 character in a font.
38049 2009-06-05 Michael Scherer <misc@mandriva.org>
38051 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
38052 uses case sensitive btree.
38053 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
38054 only for case insensitive filesystems.
38056 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
38058 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
38059 * conf/common.rmk (search_mod_CFLAGS): likewise
38061 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38063 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
38064 compensate a compiler bug
38066 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38068 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
38071 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38073 Definitions for creating asm symbols with Apple's CC
38075 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
38076 [APPLE_CC] (VARIABLE): likewise
38078 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38080 Disable lnxboot.img when compiled
38083 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
38084 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
38085 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
38086 [! APPLE_CC] (CODE_LENG): skip
38087 [! APPLE_CC] (setup_sects): likewise
38088 [! APPLE_CC]: skip filling
38090 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38092 Address in trampolines based on 32-bit registers when compiled
38095 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
38097 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
38099 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38101 Avoid aliases when compiling with Apple's CC for PCBIOS machine
38103 * kern/misc.c [APPLE_CC] (memcpy): new function
38104 [APPLE_CC] (memmove): likewise
38105 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
38106 (memcpy): define alias conditionally on !APPLE_CC
38109 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
38110 APPLE_CC are defined
38111 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
38112 (grub_assert_fail): make prototype conditional
38114 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38116 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
38118 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
38120 (CLEANFILES): add grub-macho2img
38121 (grub_macho2img_SOURCES): new variable
38122 * kern/i386/pc/startup.S (bss_start): new variable
38123 (bss_end): likewise
38124 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
38125 * util/grub-macho2img.c: new file
38127 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38129 Use objconv when compiling with Apple's CC
38131 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
38132 (efiemu64.o): likewise
38133 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
38134 when compiling with Apple's CC
38135 (efiemu64_s.o): likewise
38136 * configure.ac: check for objconv when compiling with Apple's CC
38137 * genmk.rb: use objconv for modules when compiled with Apple's CC
38139 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38141 Define segment as well as section when compiling with
38144 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
38145 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
38146 (efiemu_convert_pointer): likewise
38147 (efiemu_set_virtual_address_map): likewise
38148 (efiemu_convert_pointer): likewise
38149 (efiemu_getcrc32): likewise
38150 (init_crc32_table): likewise
38151 (reflect): likewise
38152 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
38153 (GRUB_MOD_DEP): likewise
38155 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38157 Allow a compilation without -mcmodel=large
38159 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
38160 when compiled without -mcmodel=large
38161 (filter_memory_map): remove memory post 4 GiB when compiled
38162 without -mcmodel=large
38163 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
38164 TARGET_CFLAGS when -mcmodel=large isn't supported
38166 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38168 Remove nested functions in efiemu core
38170 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
38172 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38174 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
38176 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
38178 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
38180 (grub_cpu_is_tsc_supported): likewise
38181 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
38183 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38185 Absolute addressing through constant with Apple's cc
38187 * kern/i386/pc/startup.S: Define necessary constants
38188 and address through it when using ABS with Apple's CC
38189 * boot/i386/pc/diskboot.S: likewise
38190 * boot/i386/pc/boot.S: likewise
38191 * boot/i386/pc/lnxboot.S: likewise
38192 * boot/i386/pc/cdboot.S: likewise
38193 * mmap/i386/pc/mmap_helper.S: likewise
38194 * commands/i386/pc/drivemap_int13h.S: likewise
38196 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38198 Check if compiler is apple cc
38200 * Makefile.in (ASFLAGS): new variable
38201 (TARGET_ASFLAGS): likewise
38202 (TARGET_MODULE_FORMAT): likewise
38203 (TARGET_APPLE_CC): likewise
38204 (OBJCONV): likewise
38205 (TARGET_IMG_CFLAGS): likewise
38206 (TARGET_CPPFLAGS): add includedir
38207 * configure.ac: call grub_apple_cc and grub_apple_target_cc
38208 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
38209 Check for linker script only if compiler isn't Apple's CC
38210 (TARGET_MODULE_FORMAT): set
38211 (TARGET_APPLE_CC): likewise
38212 (TARGET_ASFLAGS): likewise
38213 (ASFLAGS): likewise
38214 Check for objcopy only if compiler isn't Apple's CC
38215 Check for BSS symbol only if compiler isn't Apple's CC
38216 * genmk.rb: adapt nm options if we use Apple's utils
38217 * aclocal.m4 (grub_apple_cc): new test
38218 (grub_apple_target_cc): likewise
38220 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38222 Simplify sed expressions and improve awk
38224 * Makefile.in (install-local): simplify sed expression
38225 * gencmdlist.sh: likewise
38226 * genmoddep.awk: avoid adding module as a dependency of itself
38228 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38230 Add missing start symbols
38232 * boot/i386/pc/boot.S: add start
38233 * boot/i386/pc/pxeboot.S: likewise
38235 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38237 Fix wrong assumptions with grub-mkimage on EFI
38239 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
38240 (relocate_addresses): consider both r_addend and value at offset
38241 (make_mods_section): zerofill modinfo and header
38242 (convert_elf): write prefix here
38244 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38246 Use .asciz instead of .string
38248 * i386/pc/diskboot.S: use .asciz instead of .string
38249 * i386/pc/boot.S: likewise
38250 * include/grub/dl.h (GRUB_MOD_DEP): likewise
38251 (GRUB_MOD_NAME): likewise
38253 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38257 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
38258 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
38259 (grub_video_setup): remove
38260 (grub_video_set_mode): new prototype
38261 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
38263 (linux_vesafb_res): compile only on PCBIOS
38264 (grub_linux_boot): support gfxpayload
38265 * loader/i386/pc/xnu.c (video_hook): new function
38266 (grub_xnu_set_video): support gfxpayload
38267 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
38268 (DEFAULT_VIDEO_HEIGHT): likewise
38269 (DEFAULT_VIDEO_FLAGS): likewise
38270 (DEFAULT_VIDEO_MODE): new definition
38271 (video_hook): new function
38272 (grub_gfxterm_init): use grub_video_set_mode
38273 * util/grub.d/30_os-prober.in: remove explicit modesetting before
38275 * video/video.c (grub_video_setup): removed
38276 (grub_video_set_mode): new function based on grub_gfxterm_init and
38279 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38281 Avoid calling biosdisk in drivemap
38283 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
38284 (revparse_biosdisk): likewise
38285 (list_mappings): derive name from id directly
38286 (grub_cmd_drivemap): use tryparse_diskstring
38288 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38292 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
38293 (grub_lexer_param): add tokenonhold
38294 (grub_script_create_cmdline): remove cmdline. All callers updated
38295 (grub_script_function_create): make functionname
38296 grub_script_arg. All callers updated
38297 (grub_script_execute_argument_to_string): new prototype
38298 * kern/parser.c (state_transitions): reorder
38299 (grub_parser_cmdline_state): fix a bug and make more compact
38300 * script/sh/execute.c (grub_script_execute_argument_to_string):
38302 (grub_script_execute_cmdline): use new format
38303 * script/sh/function.c (grub_script_function_create): make functionname
38304 grub_script_arg. All callers updated
38305 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
38306 (grub_script_yylex): remove
38307 (grub_script_yylex2): renamed to ...
38308 (grub_script_yylex): ...renamed
38309 parse the expressions like a${b}c
38310 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
38311 (GRUB_PARSER_TOKEN_VAR): remove
38312 (GRUB_PARSER_TOKEN_NAME): likewise
38313 ("if"): declare as typeless
38314 ("while"): likewise
38315 ("function"): likewise
38320 (argument): likewise
38321 (script): accept empty scripts and make exit on error
38322 (arguments): use GRUB_PARSER_TOKEN_ARG
38323 (function): likewise
38324 (command): move error handling to script
38325 (menuentry): move grub_script_lexer_ref before
38326 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
38327 argument. All callers updated
38329 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38331 Prevent GRUB from probing floppies during boot.
38333 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
38334 * commands/search.c (options): Add --no-floppy.
38335 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
38336 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
38337 --no-floppy when searching for UUIDs.
38339 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38341 Simplify the code duplication in commands/search.c.
38343 * commands/search.c (search_label, search_fs_uuid): Merge into ...
38344 (search_fs): ... this. Update all users.
38346 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
38348 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
38350 2009-05-28 Pavel Roskin <proski@gnu.org>
38352 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
38353 Remove the original symlink explicitly.
38355 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
38356 just one slash. That's how grub_fshelp_find_file() does it.
38358 2009-05-26 Pavel Roskin <proski@gnu.org>
38360 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
38363 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
38366 2009-05-25 Christian Franke <franke@computer.org>
38368 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
38370 (grub_atapi_identify): Add wait after drive select.
38371 (grub_ata_identify): Do more strict status register check before
38372 calling grub_atapi_identify (). Suppress error message if status
38373 register is 0x00 after command failure. Add status register
38374 check after PIO read to avoid bogus identify due to stuck DRQ.
38375 Thanks to Pavel Roskin for testing.
38376 (grub_device_initialize): Remove unsafe status register check.
38377 Thanks to 'phcoder' for problem report and patch.
38378 Prevent sign extension in debug message.
38380 2009-05-23 Colin D Bennett <colin@gibibit.com>
38382 Cleaned up `include/grub/normal.h'. Grouped prototypes by
38383 definition file, and functions defined in `normal/menu.c' have had
38384 their prototypes moved to `include/grub/menu.h' for consistency.
38386 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
38388 (grub_menu_get_entry): Likewise.
38389 (grub_menu_get_timeout): Likewise.
38390 (grub_menu_set_timeout): Likewise.
38391 (grub_menu_execute_entry): Likewise.
38392 (grub_menu_execute_with_fallback): Likewise.
38393 (grub_menu_entry_run): Likewise.
38395 * include/grub/normal.h: Re-ordered and grouped function
38396 prototypes by file that the function is defined in.
38397 (grub_menu_execute_callback): Removed; moved to menu.h.
38398 (grub_menu_get_entry): Likewise.
38399 (grub_menu_get_timeout): Likewise.
38400 (grub_menu_set_timeout): Likewise.
38401 (grub_menu_execute_entry): Likewise.
38402 (grub_menu_execute_with_fallback): Likewise.
38403 (grub_menu_entry_run): Likewise.
38404 (grub_menu_addentry): Renamed from this ...
38405 (grub_normal_add_menu_entry): ... to this.
38407 * normal/main.c (grub_menu_addentry): Renamed from this ...
38408 (grub_normal_add_menu_entry): ... to this.
38410 * script/sh/execute.c (grub_script_execute_menuentry): Update
38411 reference to renamed grub_menu_addentry function.
38413 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
38415 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
38417 2009-05-22 Pavel Roskin <proski@gnu.org>
38419 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
38420 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
38421 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
38422 compiling for the i386 targets, but not for the utilities.
38424 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
38426 (grub_root_drive): Likewise.
38427 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
38429 (grub_root_drive): Change size to byte.
38430 (grub_start_addr): Remove.
38431 (grub_end_addr): Likewise.
38432 (grub_apm_bios_info): Likewise.
38434 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
38436 * normal/i386: Remove.
38437 * normal/powerpc: Likewise.
38438 * normal/sparc64: Likewise.
38439 * normal/x86_64: Likewise.
38441 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
38443 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
38444 * loader/i386/linux_trampoline.S: Fix indentation
38445 * loader/i386/xnu_helper.S: Likewise
38447 2009-05-18 Colin D Bennett <colin@gibibit.com>
38449 Display error messages when parsing a Lua statement fails.
38450 Previously, executing a syntactically invalid statement like
38451 ")foo" or "bar;" would silently fail.
38453 * script/lua/grub_main.c (handle_lua_error): New function.
38454 (grub_lua_parse_line): Improved reporting of Lua parser and
38457 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38459 Remove -Werror which causes build to fail on some systems
38461 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
38462 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
38463 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
38465 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38467 trampoline for linux on 64-bit platform
38469 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
38470 loader/i386/efi/linux_trampoline.S
38471 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
38473 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
38475 * loader/i386/linux_trampoline.S: moved here
38476 * loader/i386/efi/linux.c (allocate_pages): reserve space for
38478 (jumpvector): removed
38479 (grub_linux_trampoline_start): new declaration
38480 (grub_linux_trampoline_end): likewise
38481 (grub_linux_boot): use trampoline when on 64-bit platform
38482 * loader/i386/linux.c: likewise
38484 2009-05-16 Pavel Roskin <proski@gnu.org>
38486 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
38487 const to avoid a warning.
38488 (grub_lua_setenv): Likewise.
38489 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
38490 lmsg to fix a warning.
38492 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38494 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
38495 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38496 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
38497 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38498 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38499 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38500 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38501 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38503 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38505 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
38507 2009-05-16 Bean <bean123ch@gmail.com>
38509 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
38510 (lua_mod_SOURCES): New variable.
38511 (lua_mod_CFLAGS): Likewise.
38512 (lua_mod_LDFLAGS): Likewise.
38514 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
38515 (setjmp_mod_SOURCES): New variable.
38516 (setjmp_mod_CFLAGS): Likewise.
38517 (setjmp_LDFLAGS): Likewise.
38519 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
38520 (setjmp_mod_SOURCES): New variable.
38521 (setjmp_mod_CFLAGS): Likewise.
38522 (setjmp_LDFLAGS): Likewise.
38524 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38525 (setjmp_mod_SOURCES): New variable.
38526 (setjmp_mod_CFLAGS): Likewise.
38527 (setjmp_LDFLAGS): Likewise.
38529 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38530 (setjmp_mod_SOURCES): New variable.
38531 (setjmp_mod_CFLAGS): Likewise.
38532 (setjmp_LDFLAGS): Likewise.
38534 * normal/i386/setjmp.S: Moved from here ...
38535 * lib/i386/setjmp.S: ... Moved here
38536 * normal/x86_64/setjmp.S: Moved from here ...
38537 * lib/x86_64/setjmp.S: ... Moved here
38538 * normal/powerpc/setjmp.S: Moved from here ...
38539 * lib/powerpc/setjmp.S: ... Moved here
38540 * normal/sparc64/setjmp.S: Moved from here ...
38541 * lib/sparc64/setjmp.S: ... Moved here
38543 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
38544 returns_twice in mingw.
38546 * script/lua/grub_lib.c: New file.
38547 * script/lua/grub_lib.h: Likewise.
38548 * script/lua/grub_lua.h: Likewise.
38549 * script/lua/grub_main.c: Likewise.
38550 * script/lua/lapi.c: Likewise.
38551 * script/lua/lapi.h: Likewise.
38552 * script/lua/lauxlib.c: Likewise.
38553 * script/lua/lauxlib.h: Likewise.
38554 * script/lua/lbaselib.c: Likewise.
38555 * script/lua/lcode.c: Likewise.
38556 * script/lua/lcode.h: Likewise.
38557 * script/lua/ldblib.c: Likewise.
38558 * script/lua/ldebug.c: Likewise.
38559 * script/lua/ldebug.h: Likewise.
38560 * script/lua/ldo.c: Likewise.
38561 * script/lua/ldo.h: Likewise.
38562 * script/lua/ldump.c: Likewise.
38563 * script/lua/lfunc.c: Likewise.
38564 * script/lua/lfunc.h: Likewise.
38565 * script/lua/lgc.c: Likewise.
38566 * script/lua/lgc.h: Likewise.
38567 * script/lua/linit.c: Likewise.
38568 * script/lua/liolib.c: Likewise.
38569 * script/lua/llex.c: Likewise.
38570 * script/lua/llex.h: Likewise.
38571 * script/lua/llimits.h: Likewise.
38572 * script/lua/lmathlib.c: Likewise.
38573 * script/lua/lmem.c: Likewise.
38574 * script/lua/lmem.h: Likewise.
38575 * script/lua/loadlib.c: Likewise.
38576 * script/lua/lobject.c: Likewise.
38577 * script/lua/lobject.h: Likewise.
38578 * script/lua/lopcodes.c: Likewise.
38579 * script/lua/lopcodes.h: Likewise.
38580 * script/lua/loslib.c: Likewise.
38581 * script/lua/lparser.c: Likewise.
38582 * script/lua/lparser.h: Likewise.
38583 * script/lua/lstate.c: Likewise.
38584 * script/lua/lstate.h: Likewise.
38585 * script/lua/lstring.c: Likewise.
38586 * script/lua/lstring.h: Likewise.
38587 * script/lua/lstrlib.c: Likewise.
38588 * script/lua/ltable.c: Likewise.
38589 * script/lua/ltable.h: Likewise.
38590 * script/lua/ltablib.c: Likewise.
38591 * script/lua/ltm.c: Likewise.
38592 * script/lua/ltm.h: Likewise.
38593 * script/lua/lua.h: Likewise.
38594 * script/lua/luaconf.h: Likewise.
38595 * script/lua/lualib.h: Likewise.
38596 * script/lua/lundump.c: Likewise.
38597 * script/lua/lundump.h: Likewise.
38598 * script/lua/lvm.c: Likewise.
38599 * script/lua/lvm.h: Likewise.
38600 * script/lua/lzio.c: Likewise.
38601 * script/lua/lzio.h: Likewise.
38603 2009-05-16 Bean <bean123ch@gmail.com>
38605 * include/grub/kernel.h (grub_module_header_types): Add type
38608 * kern/main.c (grub_load_config): New function.
38609 (grub_main): Call grub_load_config to read boot config.
38611 * grub-mkimage (generate_image): New parameter config_path.
38612 (options): New option --config.
38613 (main): Parse --config option, and pass it to generate_image.
38615 2009-05-14 Christian Franke <franke@computer.org>
38617 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
38618 This fixes build on Cygwin.
38620 2009-05-14 Pavel Roskin <proski@gnu.org>
38622 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
38623 jump. This saves two bytes, so the typical case of 2 swapped
38624 drives would fit 32 bytes.
38626 2009-05-13 Pavel Roskin <proski@gnu.org>
38628 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
38629 grub_uint32_t to avoid a warning.
38631 * loader/i386/linux.c (allocate_pages): When assigning
38632 real_mode_mem, cast through grub_size_t to fix a warning. The
38633 code already makes sure that the value would fit a pointer.
38634 (grub_linux_setup_video): Cast render_target->data to
38635 grub_size_t to fix a warning.
38637 2009-05-13 Javier Martín <lordhabbit@gmail.com>
38639 * commands/i386/pc/drivemap.c: New file - implement drivemap
38641 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
38642 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
38644 2009-05-13 Pavel Roskin <proski@gnu.org>
38646 * util/i386/pc/grub-setup.c (setup): Remove unused variable
38647 embedding_area_exists.
38649 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
38651 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
38652 it easier to understand / work with.
38653 Improve warning messages for cases where there's no embedding area,
38654 or when it is too small (or core.img too large).
38656 2009-05-13 Pavel Roskin <proski@gnu.org>
38658 * loader/i386/pc/multiboot2.c: Add necessary includes for
38659 grub_multiboot2_real_boot().
38661 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
38662 PX record is always little-endian. We only need the lower 2
38665 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
38666 facilitate code reuse.
38667 (grub_cpio_mount): Use "struct head", not a char buffer. This
38668 fixes a warning reported by gcc 4.4.
38670 * kernel/disk.c (grub_disk_read): Use void pointer for the
38672 (grub_disk_write): Use const void pointer for the buffer.
38673 Adjust all callers. Remove unnecessary casts.
38675 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
38677 * util/i386/pc/grub-install.in: Update copyright year.
38679 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38683 * commands/gptsync.c: new file
38684 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
38685 (gptsync_mod_SOURCES): new variable
38686 (gptsync_mod_CFLAGS): likewise
38687 (gptsync_mod_LDFLAGS): likewise
38688 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
38690 (GRUB_PC_PARTITION_TYPE_HFS): likewise
38691 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
38692 * conf/i386-ieee1275.rmk: likewise
38693 * conf/i386-pc.rmk: likewise
38694 * conf/powerpc-ieee1275.rmk: likewise
38696 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38700 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
38701 (grub_dl_ref): likewise
38703 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
38705 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
38706 split in two functions (one for msdos and one for gpt).
38708 2009-05-08 Pavel Roskin <proski@gnu.org>
38710 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
38713 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
38714 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
38715 Initialize them with -1. Add sanity check for bad1. Eliminate
38718 2009-05-08 David S. Miller <davem@davemloft.net>
38720 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
38722 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
38724 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
38727 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
38729 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38730 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
38732 2009-05-05 David S. Miller <davem@davemloft.net>
38734 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
38736 2009-05-05 Pavel Roskin <proski@gnu.org>
38738 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
38739 of grub_dl_ref() and grub_dl_unref().
38740 * commands/parttool.c: Remove preprocessor conditionals around
38741 grub_dl_ref() and grub_dl_unref().
38742 * fs/affs.c: Likewise.
38743 * fs/afs.c: Likewise.
38744 * fs/cpio.c: Likewise.
38745 * fs/ext2.c: Likewise.
38746 * fs/fat.c: Likewise.
38747 * fs/hfs.c: Likewise.
38748 * fs/hfsplus.c: Likewise.
38749 * fs/iso9660.c: Likewise.
38750 * fs/jfs.c: Likewise.
38751 * fs/minix.c: Likewise.
38752 * fs/ntfs.c: Likewise.
38753 * fs/reiserfs.c: Likewise.
38754 * fs/sfs.c: Likewise.
38755 * fs/udf.c: Likewise.
38756 * fs/ufs.c: Likewise.
38757 * fs/xfs.c: Likewise.
38758 * include/grub/dl.h: Likewise.
38759 * loader/xnu.c: Likewise.
38761 2009-05-04 Pavel Roskin <proski@gnu.org>
38763 * commands/acpi.c: Remove unused variable my_mod.
38764 * partmap/amiga.c: Likewise.
38765 * partmap/apple.c: Likewise.
38766 * partmap/gpt.c: Likewise.
38767 * partmap/pc.c: Likewise.
38768 * partmap/sun.c: Likewise.
38769 * term/gfxterm.c: Likewise.
38770 * term/i386/pc/vesafb.c: Likewise.
38771 * term/i386/pc/vga.c: Likewise.
38773 2009-05-04 David S. Miller <davem@davemloft.net>
38775 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
38776 pointer args to grub_ieee1275_get_property().
38778 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
38780 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
38781 devices, and do not traverse down under controller nodes.
38783 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
38784 (grub_ofdisk_open): Use it to un-escape "," characters.
38785 * kern/disk.c (find_part_sep): New.
38786 (grub_disk_open): Use it to find the first non-escaped ','
38787 character in the disk name.
38788 * util/ieee1275/devicemap.c (escape_of_path): New.
38789 (grub_util_emit_devicemap_entry): Use it.
38790 * util/sparc64/ieee1275/grub-install.in: Update script to
38791 strip partition specifiers properly by not triggering on
38792 '\' escaped ',' characters.
38794 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38796 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38798 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38800 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38801 on documentation from Wikipedia).
38803 2009-05-04 Pavel Roskin <proski@gnu.org>
38805 * disk/ata.c: Spelling fixes.
38806 * disk/raid.c: Likewise.
38807 * disk/usbms.c: Likewise.
38808 * disk/dmraid_nvidia.c: Likewise.
38809 * kern/ieee1275/openfw.c: Likewise.
38810 * kern/ieee1275/init.c: Likewise.
38811 * kern/ieee1275/cmain.c: Likewise.
38812 * boot/i386/pc/cdboot.S: Likewise.
38813 * video/readers/png.c: Likewise.
38814 * video/i386/pc/vbe.c: Likewise.
38815 * fs/udf.c: Likewise.
38816 * fs/hfs.c: Likewise.
38817 * fs/reiserfs.c: Likewise.
38818 * efiemu/runtime/efiemu.c: Likewise.
38819 * efiemu/main.c: Likewise.
38820 * efiemu/mm.c: Likewise.
38821 * include/grub/elf.h: Likewise.
38822 * include/grub/xnu.h: Likewise.
38823 * include/grub/usbdesc.h: Likewise.
38824 * include/grub/usb.h: Likewise.
38825 * include/grub/script_sh.h: Likewise.
38826 * include/grub/lib/LzmaEnc.h: Likewise.
38827 * include/grub/efiemu/efiemu.h: Likewise.
38828 * include/grub/command.h: Likewise.
38829 * normal/menu.c: Likewise.
38830 * normal/main.c: Likewise.
38831 * normal/datetime.c: Likewise.
38832 * bus/usb/uhci.c: Likewise.
38833 * mmap/i386/uppermem.c: Likewise.
38834 * mmap/mmap.c: Likewise.
38835 * commands/acpi.c: Likewise.
38836 * commands/test.c: Likewise.
38837 * partmap/apple.c: Likewise.
38838 * font/font.c: Likewise.
38839 * loader/sparc64/ieee1275/linux.c: Likewise.
38840 * loader/macho.c: Likewise.
38841 * loader/i386/bsd_trampoline.S: Likewise.
38842 * loader/i386/bsd.c: Likewise.
38843 * loader/xnu.c: Likewise.
38844 * term/i386/pc/vesafb.c: Likewise.
38845 * term/usb_keyboard.c: Likewise.
38846 * util/resolve.c: Likewise.
38847 * util/getroot.c: Likewise.
38849 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38851 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38853 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38855 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38858 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38860 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38861 parameter only available on BIOS.
38863 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38865 Removed wrong semicolon in declaration
38867 * grub/misc.h (grub_dprintf): remove semicolon
38869 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38871 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
38872 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
38873 is done by grub_cmd_linux() now).
38874 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
38875 restore video to text mode.
38876 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
38877 indicates lack of "vga=" parameter. "vga=0" is mapped to
38878 `GRUB_LINUX_VID_MODE_NORMAL'.
38880 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38882 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
38883 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
38884 and `normal/script.c'. Add `kern/rescue_reader.c',
38885 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
38886 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
38887 `grub_script.tab.c'.
38889 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38890 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38891 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38892 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38893 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38895 * Makefile.in: Remove duplicated 2008 in Copyright line.
38897 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38899 * util/misc.c (grub_util_warn): New function. Emits a warning
38901 * include/grub/util/misc.h (grub_util_warn): New declaration.
38903 * util/i386/pc/grub-install.in: Understand --force and pass it down
38906 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
38908 (setup): Improve error messages and add warnings when requested to
38909 install in odd layouts. Refuse to install using blocklists unless
38912 2009-05-04 martin f. krafft <madduck@madduck.net>
38914 * disk/raid.c (grub_raid_scan_device): Improve debug message.
38916 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38918 Updated copyright year
38920 * fs/hfsplus.c: updated copyright year
38922 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38926 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
38927 in the space previously used by unused3
38928 (grub_hfsplus_uuid): new function
38929 (grub_hfsplus_fs): added uuid field
38931 2009-05-03 Pavel Roskin <proski@gnu.org>
38933 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
38934 suppress warnings. It's no longer needed.
38935 * disk/host.c: Likewise.
38936 * disk/ata_pthru.c: Likewise.
38937 * disk/loopback.c: Likewise.
38938 * hook/datehook.c: Likewise.
38939 * parttool/pcpart.c: Likewise.
38940 * fs/i386/pc/pxe.c: Likewise.
38941 * fs/ntfscomp.c: Likewise.
38942 * efiemu/main.c: Likewise.
38943 * mmap/mmap.c: Likewise.
38944 * commands/crc.c: Likewise.
38945 * commands/hexdump.c: Likewise.
38946 * commands/hdparm.c: Likewise.
38947 * commands/acpi.c: Likewise.
38948 * commands/echo.c: Likewise.
38949 * commands/minicmd.c: Likewise.
38950 * commands/blocklist.c: Likewise.
38951 * commands/memrw.c: Likewise.
38952 * commands/loadenv.c: Likewise.
38953 * commands/usbtest.c: Likewise.
38954 * commands/lsmmap.c: Likewise.
38955 * commands/boot.c: Likewise.
38956 * commands/parttool.c: Likewise.
38957 * commands/configfile.c: Likewise.
38958 * commands/search.c: Likewise.
38959 * commands/ieee1275/suspend.c: Likewise.
38960 * commands/cat.c: Likewise.
38961 * commands/i386/pc/pxecmd.c: Likewise.
38962 * commands/i386/pc/play.c: Likewise.
38963 * commands/i386/pc/halt.c: Likewise.
38964 * commands/i386/pc/vbeinfo.c: Likewise.
38965 * commands/i386/pc/vbetest.c: Likewise.
38966 * commands/lspci.c: Likewise.
38967 * commands/date.c: Likewise.
38968 * commands/handler.c: Likewise.
38969 * commands/ls.c: Likewise.
38970 * commands/test.c: Likewise.
38971 * commands/cmp.c: Likewise.
38972 * commands/efi/loadbios.c: Likewise.
38973 * commands/efi/fixvideo.c: Likewise.
38974 * commands/halt.c: Likewise.
38975 * commands/help.c: Likewise.
38976 * commands/reboot.c: Likewise.
38977 * hello/hello.c: Likewise.
38978 * script/sh/main.c: Likewise.
38979 * loader/xnu.c: Likewise.
38980 * term/terminfo.c: Likewise.
38981 * term/i386/pc/serial.c: Likewise.
38982 * term/usb_keyboard.c: Likewise.
38984 2009-05-03 David S. Miller <davem@davemloft.net>
38986 * normal/menu.c: Include grub/parser.h
38988 2009-05-03 Pavel Roskin <proski@gnu.org>
38990 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
38992 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
38993 Suggested by Javier Martín <lordhabbit@gmail.com>
38995 * util/i386/pc/grub-mkrescue.in: Allow for the case when
38996 efiemu??.o doesn't exist.
38997 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
39000 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
39002 FreeBSD 64-bit support
39004 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
39005 and loader/i386/bsd_trampoline.S
39006 (bsd_mod_ASFLAGS): new variable
39007 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
39008 (FREEBSD_MODTYPE_KERNEL64): likewise
39009 (grub_bsd64_trampoline_start): likewise
39010 (grub_bsd64_trampoline_end): likewise
39011 (grub_bsd64_trampoline_selfjump): likewise
39012 (grub_bsd64_trampoline_gdt): likewise
39013 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
39014 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
39015 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
39016 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
39017 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39019 * loader/i386/bsd_pagetable.c: new file
39020 * loader/i386/bsd_trampoline.S: likewise
39021 * loader/i386/bsd.c (ALIGN_QWORD): new macro
39022 (ALIGN_VAR): likewise
39023 (entry_hi): new variable
39024 (kern_end_mdofs): likewise
39025 (is_64bit): likewise
39026 (grub_freebsd_add_meta): use ALIGN_VAR
39027 (grub_e820_mmap): new declaration
39028 (grub_freebsd_add_mmap): new function
39029 (grub_freebsd_add_meta_module): support 64 bit kernels
39030 (grub_freebsd_list_modules): use ALIGN_VAR
39031 (gdt_descriptor): new declaration
39032 (grub_freebsd_boot): support 64 bit kernels
39033 (grub_bsd_elf64_hook): new function
39034 (grub_bsd_load_elf): support elf64
39036 2009-05-03 Bean <bean123ch@gmail.com>
39038 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
39039 after we get the result of if statement.
39041 2009-05-03 Bean <bean123ch@gmail.com>
39043 * Makefile.in (enable_efiemu): New variable.
39045 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
39047 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
39049 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
39050 path, add -mno-red-zone option.
39051 (efiemu64_s.o): Likewise.
39052 (efiemu64.o): Use macro $^ for source file.
39054 * configure.ac (--enable-efiemu): New option.
39056 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
39060 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
39061 (pkglib_MODULES): add xnu.mod
39062 (xnu_mod_SOURCES): new variable
39063 (xnu_mod_CFLAGS): likewise
39064 (xnu_mod_LDFLAGS): likewise
39065 (xnu_mod_ASFLAGS): likewise
39066 * conf/i386-pc.rmk: likewise
39067 * conf/x86_64-efi.rmk: likewise
39068 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
39070 * include/grub/i386/macho.h: new file
39071 * include/grub/i386/xnu.h: likewise
39072 * include/grub/macho.h: likewise
39073 * include/grub/machoload.h: likewise
39074 * include/grub/x86_64/macho.h: likewise
39075 * include/grub/x86_64/xnu.h: likewise
39076 * include/grub/xnu.h: likewise
39077 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
39078 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
39079 * loader/i386/efi/xnu.c: new file
39080 * loader/i386/pc/xnu.c: likewise
39081 * loader/i386/xnu.c: likewise
39082 * loader/i386/xnu_helper.S: likewise
39083 * loader/macho.c: likewise
39084 * loader/xnu.c: likewise
39085 * loader/xnu_resume.c: likewise
39086 * util/grub-dumpdevtree: likewise
39087 * include/grub/i386/pit.h: include grub/err.h
39088 (grub_pit_wait): export
39089 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
39091 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39095 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
39096 _linux_efi, linux_efi.
39097 new files in grub-emu
39098 new targets efiemu32.o and efiemu64.o
39099 * loader/linux_normal_efiemu.c: likewise
39100 * loader/i386/efi/linux.c: added preliminary efiemu support
39101 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
39103 * include/grub/autoefi.h: new file
39104 * include/grub/i386/efiemu.h: likewise
39105 * include/grub/i386/pc/efiemu.h: likewise
39106 * include/grub/efi/api.h: add LL suffix when necessary
39107 new definitions relating to tables
39108 * include/grub/efiemu/efiemu.h: new file
39109 * include/grub/efiemu/runtime.h: likewise
39110 * efiemu/prepare.c: likewise
39111 * efiemu/loadcore_common.c: likewise
39112 * efiemu/loadcore64.c: likewise
39113 * efiemu/runtime/efiemu.sh: likewise
39114 * efiemu/runtime/efiemu.S: likewise
39115 * efiemu/runtime/efiemu.c: likewise
39116 * efiemu/runtime/config.h: likewise
39117 * efiemu/prepare32.c: likewise
39118 * efiemu/main.c: likewise
39119 * efiemu/modules/pnvram.c: likewise
39120 * efiemu/modules/i386: likewise
39121 * efiemu/modules/i386/pc: likewise
39122 * efiemu/modules/acpi.c: likewise
39123 * efiemu/i386/pc/cfgtables.c: likewise
39124 * efiemu/i386/loadcore64.c: likewise
39125 * efiemu/i386/loadcore32.c: likewise
39126 * efiemu/prepare64.c: likewise
39127 * efiemu/loadcore.c: likewise
39128 * efiemu/symbols.c: likewise
39129 * efiemu/mm.c: likewise
39130 * efiemu/loadcore32.c: likewise
39132 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39136 * commands/acpi.c: new file
39137 * commands/i386/pc/acpi.c: likewise
39138 * commands/efi/acpi.c: likewise
39139 * include/grub/acpi.h: likewise
39140 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
39141 (acpi_mod_SOURCES): new variable
39142 (acpi_mod_CFLAGS): likewise
39143 (acpi_mod_LDFLAGS): likewise
39144 * conf/i386-efi.rmk: likewise
39145 * conf/x86_64-efi.rmk: likewise
39147 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39149 Missing part from mmap patch
39151 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
39152 (grub_mmap_unregister)
39153 (grub_mmap_free_and_unregister): use grub_mmap_register
39155 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39159 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
39160 * loader/i386/linux.c (find_mmap_size): likewise
39161 (allocate_pages): likewise
39162 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
39163 (grub_fill_multiboot_mmap): likewise
39164 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
39165 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
39166 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
39167 (OPENBSD_MMAP_RESERVED): likewise
39168 * include/grub/i386/pc/memory.h: include grub/memory.h
39169 (grub_lower_mem): removed
39170 (grub_upper_mem): likewise
39171 (GRUB_MACHINE_MEMORY_ACPI): new definition
39172 (GRUB_MACHINE_MEMORY_NVS): likewise
39173 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
39174 (GRUB_MACHINE_MEMORY_HOLE): likewise
39175 (grub_machine_mmap_register): likewise
39176 (grub_machine_mmap_unregister): likewise
39177 (grub_machine_get_upper): likewise
39178 (grub_machine_get_lower): likewise
39179 (grub_machine_get_post64): likewise
39180 * include/grub/i386/efi/memory.h: new file
39181 * include/grub/x86_64/efi/memory.h: likewise
39182 * include/grub/efi/memory.h: likewise
39183 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
39184 (mmap_mod_SOURCES): new variable
39185 (mmap_mod_LDFLAGS): likewise
39186 (mmap_mod_ASFLAGS): likewise
39187 * conf/i386-coreboot.rmk: likewise
39188 * conf/i386-ieee1275.rmk: likewise
39189 * conf/i386-efi.rmk: likewise
39190 * conf/x86_64-efi.rmk: likewise
39191 * include/grub/types.h (UINT_TO_PTR): new macro
39192 (PTR_TO_UINT32): likewise
39193 (PTR_TO_UINT64): likewise
39194 * include/grub/memory.h: new file
39195 * mmap/i386/pc/mmap.c: likewise
39196 * mmap/i386/pc/mmap_helper.S: likewise
39197 * mmap/i386/uppermem.c: likewise
39198 * mmap/mmap.c: likewise
39199 * mmap/efi/mmap.c: likewise
39200 * kern/i386/coreboot/init.c (grub_machine_init): don't use
39202 * kern/i386/pc/init.c (grub_lower_mem): removed variable
39203 (grub_upper_mem): likewise
39204 (grub_machine_init): don't use grub_upper_mem,
39205 make grub_lower_mem local
39206 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
39207 grub_mmap_iterate and grub_mmap_get_upper
39208 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
39210 2009-05-02 Bean <bean123ch@gmail.com>
39212 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
39213 script/sh/parser.y.
39214 (pkglib_MODULES): Add normal.mod and sh.mod.
39215 (normal_SOURCES): New variable.
39216 (normal_mod_CFLAGS): Likewise.
39217 (normal_mod_LDFLAGS): Likewise.
39218 (sh_mod_SOURCES): Likewise.
39219 (sh_mod_CFLAGS): Likewise.
39220 (sh_mod_LDFLAGS): Likewise.
39222 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
39223 script/sh/lexer.c_DEPENDENCIES.
39224 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
39225 kern/rescue_reader.c and kern/rescue_parser.c.
39226 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
39227 (grub_emu_SOURCES): Change source files.
39228 (pkglib_MODULES): Remove normal.mod.
39229 (normal_SOURCES): Removed.
39230 (normal_mod_CFLAGS): Likewise.
39231 (normal_mod_LDFLAGS): Likewise.
39232 * conf/i386-coreboot.rmk: Likewise.
39233 * conf/i386-efi.rmk: Likewise.
39234 * conf/i386-ieee1276.rmk: Likewise.
39235 * conf/powerpc-ieee1275.rmk: Likewise.
39236 * conf/sparc64-ieee1275.rmk: Likewise.
39237 * conf/x86_64-efi.rmk: Likewise.
39239 * include/grub/command.h (grub_command_execute): New inline function.
39241 * include/grub/menu.h (grub_menu_entry): Removed commands field.
39243 * include/grub/normal.h: Remove <grub/setjmp.h>.
39244 (grub_fs_module_list): Moved to normal/autofs.c.
39245 (grub_exit_env): Removed.
39246 (grub_command_execute): Likewise.
39247 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
39249 (read_command_list): New function declaration.
39250 (read_fs_list): Likewise.
39252 * include/parser.h: Include <grub/reader.h>.
39253 (grub_parser_split_cmdline): Change type of getline parameter.
39254 (grub_parser): New structure.
39255 (grub_parser_class): New variable.
39256 (grub_parser_execute): New function declaration.
39257 (grub_register_rescue_parser): Likewise.
39258 (grub_parser_register): New inline function.
39259 (grub_parser_unregister): Likewise.
39260 (grub_parser_get_current): Likewise.
39261 (grub_parser_set_current): Likewise.
39263 * include/grub/reader.h: New file.
39264 * kern/reader.c: Likewise.
39265 * kern/rescue_parser.c: Likewise.
39266 * kern/rescue_reader.c: Likewise.
39267 * normal/autofs.c: Likewise.
39268 * normal/dyncmd.c: Likewise.
39270 * include/grub/rescue.h: Removed.
39271 * normal/command.h: Likewise.
39273 * include/grub/script.h: Moved to ...
39274 * include/grub/script_sh.h: ... Moved here.
39275 * normal/execute.c: Moved to ...
39276 * script/sh/execute.c: ... Moved here.
39277 * normal/function.c: Moved to ...
39278 * script/sh/function.c: ... Moved here.
39279 * normal/lexer.c: Moved to ...
39280 * script/sh/lexer.c: ... Moved here.
39281 * normal/parser.y: Moved to ...
39282 * script/sh/parser.y: ... Moved here.
39283 * normal/script.c: Moved to ...
39284 * script/sh/script.c: ... Moved here.
39286 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
39288 (grub_exit_env): Removed.
39289 (fs_module_list): Moved to normal/autofs.c.
39290 (grub_file_getline): Don't handle comment here.
39291 (free_menu): Skip removed field entry->commands.
39292 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
39294 (read_config_file): Removed nested parameter, change getline function.
39295 (grub_enter_normal_mode): Removed.
39296 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
39297 (read_command_list): Likewise.
39298 (autoload_fs_module): Moved to normal/autofs.c.
39299 (read_fs_list): Likewise.
39300 (reader_nested): New variable.
39301 (grub_normal_execute): Run parser.sh to switch to sh parser.
39302 (grub_cmd_rescue): Removed.
39303 (cmd_normal): Removed.
39304 (grub_cmd_normal): Unregister itself at the beginning. Don't register
39306 (grub_cmdline_run): New function.
39307 (grub_normal_reader_init): Likewise.
39308 (grub_normal_read_line): Likewise.
39309 (grub_env_write_pager): Likewise.
39310 (cmdline): New variable.
39311 (grub_normal_reader): Likewise.
39312 (GRUB_MOD_INIT): Register normal reader and set as current, register
39313 pager hook, register normal command with grub_register_command_prio,
39314 so that it won't show up in command.lst.
39315 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
39316 grub_fs_autoload_hook.
39318 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
39319 (grub_menu_execute_entry): Replace grub_script_execute with
39320 grub_parser_execute, change parameter to grub_command_execute.
39322 * normal/menu_text.c: Remove <grub/script.h>.
39324 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
39325 and <grub/parser.h>.
39326 (run): Change editor_getline to use new parser interface. Change
39327 parameter to grub_command_execute.
39329 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
39330 <grub/reader.h> and <grub/parser.h>.
39331 (grub_load_normal_mode): Execute normal command.
39332 (grub_main): Call grub_register_core_commands,
39333 grub_register_rescue_parser and grub_register_rescue_reader, use
39334 grub_reader_loop to enter input loop.
39336 * kern/parser.c (grub_parser_split_cmdline): Change type of
39338 (grub_parser_class): New variable.
39339 (grub_parser_execute): New function.
39341 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
39342 * loader/multiboot2.c: Likewise.
39343 * loader/sparc64/ieee1275/linux.c: Likewise.
39345 * util/grub-emu.c (read_command_list): New dummy function.
39347 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39349 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
39350 count to 16 for CCISS and IDA.
39352 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39354 * normal/menu_text.c (grub_wait_after_message): Print a newline
39355 after waiting for user input.
39357 * loader/i386/linux.c: Include `<grub/normal.h>'.
39358 (grub_cmd_linux): Improve the error message about `ask' mode, by
39359 waiting for user input so it's not missed (we can do this, since
39360 user requested interaction).
39362 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39364 Added missing lst to grub-mkrescue
39366 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
39367 and ${input_dir}/parttool.lst
39369 2009-04-30 David S. Miller <davem@davemloft.net>
39371 * util/hostdisk.c (device_is_wholedisk): New function.
39372 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
39373 zero only if device_is_wholedisk() returns true.
39375 * util/hostdisk.c (convert_system_partition_to_system_disk):
39376 Handle virtual disk devices named /dev/vdiskX as found on sparc
39379 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
39380 lettered partition specifier is found, convert to numbered.
39382 2009-04-29 David S. Miller <davem@davemloft.net>
39384 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
39385 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39387 * normal/command.c: Add missing newline at end of file.
39389 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
39391 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
39392 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
39393 grub_ofdisk_read): Likewise, and deal similarly with the fact that
39394 ihandles have a 32-bit type but need to be stored in a "void *".
39396 2009-04-28 Pavel Roskin <proski@gnu.org>
39398 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
39399 not disk. Adjust all dependencies.
39400 (grub_fs_uuid_close): Use grub_device_close(), not
39403 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
39404 parent's partition, don't copy it by reference, as it gets freed
39407 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39409 Preboot hooks support
39411 * commands/boot.c (struct grub_preboot_t): new declaration
39412 (preboots_head): new variable
39413 (preboots_tail): likewise
39414 (grub_loader_register_preboot_hook): new function
39415 (grub_loader_unregister_preboot_hook): likewise
39416 (grub_loader_set): launch preboot hooks
39417 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
39418 (grub_loader_register_preboot_hook): new declaration
39419 (grub_loader_unregister_preboot_hook): likewise
39421 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39425 * disk/scsi.c (grub_scsi_open): added missing cast when
39426 calling grub_dprintf
39428 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
39430 Bug and warning fixes
39432 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
39434 * commands/test.c (test_parse): fixed bug with file tests and corrected
39435 declaration of find_file
39437 2009-04-26 Pavel Roskin <proski@gnu.org>
39439 * Makefile.in: Don't install empty manual pages if help2man is
39440 missing. Use help2man option for output, not shell redirection.
39442 2009-04-26 David S. Miller <davem@davemloft.net>
39444 * util/grub-mkdevicemap.c (make_device_map): Add missing
39445 NESTED_FUNC_ATTR to process_device().
39447 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39451 * commands/test.c: rewritten to use bash-like test
39453 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39455 Parttool autoloading and improvements
39457 * Makefile.in (pkglib_DATA): add parttool.lst
39458 (parttool.lst): new target
39459 * genmk.rb: generate parttool-*
39460 (CLEANFILES): add #{parttool}
39461 (PARTTOOLFILES): new variable
39462 * genparttoollist.sh: new file
39463 * parttool/pcpart.c (grub_pcpart_boot): more feedback
39464 (grub_pcpart_type): likewise
39465 * commands/parttool.c (helpmsg): new variable
39466 (grub_cmd_parttool): output help if not enough arguments are supplied
39468 (GRUB_MOD_INIT(parttool)): use helpmsg
39470 2009-04-24 David S. Miller <davem@davemloft.net>
39472 Avoiding opening same device multiple times in device iterator.
39474 * kern/device.c: (grub_device_iterate): Define struct part_ent,
39475 and use it to build a list of partitions in iterate_disk() and
39476 iterate_partition().
39478 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
39481 * disk/ieee1275/nand.c (grub_nand_iterate): Return
39482 grub_devalias_iterate() result instead of unconditional 0.
39483 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
39484 Also, capture hook return value, either directly or via
39485 grub_children_iterate(), and propagate to caller.
39486 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
39487 grub_children_iterate): Return value is now 'int' instead of
39489 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
39490 like a proper iterator, stopping when hooks return non-zero.
39491 (grub_devalias_iterate): Likewise.
39493 2009-04-23 David S. Miller <davem@davemloft.net>
39495 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
39497 2009-04-22 David S. Miller <davem@davemloft.net>
39499 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
39500 is larger than address_cells, use that value for address_cells too.
39502 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
39503 IEEE1275_MAX_PATH_LEN): Define.
39504 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
39505 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
39506 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
39507 'devtype'. Explicitly NULL terminate devalias expansion.
39509 * util/sparc64/ieee1275/misc.c: New file.
39510 * util/sparc64/ieee1275/grub-setup.c: New file.
39511 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
39512 * util/sparc64/ieee1275/grub-mkimage.c: New file.
39513 * util/sparc64/ieee1275/grub-install.in: New file.
39514 * util/ieee1275/ofpath.c: New file.
39515 * util/ieee1275/devicemap.c: New file.
39516 * util/devicemap.c: New file.
39517 * util/deviceiter.c: New file.
39518 * kern/sparc64/ieee1275/init.c: New file.
39519 * include/grub/util/ofpath.h: New file.
39520 * include/grub/util/deviceiter.h: New file.
39521 * util/grub-mkdevicemap.c: Include deviceiter.h.
39522 Implement using grub_util_emit_devicemap_entry and
39523 grub_util_iterate_devices.
39524 * conf/i386-corebook.rmk: Build util/deviceiter.c and
39525 util/devicemap.c into grub-mkdevicemap
39526 * conf/i386-efi.rmk: Likewise.
39527 * conf/i386-ieee1275.rmk: Likewise.
39528 * conf/i386-pc.rmk: Likewise.
39529 * conf/powerpc-ieee1275.rmk: Likewise.
39530 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
39531 images and installation utilities. Build kernel as image
39532 instead of as elf binary. Use common rules as much as possible.
39534 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
39536 Correct GPT definition
39538 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39541 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
39543 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
39545 2009-04-19 David S. Miller <davem@davemloft.net>
39547 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
39548 (grub_rescue_cmd_linux): Rename to...
39549 (grub_cmd_linux): and fix prototype.
39550 (grub_rescue_cmd_initrd): Rename to...
39551 (grub_cmd_initrd): and fix prototype.
39552 (cmd_linux, cmd_initrd): New.
39553 (GRUB_MOD_INIT(linux)): Use grub_register_command().
39554 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
39556 2009-04-17 Pavel Roskin <proski@gnu.org>
39558 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
39560 (grub_ohci_transfer): Likewise.
39562 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
39564 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
39565 return without a value. Fix inconsistent indentation.
39567 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
39568 match struct grub_fs.
39570 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
39571 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
39572 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
39573 * commands/lspci.c (grub_lspci_iter): Likewise.
39575 2009-04-16 Bean <bean123ch@gmail.com>
39577 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
39580 2009-04-15 Pavel Roskin <proski@gnu.org>
39582 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
39583 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
39584 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
39587 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39589 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
39590 that no multiple data or metadata areas are supported and `Unknown
39593 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39595 Move loader out of the kernel
39597 * kern/loader.c: moved to ...
39598 * commands/boot.c: ... moved here
39599 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
39600 * commands/boot.c (grub_cmd_boot): moved here. All users updated
39601 * include/grub/kernel.h (grub_machine_fini): export
39602 * include/grub/loader.h (grub_loader_is_loaded): update declaration
39603 (grub_loader_set): likewise
39604 (grub_loader_unset): likewise
39605 (grub_loader_boot): likewise
39606 * conf/common.rmk: new module boot.mod
39607 (pkglib_MODULES): add boot.mod
39608 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
39609 (grub_emu_SOURCES): likewise
39610 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
39611 (grub_emu_SOURCES): likewise
39612 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
39613 (grub_emu_SOURCES): likewise
39614 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
39615 (grub_emu_SOURCES): likewise
39616 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
39617 (grub_emu_SOURCES): likewise
39618 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
39619 (grub_emu_SOURCES): likewise
39620 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
39621 (grub_emu_SOURCES): likewise
39623 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39625 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
39627 * kern/misc.c (grub_itoa): Removed function
39628 (grub_ltoa): likewise
39629 (grub_vsprintf): use grub_lltoa
39631 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39635 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
39636 * conf/i386-coreboot.rmk: likewise
39637 * conf/i386-ieee1275.rmk: likewise
39638 * conf/powerpc-ieee1275.rmk: likewise
39640 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39642 * INSTALL: Add that `./autogen.sh' needs to be run before
39645 2009-04-14 Bean <bean123ch@gmail.com>
39647 * Makefile.in (pkglib_DATA): Add handler.lst.
39648 (handler.lst): New rule.
39650 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
39651 * conf/i386-coreboot.rmk: Likewise.
39652 * conf/i386-ieee1275.rmk: Likewise.
39653 * conf/i386-efi.rmk: Likewise.
39654 * conf/x86_64-efi.rmk: Likewise.
39655 * conf/powerpc-ieee1275.rmk: Likewise.
39656 * conf/sparc64-ieee1275.rmk: Likewise.
39658 * genhandlerlist.sh: New file.
39660 * genmk.rb: Add rules to generate handler.lst.
39662 * include/grub/normal.h (grub_file_getline): New function definition.
39663 (read_handler_list): Likewise.
39664 (free_handler_list): Likewise.
39666 * include/grub/term.h (grub_term_register_input): Add name parameter
39667 for auto generation of handler.lst.
39668 (grub_term_register_output): Likewise.
39670 * normal/handler.c: New file.
39672 * normal/main.c (get_line): Renamed to grub_file_getline.
39673 (read_config_file): Use the newly renamed grub_file_getline.
39674 (read_command_list): Likewise.
39675 (read_fs_list): Likewise.
39676 (grub_normal_execute): Call read_handler_list to parse handler.lst.
39677 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
39679 * term/efi/console.c (grub_console_init): Add name parameter for auto
39680 generation of handler.lst.
39681 * term/gfxterm.c: Likewise.
39682 * term/i386/pc/at_keyboard.c: Likewise.
39683 * term/i386/pc/console.c: Likewise.
39684 * term/i386/pc/serial.c: Likewise.
39685 * term/i386/pc/vesafb.c: Likewise.
39686 * term/i386/pc/vga.c: Likewise.
39687 * term/i386/pc/vga_text.c: Likewise.
39688 * term/ieee1275/ofconsole.c: Likewise.
39689 * term/usb_keyboard.c: Likewise.
39691 2009-04-14 Bean <bean123ch@gmail.com>
39693 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
39694 properly with null character.
39696 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39698 * configure: Remove.
39699 * config.h.in: Likewise.
39700 * stamp-h.in: Likewise.
39701 * DISTLIST: Likewise.
39702 * conf/common.mk: Likewise.
39703 * conf/i386-coreboot.mk: Likewise.
39704 * conf/i386-efi.mk: Likewise.
39705 * conf/i386-ieee1275.mk: Likewise.
39706 * conf/i386.mk: Likewise.
39707 * conf/i386-pc.mk: Likewise.
39708 * conf/powerpc-ieee1275.mk: Likewise.
39709 * conf/sparc64-ieee1275.mk: Likewise.
39710 * conf/x86_64-efi.mk: Likewise.
39712 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
39715 2009-04-14 John Stanley <jpsinthemix@verizon.net>
39716 David S. Miller <davem@davemloft.net>
39718 * util/hostdisk.c (make_device_name): Fix buffer length
39721 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39723 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
39724 <sys/param.h> and <sys/sysctl.h>.
39725 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
39726 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
39727 opening the device and reset them afterwards.
39729 2009-04-13 Pavel Roskin <proski@gnu.org>
39731 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
39732 Reported by John Stanley <jpsinthemix@verizon.net>
39734 2009-04-13 Robert Millan <rmh@aybabtu.com>
39736 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
39737 that name for menuentries when appropriate.
39739 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39741 * util/grub.d/10_freebsd.in: Add a missing `fi'.
39743 2009-04-13 Robert Millan <rmh@aybabtu.com>
39745 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
39746 to Linux, simply abort telling the user it's no longer supported.
39748 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39750 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
39751 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
39752 `freebsd_loadenv' only when devices.hints exist.
39754 2009-04-13 Pavel Roskin <proski@gnu.org>
39756 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
39758 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39760 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
39762 (grub_drive): Likewise.
39764 2009-04-13 David S. Miller <davem@davemloft.net>
39766 * kern/sparc64/ieee1275/ieee1275.c: New file.
39767 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
39768 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
39769 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
39770 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
39771 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
39772 grub_ieee1275_alloc_physmem): Declare new exported functions.
39774 * include/grub/sparc64/ieee1275/loader.h: New file.
39775 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39776 * include/grub/sparc64/kernel.h: Likewise.
39777 * loader/sparc64/ieee1275/linux.c: Likewise.
39779 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
39780 (grub_fstest_SOURCES): Likewise.
39782 * util/hostdisk.c (make_device_name): Do not make any assumptions
39783 about the length of drive names.
39785 * kern/dl.c (grub_dl_load_file): Close file immediately when
39786 we are done using it.
39788 2009-04-12 David S. Miller <davem@davemloft.net>
39790 * kern/misc.c (grub_ltoa): Fix cast when handling negative
39791 values. Noticed by Pavel Roskin.
39793 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39796 * genmk.rb: Add more flexible image type specification, also
39797 pass --strip-unneeded to objcopy.
39798 * conf/i386-pc.rmk: Use *_FORMAT.
39799 * conf/i386-pc.mk: Rebuilt.
39801 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39802 (OFDISK_HASH_SZ): Define.
39803 (ofdisk_hash): New hash table.
39804 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39805 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39806 instead of device phandle which is not unique.
39808 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39809 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39810 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39811 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39812 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39813 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39814 GRUB_KERNEL_MACHINE_DATA_END): Define.
39815 (grub_kernel_image_size, grub_total_module_size): Declare.
39817 2009-04-12 Pavel Roskin <proski@gnu.org>
39819 * configure.ac: Change the logic when we check for target tools.
39820 Do it when the target is specified and it's different from the
39821 specified value of the host.
39823 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
39825 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39826 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39827 GNU/kFreeBSD. Check if a device is a character device. Use
39828 DIOCGMEDIASIZE to get the size.
39829 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39830 support for GNU/kFreeBSD.
39831 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39832 is a character device instead of a block device. Add support for
39833 FreeBSD device names.
39835 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39836 is a character device instead of a block device.
39838 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39839 is a character device instead of a block device.
39841 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39843 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39844 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39845 FreeBSD. Check if a device is a character device. Use
39846 DIOCGMEDIASIZE to get the size.
39847 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39848 support for FreeBSD.
39849 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39850 is a character device instead of a block device. Add support for
39851 FreeBSD device names.
39853 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39854 a character device instead of a block device.
39855 (grub_util_check_char_device): New function.
39857 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39858 a character device instead of a block device.
39860 * include/grub/util/getroot.h (grub_util_check_char_device): New
39863 2009-04-11 David S. Miller <davem@davemloft.net>
39865 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39867 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39868 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39869 function, if present.
39870 (__bswapdi2): Likewise.
39872 * include/grub/sparc64/ieee1275/boot.h: New file.
39873 * boot/sparc64/ieee1275/boot.S: Likewise.
39874 * boot/sparc64/ieee1275/diskboot.S: Likewise.
39876 * kern/misc.c (grub_ltoa): New function.
39877 (grub_vsprintf): Use it to format 'long' integers.
39879 2009-04-10 David S. Miller <davem@davemloft.net>
39881 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
39882 slots are of type grub_ieee1275_cell_t.
39883 (grub_nand_read): Likewise.
39884 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
39885 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
39886 macros are used to compare values in arg/ret block of the call.
39887 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
39888 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
39889 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
39890 grub_ieee1275_instance_to_path, grub_ieee1275_write,
39891 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
39892 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
39893 grub_ieee1275_close, grub_ieee1275_set_property,
39894 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
39895 grub_ieee1275_cell_t.
39896 * kern/ieee1275/openfw.c (grub_map): Likewise.
39897 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
39898 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
39900 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
39901 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
39902 (grub_devalias_iterate): Likewise.
39904 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
39908 * fs/ufs.c (INODE_NBLOCKS): new definition
39909 (struct grub_ufs_dirent): added fields for non-BSD dirents
39910 (grub_ufs_get_file_block): fixed double indirect handling
39911 (grub_ufs_lookup_symlink): use more robust way to determine whether
39913 (grub_ufs_find_file): support for non-BSD dirents
39914 (grub_ufs_dir): support for non-BSD dirents
39916 2009-04-10 Bean <bean123ch@gnail.com>
39918 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
39919 attribute, otherwise the size would be wrong for i386 platform.
39921 * include/grub/pci.h (grub_pci_read_word): New inline function.
39922 (grub_pci_read_byte): Likewise.
39923 (grub_pci_write): Likewise.
39924 (grub_pci_write_word): Likewise.
39925 (grub_pci_write_byte): Likewise.
39927 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
39929 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
39930 (find_framebuf): Scan pci to locate the frame buffer address.
39932 * commands/efi/fixvideo.c: New file.
39934 * commands/efi/loadbios.c: Likewise.
39936 * commands/memrw.c: Likewise.
39938 * util/grub-dumpbios.in: Likewise.
39940 * conf/common.rmk (grub-dumpbios): New utility.
39941 (pkglib_MODULES): New module memrw.mod.
39942 (memrw_mod_SOURCE): New macro.
39943 (memrw_mod_CFLAGS): Likewise.
39944 (memrw_mod_LDFLAGS): Likewise.
39946 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
39948 (loadbios_mod_SOURCE): New macro.
39949 (loadbios_mod_CFLAGS): Likewise.
39950 (loadbios_mod_LDFLAGS): Likewise.
39951 (fixvideo_mod_SOURCE): Likewise.
39952 (fixvideo_mod_CFLAGS): Likewise.
39953 (fixvideo_mod_LDFLAGS): Likewise.
39955 * conf/x86_64.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 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
39966 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
39968 2009-04-07 David S. Miller <davem@davemloft.net>
39970 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
39971 support for R_SPARC_OLO10 relocations. Fix compile warning for
39972 R_SPARC_WDISP30 case.
39973 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
39975 2009-04-06 Pavel Roskin <proski@gnu.org>
39977 * include/grub/misc.h (ARRAY_SIZE): New macro.
39978 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
39980 * loader/i386/linux.c (allocate_pages): Use free_pages().
39981 (grub_linux_unload): Don't use free_pages().
39982 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
39983 wrong index. Treat all other modes as text modes.
39984 (grub_cmd_linux): Initialize vid_mode unconditionally to
39985 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
39987 * commands/help.c (print_command_help): Use cmd->prio, not
39988 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
39990 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
39994 * parttool/pcpart.c: new file
39995 * commands/parttool.c: likewise
39996 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
39997 (parttool_mod_SOURCES): new variable
39998 (parttool_mod_CFLAGS): likewise
39999 (parttool_mod_LDFLAGS): likewise
40000 (pcpart_mod_SOURCES): likewise
40001 (pcpart_mod_CFLAGS): likewise
40002 (pcpart_mod_LDFLAGS): likewise
40003 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
40004 and parttool/pcpart.c
40005 * conf/i386-efi.rmk: likewise
40006 * conf/i386-ieee1275.rmk: likewise
40007 * conf/i386-pc.rmk: likewise
40008 * conf/powerpc-ieee1275.rmk: likewise
40009 * conf/sparc64-ieee1275.rmk: likewise
40010 * conf/x86_64-ieee1275.rmk: likewise
40012 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
40014 Support for mtime and further expandability of dir command
40016 * include/grub/lib/datetime.h: moved to ...
40017 * include/grub/datetime.h: ... moved here and added
40018 declaration of grub_unixtime2datetime. All users updated
40019 * include/grub/fs.h: new syntax for dir and mtime functions in
40021 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
40022 and GRUB_FSHELP_FLAGS_MASK
40023 * commands/ls.c (grub_ls_list_files): Write mtime in long format
40024 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
40025 (grub_ext2_mtime): new function
40026 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
40027 (grub_hfsplus_mtime): new function
40028 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
40029 (GRUB_UFS_ATTR_FILE): likewise
40030 (GRUB_UFS_ATTR_LNK): likewise
40031 (struct grub_ufs_sblock): new fields mtime
40032 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
40034 (grub_ufs_dir): mtime support
40035 (grub_ufs_mtime): new function
40036 * fs/affs.c (grub_affs_dir): use new dir syntax
40037 * fs/afs.c (grub_afs_dir): likewise
40038 * fs/cpio.c (grub_cpio_dir): likewise
40039 * fs/fat.c (grub_fat_find_dir): likewise
40040 * fs/hfs.c (grub_hfs_dir): likewise
40041 * fs/iso9660.c (grub_iso9660_dir): likewise
40042 * fs/jfs.c (grub_jfs_dir): likewise
40043 * fs/minix.c (grub_minix_dir): likewise
40044 * fs/ntfs.c (grub_ntfs_dir): likewise
40045 * fs/reiserfs.c (grub_reiserfs_dir): likewise
40046 * fs/sfs.c (grub_sfs_dir): likewise
40047 * fs/xfs.c (grub_xfs_dir): likewise
40048 * util/hostfs.c (grub_hostfs_dir): likewise
40049 * lib/datetime.c: moved to ...
40050 * normal/datetime.c: ... moved here
40051 (grub_unixtime2datetime): new function
40052 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
40053 * normal/completion.c (iterate_dir): use new dir syntax
40054 * normal/misc.c (grub_normal_print_device_info): tell the
40055 last modification time of a volume
40056 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
40057 * conf/common.rmk: added lib/datetime.c to ls.mod
40058 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
40059 (normal_mod_SOURCES): likewise
40060 (datetime_mod_SOURCES): Removed lib/datetime.c
40061 * conf/i386-efi.rmk: likewise
40062 * conf/i386-ieee1275.rmk: likewise
40063 * conf/i386-pc.rmk: likewise
40064 * conf/powerpc-ieee1275.rmk: likewise
40065 * conf/sparc64-ieee1275.rmk: likewise
40066 * conf/x86_64-efi.rmk: likewise
40068 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
40070 Trim trailing spaces in FAT label and support mtools-like labels
40072 * fs/fat.c (grub_fat_iterate_dir): New function based
40073 on grub_fat_find_dir
40074 (grub_fat_find_dir): use grub_fat_iterate_dir
40075 (grub_fat_label): likewise
40077 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
40079 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
40081 remove extraneous kernel_elf_HEADERS
40083 2009-04-04 Bean <bean123ch@gnail.com>
40085 * include/grub/util/misc.h: Add dummy function fsync for mingw.
40087 * util/misc.c: Likewise.
40089 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
40091 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
40092 instead of grub_printf.
40094 2009-04-03 Robert Millan <rmh@aybabtu.com>
40096 * loader/i386/linux.c (grub_linux_setup_video): Fill
40097 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
40098 values from `mode info' structure instead of hardcoded
40101 2009-04-01 Pavel Roskin <proski@gnu.org>
40103 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
40105 * genmk.rb: Likewise.
40106 * configure.ac: Likewise.
40108 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
40110 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
40111 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
40113 2009-04-01 David S. Miller <davem@davemloft.net>
40115 * normal/sparc64/setjmp.S: Fix setjmp implementation.
40116 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
40117 (grub_setjmp): Mark with 'returns_twice' attribute.
40118 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
40119 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
40120 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
40122 2009-04-01 Robert Millan <rmh@aybabtu.com>
40124 Reapply fix from 2008-07-28 which was accidentally reverted; also
40125 perform the same fix to a similar check in same function.
40127 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
40128 with the same number are found, just use issue a warning with
40129 grub_dprintf(), as this error has been reported to be non-fatal.
40131 2009-03-31 Pavel Roskin <proski@gnu.org>
40133 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
40134 for cross-compilation.
40136 2009-03-30 Robert Millan <rmh@aybabtu.com>
40138 Fix i386-ieee1275 build.
40140 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
40141 Remove declaration.
40143 2009-03-30 Pavel Roskin <proski@gnu.org>
40145 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
40146 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
40147 zero-terminated, rely only on the strlen value. Fix comparison
40148 of strings differing in length.
40150 2009-03-30 Robert Millan <rmh@aybabtu.com>
40152 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
40153 checking for abi version. Improve error messages on BIOS to notify
40154 user about `linux16' command.
40156 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
40160 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
40161 in case of collision
40162 * disk/scsi.c (grub_scsi_open): free scsi in case of error
40164 2009-03-29 Robert Millan <rmh@aybabtu.com>
40166 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
40167 set `vid_mode' accordingly.
40168 (grub_linux_boot): Process `vid_mode' and set video mode.
40170 2009-03-29 Robert Millan <rmh@aybabtu.com>
40172 * util/grub.d/10_linux.in (linux_entry): New function.
40173 Factorize generation of Linux boot entries.
40175 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
40177 Make the format of Environment Block plain text. The boot loader
40178 part is not tested well yet.
40180 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
40182 (envblk): Likewise.
40183 (usage): Remove "info" and "clear". Add "unset". Update the
40184 description of "set", as this does not delete variables any
40186 (create_envblk_file): Complete rewrite.
40187 (open_envblk_file): Likewise.
40188 (cmd_info): Removed.
40189 (cmd_list): Likewise.
40190 (cmd_set): Likewise.
40191 (cmd_clear): Likewise.
40192 (list_variables): New function.
40193 (write_envblk): Likewise.
40194 (set_variables): Likewise.
40195 (unset_variables): Likewise.
40196 (main): Complete rewrite.
40198 * commands/loadenv.c (buffer): Removed.
40199 (envblk): Likewise.
40200 (open_envblk_file): New function.
40201 (read_envblk_file): Complete rewrite.
40202 (grub_cmd_load_env): Likewise.
40203 (grub_cmd_list_env): Likewise.
40204 (struct blocklist): New struct.
40205 (free_blocklists): New function.
40206 (check_blocklists): Likewise.
40207 (write_blocklists): Likewise.
40208 (grub_cmd_save_env): Complete rewrite.
40210 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
40211 a plain text signature.
40212 (GRUB_ENVBLK_MAXLEN): Removed.
40213 (struct grub_envblk): Complete rewrite.
40214 (grub_envblk_find): Removed.
40215 (grub_envblk_insert): Likewise.
40216 (grub_envblk_open): New prototype.
40217 (grub_envblk_set): Likewise.
40218 (grub_envblk_delete): Put const to VALUE.
40219 (grub_envblk_iterate): Put const to NAME and VALUE.
40220 (grub_envblk_close): New prototype.
40221 (grub_envblk_buffer): New inline function.
40222 (grub_envblk_size): Likewise.
40224 * lib/envblk.c: Include grub/mm.h.
40225 (grub_env_find): Removed.
40226 (grub_envblk_open): New function.
40227 (grub_envblk_close): Likewise.
40228 (escaped_value_len): Likewise.
40229 (find_next_line): Likewise.
40230 (grub_envblk_insert): Removed.
40231 (grub_envblk_set): New function.
40232 (grub_envblk_delete): Complete rewrite.
40233 (grub_envblk_iterate): Likewise.
40235 2009-03-28 Robert Millan <rmh@aybabtu.com>
40237 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
40238 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
40239 variables. Use 16-bit loader.
40240 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
40242 * kern/i386/loader.S (grub_linux_boot): Rename to ...
40243 (grub_linux16_boot): ... this. Update all users.
40244 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
40245 (grub_linux_boot): ... this. Update all users.
40247 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
40248 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
40249 commands to `linux16' and `initrd16'.
40250 (GRUB_MOD_FINI(linux)): Rename to ...
40251 (GRUB_MOD_FINI(linux16)): ... this.
40253 2009-03-24 Pavel Roskin <proski@gnu.org>
40255 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
40256 not just for compilation.
40258 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
40260 Move multiboot helper out of kernel
40262 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
40263 `loader/i386/multiboot_helper.S'.
40264 * conf/i386-coreboot.rmk: Likewise
40265 * conf/i386-ieee1275.rmk: Likewise
40267 * kern/i386/loader.S: Move multiboot helpers from here...
40268 * loader/i386/multiboot_helper.S: ...moved here
40269 * include/grub/i386/loader.h: Move declarations of multiboot
40270 helpers from here...
40271 * include/grub/i386/multiboot.h: ...moved here
40272 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
40274 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40276 * kern/env.c (grub_env_context_open): Added an argument to specify
40277 whether a new context inherits exported variables from current
40278 one. This is useful when making a sandbox to interpret a config
40280 All callers updated.
40282 * include/grub/env.h (grub_env_context_open): Updated the prototype.
40284 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40286 * kern/env.c (grub_env_context_close): Fix memory leaks.
40288 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40290 * normal/main.c (grub_normal_execute): Added an argument
40291 BATCH to specify if an interactive interface should be provided
40292 after reading a config file.
40293 All callers updated.
40294 (read_command_list): Prevent being executed twice.
40295 (read_fs_list): Likewise.
40297 * include/grub/normal.h (grub_normal_execute): Updated the
40300 2009-03-22 Pavel Roskin <proski@gno.org>
40302 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
40304 * kern/i386/pc/startup.S: Likewise.
40305 * kern/i386/efi/startup.S: Likewise.
40306 * kern/i386/ieee1275/startup.S: Likewise.
40307 * kern/i386/coreboot/startup.S: Likewise.
40308 * kern/x86_64/efi/startup.S: Likewise.
40310 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
40311 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
40312 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
40314 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
40316 Bugfixes in multiboot for bugs uncovered by solaris kernel.
40318 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
40320 Use vaddr of correct segment for entry_point.
40322 2009-03-21 Bean <bean123ch@gmail.com>
40324 * commands/blocklist.c: Add include file <grub/command.h>, remove
40325 <grub/normal.h> and <grub/arg.h>.
40326 (grub_cmd_blocklist): Use the new command interface.
40327 (GRUB_MOD_INIT): Likewise.
40328 (GRUB_MOD_FINI): Likewise.
40329 * commands/boot.c: Likewise.
40330 * commands/cat.c: Likewise.
40331 * commands/cmp.c: Likewise.
40332 * commands/configfile.c: Likewise.
40333 * commands/crc.c: Likewise.
40334 * commands/echo.c: Likewise.
40335 * commands/halt.c: Likewise.
40336 * commands/handler.c: Likewise.
40337 * commands/hdparm.c: Likewise.
40338 * commands/help.c: Likewise.
40339 * commands/hexdump.c: Likewise.
40340 * commands/loadenv.c: Likewise.
40341 * commands/ls.c: Likewise.
40342 * commands/lsmmap.c: Likewise.
40343 * commands/lspci.c: Likewise.
40344 * commands/loadenv.c: Likewise.
40345 * commands/read.c: Likewise.
40346 * commands/reboot.c: Likewise.
40347 * commands/search.c: Likewise.
40348 * commands/sleep.c: Likewise.
40349 * commands/test.c: Likewise.
40350 * commands/usbtest.c: Likewise.
40351 * commands/videotest.c: Likewise.
40352 * commands/i386/cpuid.c: Likewise.
40353 * commands/i386/pc/halt.c: Likewise.
40354 * commands/i386/pc/play.c: Likewise.
40355 * commands/i386/pc/pxecmd.c: Likewise.
40356 * commands/i386/pc/vbeinfo.c: Likewise.
40357 * commands/i386/pc/vbetest.c: Likewise.
40358 * commands/ieee1275/suspend.c: Likewise.
40359 * disk/loopback.c: Likewise.
40360 * font/font_cmd.c: Likewise.
40361 * hello/hello.c: Likewise.
40362 * loader/efi/appleloader.c: Likewise.
40363 * loader/efi/chainloader.c: Likewise.
40364 * loader/i386/bsd.c: Likewise.
40365 * loader/i386/efi/linux.c: Likewise.
40366 * loader/i386/ieee1275/linux.c: Likewise.
40367 * loader/i386/linux.c: Likewise.
40368 * loader/i386/pc/chainloader.c: Likewise.
40369 * loader/i386/pc/linux.c: Likewise.
40370 * loader/powerpc/ieee1275/linux.c: Likewise.
40371 * loader/multiboot_loader.c: Likewise.
40372 * term/gfxterm.c: Likewise.
40373 * term/i386/pc/serial.c: Likewise.
40374 * term/terminfo.c: Likewise.
40376 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
40377 * term/i386/pc/vga.c: Likewise.
40378 * video/readers/jpeg.c: Likewise.
40379 * video/readers/png.c: Likewise.
40380 * video/readers/tga.c: Likewise.
40382 * util/grub-fstest (cmd_loopback): Removed.
40383 (cmd_blocklist): Likewise.
40384 (cmd_ls): Likewise.
40385 (grub_register_command): Likewise.
40386 (grub_unregister_command): Likewise.
40387 (execute_command): Use grub_command_find to locate command and execute
40390 * include/grub/efi/chainloader.h: Removed.
40391 * loader/efi/chainloader_normal.c: Likewise.
40392 * loader/i386/bsd_normal.c: Likewise.
40393 * loader/i386/pc/chainloader_normal.c: Likewise.
40394 * loader/i386/pc/multiboot_normal.c: Likewise.
40395 * loader/linux_normal.c: Likewise.
40396 * loader/multiboot_loader_normal.c: Likewise.
40397 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40399 * gencmdlist.sh: Scan new registration command grub_register_extcmd
40400 and grub_register_command_p1.
40402 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
40403 kern/command.c, lib/arg.c and commands/extcmd.c.
40404 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
40405 (minicmd_mod_SOURCES): New variable.
40406 (minicmd_mod_CFLAGS): Likewise.
40407 (minicmd_mod_LDFLAGS): Likewise.
40408 (extcmd_mod_SOURCES): Likewise.
40409 (extcmd_mod_CFLAGS): Likewise.
40410 (extcmd_mod_LDFLAGS): Likewise.
40411 (boot_mod_SOURCES): Removed.
40412 (boot_mod_CFLAGS): Likewise.
40413 (boot_mod_LDFLAGS): Likewise.
40415 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
40417 (kernel_img_HEADERS): Add command.h.
40418 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
40419 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
40421 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
40422 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
40423 remove the corresponding normal mode command.
40424 (normal_mod_SOURCES): Remove normal/arg.c.
40425 * conf/i386-coreboot.rmk: Likewise.
40426 * conf/i386-efi.rmk: Likewise.
40427 * conf/i386-ieee1275.rmk: Likewise.
40428 * conf/powerpc-ieee1275.rmk: Likewise.
40429 * conf/x86_64-efi.rmk: Likewise.
40431 * include/grub/arg.h: Move from here ...
40432 * include/grub/lib/arg.h: ... to here.
40434 * normal/arg.c: Move from here ...
40435 * lib/arg.c: ... to here.
40437 * commands/extcmd.c: New file.
40438 * commands/minicmd.c: Likewise.
40439 * include/grub/command.h: Likewise.
40440 * include/grub/extcmd.h: Likewise.
40441 * kern/command.c: Likewise.
40442 * kern/corecmd.c: Likewise.
40444 * kern/list.c (grub_list_iterate): Return int instead of void.
40445 (grub_list_insert): New function.
40446 (grub_prio_list_insert): Likewise.
40448 * kern/rescue.c (grub_rescue_command): Removed.
40449 (grub_rescue_command_list): Likewise.
40450 (grub_rescue_register_command): Likewise.
40451 (grub_rescue_unregister_command): Likewise.
40452 (grub_rescue_cmd_boot): Move to minicmd.c
40453 (grub_rescue_cmd_help): Likewise.
40454 (grub_rescue_cmd_info): Likewise.
40455 (grub_rescue_cmd_boot): Likewise.
40456 (grub_rescue_cmd_testload): Likewise.
40457 (grub_rescue_cmd_dump): Likewise.
40458 (grub_rescue_cmd_rmmod): Likewise.
40459 (grub_rescue_cmd_lsmod): Likewise.
40460 (grub_rescue_cmd_exit): Likewise.
40461 (grub_rescue_print_devices): Moved to corecmd.c.
40462 (grub_rescue_print_files): Likewise.
40463 (grub_rescue_cmd_ls): Likewise.
40464 (grub_rescue_cmd_insmod): Likewise.
40465 (grub_rescue_cmd_set): Likewise.
40466 (grub_rescue_cmd_unset): Likewise.
40467 (attempt_normal_mode): Use grub_command_find to get normal module.
40468 (grub_enter_rescue_mode): Use grub_register_core_commands to register
40469 commands, remove grub_rescue_register_command calls.
40471 * normal/command.c (grub_register_command): Removed.
40472 (grub_unregister_command): Likewise.
40473 (grub_command_find): Likewise.
40474 (grub_iterate_commands): Likewise.
40475 (rescue_command): Likewise.
40476 (export_command): Moved to corecmd.c.
40477 (set_command): Removed.
40478 (unset_command): Likewise.
40479 (insmod_command): Likewise.
40480 (rmmod_command): Likewise.
40481 (lsmod_command): Likewise.
40482 (grub_command_init): Likewise.
40484 * normal/completion.c (iterate_command): Use cmd->prio to check for
40486 (complete_arguments): Use grub_extcmd_t structure to find options.
40487 (grub_normal_do_completion): Change function grub_iterate_commands to
40488 grub_command_iterate.
40490 * normal/execute.c (grub_script_execute_cmd): No need to parse
40493 * normal/main.c (grub_dyncmd_dispatcher): New function.
40494 (read_command_list): Register unload commands as dyncmd.
40495 (grub_cmd_normal): Use new command interface, register rescue,
40496 unregister normal at entry, register normal, unregister rescue at exit.
40498 * include/grub/list.h (grub_list_test_t): New type.
40499 (grub_list_iterate): Return int instead of void.
40500 (grub_list_insert): New function.
40501 (GRUB_AS_NAMED_LIST_P): New macro.
40502 (GRUB_AS_PRIO_LIST): Likewise.
40503 (GRUB_AS_PRIO_LIST_P): Likewise.
40504 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
40505 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
40506 (grub_prio_list): New structure.
40507 (grub_prio_list_insert): New function.
40508 (grub_prio_list_remove): New inline function.
40510 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
40511 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
40512 (GRUB_COMMAND_FLAG_MENU): Likewise.
40513 (GRUB_COMMAND_FLAG_BOTH): Likewise.
40514 (GRUB_COMMAND_FLAG_TITLE): Likewise.
40515 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
40516 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
40517 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
40518 (grub_command): Likewise.
40519 (grub_register_command): Likewise.
40520 (grub_command_find): Likewise.
40521 (grub_iterate_commands): Likewise.
40522 (grub_command_init): Likewise.
40523 (grub_arg_parse): Likewise.
40524 (grub_arg_show_help): Likewise.
40526 * include/grub/rescue.h (grub_rescue_register_command): Removed.
40527 (grub_rescue_unregister_command): Likewise.
40529 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
40530 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
40531 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
40533 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
40534 grub_rescue_cmd_initrd.
40535 * include/grub/i386/loader.h: Likewise.
40536 * include/grub/x86_64/loader.h: Likewise.
40538 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
40540 2009-03-21 Bean <bean123ch@gmail.com>
40542 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
40543 instead of stat in mingw environment.
40545 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
40547 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
40549 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
40552 2009-03-21 Bean <bean123ch@gmail.com>
40554 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
40555 out of range error.
40557 2009-03-18 Michel Dänzer <michel@daenzer.net>
40559 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
40560 checking inode flags for EXT4_EXTENTS_FLAG.
40562 2009-03-18 Robert Millan <rmh@aybabtu.com>
40564 * loader/i386/linux.c: Include `<grub/video.h>' and
40565 `<grub/i386/pc/vbe.h>'..
40566 (grub_linux_setup_video): New function. Loosely based on the EFI one.
40567 (grub_linux32_boot): Attempt to configure video settings with
40568 grub_linux_setup_video().
40569 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
40570 to avoid grub_console_fini() which would step out of graphical mode
40573 2009-03-14 Robert Millan <rmh@aybabtu.com>
40575 Fix build on powerpc.
40576 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
40578 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
40580 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
40581 background image command.
40583 2009-03-12 Colin D Bennett <colin@gibibit.com>
40585 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
40586 (grub_gfxterm_putchar): Extract pairs of identical calls to
40587 draw_cursor out of conditional blocks.
40589 2009-03-11 Pavel Roskin <proski@gnu.org>
40591 * fs/hfs.c (grub_hfs_strncasecmp): New function.
40592 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
40594 2009-03-11 Robert Millan <rmh@aybabtu.com>
40596 * loader/i386/multiboot_elfxx.c
40597 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
40599 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
40601 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
40604 2009-03-11 Robert Millan <rmh@aybabtu.com>
40606 * loader/i386/multiboot.c (code_size): New variable.
40607 (grub_multiboot): Define offsets by adding to `code_size' rather
40608 than subtracting from `grub_multiboot_payload_size'. Provide
40609 4-byte alignment to MBI and others by increasing
40610 `boot_loader_name_length' appropriately.
40612 * loader/i386/multiboot_elfxx.c
40613 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
40615 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
40617 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
40620 2009-03-08 Robert Millan <rmh@aybabtu.com>
40622 Make loader/i386/linux.c usable on i386-pc again.
40624 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
40626 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
40629 2009-03-07 Bean <bean123ch@gmail.com>
40631 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
40634 2009-03-06 Robert Millan <rmh@aybabtu.com>
40636 Fix display issue on terminals with screen size other than 80x25
40637 (e.g. gfxterm with resolution higher than 640x480).
40639 * normal/main.c (grub_normal_init_page): Display title text in a
40640 position relative to the center of the terminal instead of relying
40641 on a hardcoded offset.
40643 2009-03-04 Robert Millan <rmh@aybabtu.com>
40645 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
40648 * Makefile.in (host_kernel): New variable.
40649 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
40650 scripts instead of just the windows one.
40651 * configure.ac: Initialize and AC_SUBST `host_kernel'.
40653 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40655 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
40657 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40658 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40659 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40660 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40661 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40662 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40664 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40666 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
40667 or if there's no space for the disk label and print the partition number on a
40670 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40672 * util/misc.c: Include <time.h>.
40673 (grub_millisleep): New function.
40675 2009-03-04 Bean <bean123ch@gmail.com>
40677 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
40678 another option -mno-red-zone.
40680 * commands/handler.c: Change module description.
40682 * kern/handler.c: Add missing space at the end of description line.
40684 * kern/list.c: Likewise.
40686 2009-03-03 Robert Millan <rmh@aybabtu.com>
40688 Move more components to the relocation area, and fix mbi pointer
40689 handling to use the destination rather than the origin (thanks to
40690 Vladimir Serbinenko for spotting).
40692 * loader/i386/multiboot.c (mbi_dest): New variable.
40693 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
40694 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
40697 2009-03-01 Bean <bean123ch@gmail.com>
40699 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
40700 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
40701 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
40702 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
40704 * loader/i386/efi/linux.c (acpi_guid): New variable.
40705 (acpi_guid): Likewise.
40706 (EBDA_SEG_ADDR): New constant.
40707 (LOW_MEM_ADDR): Likewise.
40708 (FAKE_EBDA_SEG): Likewise.
40709 (fake_bios_data): New function.
40710 (grub_linux_boot): Call fake_bios_data.
40712 2009-03-01 Bean <bean123ch@gmail.com>
40714 * commands/terminal.c: Removed.
40716 * commands/handler.c: New file.
40718 * include/grub/list.h: Likewise.
40720 * include/grub/handler.h: Likewise.
40722 * kern/list.c: Likewise.
40724 * kern/handler.c: Likewise.
40726 * kern/term.h: Include header file <grub/handler.h>.
40727 (grub_term_input): Move next field to the beginning.
40728 (grub_term_output): Likewise.
40729 (grub_term_input_class): New variable.
40730 (grub_term_output_class): Likewise.
40731 (grub_term_register_input): Changed to inline function.
40732 (grub_term_register_output): Likewise.
40733 (grub_term_unregister_input): Likewise.
40734 (grub_term_unregister_output): Likewise.
40735 (grub_term_set_current_input): Likewise.
40736 (grub_term_set_current_output): Likewise.
40737 (grub_term_get_current_input): Likewise.
40738 (grub_term_get_current_output): Likewise.
40739 (grub_term_iterate_input): Removed.
40740 (grub_term_iterate_output): Likewise.
40742 * kern/term.c (grub_term_list_input): Removed.
40743 (grub_term_list_output): Likewise.
40744 (grub_term_input_class): New variable.
40745 (grub_term_output_class): Likewise.
40746 (grub_cur_term_input): Change variable as macro.
40747 (grub_cur_term_output): Likewise.
40748 (grub_term_register_input): Removed.
40749 (grub_term_register_output): Likewise.
40750 (grub_term_unregister_input): Likewise.
40751 (grub_term_unregister_output): Likewise.
40752 (grub_term_set_current_input): Likewise.
40753 (grub_term_set_current_output): Likewise.
40754 (grub_term_iterate_input): Likewise.
40755 (grub_term_iterate_output): Likewise.
40756 (grub_term_get_current_input): Likewise.
40757 (grub_term_get_current_output): Likewise.
40759 * util/grub-editenv.c: Include header file <grub/handler.h>.
40760 (grub_term_get_current_input): Removed.
40761 (grub_term_get_current_output): Likewise.
40762 (grub_term_input_class): New variable.
40763 (grub_term_output_class): Likewise.
40765 * util/grub-fstest.c (grub_term_get_current_input): Removed.
40766 (grub_term_get_current_output): Likewise.
40767 (grub_term_input_class): New variable.
40768 (grub_term_output_class): Likewise.
40770 * util/grub-probe.c (grub_term_get_current_input): Removed.
40771 (grub_term_get_current_output): Likewise.
40772 (grub_term_input_class): New variable.
40773 (grub_term_output_class): Likewise.
40775 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
40776 (grub_term_get_current_output): Likewise.
40777 (grub_term_input_class): New variable.
40778 (grub_term_output_class): Likewise.
40780 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
40781 (terminal_mod_SOURCES): Likewise.
40782 (terminal_mod_CFLAGS): Likewise.
40783 (terminal_mod_LDFLAGS): Likewise.
40785 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
40787 (kernel_img_SOURCES): Add list.c and handler.c.
40788 (kernel_img_HEADERS): Add list.h and handler.h.
40790 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40792 (kernel_mod_SOURCES): Add list.c and handler.c.
40793 (kernel_mod_HEADERS): Add list.h and handler.h.
40795 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40797 (kernel_elf_SOURCES): Add list.c and handler.c.
40798 (kernel_elf_HEADERS): Add list.h and handler.h.
40800 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40802 (kernel_elf_SOURCES): Add list.c and handler.c.
40803 (kernel_elf_HEADERS): Add list.h and handler.h.
40805 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40807 (kernel_mod_SOURCES): Add list.c and handler.c.
40808 (kernel_mod_HEADERS): Add list.h and handler.h.
40810 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40812 (kernel_elf_SOURCES): Add list.c and handler.c.
40813 (kernel_elf_HEADERS): Add list.h and handler.h.
40815 2009-02-27 Robert Millan <rmh@aybabtu.com>
40817 Factorize elf32 / elf64 code in Multiboot loader. This will
40818 prevent it from getting out of sync again.
40820 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40821 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40822 grub_multiboot_load_elf64): Move from here ...
40823 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40824 grub_multiboot_load_elf): ... to here (new file).
40826 2009-02-27 Robert Millan <rmh@aybabtu.com>
40828 * util/grub.d/10_linux.in: Rename "single-user mode" to
40831 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40833 Don't leak in SCSI code.
40834 * disk/scsi.c (grub_scsi_close): free `scsi'.
40836 2009-02-27 Robert Millan <rmh@aybabtu.com>
40838 * loader/i386/pc/multiboot.c: Move from here ...
40839 * loader/i386/multiboot.c: ... to here. Update all users.
40841 2009-02-27 Robert Millan <rmh@aybabtu.com>
40843 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40844 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40846 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
40848 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40851 2009-02-27 Robert Millan <rmh@aybabtu.com>
40853 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40854 `0x' qualifier as 0 when base is specified as parameter).
40856 2009-02-24 Bean <bean123ch@gmail.com>
40858 * configure.ac: Check for -mcmodel=large in x86_64 target.
40860 * include/grub/efi/api.h (efi_call_10): New macro.
40861 (efi_wrap_10): New function.
40863 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40864 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40865 (GRUB_PE32_REL_BASED_LOW): Likewise.
40866 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40867 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40868 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40869 (GRUB_PE32_REL_BASED_SECTION): Likewise.
40870 (GRUB_PE32_REL_BASED_REL): Likewise.
40871 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
40872 (GRUB_PE32_REL_BASED_DIR64): Likewise.
40873 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
40875 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
40878 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
40879 (efi_wrap_10): New function.
40881 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
40883 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
40884 MB/MBP model (NV chipset).
40885 (devdata_devs): Add devpath_5 to the list.
40887 * load/i386/efi/linux.c (video_base): Remove variable.
40888 (RGB_MASK): New macro.
40889 (RGB_MAGIC): Likewise.
40890 (LINE_MIN): Likewise.
40891 (LINE_MAX): Likewise.
40892 (FBTEST_STEP): Likewise.
40893 (FBTEST_COUNT): Likewise.
40894 (fb_list): New variable.
40895 (grub_find_video_card): Remove function.
40896 (find_framebuf): New function.
40897 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
40900 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
40901 problem for x86_64.
40903 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
40905 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
40907 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
40910 2009-02-22 Robert Millan <rmh@aybabtu.com>
40912 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
40913 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
40914 in our relocation, instead of using it directly from heap. Also
40915 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
40917 2009-02-21 Robert Millan <rmh@aybabtu.com>
40919 Implement USB keyboard support (based on patch by Marco Gerards)
40921 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
40922 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
40923 (usb_keyboard_mod_LDFLAGS): New variables.
40925 * term/usb_keyboard.c: New file.
40927 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
40929 Corrected wrong declaration
40931 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
40933 2009-02-14 Christian Franke <franke@computer.org>
40935 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
40936 (grub_lspci_iter): Print class code and programming interface byte.
40938 2009-02-14 Christian Franke <franke@computer.org>
40940 * gendistlist.sh: Ignore `.svn' directories.
40942 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
40944 * fs/fat.c: Add 2009 to Copyright line.
40946 2009-02-14 Christian Franke <franke@computer.org>
40948 * commands/hdparm.c: New file. Provides `hdparm' command
40949 which sends ATA commands via grub_disk_ata_pass_through ().
40951 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
40953 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
40954 and <grub/cpu/io.h> to include/grub/ata.h.
40955 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
40956 (GRUB_CDROM_SECTOR_SIZE): Remove.
40957 (GRUB_ATA_*): Move to include/grub/ata.h.
40958 (GRUB_ATAPI_*): Likewise.
40959 (enum grub_ata_commands): Likewise.
40960 (enum grub_ata_timeout_milliseconds): Likewise.
40961 (struct grub_ata_device): Likewise.
40962 (grub_ata_regset): Likewise.
40963 (grub_ata_regget): Likewise.
40964 (grub_ata_regset2): Likewise.
40965 (grub_ata_regget2): Likewise.
40966 (grub_ata_check_ready): Likewise.
40967 (grub_ata_wait_not_busy): Remove static, exported in
40968 include/grub/ata.h.
40969 (grub_ata_wait_drq): Likewise.
40970 (grub_ata_pio_read): Likewise.
40972 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
40973 function for hdparm.mod.
40975 * include/grub/ata.h: New file, contains declarations from
40977 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
40979 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
40980 (grub_disk_ata_pass_through): New exported variable.
40982 * kern/disk.c (grub_disk_ata_pass_through): New variable.
40984 2009-02-13 Colin D Bennett <colin@gibibit.com>
40986 Support multiple fallback entries, and provide an API to support
40987 executing default+fallback menu entries. Renamed the `terminal' menu
40990 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
40991 variable declaration.
40992 (grub_menu_execute_callback): New structure declaration.
40993 (grub_menu_execute_callback_t): New typedef.
40994 (grub_menu_execute_with_fallback): New function declaration.
40995 (grub_menu_get_entry): Likewise.
40996 (grub_menu_get_timeout): Likewise.
40997 (grub_menu_set_timeout): Likewise.
40999 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
41001 * normal/menu.c (grub_wait_after_message): Moved to
41002 `normal/menu_text.c'.
41003 (draw_border): Likewise.
41004 (print_message): Likewise.
41005 (print_entry): Likewise.
41006 (print_entries): Likewise.
41007 (grub_menu_init_page): Likewise.
41008 (get_entry_number): Likewise.
41009 (print_timeout): Likewise.
41010 (run_menu): Likewise.
41011 (grub_menu_execute_entry): Likewise.
41012 (show_text_menu): Likewise.
41013 (get_and_remove_first_entry_number): New function.
41014 (grub_menu_execute_with_fallback): Likewise.
41015 (get_entry): Renamed to ...
41016 (grub_menu_get_entry): .. this and made it global.
41017 (get_timeout): Renamed to ...
41018 (grub_menu_get_timeout): ... this and made it global.
41019 (set_timeout): Renamed to ...
41020 (grub_menu_set_timeout): ... this and made it global.
41021 (grub_normal_terminal_menu_viewer): Renamed to ...
41022 (grub_normal_text_menu_viewer): ... this.
41024 * normal/menu_text.c: New file. Extracted text-menu-specific code
41025 from normal/menu.c.
41027 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
41028 (normal_mod_SOURCES): Likewise.
41030 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41031 (normal_mod_SOURCES): Likewise.
41033 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41034 (normal_mod_SOURCES): Likewise.
41036 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
41037 (normal_mod_SOURCES): Likewise.
41039 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41040 (normal_mod_SOURCES): Likewise.
41042 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41043 (normal_mod_SOURCES): Likewise.
41045 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41046 (normal_mod_SOURCES): Likewise.
41048 2009-02-11 Robert Millan <rmh@aybabtu.com>
41050 * util/grub.d/00_header.in: Update old reference to `font' command.
41052 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
41054 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
41056 Based on patch from Javier Martín.
41058 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
41060 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
41061 to avoid false positives with FAT.
41062 (grub_fstest_SOURCES): Likewise.
41063 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41064 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41065 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41066 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41067 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41068 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41070 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
41072 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
41073 bpb.version_specific.fat12_or_fat16.fstype and
41074 bpb.version_specific.fat32.fstype.
41076 2009-02-08 Robert Millan <rmh@aybabtu.com>
41078 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
41080 2009-02-08 Robert Millan <rmh@aybabtu.com>
41082 * Makefile.in (host_os, host_cpu): New variables.
41083 (target_os): Remove. Update all users.
41085 2009-02-08 Marco Gerards <marco@gnu.org>
41087 * Makefile.in (enable_grub_emu_usb): New variable.
41088 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
41089 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
41090 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
41091 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
41092 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
41093 `usbtest.mod' and `usbms.mod'.
41094 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
41095 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
41096 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
41097 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
41098 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
41101 * disk/usbms.c: New file.
41103 * include/grub/usb.h: Likewise.
41105 * include/grub/usbtrans.h: Likewise.
41107 * include/grub/usbdesc.h: Likewise.
41109 * bus/usb/usbtrans.c: Likewise.
41111 * bus/usb/ohci.c: Likewise.
41113 * bus/usb/uhci.c: Likewise.
41115 * bus/usb/usbhub.c: Likewise.
41117 * bus/usb/usb.c: Likewise.
41119 * commands/usbtest.c: Likewise.
41121 * util/usb.c: Likewise.
41123 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
41125 * configure.ac: Test for libusb presence.
41127 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
41129 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
41131 * kern/mm.c: Add more comments.
41133 2009-02-08 Robert Millan <rmh@aybabtu.com>
41135 Patch from Javier Martín.
41136 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
41137 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
41139 2009-02-08 Robert Millan <rmh@aybabtu.com>
41141 * fs/cpio.c: Split tar functionality to ...
41142 * fs/tar.c: ... here (new file). Update all users.
41144 2009-02-07 Robert Millan <rmh@aybabtu.com>
41146 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
41147 backward-incompatible features.
41149 Based on patch from Javier Martín, with some adjustments.
41151 2009-02-07 Michael Scherer <misc@mandriva.org>
41153 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
41155 2009-02-07 Robert Millan <rmh@aybabtu.com>
41157 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
41158 position of `disk/lvm.c' to ensure grub_init_all() always picks it
41159 after the RAID stuff.
41161 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
41163 Fixes problem when running vbetest command as reported by
41164 Vladimir Serbinenko <phcoder@gmail.com>.
41166 * (grub_vbe_set_video_mode): Fixed problem with text modes.
41168 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
41170 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
41171 /dev/md/NpN style mdraid devices.
41173 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41175 * util/unifont2pff.rb: Remove.
41177 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41179 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
41182 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41184 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
41185 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41186 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41187 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41188 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41189 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41190 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41192 2009-02-02 Christian Franke <franke@computer.org>
41194 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
41196 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
41198 * INSTALL: Note that we now require at least autoconf 2.59 and
41199 that LZO is optional.
41201 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41203 Base on patch on bug #24154 created by Tomas Tintera
41204 <trosos@seznam.cz>.
41206 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
41208 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41210 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
41211 <bero@arklinux.org>.
41213 * normal/parser.y (script_init): Add missing semicolon.
41215 2009-01-31 Colin D Bennett <colin@gibibit.com>
41217 * normal/main.c: Add include to grub/menu_viewer.h.
41218 (free_menu_entry_classes): Added.
41219 (grub_normal_menu_addentry): Added class property handling.
41220 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
41221 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
41223 * normal/menu_viewer.c: New file.
41225 * normal/menu.c (run_menu_entry): Renamed to ...
41226 (grub_menu_execute_entry): ... this and made it as global.
41227 (grub_menu_run): Renamed to ...
41228 (show_text_menu): ... this and made it local.
41229 (show_text_menu): Adapt to new function names.
41230 (grub_normal_terminal_menu_viewer): New global variable.
41232 * include/grub/menu.h: New file.
41234 * include/grub/menu_viewer.h: New file.
41236 * include/grub/normal.h: Added include to grub/menu.h.
41237 (grub_menu_entry): Moved to include/grub/menu.h.
41238 (grub_menu_entry_t): Likewise.
41239 (grub_menu): Likewise.
41240 (grub_menu_t): Likewise.
41241 (grub_normal_terminal_menu_viewer): Added.
41242 (grub_menu_execute_entry): Likewise.
41243 (grub_menu_run): Removed.
41245 * DISTLIST: Added include/grub/menu.h.
41246 Added include/grub/menu_viewer.h.
41247 Added normal/menu_viewer.c.
41249 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
41251 * normal/execute.c (grub_script_execute_menuentry): Changed to use
41252 arglist for menutitle arguments.
41254 * normal/main.c (grub_normal_menu_addentry): Likewise.
41256 * normal/parser.y (menuentry): Likewise.
41258 * normal/script.c (grub_script_create_cmdmenu): Likewise.
41260 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
41261 (grub_script_create_cmdmenu): Likewise.
41263 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
41265 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
41268 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
41270 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
41272 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
41274 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41276 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41278 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41280 2009-01-30 Christian Franke <franke@computer.org>
41282 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
41283 in option help text.
41285 2009-01-27 Pavel Roskin <proski@gnu.org>
41287 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
41289 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41291 * commands/lsmmap.c: Add include to grub/machine/memory.h.
41293 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
41295 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
41296 unregister function.
41298 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41300 * disk/scsi.c (grub_scsi_read): Fix sign problem.
41302 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
41304 * util/grub-mkfont.c (usage): Fix typo.
41306 * util/elf/grub-mkimage.c (load_modules): Fix warning.
41308 2009-01-26 Daniel Mierswa <impulze@impulze.org>
41310 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
41312 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
41314 * kern/misc.c (grub_strcasecmp): New function.
41315 (grub_strcasecmp): Use grub_size_t instead of int for length.
41317 * include/grub/misc.h: Update function prototypes.
41319 2009-01-26 Robert Millan <rmh@aybabtu.com>
41321 * configure.ac: Fix cross-compilation check.
41323 2009-01-22 Christian Franke <franke@computer.org>
41325 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
41326 (precision) digit string. Allow `.format2' without `format1' (width).
41327 Limit input chars for `%s' output to `format2' if specified. This is
41328 compatible with standard printf ().
41330 2009-01-22 Christian Franke <franke@computer.org>
41332 * disk/ata.c (grub_ata_wait_status): Replace by ...
41333 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
41334 other status bits may be invalid while BSY is asserted.
41335 (grub_ata_check_ready): New function.
41336 (grub_ata_cmd): Removed.
41337 (grub_ata_wait_drq): New function.
41338 (grub_ata_strncpy): Remove inline.
41339 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
41340 and error check now done by grub_ata_wait_drq ().
41341 (grub_ata_pio_write): Likewise.
41342 (grub_atapi_identify): Set DEV before check for !BSY. Use
41343 grub_ata_wait_drq () to wait for data.
41344 (grub_ata_device_initialize): Add status register check to
41345 detect missing SATA slave devices. Add debug messages.
41346 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
41347 (grub_atapi_packet): Set DEV before check for !BSY. Replace
41348 transfer loop by grub_ata_pio_write ().
41349 (grub_ata_identify): Set DEV before check for !BSY. Use
41350 grub_ata_wait_drq () to wait for data.
41351 (grub_ata_setaddress): Set DEV before check for !BSY.
41352 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
41353 read/write in one loop. Fix invalid command on write. Fix incomplete
41354 command on (size % batch) == 0. Add missing error check after write of
41355 last block. Add debug messages.
41356 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
41358 2009-01-19 Christian Franke <franke@computer.org>
41360 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
41361 (GRUB_ATAPI_IREASON_*): Likewise.
41362 (grub_ata_pio_write): Fix timeout error return.
41363 (grub_atapi_identify): Add grub_ata_wait () after cmd.
41364 (grub_atapi_wait_drq): New function.
41365 (grub_atapi_packet): New parameter `size'.
41366 Use grub_atapi_wait_drq () and direct write instead of
41367 grub_ata_pio_write ().
41368 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
41369 reads the number of bytes requested by the device for each DRQ
41371 (grub_atapi_write): Remove old implementation, return not
41372 implemented instead.
41374 2009-01-19 Christian Franke <franke@computer.org>
41376 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
41377 of 512 to calculate data size.
41378 (grub_scsi_read12): Likewise.
41379 (grub_scsi_write10): Likewise.
41380 (grub_scsi_write12): Likewise.
41381 (grub_scsi_read): Adjust size according to blocksize.
41382 Add checks for invalid blocksize and unaligned transfer.
41384 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
41386 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
41388 * term/gfxterm.c (write_char): Fix background rendering for wide
41391 2009-01-19 Robert Millan <rmh@aybabtu.com>
41393 * config.guess: Update to latest version from config git.
41394 * config.sub: Likewise.
41396 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
41398 * Makefile.in: Change font compilation to use new grub-mkfont instead
41401 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
41402 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41403 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41404 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41405 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41406 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41407 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41408 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41409 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41411 2009-01-16 Christian Franke <franke@computer.org>
41413 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
41414 (enum grub_ata_timeout_milliseconds): New enum.
41415 (grub_ata_wait_status): Add parameter milliseconds.
41416 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
41417 recovery from timed-out commands.
41418 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
41419 return grub_errno instead of REG_ERROR.
41420 (grub_ata_pio_write): Add parameter milliseconds.
41421 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
41422 Pass milliseconds to grub_ata_wait_status () and
41423 grub_ata_pio_read ().
41424 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
41425 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
41426 grub_ata_wait_status (). Fix IDENTIFY timeout check.
41427 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
41428 It is not suitable for device detection, because DEV bit is ignored,
41429 the command may run too long, and not all devices set the signature
41431 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
41432 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
41433 Fix device selection, DEV bit must be set first to address the registers
41434 of the correct device.
41435 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
41436 grub_ata_pio_read/write ().
41437 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
41438 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
41440 2009-01-13 Carles Pina i Estany <carles@pina.cat>
41442 * util/grub-editenv.c (main): Use fseeko(), not fseek().
41444 2009-01-13 Bean <bean123ch@gmail.com>
41446 * util/grub-mkfont.c (write_font): forget to remove some debug code.
41448 2009-01-13 Bean <bean123ch@gmail.com>
41450 * Makefile.in: (enable_grub_mkfont): New variable.
41451 (freetype_cflags): Likewise.
41452 (freetype_libs): Likewise.
41454 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
41455 (grub_mkfont_SOURCES): New variable.
41456 (grub_mkfont_CFLAGS): Likewise.
41457 (grub_mkfont_LDFLAGS): Likewise.
41459 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
41460 library if `--enable-grub-mkfont' is requested.
41461 (enable_grub_mkfont): New variable.
41462 (freetype_cflags): Likewise.
41463 (freetype_libs): Likewise.
41465 * util/grub-mkfont.c: New file.
41467 2009-01-12 Christian Franke <franke@computer.org>
41469 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
41470 mode check. Fix setting of compat_use[].
41472 2009-01-10 Robert Millan <rmh@aybabtu.com>
41474 Update a few copyright years which we forgot to do in 2008 (only for
41475 files whose changes made in 2008 were copyright-significant)
41477 * Makefile.in: Add 2008 to Copyright line.
41478 * disk/ieee1275/ofdisk.c: Likewise.
41479 * disk/efi/efidisk.c: Likewise.
41480 * kern/dl.c: Likewise.
41481 * kern/sparc64/ieee1275/init.c: Likewise.
41482 * kern/mm.c: Likewise.
41483 * kern/efi/mm.c: Likewise.
41484 * boot/i386/pc/boot.S: Likewise.
41485 * genfslist.sh: Likewise.
41486 * fs/iso9660.c: Likewise.
41487 * fs/hfs.c: Likewise.
41488 * fs/jfs.c: Likewise.
41489 * fs/minix.c: Likewise.
41490 * fs/ufs.c: Likewise.
41491 * gensymlist.sh.in: Likewise.
41492 * genkernsyms.sh.in: Likewise.
41493 * include/grub/misc.h: Likewise.
41494 * include/grub/types.h: Likewise.
41495 * include/grub/symbol.h: Likewise.
41496 * include/grub/elf.h: Likewise.
41497 * include/grub/kernel.h: Likewise.
41498 * include/grub/disk.h: Likewise.
41499 * include/grub/dl.h: Likewise.
41500 * include/grub/i386/linux.h: Likewise.
41501 * include/grub/i386/pc/biosdisk.h: Likewise.
41502 * include/grub/efi/api.h: Likewise.
41503 * include/grub/efi/pe32.h: Likewise.
41504 * include/grub/util/misc.h: Likewise.
41505 * normal/execute.c: Likewise.
41506 * normal/arg.c: Likewise.
41507 * normal/completion.c: Likewise.
41508 * normal/lexer.c: Likewise.
41509 * normal/parser.y: Likewise.
41510 * normal/misc.c: Likewise.
41511 * commands/i386/pc/vbeinfo.c: Likewise.
41512 * commands/hexdump.c: Likewise.
41513 * commands/terminal.c: Likewise.
41514 * commands/ls.c: Likewise.
41515 * commands/help.c: Likewise.
41516 * partmap/pc.c: Likewise.
41517 * loader/efi/chainloader.c: Likewise.
41518 * loader/multiboot_loader.c: Likewise.
41519 * loader/i386/pc/multiboot2.c: Likewise.
41520 * term/efi/console.c: Likewise.
41521 * term/i386/pc/serial.c: Likewise.
41522 * util/lvm.c: Likewise.
41523 * util/console.c: Likewise.
41524 * util/i386/efi/grub-mkimage.c: Likewise.
41525 * util/raid.c: Likewise.
41527 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
41529 * commands/videotest.c: Removed include to grub/machine/memory.h.
41531 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
41532 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
41533 (video_mod_SOURCES): Removed.
41534 (video_mod_CFLAGS): Likewise.
41535 (video_mod_LDFLAGS): Likewise.
41536 (gfxterm_mod_SOURCES): Likewise.
41537 (gfxterm_mod_CFLAGS): Likewise.
41538 (gfxterm_mod_LDFLAGS): Likewise.
41539 (videotest_mod_SOURCES): Likewise.
41540 (videotest_mod_CFLAGS): Likewise.
41541 (videotest_mod_LDFLAGS): Likewise.
41542 (bitmap_mod_SOURCES): Likewise.
41543 (bitmap_mod_CFLAGS): Likewise.
41544 (bitmap_mod_LDFLAGS): Likewise.
41545 (tga_mod_SOURCES): Likewise.
41546 (tga_mod_CFLAGS): Likewise.
41547 (tga_mod_LDFLAGS): Likewise.
41548 (jpeg_mod_SOURCES): Likewise.
41549 (jpeg_mod_CFLAGS): Likewise.
41550 (jpeg_mod_LDFLAGS): Likewise.
41551 (png_mod_SOURCES): Likewise.
41552 (png_mod_CFLAGS): Likewise.
41553 (png_mod_LDFLAGS): Likewise.
41555 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
41556 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
41557 (video_mod_SOURCES): Added.
41558 (video_mod_CFLAGS): Likewise.
41559 (video_mod_LDFLAGS): Likewise.
41560 (videotest_mod_SOURCES): Likewise.
41561 (videotest_mod_CFLAGS): Likewise.
41562 (videotest_mod_LDFLAGS): Likewise.
41563 (bitmap_mod_SOURCES): Likewise.
41564 (bitmap_mod_CFLAGS): Likewise.
41565 (bitmap_mod_LDFLAGS): Likewise.
41566 (tga_mod_SOURCES): Likewise.
41567 (tga_mod_CFLAGS): Likewise.
41568 (tga_mod_LDFLAGS): Likewise.
41569 (jpeg_mod_SOURCES): Likewise.
41570 (jpeg_mod_CFLAGS): Likewise.
41571 (jpeg_mod_LDFLAGS): Likewise.
41572 (png_mod_SOURCES): Likewise.
41573 (png_mod_CFLAGS): Likewise.
41574 (png_mod_LDFLAGS): Likewise.
41575 (gfxterm_mod_SOURCES): Likewise.
41576 (gfxterm_mod_CFLAGS): Likewise.
41577 (gfxterm_mod_LDFLAGS): Likewise.
41579 * term/gfxterm.c: Removed include to grub/machine/memory.h,
41580 grub/machine/console.h.
41582 2009-01-04 Jerone Young <jerone@gmail.com>
41584 Make on screen instructions clearer
41586 Based on patch created by Jidanni <jidanni@jidanni.org>
41588 * normal/menu.c: print clearer instructions on the screen
41590 2009-01-02 Colin D Bennett <colin@gibibit.com>
41594 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
41595 build system and fixed gfxterm.c to work with different sized fonts.
41597 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
41599 * configure: Re-generated.
41601 * DISTLIST: Removed font/manager.c.
41603 Added font/font_cmd.c.
41605 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
41608 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
41610 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
41612 * kern/term.c: Changed users of grub_utf8_to_ucs4.
41614 * normal/menu.c: Likewise.
41616 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
41617 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
41619 * include/grub/font.h: Replaced with new file.
41621 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
41622 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
41623 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
41624 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
41625 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
41626 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
41627 fg_red, fg_green, fg_blue, fg_alpha.
41628 (grub_video_adapter): Removed blit_glyph.
41629 (grub_video_blit_glyph): Removed.
41631 * font/manager.c: Removed file.
41633 * font/font.c: New file.
41635 * font/font_cmd.c: Likewise.
41637 * video/video.c (grub_video_blit_glyph): Removed.
41639 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
41640 (grub_video_vbe_map_rgba): Likewise.
41641 (grub_video_vbe_unmap_color_int): Likewise.
41642 (grub_video_vbe_blit_glyph): Removed.
41643 (grub_video_vbe_adapter): Removed blit_glyph.
41645 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
41646 (get_pixel): Likewise.
41647 (set_pixel): Likewise.
41649 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
41651 * term/gfxterm.c: Adapted to new font engine.
41653 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
41655 * term/i386/pc/vga.c: Likewise.
41657 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
41659 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41661 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41663 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41665 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41667 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41669 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41671 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41673 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41675 * util/grub.d/00_header.in: Changed to use new loadfont command.
41677 * util/grub-mkconfig_lib.in: Changed font extension.
41679 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
41681 * util/getroot.c (grub_util_get_grub_dev): Add support for
41682 /dev/md/dNNpNN style partitionable mdraid devices.
41684 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
41686 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
41687 at a time limit of the PXE TFTP API correctly.
41688 (grub_pxefs_close): Likewise.
41690 2008-11-29 Robert Millan <rmh@aybabtu.com>
41692 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
41693 grub_ata_device_initialize() calls.
41695 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
41697 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
41699 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
41701 2008-11-28 Robert Millan <rmh@aybabtu.com>
41703 Fix build on powerpc-ieee1275. Based on patch created by
41704 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
41705 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41706 `kern/ieee1275/mmap.c'.
41707 * include/grub/powerpc/ieee1275/memory.h: New file.
41709 Provide grub-install on coreboot.
41710 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
41711 (grub_install_SOURCES): New variable.
41712 * util/i386/pc/grub-install.in: Add a few condition checks to make it
41713 usable on coreboot.
41715 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
41717 * util/grub-fstest.c (grub_term_get_current_input): Change return type
41718 to `grub_term_input_t'.
41719 (grub_term_get_current_output): Change return type to
41720 `grub_term_output_t'.
41722 2008-11-22 Robert Millan <rmh@aybabtu.com>
41724 Fix breakage on coreboot due to declaration mismatch.
41725 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
41726 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
41727 grub_vga_text_cls().
41729 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
41730 comments. Avoid copying one more byte than necessary (just in case).
41732 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
41733 to 0x200000 (avoids trouble with some OFW implementations, and matches
41734 with the one in Yaboot).
41735 Reported by Manoel Abranches
41737 2008-11-20 Robert Millan <rmh@aybabtu.com>
41739 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
41740 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
41742 * util/grub-mkconfig_lib.in (grub_warn): New function.
41743 (convert_system_path_to_grub_path): Use grub_warn() when issuing
41744 warnings, to obtain consistent formatting.
41745 * util/grub.d/00_header.in: Likewise.
41746 * util/update-grub_lib.in: Likewise.
41748 * loader/i386/linux.c (allocate_pages): Fix a warning.
41749 Move comment text to `#error' stanza.
41751 Harmonize ieee1275's grub_available_iterate() with the generic
41752 grub_machine_mmap_iterate() interface (fixes a recently-introduced
41753 build problem on i386-ieee1275):
41754 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
41755 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
41756 parameter `type'. Update all users of this function.
41757 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41758 `kern/ieee1275/mmap.c'.
41759 * kern/ieee1275/init.c
41760 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
41762 (grub_machine_mmap_iterate): ... this.
41763 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
41764 return type to `grub_err_t'. Update all implementations of this
41765 function prototype.
41766 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
41769 Add `lsmmap' command (lists firmware-provided memory map):
41770 * commands/lsmmap.c: New file.
41771 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
41772 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
41774 * conf/powerpc-ieee1275.rmk: Likewise.
41775 * conf/i386-coreboot.rmk: Likewise.
41776 * conf/i386-ieee1275.rmk: Likewise.
41778 2008-11-19 Robert Millan <rmh@aybabtu.com>
41780 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
41781 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
41782 constraints to initrd allocation (based on code from
41783 loader/i386/pc/linux.c). Without them, initrd was allocated too high
41784 for Linux to find it.
41786 2008-11-14 Robert Millan <rmh@aybabtu.com>
41788 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
41789 order to cope with duplicate slashes.
41791 2008-11-14 Robert Millan <rmh@aybabtu.com>
41793 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
41794 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
41795 don't want to mess with lower memory, because it is used in the Linux
41798 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
41799 an appropriate place in lower memory, between 0x10000 and 0x90000,
41800 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41801 is in our heap (probably as a result of it being corrupted during
41802 decompression). Add #error instance with comment to explain why this
41803 loader isn't currently usable on PC/BIOS.
41805 2008-11-14 Robert Millan <rmh@aybabtu.com>
41807 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
41808 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
41810 2008-11-12 Robert Millan <rmh@aybabtu.com>
41812 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41814 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41815 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41817 * include/grub/i386/pc/memory.h: ... to here.
41819 2008-11-12 Robert Millan <rmh@aybabtu.com>
41821 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41824 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41825 (grub_console_cur_color, grub_console_real_putchar)
41826 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41827 (grub_console_setcolorstate, grub_console_setcolor)
41828 (grub_console_getcolor): Move from here ...
41829 * include/grub/i386/vga_common.h: ... to here (new file).
41831 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41832 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41833 `<grub/i386/io.h>'.
41834 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41835 `<grub/i386/vga_common.h>'.
41837 2008-11-12 Robert Millan <rmh@aybabtu.com>
41839 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41840 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41841 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41843 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41844 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41846 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41847 grub_console_init() with call to grub_vga_text_init().
41848 (grub_machine_fini): Replace call to
41849 grub_console_fini() with call to grub_vga_text_fini() and
41850 grub_at_keyboard_fini().
41852 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41853 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41854 (grub_console_setcolorstate, grub_console_setcolor)
41855 (grub_console_getcolor): New function prototypes.
41857 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41858 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41859 (grub_vga_text_setcursor): Static-ize.
41860 (grub_vga_text_term): New structure.
41861 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41863 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41864 (grub_console_cur_color, grub_console_standard_color)
41865 (grub_console_normal_color, grub_console_highlight_color)
41866 (map_char, grub_console_putchar, grub_console_getcharwidth)
41867 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41868 (grub_console_getcolor): Move from here ...
41869 * term/i386/vga_common.c: ... to here (same function names).
41871 2008-11-12 Robert Millan <rmh@aybabtu.com>
41873 Use newly-added Multiboot support in coreboot.
41875 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41876 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
41878 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
41879 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
41880 (codestart): Store the MBI in `startup_multiboot_info' when we're
41881 being loaded using Multiboot.
41883 * kern/i386/coreboot/init.c (grub_machine_init): Move
41884 grub_at_keyboard_init() call to beginning of function (useful for
41885 debugging). Call grub_machine_mmap_init() before attempting to use
41886 grub_machine_mmap_iterate().
41887 (grub_lower_mem, grub_upper_mem): Move from here ...
41888 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
41891 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
41892 function prototype.
41894 2008-11-12 Robert Millan <rmh@aybabtu.com>
41896 Fix a regression introduced by the at_keyboard.mod split. Because
41897 some terminals are default on some platforms and non-default on
41898 others, the first terminal being registered determines which is
41899 going to be default.
41901 * kern/term.c (grub_term_register_input): If this is the first
41902 terminal being registered, set it as the current one.
41903 (grub_term_register_output): Likewise.
41905 * term/efi/console.c (grub_console_init): Do not call
41906 grub_term_set_current_output() or grub_term_set_current_input().
41907 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
41908 * term/i386/pc/console.c (grub_console_init): Likewise.
41909 (grub_console_fini): Do not call grub_term_set_current_input()
41910 (but leave grub_term_set_current_output() to restore text mode).
41912 2008-11-10 Robert Millan <rmh@aybabtu.com>
41914 * util/grub.d/00_header.in: Add backward compatibility check for
41915 versions of terminal.mod that don't understand `terminal_input' or
41918 2008-11-09 Robert Millan <rmh@aybabtu.com>
41920 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
41921 `terminal_input' / `terminal_output', not `terminal'.
41923 2008-11-08 Robert Millan <rmh@aybabtu.com>
41925 * Makefile.in (include_DATA): Fix srcdir=. assumption.
41926 (DISTCLEANFILES): Add `build_env.mk'.
41928 2008-11-08 Robert Millan <rmh@aybabtu.com>
41930 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
41931 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41932 members. Update all users.
41933 * util/console.c (grub_ncurses_term): Split in ...
41934 (grub_ncurses_term_input): ... this, and ...
41935 (grub_ncurses_term_output): ... this. Update all users.
41936 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
41938 2008-11-08 Robert Millan <rmh@aybabtu.com>
41940 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
41941 (PKGDATA): Add $(pkgdata_SRCDIR).
41942 (pkglib_BUILDDIR): New variable.
41943 (pkgdata_SRCDIR): New variable.
41944 (build_env.mk): New target.
41945 (include_DATA): New variable.
41946 (install-local): Install $(include_DATA) files in $(includedir).
41948 2008-11-07 Pavel Roskin <proski@gnu.org>
41950 * gendistlist.sh: Use C locale for sorting to ensure consistent
41951 output on all systems.
41953 * util/grub.d/00_header.in: Remove incorrect space before
41956 2008-11-07 Robert Millan <rmh@aybabtu.com>
41958 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
41960 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
41961 * loader/multiboot_loader.c (find_multi_boot2_header): New function
41962 (based on find_multi_boot1_header).
41963 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
41964 using find_multi_boot2_header(), and abort if neither Multiboot or
41965 Multiboot headers were found.
41967 2008-11-07 Robert Millan <rmh@aybabtu.com>
41969 Modularize at_keyboard.mod:
41971 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
41972 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
41973 (at_keyboard_mod_LDFLAGS): New variables.
41975 Actual terminal split:
41977 * include/grub/term.h (struct grub_term): Split in ...
41978 (struct grub_term_input): ... this, and ...
41979 (struct grub_term_output): ... this. Update all users.
41980 (grub_term_set_current): Split in ...
41981 (grub_term_set_current_input): ... this, and ...
41982 (grub_term_set_current_output): ... this.
41983 (grub_term_get_current): Split in ...
41984 (grub_term_get_current_input): ... this, and ...
41985 (grub_term_get_current_output): ... this.
41986 (grub_term_register): Split in ...
41987 (grub_term_register_input): ... this, and ...
41988 (grub_term_register_output): ... this.
41989 (grub_term_unregister): Split in ...
41990 (grub_term_unregister_input): ... this, and ...
41991 (grub_term_unregister_output): ... this.
41992 (grub_term_iterate): Split in ...
41993 (grub_term_iterate_input): ... this, and ...
41994 (grub_term_iterate_output): ... this.
41996 * kern/term.c (grub_term_list): Split in ...
41997 (grub_term_list_input): ... this, and ...
41998 (grub_term_list_output): ... this. Update all users.
41999 (grub_cur_term): Split in ...
42000 (grub_cur_term_input): ... this, and ...
42001 (grub_cur_term_output): ... this. Update all users.
42002 (grub_term_set_current): Split in ...
42003 (grub_term_set_current_input): ... this, and ...
42004 (grub_term_set_current_output): ... this.
42005 (grub_term_get_current): Split in ...
42006 (grub_term_get_current_input): ... this, and ...
42007 (grub_term_get_current_output): ... this.
42008 (grub_term_register): Split in ...
42009 (grub_term_register_input): ... this, and ...
42010 (grub_term_register_output): ... this.
42011 (grub_term_unregister): Split in ...
42012 (grub_term_unregister_input): ... this, and ...
42013 (grub_term_unregister_output): ... this.
42014 (grub_term_iterate): Split in ...
42015 (grub_term_iterate_input): ... this, and ...
42016 (grub_term_iterate_output): ... this.
42018 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
42019 a check for input and one for output (and only attempt to get keys
42020 from user when input works).
42022 * util/grub-probe.c (grub_term_get_current): Split in ...
42023 (grub_term_get_current_input): ... this, and ...
42024 (grub_term_get_current_output): ... this.
42025 * util/grub-fstest.c: Likewise.
42026 * util/i386/pc/grub-setup.c: Likewise.
42027 * util/grub-editenv.c: Likewise.
42029 Portability adjustments:
42031 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
42032 `term/i386/pc/at_keyboard.c'.
42033 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
42034 grub_keyboard_controller_init() (now handled by terminal .init).
42035 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
42036 grub_at_keyboard_init().
42037 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
42038 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
42039 at_keyboard.mod via input terminal interface).
42040 * include/grub/i386/coreboot/console.h: Convert into a stub for
42041 `<grub/i386/pc/console.h>'.
42043 Migrate full terminals to new API:
42045 * term/efi/console.c (grub_console_term): Split into ...
42046 (grub_console_term_input): ... this, and ...
42047 (grub_console_term_output): ... this. Update all users.
42048 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
42049 (grub_ofconsole_init): Split into ...
42050 (grub_ofconsole_init_input): ... this, and ...
42051 (grub_ofconsole_init_output): ... this.
42052 (grub_ofconsole_term): Split into ...
42053 (grub_ofconsole_term_input): ... this, and ...
42054 (grub_ofconsole_term_output): ... this. Update all users.
42055 * term/i386/pc/serial.c (grub_serial_term): Split into ...
42056 (grub_serial_term_input): ... this, and ...
42057 (grub_serial_term_output): ... this. Update all users.
42058 * term/i386/pc/console.c (grub_console_term): Split into ...
42059 (grub_console_term_input): ... this, and ...
42060 (grub_console_term_output): ... this. Update all users.
42061 (grub_console_term_input): Only enable it on PC/BIOS platform.
42062 (grub_console_init): Remove grub_keyboard_controller_init() call.
42064 Migrate input terminals to new API:
42066 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
42067 `i386' and `i386/pc' to enable build on x86_64 (this driver is
42068 i386-specific anyway).
42069 (grub_console_checkkey): Rename to ...
42070 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
42072 (grub_keyboard_controller_orig): New variable.
42073 (grub_console_getkey): Rename to ...
42074 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
42076 (grub_keyboard_controller_init): Static-ize. Save original
42077 controller value so that it can be restored ...
42078 (grub_keyboard_controller_fini): ... here (new function).
42079 (grub_at_keyboard_term): New structure.
42080 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
42083 Migrate output terminals to new API:
42085 * term/i386/pc/vga.c (grub_vga_term): Change type to
42086 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42087 members. Update all users.
42088 * term/gfxterm.c (grub_video_term): Change type to
42089 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42090 members. Update all users.
42091 * include/grub/i386/pc/console.h (grub_console_checkkey)
42092 (grub_console_getkey): Do not export (no longer needed by gfxterm,
42095 Migrate `terminal' command and userland tools to new API:
42097 * commands/terminal.c (grub_cmd_terminal): Split into ...
42098 (grub_cmd_terminal_input): ... this, and ...
42099 (grub_cmd_terminal_output): ... this.
42100 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
42101 `terminal_input' and `terminal_output'.
42102 * util/grub.d/00_header.in: Adjust `terminal' calls to new
42103 `terminal_input' / `terminal_output' API.
42104 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
42105 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
42106 provided ${GRUB_TERMINAL}, convert it).
42108 2008-11-04 Robert Millan <rmh@aybabtu.com>
42110 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
42112 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
42114 2008-11-03 Bean <bean123ch@gmail.com>
42116 * kern/elf.c (grub_elf32_load): Revert to previous code.
42117 (grub_elf64_load): Likewise.
42119 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
42121 2008-11-01 Robert Millan <rmh@aybabtu.com>
42123 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
42124 (TARGET_CPPFLAGS): Likewise.
42125 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
42127 2008-11-01 Carles Pina i Estany <carles@pina.cat>
42129 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
42131 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42133 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
42134 addition of objects until the code is not going to be able to fail.
42136 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42138 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
42139 (add a missing NULL check, and correct them by moving the pointer
42140 operations after the actual check).
42142 2008-10-29 Robert Millan <rmh@aybabtu.com>
42144 * util/i386/pc/grub-install.in: Handle empty string as output from
42145 make_system_path_relative_to_its_root().
42147 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
42149 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
42150 circular metadata worst case scenario. If the metadata is circular
42151 then copy the wrap in place.
42152 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
42153 project lib/format_text/layout.h
42154 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
42156 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42158 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
42160 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42162 * util/update-grub_lib.in: Mention filename in warning message.
42164 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42166 * NEWS: Update for rename of update-grub to grub-mkconfig.
42168 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42170 * util/update-grub_lib.in: Copy to ...
42171 * util/grub-mkconfig_lib.in: ... this. Update all users.
42172 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
42173 * util/update-grub.in: Rename to ...
42174 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
42175 option. Add `--output' option to allow users to specify the generated
42176 configuration file. Default to stdout.
42177 (update_grub_dir): Rename to ...
42178 (grub_mkconfig_dir): ... this.
42179 (grub_cfg): Default to an empty string.
42180 * conf/common.rmk (update-grub): Rename to ...
42181 (grub-mkconfig): ... this.
42182 (update-grub_lib): Copy to ...
42183 (grub-mkconfig_lib): ... this.
42184 (update-grub_SCRIPTS): Copy to ...
42185 (grub-mkconfig_SCRIPTS): ... this. Update all users.
42186 (update-grub_DATA): Rename to ...
42187 (grub-mkconfig_DATA): ... this.
42189 2008-09-28 Robert Millan <rmh@aybabtu.com>
42191 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
42192 to `modified'. Add the real `created' field.
42193 (grub_iso9660_uuid): Use `modified' rather than `created' for
42194 constructing the UUID.
42196 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
42198 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
42199 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
42201 2008-09-28 Bean <bean123ch@gmail.com>
42203 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
42204 Thanks to Christian Franke for finding this bug.
42206 2008-09-25 Robert Millan <rmh@aybabtu.com>
42208 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
42209 instances of grub_util_get_disk_name() (see previous commit).
42211 2008-09-25 Robert Millan <rmh@aybabtu.com>
42213 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
42214 `util/i386/get_disk_name.c'.
42215 * conf/i386-efi.rmk: Likewise.
42216 * conf/x86_64-efi.rmk: Likewise.
42217 * conf/i386-coreboot.rmk: Likewise.
42218 * conf/i386-ieee1275.rmk: Likewise.
42219 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
42220 `util/ieee1275/get_disk_name.c'.
42221 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
42222 * util/ieee1275/get_disk_name.c: Remove file.
42223 * util/i386/get_disk_name.c: Remove file.
42224 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
42225 "hd%d" for device.map entries, rather than using
42226 grub_util_get_disk_name().
42228 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42230 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
42232 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
42234 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42236 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
42238 (GRUB_TERM_PPAGE): Changed to 0x4900.
42240 2008-09-24 Robert Millan <rmh@aybabtu.com>
42242 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
42243 macros (they were i386-pc specific).
42244 * include/grub/sparc64/ieee1275/console.h: Likewise.
42245 * include/grub/efi/console.h: Likewise.
42247 2008-09-22 Bean <bean123ch@gmail.com>
42249 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
42250 resident and in attribute list.
42252 * include/grub/ntfs.h (BMP_LEN): Removed.
42254 2008-09-22 Bean <bean123ch@gmail.com>
42256 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
42257 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
42259 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
42260 error occurs, as grub_disk_open will call grub_disk_close, which will
42261 call p->close (scsi).
42263 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42265 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
42266 (AC_PREREQ): Bumped to 2.59.
42267 (AC_TRY_COMPILE): Replace obsolete macro with ...
42268 (AC_COMPILE_IFELSE): ... this.
42269 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
42270 (AC_LINK_IFELSE): ... this.
42272 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42274 * autogen.sh: Add a call to `gendistlist.sh'.
42276 2008-09-19 Christian Franke <franke@computer.org>
42278 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
42279 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
42280 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
42281 Export __enable_execute_stack() to modules.
42282 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
42285 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42287 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
42290 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42292 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
42293 #include <grub/util/hostdisk.h>.
42295 2008-09-08 Robert Millan <rmh@aybabtu.com>
42297 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
42298 segments when their filesz is zero (grub_file_read() interprets
42299 zero-size as "read until EOF", which results in memory corruption).
42300 Use `lowest_segment' rather than 0 for calculating the current
42301 segment load address.
42303 2008-09-08 Robert Millan <rmh@aybabtu.com>
42305 * util/hostdisk.c (open_device): Replace a grub_util_info() call
42306 with grub_dprintf("hostdisk", ...), as it was so verbose that it
42307 clobbered useful information.
42309 2008-09-08 Robert Millan <rmh@aybabtu.com>
42311 * include/grub/util/biosdisk.h: Move to ...
42312 * include/grub/util/hostdisk.h: ... here. Update all users.
42313 * util/biosdisk.c: Move to ...
42314 * util/hostdisk.c: ... here. Update all users.
42316 2008-09-07 Robert Millan <rmh@aybabtu.com>
42318 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
42320 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
42321 and length can be stored directly in the `mbi->mmap_addr' and
42322 `mbi->mmap_length' struct fields.
42324 2008-09-07 Robert Millan <rmh@aybabtu.com>
42326 * conf/i386.rmk: New file. Provides declaration for building
42328 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
42329 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
42331 Include `conf/i386.mk'.
42332 * conf/i386-efi.rmk: Likewise.
42333 * conf/x86_64-efi.rmk: Likewise.
42334 * conf/i386-coreboot.rmk: Likewise.
42335 * conf/i386-ieee1275.rmk: Likewise.
42337 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
42339 Based on patch created by Colin D Bennett <colin@gibibit.com>.
42340 Adds optimization support for BGR based modes.
42342 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
42343 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42344 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42345 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42346 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42347 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42348 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42349 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42350 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42351 (grub_video_i386_vbeblit_index_index): Likewise.
42352 (grub_video_i386_vbeblit_replace_directN): Added.
42353 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42354 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42355 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42356 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42357 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42358 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42359 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42360 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42361 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42362 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42363 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42364 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42365 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42367 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
42368 (grub_video_i386_vbefill_R8G8B8): Likewise.
42369 (grub_video_i386_vbefill_index): Likewise.
42370 (grub_video_i386_vbefill_direct32): Added.
42371 (grub_video_i386_vbefill_direct24): Likewise.
42372 (grub_video_i386_vbefill_direct16): Likewise.
42373 (grub_video_i386_vbefill_direct8): Likewise.
42375 * include/grub/video.h (grub_video_blit_format): Removed
42376 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
42377 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
42378 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
42379 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
42380 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
42382 * video/video.c (grub_video_get_blit_format): Updated to use new
42383 blit formats. Added handling for 16 bit color modes.
42385 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
42387 (common_blitter): Updated to use new blitters.
42389 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
42391 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42392 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42393 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42394 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42395 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42396 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42397 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42398 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42399 (grub_video_i386_vbeblit_index_index): Likewise.
42400 (grub_video_i386_vbeblit_replace_directN): Added.
42401 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42402 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42403 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42404 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42405 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42406 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42407 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42408 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42409 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42410 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42411 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42412 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42413 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42415 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
42416 (grub_video_i386_vbefill_R8G8B8): Likewise.
42417 (grub_video_i386_vbefill_index): Likewise.
42418 (grub_video_i386_vbefill_direct32): Added.
42419 (grub_video_i386_vbefill_direct24): Likewise.
42420 (grub_video_i386_vbefill_direct16): Likewise.
42421 (grub_video_i386_vbefill_direct8): Likewise.
42423 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
42426 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
42429 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
42432 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
42435 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42437 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
42440 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42442 * fs/iso9660.c (grub_iso9660_date): New structure.
42443 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
42444 (grub_iso9660_uuid): New function.
42446 2008-09-05 Bean <bean123ch@gmail.com>
42448 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
42450 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
42451 insensitive bit for names in Win32 and Win32 & DOS namespace.
42453 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
42455 * include/grub/types.h (LONG_MAX): Likewise.
42457 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42459 * util/getroot.c: Include <config.h>.
42460 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
42461 add support for /dev/md/N devices and handle LVM double dash escaping.
42463 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42465 * config.guess: Update to latest version from config git.
42466 * config.sub: Likewise.
42468 2008-09-03 Robert Millan <rmh@aybabtu.com>
42470 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
42471 `disk->total_sectors'.
42473 2008-09-01 Colin D Bennett <colin@gibibit.com>
42475 * include/grub/normal.h: Fixed incorrect comment for
42476 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
42478 2008-09-01 Colin D Bennett <colin@gibibit.com>
42480 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
42481 values with defines.
42483 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
42484 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
42485 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
42486 (GRUB_VBE_MODEATTR_COLOR): Likewise.
42487 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
42488 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
42489 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
42490 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
42491 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
42492 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
42493 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
42494 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
42495 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
42496 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
42497 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
42498 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
42499 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
42500 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
42501 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
42503 2008-08-31 Robert Millan <rmh@aybabtu.com>
42505 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
42507 (grub_multiboot): Fix a few warnings.
42509 2008-08-31 Robert Millan <rmh@aybabtu.com>
42511 * loader/i386/pc/multiboot.c: Update comment not to say that
42512 boot_device support is unimplemented.
42514 2008-08-31 Robert Millan <rmh@aybabtu.com>
42516 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
42517 or memory map support are unimplemented.
42519 2008-08-31 Colin D Bennett <colin@gibibit.com>
42521 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
42523 2008-08-31 Colin D Bennett <colin@gibibit.com>
42525 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
42526 total video memory in 'vbeinfo' output; show color format details for
42529 2008-08-30 Pavel Roskin <proski@gnu.org>
42531 * util/genmoddep.c: Remove for real this time.
42532 * DISTLIST: Remove util/genmoddep.c.
42534 2008-08-30 Robert Millan <rmh@aybabtu.com>
42536 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
42537 as required by Multiboot spec (it was already 4-byte aligned, but
42540 2008-08-29 Pavel Roskin <proski@gnu.org>
42542 * kern/powerpc/ieee1275/crt0.S: Rename to ...
42543 * kern/powerpc/ieee1275/startup.S: ... this.
42544 * conf/powerpc-ieee1275.rmk: Adjust for the above.
42545 * DISTLIST: Likewise.
42547 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
42548 grub/cpu/kernel.h. Add start label for consistency with other
42549 platforms. Add grub_prefix immediately after start. Add jump
42550 to the code after grub_prefix.
42551 * include/grub/powerpc/kernel.h: Provide valid values for
42552 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
42554 2008-08-29 Bean <bean123ch@gmail.com>
42556 * configure.ac: Change host_os to cygwin for mingw.
42557 (asprintf): New check for function.
42559 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
42560 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
42562 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
42563 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
42564 sync, sleep and grub_util_get_disk_size for mingw.
42566 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
42567 to get size in mingw.
42568 (open_device): Use flag O_BINARY if it's defined.
42569 (find_root_device): Add dummy code for mingw.
42571 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
42572 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
42573 (get_scsi_disk_name): Return 0 for mingw.
42575 * util/hostfs.c: #include <grub/util/misc.h>.
42576 (grub_hostfs_open): Use "rb" flag to open file, use
42577 grub_util_get_disk_size to get disk size for mingw.
42579 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
42580 (asprintf): New function if HAVE_ASPRINTF is not set.
42581 (sync): New function for mingw.
42583 (grub_util_get_disk_size): Likewise.
42585 2008-08-28 Pavel Roskin <proski@gnu.org>
42587 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42590 2008-08-28 Robert Millan <rmh@aybabtu.com>
42592 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
42594 2008-08-28 Robert Millan <rmh@aybabtu.com>
42596 Change find_grub_drive() syntax so it doesn't prevent it from
42597 detecting NULL names as errors.
42599 * util/biosdisk.c (find_grub_drive): Move free slot search code
42601 (find_free_slot): ... to here.
42602 (read_device_map): Use find_free_slot() to search for free slots.
42604 2008-08-27 Marco Gerards <marco@gnu.org>
42606 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
42607 (scsi_mod_SOURCES): New variable.
42608 (scsi_mod_CFLAGS): Likewise
42609 (scsi_mod_LDFLAGS): Likewise.
42611 * disk/scsi.c: New file.
42613 * include/grub/scsi.h: Likewise.
42615 * include/grub/scsicmd.h: Likewise.
42617 * disk/ata.c: Include <grub/scsi.h>.
42618 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
42620 (grub_ata_iterate): Skip ATAPI devices.
42621 (grub_ata_open): Only handle ATAPI devices.
42622 (struct grub_atapi_read): Removed.
42623 (grub_atapi_readsector): Likewise.
42624 (grub_ata_read): No longer handle ATAPI devices.
42625 (grub_ata_write): Likewise.
42626 (grub_atapi_iterate): New function.
42627 (grub_atapi_read): Likewise.
42628 (grub_atapi_write): Likewise.
42629 (grub_atapi_open): Likewise.
42630 (grub_atapi_close): Likewise.
42631 (grub_atapi_dev): New variable.
42632 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
42633 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
42635 * include/grub/disk.h (enum grub_disk_dev_id): Add
42636 `GRUB_DISK_DEVICE_SCSI_ID'.
42638 2008-08-26 Robert Millan <rmh@aybabtu.com>
42640 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
42641 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
42644 2008-08-23 Bean <bean123ch@gmail.com>
42646 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
42647 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42648 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
42649 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
42651 (raid5rec_mod_SOURCES): New macro.
42652 (raid5rec_mod_CFLAGS): Likewise.
42653 (raid5rec_mod_LDFLAGS): Likewise.
42654 (raid6rec_mod_SOURCES): Likewise.
42655 (raid6rec_mod_CFLAGS): Likewise.
42656 (raid6rec_mod_LDFLAGS): Likewise.
42657 (mdraid_mod_SOURCES): Likewise.
42658 (mdraid_mod_CFLAGS): Likewise.
42659 (mdraid_mod_LDFLAGS): Likewise.
42660 (dm_nv_mod_SOURCES): Likewise.
42661 (dm_nv_mod_CFLAGS): Likewise.
42662 (dm_nv_mod_LDFLAGS): Likewise.
42664 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
42665 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42666 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42668 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
42669 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42671 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42673 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42675 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42677 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42679 * disk/raid5_recover.c: New file.
42681 * disk/raid6_recover.c: Likewise.
42683 * disk/mdraid_linux.c: Likewise.
42685 * disk/dmraid_nvidia.c: Likewise.
42687 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
42690 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
42691 calculate the size of raid device.
42692 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
42693 different layout of raid5.
42694 (grub_raid_scan_device): Remove code specific to mdraid.
42695 (grub_raid_list): New variable.
42696 (free_array): New function.
42697 (grub_raid_register): Likewise.
42698 (grub_raid_unregister): Likewise.
42699 (grub_raid_rescan): Likewise.
42700 (GRUB_MOD_INIT): Don't iterate device here.
42701 (GRUB_MOD_FINI): Use free_array to release resource.
42703 * include/grub/raid.h: Remove macro and structure specific to mdraid.
42704 (grub_raid5_recover_func_t): New function variable type.
42705 (grub_raid6_recover_func_t): Likewise.
42706 (grub_raid5_recover_func): New variable.
42707 (grub_raid6_recover_func): Likewise.
42708 (grub_raid_register): New function.
42709 (grub_raid_unregister): Likewise.
42710 (grub_raid_rescan): Likewise.
42711 (grub_raid_block_xor): Likewise.
42713 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
42714 (CMD_CRC): New macro.
42716 (read_file): Handle device as well as file.
42717 (cmd_crc): New function.
42718 (fstest): Handle multiple disks.
42719 (options): Remove part, raw and long, add root and diskcount.
42720 (usage): Add crc, remove -p, -r, -l, add -r and -c.
42721 (main): Find the first non option entry and ignore subsequent options,
42722 add handling for the new options, support multiple disks.
42724 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
42726 2008-08-23 Bean <bean123ch@gmail.com>
42728 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
42730 * genfslist.sh: Ignore kernel.mod.
42732 * genpartmaplist.sh: Likewise.
42734 2008-08-23 Robert Millan <rmh@aybabtu.com>
42736 * util/getroot.c (find_root_device): Skip anything that starts with
42737 a dot, not just directories. This avoids things like /dev/.tmp.md0.
42739 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
42741 * util/update-grub.in (GRUB_GFXMODE): Export variable.
42742 * util/grub.d/00_header.in: Allow the administrator to change default
42743 gfxmode via ${GRUB_GFXMODE}.
42745 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
42747 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
42749 2008-08-21 Robert Millan <rmh@aybabtu.com>
42751 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
42753 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
42754 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
42756 2008-08-20 Carles Pina i Estany <carles@pina.cat>
42758 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
42759 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
42761 2008-08-19 Robert Millan <rmh@aybabtu.com>
42763 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
42764 (struct grub_virtual_screen): Remove `cursor_color'.
42765 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
42767 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
42769 2008-08-18 Robert Millan <rmh@aybabtu.com>
42771 Unify (identical) linux_normal.c files.
42772 * loader/i386/efi/linux_normal.c: Move from here ...
42773 * loader/linux_normal.c: ... to here. Update all users.
42774 * loader/i386/pc/linux_normal.c: Delete. Update all users.
42775 * loader/i386/ieee1275/linux_normal.c: Likewise.
42777 2008-08-18 Robert Millan <rmh@aybabtu.com>
42779 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
42780 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
42781 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
42782 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
42783 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
42785 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
42786 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
42787 (GRUB_LINUX_CL_END_OFFSET): ... to here.
42788 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
42789 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
42790 (GRUB_EFI_CL_END_OFFSET): Rename to ...
42791 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
42792 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
42793 Initialize `params->video_cursor_x' and `params->video_cursor_y'
42794 portably using grub_getxy().
42795 Replace `-EFI' with `-bzImage' in boot message.
42797 2008-08-17 Robert Millan <rmh@aybabtu.com>
42799 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42801 2008-08-17 Robert Millan <rmh@aybabtu.com>
42803 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42805 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42806 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42807 (grub_machine_mmap_iterate): New function declaration.
42808 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42810 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42813 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42814 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42815 Move e820 parsing from here ...
42816 * kern/i386/pc/mmap.c: New file.
42817 (grub_machine_mmap_iterate): ... to here.
42819 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42820 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42821 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42822 (grub_available_iterate): Redeclare to return `void', and redeclare
42823 its hook to use grub_uint64_t as addr and size parameters, and rename
42825 (grub_machine_mmap_iterate): ... this. Update all users.
42827 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42828 to make it more readable. Rename to ...
42829 (grub_machine_mmap_iterate): ... this.
42831 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42832 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42833 (grub_multiboot): Allocate an extra region after the payload, and fill
42834 it with a Multiboot memory map. Adjust a.out loader to calculate size
42835 with the extra space.
42836 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42837 with the extra space.
42839 2008-08-17 Carles Pina i Estany <carles@pina.cat>
42841 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
42843 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
42845 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42846 mdate-sh to the list `find' searches for.
42847 * DISTLIST: Regenerated.
42849 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
42851 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42852 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
42853 genmoddep.awk, gensymlist.sh.in.
42854 (DISTDIRS): Add bus, docs, hook, lib.
42855 * DISTLIST: Regenerated.
42856 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
42858 2008-08-16 Robert Millan <rmh@aybabtu.com>
42860 * disk/raid.c (grub_raid_init): Handle/report errors set by
42861 grub_device_iterate().
42862 * disk/lvm.c (grub_lvm_init): Likewise.
42864 2008-08-15 Bean <bean123ch@gmail.com>
42866 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42868 (datetime_mod_SOURCES): New macro.
42869 (datetime_mod_CFLAGS): Likewise.
42870 (datetime_mod_LDFLAGS): Likewise.
42871 (date_mod_SOURCES): Likewise.
42872 (date_mod_CFLAGS): Likewise.
42873 (date_mod_LDFLAGS): Likewise.
42874 (datehook_mod_SOURCES): Likewise.
42875 (datehook_mod_CFLAGS): Likewise.
42876 (datehook_mod_LDFLAGS): Likewise.
42878 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42880 (datetime_mod_SOURCES): New macro.
42881 (datetime_mod_CFLAGS): Likewise.
42882 (datetime_mod_LDFLAGS): Likewise.
42883 (date_mod_SOURCES): Likewise.
42884 (date_mod_CFLAGS): Likewise.
42885 (date_mod_LDFLAGS): Likewise.
42886 (datehook_mod_SOURCES): Likewise.
42887 (datehook_mod_CFLAGS): Likewise.
42888 (datehook_mod_LDFLAGS): Likewise.
42890 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42892 (datetime_mod_SOURCES): New macro.
42893 (datetime_mod_CFLAGS): Likewise.
42894 (datetime_mod_LDFLAGS): Likewise.
42895 (date_mod_SOURCES): Likewise.
42896 (date_mod_CFLAGS): Likewise.
42897 (date_mod_LDFLAGS): Likewise.
42898 (datehook_mod_SOURCES): Likewise.
42899 (datehook_mod_CFLAGS): Likewise.
42900 (datehook_mod_LDFLAGS): Likewise.
42902 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42904 (datetime_mod_SOURCES): New macro.
42905 (datetime_mod_CFLAGS): Likewise.
42906 (datetime_mod_LDFLAGS): Likewise.
42907 (date_mod_SOURCES): Likewise.
42908 (date_mod_CFLAGS): Likewise.
42909 (date_mod_LDFLAGS): Likewise.
42910 (datehook_mod_SOURCES): Likewise.
42911 (datehook_mod_CFLAGS): Likewise.
42912 (datehook_mod_LDFLAGS): Likewise.
42914 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42916 (datetime_mod_SOURCES): New macro.
42917 (datetime_mod_CFLAGS): Likewise.
42918 (datetime_mod_LDFLAGS): Likewise.
42919 (date_mod_SOURCES): Likewise.
42920 (date_mod_CFLAGS): Likewise.
42921 (date_mod_LDFLAGS): Likewise.
42922 (datehook_mod_SOURCES): Likewise.
42923 (datehook_mod_CFLAGS): Likewise.
42924 (datehook_mod_LDFLAGS): Likewise.
42926 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
42928 * commands/date.c: New file.
42930 * hook/datehook.c: Likewise.
42932 * include/grub/lib/datetime.h: Likewise.
42934 * include/grub/i386/cmos.h: Likewise.
42936 * lib/datetime.c: Likewise.
42938 * lib/i386/datetime.c: Likewise.
42940 * lib/efi/datetime.c: Likewise.
42942 2008-08-14 Robert Millan <rmh@aybabtu.com>
42944 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
42945 (grub_mkelfimage_SOURCES): New variable.
42946 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
42948 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
42949 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
42950 * conf/powerpc-ieee1275.rmk: Likewise.
42951 * conf/i386-ieee1275.rmk: Likewise.
42953 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
42954 * kern/i386/coreboot/init.c: Likewise.
42956 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
42957 with `<grub/cpu/kernel.h>'.
42958 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
42960 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
42961 * kern/i386/coreboot/startup.S: Likewise.
42963 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
42964 (GRUB_MOD_GAP): Remove.
42965 * include/grub/powerpc/kernel.h: New file.
42966 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
42967 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42968 * include/grub/i386/kernel.h: New file.
42969 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
42970 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
42971 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42973 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
42975 Use --directory when invoking grub_mkimage.
42977 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
42978 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
42979 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
42980 and GRUB_KERNEL_CPU_PREFIX.
42982 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
42984 * include/grub/err.h (grub_err_printf): New function prototype.
42985 * util/misc.c (grub_err_printf): New function.
42986 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
42988 * kern/err.c (grub_print_error): Use grub_err_printf.
42990 2008-08-13 Robert Millan <rmh@aybabtu.com>
42992 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
42994 2008-08-13 Robert Millan <rmh@aybabtu.com>
42996 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
42999 2008-08-12 Robert Millan <rmh@aybabtu.com>
43001 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
43002 of the relocation code from here ...
43003 (grub_multiboot): ... to here.
43004 (forward_relocator, backward_relocator): Move from here ...
43005 * kern/i386/loader.S (grub_multiboot_forward_relocator)
43006 (grub_multiboot_backward_relocator): ... to here.
43007 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
43008 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
43009 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
43010 (grub_multiboot_forward_relocator_end)
43011 (grub_multiboot_backward_relocator)
43012 (grub_multiboot_backward_relocator_end): New variables.
43014 2008-08-12 Bean <bean123ch@gmail.com>
43016 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
43018 2008-08-11 Robert Millan <rmh@aybabtu.com>
43020 * kern/i386/linuxbios/startup.S: Move from here ...
43021 * kern/i386/coreboot/startup.S: ... to here.
43023 * kern/i386/linuxbios/init.c: Move from here ...
43024 * kern/i386/coreboot/init.c: ... to here.
43026 * kern/i386/linuxbios/table.c: Move from here ...
43027 * kern/i386/coreboot/mmap.c: ... to here.
43029 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
43031 2008-08-11 Robert Millan <rmh@aybabtu.com>
43033 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
43034 errors. Leave it to the upper layer to handle them.
43036 2008-08-09 Christian Franke <franke@computer.org>
43038 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
43039 * conf/common.rmk: Install `grub-pe2elf' only if requested.
43040 Install `grub.d/10_windows' only on Cygwin.
43041 * configure.ac: Add subst of `target_os'.
43042 Check `target_os' also before setting TARGET_OBJ2ELF.
43043 Add `--enable-grub-pe2elf'.
43045 2008-08-08 Robert Millan <rmh@aybabtu.com>
43047 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
43048 (grub_last_time): Change type to grub_uint64_t.
43049 (grub_disk_open): Migrate code from to using grub_get_time_ms().
43050 (grub_disk_close): Likewise.
43052 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
43053 (run_menu): Migrate code from to using grub_get_time_ms().
43055 * util/misc.c (grub_get_time_ms): New function.
43057 2008-08-08 Marco Gerards <marco@gnu.org>
43059 * disk/ata.c (grub_ata_regget): Change return type to
43061 (grub_ata_regget2): Likewise.
43062 (grub_ata_wait_status): New function.
43063 (grub_ata_wait_busy): Removed function, updated all users to use
43064 `grub_ata_wait_status'.
43065 (grub_ata_wait_drq): Likewise.
43066 (grub_ata_cmd): New function.
43067 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
43069 (grub_ata_pio_write): Add error handling.
43070 (grub_atapi_identify): Likewise.
43071 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
43073 (grub_ata_identify): Use `grub_ata_cmd' and improve error
43074 handling. Actually use the detected registers. Reorder the
43075 detection logic such that it is easier to read.
43076 (grub_ata_pciinit): Do not assign the same ID to each controller.
43077 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
43079 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
43081 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
43083 2008-08-08 Marco Gerards <marco@gnu.org>
43087 2008-08-07 Bean <bean123ch@gmail.com>
43089 * include/grub/x86_64/pci.h: New file.
43091 2008-08-07 Christian Franke <franke@computer.org>
43093 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
43094 (TIMER2_GATE): Likewise.
43095 (grub_pit_wait): Add enable/disable of the timer2 gate
43096 bit of port 0x61. This fixes a possible infinite loop.
43098 2008-08-07 Bean <bean123ch@gmail.com>
43100 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
43101 kern/i386/tsc.c and kern/i386/pit.c.
43103 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
43106 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
43109 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
43111 2008-08-07 Bean <bean123ch@gmail.com>
43113 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
43115 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
43117 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
43118 multiple inclusion. Add #include <grub/types.h>.
43120 2008-08-06 Christian Franke <franke@computer.org>
43122 * conf/common.rmk: Build and install `10_windows'.
43123 * util/grub.d/10_windows.in: New script.
43125 2008-08-06 Pavel Roskin <proski@gnu.org>
43127 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
43129 2008-08-06 Robert Millan <rmh@aybabtu.com>
43131 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
43132 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
43134 2008-08-06 Bean <bean123ch@gmail.com>
43136 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
43137 (grub_pxefs_fs_int): Remove dummy definition.
43138 (grub_pxefs_open): Use data->block_size to store the current block
43140 (grub_pxefs_read): Use block size stored in data->block_size. As the
43141 value of grub_pxe_blksize can be changed after the file is opened.
43143 2008-08-06 Bean <bean123ch@gmail.com>
43145 * fs/i386/pc/pxe.c (curr_file): new variable.
43146 (grub_pxefs_open): Simply the handling of pxe file system. Don't
43147 require the dummy internal file system anymore.
43148 (grub_pxefs_read): Removed.
43149 (grub_pxefs_close): Likewise.
43150 (grub_pxefs_fs_int): Likewise.
43151 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
43152 connection when we switch file.
43153 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
43155 2008-08-06 Robert Millan <rmh@aybabtu.com>
43157 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
43159 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
43160 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
43162 * kern/i386/halt.c: New file.
43163 * kern/i386/reboot.c: Likewise.
43164 * include/grub/i386/reboot.h: Likewise.
43165 * include/grub/i386/halt.h: Likewise.
43167 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
43168 Include `<grub/cpu/halt.h>'.
43169 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
43170 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
43172 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
43173 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
43174 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
43175 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
43176 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
43177 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
43179 * include/grub/i386/at_keyboard.h: ... to here.
43181 2008-08-05 Robert Millan <rmh@aybabtu.com>
43183 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
43184 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
43185 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
43186 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43187 `kern/generic/millisleep.c'.
43189 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
43190 instead of grub_get_rtc().
43191 (grub_tsc_init): Initialize `tsc_boot_time'.
43193 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
43194 (grub_machine_init): Use grub_tsc_init() rather than
43195 installing an RTC-based handler via grub_install_get_time_ms().
43197 * kern/i386/pit.c: New file.
43198 * include/grub/i386/pit.h: Likewise.
43200 2008-08-05 Bean <bean123ch@gmail.com>
43202 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
43204 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
43205 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
43206 (pxe_mod_SOURCES): New macro.
43207 (pxe_mod_CFLAGS): Likewise.
43208 (pxe_mod_LDFLAGS): Likewise.
43209 (pxecmd_mod_SOURCES): Likewise.
43210 (pxecmd_mod_CFLAGS): Likewise.
43211 (pxecmd_mod_LDFLAGS): Likewise.
43213 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
43214 (grub_pxe_call): Likewise.
43216 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
43218 * commands/i386/pc/pxecmd.c: New file.
43220 * fs/i386/pc/pxe.c: Likewise.
43222 * include/grub/i386/pc/pxe.h: Likewise.
43224 2008-08-05 Bean <bean123ch@gmail.com>
43226 * util/console.c (grub_console_cur_color): New variable.
43227 (grub_console_standard_color): Likewise.
43228 (grub_console_normal_color): Likewise.
43229 (grub_console_highlight_color): Likewise.
43230 (color_map): Likewise.
43231 (use_color): Likewise.
43232 (NUM_COLORS): New macro.
43233 (grub_ncurses_setcolorstate): Handle color properly.
43234 (grub_ncurses_setcolor): Don't change color here, just remember the
43235 settings, color will be set in grub_ncurses_setcolorstate.
43236 (grub_ncurses_getcolor): New function.
43237 (grub_ncurses_init): Initialize color pairs.
43238 (grub_ncurses_term): New member grub_ncurses_getcolor.
43240 2008-08-05 Colin D Bennett <colin@gibibit.com>
43242 High resolution timer support. Implemented for x86 CPUs using TSC.
43243 Extracted generic grub_millisleep() so it's linked in only as needed.
43244 This requires a Pentium compatible CPU; if the RDTSC instruction is
43245 not supported, then it falls back on the generic grub_get_time_ms()
43246 implementation that uses the machine's RTC.
43248 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
43249 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43250 `kern/generic/millisleep.c'.
43252 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
43253 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
43255 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
43256 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
43258 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43260 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
43261 `kern/generic/millisleep.c'.
43263 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43265 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
43267 * kern/generic/rtc_get_time_ms.c: New file.
43269 * kern/generic/millisleep.c: New file.
43271 * kern/misc.c: Don't include
43272 <kern/time.h> anymore.
43273 (grub_millisleep_generic): Removed.
43275 * commands/sleep.c (grub_interruptible_millisleep): Uses
43276 grub_get_time_ms() instead of grub_get_rtc().
43278 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
43280 (grub_cpu_is_cpuid_supported): New inline function.
43281 (grub_cpu_is_tsc_supported): New inline function.
43282 (grub_tsc_init): New function prototype.
43283 (grub_tsc_get_time_ms): New function prototype.
43285 * kern/i386/tsc.c (grub_get_time_ms): New file.
43287 * include/grub/time.h: Include <grub/types.h.
43288 (grub_millisleep_generic): Removed.
43289 (grub_get_time_ms): New prototype.
43290 (grub_install_get_time_ms): New prototype.
43291 (grub_rtc_get_time_ms): New prototype.
43293 * kern/time.c (grub_get_time_ms): New function.
43294 (grub_install_get_time_ms): New function.
43296 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
43297 <grub/time.h> anymore.
43298 (grub_millisleep): Removed.
43299 (grub_machine_init): Call grub_tsc_init.
43301 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
43302 get_time_ms() implementation.
43304 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
43305 (ieee1275_get_time_ms): New function.
43306 (grub_machine_init): Install get_time_ms() implementation.
43308 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
43309 (grub_machine_init): Call grub_tsc_init().
43310 (grub_millisleep): Removed.
43312 * kern/ieee1275/init.c (grub_millisleep): Removed.
43313 (grub_machine_init): Install ieee1275_get_time_ms()
43315 (ieee1275_get_time_ms): New function.
43316 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
43319 2008-08-05 Marco Gerards <marco@gnu.org>
43321 * disk/ata.c: Include <grub/pci.h>.
43322 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
43323 (grub_ata_initialize): Rewritten.
43324 (grub_ata_device_initialize): New function.
43326 2008-08-04 Pavel Roskin <proski@gnu.org>
43328 * kern/main.c: Include grub/mm.h.
43330 2008-08-04 Robert Millan <rmh@aybabtu.com>
43332 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
43333 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
43334 corruption problem).
43336 2008-08-04 Robert Millan <rmh@aybabtu.com>
43338 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
43339 warnings introduced in my last commit.
43341 2008-08-03 Robert Millan <rmh@aybabtu.com>
43343 Make PCI available on all i386 architectures.
43345 * include/grub/i386/pc/pci.h: Move from here ...
43346 * include/grub/i386/pci.h: ... to here.
43348 * include/grub/i386/pc/pci.h: Remove.
43349 * include/grub/i386/efi/pci.h: Remove.
43350 * include/grub/x86_64/efi/pci.h: Remove.
43352 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
43353 `<grub/cpu/pci.h>'.
43355 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
43356 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
43357 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
43359 * conf/i386-ieee1275.rmk: Likewise.
43361 2008-08-03 Robert Millan <rmh@aybabtu.com>
43363 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
43364 (grub_console_setcursor): Make it possible to set cursor off.
43366 2008-08-03 Robert Millan <rmh@aybabtu.com>
43368 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
43369 of modules instead of assuming which platform provides what.
43370 * util/update-grub.in: Likewise.
43372 2008-08-03 Robert Millan <rmh@aybabtu.com>
43374 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
43375 instead of `grub_install_dos_part' to determine whether a drive needs
43376 to be prepended to prefix (`grub_install_dos_part' is not reliable,
43377 because it can be overridden when loading GRUB via Multiboot).
43379 2008-08-02 Robert Millan <rmh@aybabtu.com>
43381 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
43383 2008-08-02 Robert Millan <rmh@aybabtu.com>
43385 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
43386 of informational grub_dprintf() calls.
43388 2008-08-02 Robert Millan <rmh@aybabtu.com>
43390 * disk/memdisk.c (memdisk_size): Don't initialize.
43391 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
43393 * include/grub/i386/pc/kernel.h
43394 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
43395 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
43396 (grub_memdisk_image_size, grub_arch_memdisk_addr)
43397 (grub_arch_memdisk_size): Remove.
43399 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
43400 field (was only used to transfer a constant). Add `type' field to
43401 support multiple module types.
43402 (grub_module_iterate): New function.
43404 * kern/device.c (grub_device_open): Do not hide error messages
43405 when grub_disk_open() fails. Use grub_print_error() instead.
43407 * kern/i386/pc/init.c (grub_arch_modules_addr)
43408 (grub_arch_memdisk_size): Remove functions.
43409 (grub_arch_modules_addr): Return the module address in high memory
43410 (now that it isn't copied anymore).
43412 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
43413 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
43414 decompression routine (grub_total_module_size already includes that
43415 now). Don't copy modules back to low memory.
43417 * kern/main.c: Include `<grub/mm.h>'.
43418 (grub_load_modules): Split out (and use) ...
43419 (grub_module_iterate): ... this function, which iterates through
43420 module objects and runs a hook.
43421 Comment out grub_mm_init_region() call, as it would cause non-ELF
43422 modules to be overwritten.
43424 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
43425 the memdisk image in its own region, make it part of the module list.
43426 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
43427 (main): Parse --memdisk|-m option, and pass user-provided path as
43428 parameter to generate_image().
43429 (add_segments): Pass `memdisk_path' down to load_modules().
43430 (load_modules): Embed memdisk image in module section when requested.
43431 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
43432 `header.type' instead of `header.offset'.
43434 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
43435 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
43436 (memdisk_mod_LDFLAGS): New variables.
43437 * conf/i386-coreboot.rmk: Likewise.
43438 * conf/i386-ieee1275.rmk: Likewise.
43440 2008-08-02 Robert Millan <rmh@aybabtu.com>
43442 * loader/i386/pc/multiboot.c (playground, forward_relocator)
43443 (backward_relocator): New variables. Used to allocate and relocate
43444 the payload, respectively.
43445 (grub_multiboot_load_elf32): Load into heap instead of requested
43446 address, install the appropriate relocator code in each bound of
43447 the payload, and set the entry point such that
43448 grub_multiboot_real_boot() will jump to one of them.
43450 * kern/i386/loader.S (grub_multiboot_payload_size)
43451 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43452 (grub_multiboot_payload_entry_offset): New variables.
43453 (grub_multiboot_real_boot): Set cpu context to what the relocator
43454 expects, and jump to the relocator instead of the payload.
43456 * include/grub/i386/loader.h (grub_multiboot_payload_size)
43457 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43458 (grub_multiboot_payload_entry_offset): Export.
43460 2008-08-01 Bean <bean123ch@gmail.com>
43462 * normal/menu_entry.c (editor_getline): Don't return the original
43463 string as result, as it will be released by lexer once it has done
43466 2008-08-01 Robert Millan <rmh@aybabtu.com>
43468 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
43469 within menuentries, not before them.
43470 util/grub.d/10_hurd.in: Likewise.
43472 2008-08-01 Bean <bean123ch@gmail.com>
43474 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
43475 (bufio_mod_SOURCES): New macro.
43476 (bufio_mod_CFLAGS): Likewise.
43477 (bufio_mod_LDFLAGS): Likewise.
43479 * include/grub/bufio.h: New file.
43481 * io/bufio.c: Likewise.
43483 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
43484 (grub_video_reader_png): Use grub_buffile_open to open file.
43486 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
43487 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
43489 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
43490 (grub_video_reader_tga): Use grub_buffile_open to open file.
43492 * font/manager.c: Include <grub/bufio.h>.
43493 (add_font): Use grub_buffile_open to open file.
43495 2008-07-31 Robert Millan <rmh@aybabtu.com>
43497 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
43498 ELF segments, use a macro for arbitrarily accessing any of them instead
43499 of preparing a pointer that allows access to one at a time.
43500 (grub_multiboot_load_elf64): Likewise.
43502 2008-07-31 Bean <bean123ch@gmail.com>
43504 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
43505 GRUB_KERNEL_MACHINE_DATA_END.
43507 2008-07-30 Robert Millan <rmh@aybabtu.com>
43509 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
43510 Increase from 0x50 to 0x60.
43511 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
43512 use UUIDs to identify the root drive for them. If that's not
43514 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
43515 check, for cross-disk installs.
43517 2008-07-30 Robert Millan <rmh@aybabtu.com>
43519 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
43520 is non-empty, use it to set the `prefix' environment variable instead
43521 of the usual approach.
43522 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
43523 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
43524 environment variable instead of dummy make_install_device().
43526 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
43527 (start): Insert a data section, with `grub_prefix' variable.
43528 * kern/i386/linuxbios/startup.S: Likewise.
43530 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
43531 New variable reference.
43532 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
43533 New macro. Defines offset of `grub_prefix' within startup.S (relative
43535 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
43536 section within startup.S (relative to `start').
43537 * include/grub/i386/coreboot/kernel.h: Likewise.
43539 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
43540 Overwrite grub_prefix with its contents, at the beginning of the
43542 (main): Understand -p|--prefix.
43544 2008-07-30 Robert Millan <rmh@aybabtu.com>
43546 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
43548 2008-07-30 Robert Millan <rmh@aybabtu.com>
43550 * term/i386/pc/vga_text.c (grub_console_cls): Use
43551 grub_console_gotoxy() to go back to beginning of the screen.
43552 Found by Patrick Georgi <patrick.georgi@coresystems.de>
43554 2008-07-29 Christian Franke <franke@computer.org>
43556 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43557 Add conversion of emulated mount points on Cygwin.
43559 2008-07-29 Christian Franke <franke@computer.org>
43561 * util/update-grub.in: Add a check for admin
43563 Remove old `grub.cfg.new' before creation.
43564 Add `-f' to `mv' to handle the different filesystem
43565 semantics of Windows.
43567 2008-07-29 Bean <bean123ch@gmail.com>
43569 * normal/main.c (get_line): Fix buffer overflow bug.
43571 2008-07-28 Robert Millan <rmh@aybabtu.com>
43573 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
43574 (struct grub_apple_header): New struct. Describes the layout of
43575 the partmap header.
43576 (apple_partition_map_iterate): Check the header magic as well as the
43577 partition magic (which was already being checked).
43579 2008-07-28 Pavel Roskin <proski@gnu.org>
43581 * genmk.rb: Add a warning to the beginning of the output that
43582 it's a generated file and should not be edited.
43584 2008-07-28 Robert Millan <rmh@aybabtu.com>
43586 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
43587 with the same number are found, just use issue a warning with
43588 grub_dprintf(), as this error has been reported to be non-fatal.
43590 2008-07-27 Robert Millan <rmh@aybabtu.com>
43592 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
43595 2008-07-27 Bean <bean123ch@gmail.com>
43597 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
43598 (grub_fat_find_dir): Ignore case when comparing filename.
43600 2008-07-27 Bean <bean123ch@gmail.com>
43602 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
43603 smallino, as it's more descriptive, and i8count can be confused with
43604 the other field count.
43605 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
43608 2008-07-27 Bean <bean123ch@gmail.com>
43610 * commands/crc.c: New file.
43612 * lib/crc.c: Likewise.
43614 * include/grub/lib/crc.h: Likewise.
43616 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
43618 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
43619 (hexdump): Move this function to ...
43621 * lib/hexdump.c: ... here.
43623 * include/grub/hexdump.h: Renamed to ...
43625 * include/grub/lib/hexdump.h: ... this.
43627 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
43629 * util/grub-editenv.c: Likewise.
43631 * include/envblk.h: Renamed to ...
43633 * include/lib/envblk.h: ... this.
43635 * util/envblk.c: Renamed to ...
43637 * lib/envblk.c: ... this.
43639 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
43641 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
43642 (pkglib_MODULES): Add crc.mod.
43643 (hexdump_mod_SOURCES): Add lib/hexdump.c.
43644 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
43645 (crc_mod_SOURCES): New macro.
43646 (crc_mod_CFLAGS): Likewise.
43647 (crc_mod_LDFLAGS): Likewise.
43649 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
43651 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43653 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43655 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43657 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
43659 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
43661 * commands/help.c: Include <grub/term.h>.
43662 (TERM_WIDTH): Removed. Updated all users.
43664 2008-07-27 Pavel Roskin <proski@gnu.org>
43666 * util/getroot.c (find_root_device): Rephrase a comment to avoid
43667 spurious warnings about a comment within a comment.
43669 2008-07-25 Robert Millan <rmh@aybabtu.com>
43671 * util/getroot.c (find_root_device): Skip devices that match
43672 /dev/dm-[0-9]. This lets the real device be found for any type of
43673 abstraction (LVM, EVMS, RAID..).
43674 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
43675 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
43676 device is found first, find_root_device() will now skip it.
43678 2008-07-24 Pavel Roskin <proski@gnu.org>
43680 * include/grub/types.h: Use __builtin_bswap32() and
43681 __builtin_bswap64() with gcc 4.3 and newer.
43683 2008-07-24 Christian Franke <franke@computer.org>
43685 * util/i386/pc/grub-install.in: If `--debug' is specified,
43686 pass `--verbose' to grub-setup.
43687 Abort script if make_system_path_relative_to_its_root() fails.
43689 2008-07-24 Bean <bean123ch@gmail.com>
43691 * configure.ac: Fixed a bug caused by the previous cygwin patch,
43692 variable `target_platform' should be `platform'.
43694 2008-07-24 Bean <bean123ch@gmail.com>
43696 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
43697 (grub_png_init_fixed_block): New function.
43698 (grub_png_decode_image_data): Handle fixed huffman code compression.
43700 2008-07-24 Bean <bean123ch@gmail.com>
43702 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
43703 (grub_pe2elf_SOURCES): New macro.
43704 (CLEANFILES): Add grub-pe2elf.
43706 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
43707 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
43708 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
43709 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
43710 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
43711 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
43712 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
43713 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
43714 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
43715 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
43716 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
43717 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
43718 (GRUB_PE32_DT_FUNCTION): Likewise.
43719 (GRUB_PE32_REL_I386_DIR32): Likewise.
43720 (GRUB_PE32_REL_I386_REL32): Likewise.
43721 (grub_pe32_symbol): New structure.
43722 (grub_pe32_reloc): Likewise.
43724 * util/grub-pe2elf.c: New file.
43726 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
43727 start symbol in non pc platform.
43729 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
43731 The following patches are from Christian Franke.
43733 * include/grub/dl.h: Remove .previous, gas supports this only
43736 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
43737 Remove .type, gas supports this only for ELF format.
43739 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
43740 nullbytes in symbol table. This fixes an infinite loop if table is
43743 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
43744 TARGET_IMG_LDFLAGS and EXEEXT.
43746 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
43747 TARGET_IMG_LDFLAGS_AC.
43748 (grub_CHECK_STACK_ARG_PROBE): New function.
43750 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
43752 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
43754 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
43755 to set TARGET_IMG_LD* accordingly.
43756 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
43757 Add call to grub_CHECK_STACK_ARG_PROBE.
43758 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
43760 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
43762 * genmk.rb: Add EXEEXT to CLEANFILES.
43764 2008-07-23 Robert Millan <rmh@aybabtu.com>
43766 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
43767 define the codes for arrows and lines used for the menu).
43768 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
43771 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
43772 fonts, because the latter are too slow.
43774 2008-07-21 Bean <bean123ch@gmail.com>
43776 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
43777 a20. Run keyboard test last, as it will cause macbook to halt.
43779 2008-07-18 Pavel Roskin <proski@gnu.org>
43781 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
43782 load foreign architecture modules correctly anyway. Keep
43783 support for loading host architecture modules, whether we
43784 compile them or not.
43786 2008-07-17 Pavel Roskin <proski@gnu.org>
43788 * configure.ac: Use -m32 or -m64 regardless of whether we had to
43789 change target_cpu. The compiler default can mismatch target_cpu
43792 * disk/efi/efidisk.c: Fix format warnings on x86_64.
43793 * kern/efi/efi.c: Likewise.
43795 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43796 target compiler is functional.
43797 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43800 * configure.ac: Default to efi platform for x86_64-apple. Allow
43801 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43802 adjustments from the rest, only do them if target is not
43803 explicitly given. Merge other adjustments with the final sanity
43804 check. Remove an extraneous check for supported CPU. Be
43805 specific which CPU and which platform is not supported.
43807 * configure.ac: Default to pc platform for x86_64.
43809 2008-07-17 Robert Millan <rmh@aybabtu.com>
43811 Partial LinuxBIOS -> Coreboot rename.
43813 * conf/i386-linuxbios.rmk: Renamed to ...
43814 * conf/i386-coreboot.rmk: ... this.
43815 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43816 * configure.ac: Accept "coreboot" as input platform (but maintain
43817 compatibility with "linuxbios").
43818 * include/grub/i386/linuxbios: Renamed to ...
43819 * include/grub/i386/coreboot: ... this.
43821 2008-07-17 Bean <bean123ch@gmail.com>
43823 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
43824 (appleldr_mod_SOURCE): New variable.
43825 (appleldr_mod_CFLAGS): Likewise.
43826 (appleldr_mod_LDFLAGS): Likewise.
43827 (pci_mod_SOURCES): Likewise.
43828 (pci_mod_CFLAGS): Likewise.
43829 (pci_mod_LDFLAGS): Likewise.
43830 (lspci_mod_SOURCES): Likewise.
43831 (lspci_mod_CFLAGS): Likewise.
43832 (lspci_mod_LDFLAGS): Likewise.
43834 * conf/x86_64-efi.rmk: New file.
43836 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43838 (grub_efidisk_write): Likewise.
43840 * include/efi/api.h (efi_call_0): New macro.
43841 (efi_call_1): Likewise.
43842 (efi_call_2): Likewise.
43843 (efi_call_3): Likewise.
43844 (efi_call_4): Likewise.
43845 (efi_call_5): Likewise.
43846 (efi_call_6): Likewise.
43848 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43849 grub_rescue_cmd_chainloader.
43851 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43852 (grub_pe32_optional_header): Change some fields based on i386 or
43854 (GRUB_PE32_PE32_MAGIC): Likewise.
43856 * include/grub/efi/uga_draw.h: New file.
43858 * include/grub/elf.h (STN_ABS): New constant.
43859 (R_X86_64_NONE): Relocation constant for x86_64.
43860 (R_X86_64_64): Likewise.
43861 (R_X86_64_PC32): Likewise.
43862 (R_X86_64_GOT32): Likewise.
43863 (R_X86_64_PLT32): Likewise.
43864 (R_X86_64_COPY): Likewise.
43865 (R_X86_64_GLOB_DAT): Likewise.
43866 (R_X86_64_JUMP_SLOT): Likewise.
43867 (R_X86_64_RELATIVE): Likewise.
43868 (R_X86_64_GOTPCREL): Likewise.
43869 (R_X86_64_32): Likewise.
43870 (R_X86_64_32S): Likewise.
43871 (R_X86_64_16): Likewise.
43872 (R_X86_64_PC16): Likewise.
43873 (R_X86_64_8): Likewise.
43874 (R_X86_64_PC8): Likewise.
43876 * include/grub/i386/efi/pci.h: New file.
43878 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
43879 Change it value based on platform.
43880 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
43881 (GRUB_E820_RAM): Likewise.
43882 (GRUB_E820_RESERVED): Likewise.
43883 (GRUB_E820_ACPI): Likewise.
43884 (GRUB_E820_NVS): Likewise.
43885 (GRUB_E820_EXEC_CODE): Likewise.
43886 (GRUB_E820_MAX_ENTRY): Likewise.
43887 (grub_e820_mmap): New structure.
43888 (linux_kernel_header): Change the efi field according to different
43889 kernel version, also field from linux_kernel_header.
43891 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
43893 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
43894 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
43895 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
43896 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
43897 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
43898 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
43899 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
43900 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
43901 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
43902 (GRUB_PCI_ADDR_IO_MASK): Likewise.
43904 * include/grub/x86_64/efi/kernel.h: New file.
43906 * include/grub/x86_64/efi/loader.h: Likewise.
43908 * include/grub/x86_64/efi/machine.h: Likewise.
43910 * include/grub/x86_64/efi/pci.h: Likewise.
43912 * include/grub/x86_64/efi/time.h: Likewise.
43914 * include/grub/x86_64/linux.h: Likewise.
43916 * include/grub/x86_64/setjmp.h: Likewise.
43918 * include/grub/x86_64/time.h: Likewise.
43920 * include/grub/x86_64/types.h: Likewise.
43922 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
43923 GRUB_TARGET_SIZEOF_VOID_P.
43925 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
43926 (grub_efi_locate_handle): Likewise.
43927 (grub_efi_open_protocol): Likewise.
43928 (grub_efi_set_text_mode): Likewise.
43929 (grub_efi_stall): Likewise.
43930 (grub_exit): Likewise.
43931 (grub_reboot): Likewise.
43932 (grub_halt): Likewise.
43933 (grub_efi_exit_boot_services): Likewise.
43934 (grub_get_rtc): Likewise.
43936 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
43937 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
43938 (grub_efi_allocate_pages): Wrap efi calls.
43939 (grub_efi_free_pages): Wrap efi calls.
43940 (grub_efi_get_memory_map): Wrap efi calls.
43942 * kern/x86_64/dl.c: New file.
43944 * kern/x86_64/efi/callwrap.S: Likewise.
43946 * kern/x86_64/efi/startup.S: Likewise.
43948 * loader/efi/appleloader.c: Likewise.
43950 * loader/efi/chainloader.c (cmdline): New variable.
43951 (grub_chainloader_unload): Wrap efi calls.
43952 (grub_chainloader_boot): Likewise.
43953 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
43956 * loader/efi/chainloader_normal.c (chainloader_command):
43957 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
43960 * loader/i386/efi/linux.c (allocate_pages): Change allocation
43962 (grub_e820_add_region): New function.
43963 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
43965 (grub_find_video_card): New function.
43966 (grub_linux_setup_video): New function.
43967 (grub_rescue_cmd_linux): Probe for video information.
43969 * normal/x86_64/setjmp.S: New file.
43971 * term/efi/console.c (map_char): New function.
43972 (grub_console_putchar): Map unicode char.
43973 (grub_console_checkkey): Wrap efi calls.
43974 (grub_console_getkey): Likewise.
43975 (grub_console_getwh): Likewise.
43976 (grub_console_gotoxy): Likewise.
43977 (grub_console_cls): Likewise.
43978 (grub_console_setcolorstate): Likewise.
43979 (grub_console_setcursor): Likewise.
43981 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
43983 2008-07-16 Pavel Roskin <proski@gnu.org>
43985 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
43988 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
43989 pointer, not an integer. This fixes a warning and prevents
43990 precision loss on 64-bit systems.
43991 (relocate_addresses): Remove unneeded cast.
43993 2008-07-15 Pavel Roskin <proski@gnu.org>
43995 * kern/i386/ieee1275/init.c: Include grub/cache.h.
43997 * term/ieee1275/ofconsole.c: Disable code unused on i386.
43999 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
44000 Fix comparison between signed and unsigned.
44002 * include/grub/i386/ieee1275/console.h: Declare
44003 grub_console_init() and grub_console_fini().
44005 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
44006 It's empty and unused.
44008 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
44009 beginning to avoid warnings with some compilers.
44011 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
44012 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
44014 2008-07-14 Pavel Roskin <proski@gnu.org>
44016 * kern/env.c (grub_register_variable_hook): Don't copy empty
44017 string, it leaks memory. Pass "" to grub_env_set(), it should
44018 handle constant strings.
44020 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
44021 * commands/cmp.c (grub_cmd_cmp): Likewise.
44022 * kern/dl.c (grub_dl_flush_cache): Likewise.
44023 (grub_dl_load_core): Likewise.
44024 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
44025 (grub_elf64_load_phdrs): Likewise.
44027 2008-07-13 Pavel Roskin <proski@gnu.org>
44029 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
44030 between signed and unsigned.
44031 (LzmaEnc_Finish): Fix warning about an unused parameter.
44033 2008-07-13 Bean <bean123ch@gmail.com>
44035 * Makefile.in (enable_lzo): New rule.
44037 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
44039 * configure.ac (ENABLE_LZO): New option --enable-lzo.
44041 * boot/i386/pc/lnxboot.S: #include <config.h>.
44043 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
44044 its value according to the compression algorithm used, lzo or lzma.
44046 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
44047 compression algorithm according to configure macro.
44049 * kern/i386/pc/startup.S (codestart): Likewise.
44051 * kern/i386/pc/lzma_decode.S: New file.
44053 * include/grub/lib/LzFind.h: Likewise.
44055 * include/grub/lib/LzHash.h: Likewise.
44057 * include/grub/lib/LzmaDec.h: Likewise.
44059 * include/grub/lib/LzmaEnc.h: Likewise.
44061 * include/grub/lib/LzmaTypes.h: Likewise.
44063 * lib/LzFind.c: Likewise.
44065 * lib/LzmaDec.c: Likewise.
44067 * lib/LzmaEnc.c: Likewise.
44069 2008-07-13 Bean <bean123ch@gmail.com>
44071 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
44072 (grub_ext4_extent_header): New structure.
44073 (grub_ext4_extent): Likewise.
44074 (grub_ext4_extent_idx): Likewise.
44075 (grub_ext4_find_leaf): New function.
44076 (grub_ext2_read_block): Handle extents.
44078 2008-07-12 Robert Millan <rmh@aybabtu.com>
44080 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
44082 2008-07-11 Robert Millan <rmh@aybabtu.com>
44084 * util/grub.d/40_custom.in: New file. Example on how to add custom
44085 entries to /etc/grub.d.
44086 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
44087 40_custom (implicitly, by merging all the grub.d rules).
44089 2008-07-11 Pavel Roskin <proski@gnu.org>
44091 * commands/read.c (grub_getline): Fix invalid memory access.
44092 Don't add newline to the variable value.
44094 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
44095 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
44096 (serial_hw_get_port): Check validity of the port number.
44097 (grub_cmd_serial): Check return value of serial_hw_get_port().
44099 2008-07-07 Pavel Roskin <proski@gnu.org>
44101 * boot/i386/pc/diskboot.S (notification_string): Replace
44102 "Loading kernel" with just "loading". This is shorter, less
44103 confusing and saves a few bytes for possible future changes.
44105 2008-07-05 Pavel Roskin <proski@gnu.org>
44107 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
44108 size for ATAPI devices, they are undefined. Output sector
44109 number in decimal form.
44111 * disk/ata.c: Use named constants for status bits.
44113 2008-07-04 Pavel Roskin <proski@gnu.org>
44115 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
44116 grub_addr_t before casting it to the void pointer to fix a
44117 warning. Non-addressable regions are discarded earlier.
44118 (grub_arch_modules_addr): Cast _end to grub_addr_t.
44119 * kern/i386/linuxbios/table.c: Include grub/misc.h.
44120 (check_signature): Don't shadow table_header.
44121 (grub_linuxbios_table_iterate): Cast numeric constants to
44122 grub_linuxbios_table_header_t.
44123 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
44126 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
44129 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
44130 pointer, which can cause warnings. Support 64-bit addresses.
44132 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
44133 of sizeof(long). This fixes PowerPC image generation on x86_64.
44135 2008-07-04 Robert Millan <rmh@aybabtu.com>
44137 This fixes a performance issue when pc & gpt partmap iterators
44138 didn't abort iteration even after our hook found what it was
44139 looking for (often causing expensive probes of non-existent drives).
44141 Some callers relied on previous buggy behaviour, since they would
44142 raise an error when their own hooks caused early abortion of its
44145 * kern/device.c (grub_device_open): Improve error message.
44146 * disk/lvm.c (grub_lvm_open): Likewise.
44147 * disk/raid.c (grub_raid_open): Likewise.
44149 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
44150 when hook requests it, independently of grub_errno.
44151 (pc_partition_map_probe): Do not fail when find_func() caused
44152 early abortion of pc_partition_map_iterate().
44154 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
44155 when hook requests it, independently of grub_errno.
44156 (gpt_partition_map_probe): Do not fail when find_func() caused
44157 early abortion of gpt_partition_map_iterate().
44159 * kern/partition.c (grub_partition_iterate): Abort parent iteration
44160 when hook requests it, independently of grub_errno. Do not fail when
44161 part_map_iterate_hook() caused early abortion of p->iterate().
44163 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
44164 when grub_partition_iterate() returned with non-zero.
44166 2008-07-03 Pavel Roskin <proski@gnu.org>
44168 * disk/ata.c (grub_ata_pio_write): Check status before writing,
44169 like we do in grub_ata_pio_read().
44170 (grub_ata_readwrite): Always write individual sectors. Fix the
44171 sector count for the remainder.
44172 (grub_ata_write): Enable writing to ATA devices. Correctly
44173 report error for ATAPI devices.
44175 2008-07-02 Pavel Roskin <proski@gnu.org>
44177 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
44180 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
44181 for every read sector, we already increment it for the whole
44182 batch. This fixes reading more than 256 sectors at once.
44184 * util/grub-editenv.c (cmd_info): Cast argument to long
44185 explicitly. ptrdiff_t reduces to int on i386.
44187 * util/grub-editenv.c (main): Be specific which parameter is
44190 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
44191 (memdisk): Make memdisk_orig_addr a pointer.
44193 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
44194 for file offsets, use grub_off_t instead. Fix printf format
44197 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
44198 there. Real unexpected warnings should not drown in the noise
44199 about known problems.
44201 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
44202 grub_disk_addr_t for memory addresses.
44204 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
44205 explicitly to fix a warning.
44207 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
44209 * Makefile.in (MODULE_LDFLAGS): New variable.
44210 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
44211 the linker accepts --build-id=none.
44212 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
44214 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
44216 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
44217 those in Linux XFS code. Provide a way to access 64-bit parent
44219 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
44220 the end of struct grub_xfs_dir_header.
44222 2008-07-02 Bean <bean123ch@gmail.com>
44224 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
44225 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44226 and GRUB_IEEE1275_FLAG_NO_ANSI.
44228 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
44229 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44230 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
44232 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
44233 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
44235 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
44236 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
44238 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
44239 esc sequence on non ANSI terminal.
44240 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
44242 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
44245 2008-07-02 Bean <bean123ch@gmail.com>
44247 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
44248 (grub_editenv_SOURCES): New variable.
44249 (pkglib_MODULES): Add loadenv.mod.
44250 (loadenv_mod_SOURCES): New variable.
44251 (loadenv_mod_CFLAGS): Likewise.
44252 (loadenv_mod_LDFLAGS): Likewise.
44254 * include/grub/envblk.h: New file.
44256 * util/envblk.c: New file.
44258 * util/grub-editenv.c: New file.
44260 * commands/loadenv.c: New file.
44262 2008-07-01 Pavel Roskin <proski@gnu.org>
44264 * include/multiboot2.h (struct multiboot_tag_module): Use char,
44265 not unsigned char. This fixes warnings and is consistent with
44268 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
44270 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
44272 * term/tparm.c (analyze): Always set *popcount.
44274 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
44275 cast to fix a warning.
44277 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
44278 cast to suppress a warning.
44280 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
44281 grub_fshelp_read_file() expects.
44283 * fs/fat.c: Fix UUID calculation on big-endian systems. We
44284 write uuid as a 32-bit value in CPU byte order, so declare and
44287 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
44288 long if the format specifier expects it.
44289 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
44290 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44291 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
44292 long to fix a warning.
44293 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
44294 grub_dprintf() arguments to fix warnings.
44296 2008-06-30 Pavel Roskin <proski@gnu.org>
44298 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
44299 install_bsd_part immediately before core.img is embedded or
44300 modified on disk. This fixes core.img verification if core.img
44301 cannot be embedded.
44303 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
44304 core_path to calculate the blocklist.
44305 Patch from Javier Martín <lordhabbit@gmail.com>
44307 2008-06-29 Robert Millan <rmh@aybabtu.com>
44309 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
44310 block to disk block.
44311 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
44312 Patch from Niels Böhm <bitbucket@arcor.de>
44314 2008-06-29 Robert Millan <rmh@aybabtu.com>
44316 * util/update-grub_lib.in (font_path): Search for fonts in
44317 /boot/grub first, which is more likely to be readable (we aren't
44318 deciding where fonts live, just looking for them).
44320 2008-06-26 Pavel Roskin <proski@gnu.org>
44322 * util/biosdisk.c (read_device_map): Don't leave dead map
44323 entries for devices failing stat() check.
44325 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
44326 core_path_dev for the core.img path on the target device.
44328 2008-06-26 Robert Millan <rmh@aybabtu.com>
44330 * disk/fs_uuid.c: New file.
44331 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
44332 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
44333 (fs_uuid_mod_LDFLAGS): New variables.
44334 * include/grub/disk.h (grub_disk_dev_id): Add
44335 `GRUB_DISK_DEVICE_UUID_ID'.
44336 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
44337 implement iterate().
44339 2008-06-26 Robert Millan <rmh@aybabtu.com>
44341 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
44342 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
44343 Linux image includes no initrd.
44345 2008-06-21 Javier Martín <lordhabbit@gmail.com>
44347 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
44348 call to resolve the core image location that effectively appended the
44351 2008-06-21 Robert Millan <rmh@aybabtu.com>
44353 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
44356 * util/grub.d/10_hurd.in: ... to here ...
44357 * util/grub.d/10_linux.in: ... and here.
44359 2008-06-19 Robert Millan <rmh@aybabtu.com>
44361 * kern/main.c (grub_main): Export `prefix' variable immediately
44362 after it has been set by grub_machine_set_prefix().
44364 2008-06-19 Robert Millan <rmh@aybabtu.com>
44366 * commands/search.c (search_label, search_fs_uuid, search_file): Print
44367 search result when not saving to variable, not the other way around.
44368 When saving to variable, abort iteration as soon as a match is found.
44370 2008-06-19 Robert Millan <rmh@aybabtu.com>
44372 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
44373 check for partition that provides /boot/grub. Its logic is flawed,
44374 as it prevents prepare_grub_to_access_device() from being called
44377 2008-06-19 Robert Millan <rmh@aybabtu.com>
44379 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
44380 "insmod" command directly when abstraction modules are needed,
44381 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
44382 since it had already been processed).
44384 2008-06-19 Pavel Roskin <proski@gnu.org>
44386 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
44387 changed. This is needed in case GRUB_LIBDIR changes.
44388 * conf/i386-ieee1275.rmk: Likewise.
44389 * conf/i386-linuxbios.rmk: Likewise.
44390 * conf/i386-pc.rmk: Likewise.
44391 * conf/powerpc-ieee1275.rmk: Likewise.
44393 2008-06-18 Pavel Roskin <proski@gnu.org>
44395 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
44396 kernel_elf_symlist.c to symlist.c for consistency with other
44397 architectures. Update all users.
44398 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
44400 2008-06-18 Robert Millan <rmh@aybabtu.com>
44402 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
44405 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
44406 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
44407 a RAID device, run setup() for all members independently on whether
44408 LVM abstraction is being used.
44409 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
44410 If grub-mkimage has set `*install_dos_part == -2', don't override this
44412 Perform *install_dos_part adjustments independently on whether
44413 we're embedding or not.
44414 Clarify error message when image is too big for embedding.
44415 Remove duplicate *install_dos_part stanza.
44417 2008-06-17 Robert Millan <rmh@aybabtu.com>
44419 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
44420 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
44422 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
44423 values in grub_ofconsole_normal_color and
44424 grub_ofconsole_highlight_color (they're not directly related to
44425 background and foreground).
44426 (grub_ofconsole_setcolorstate): Extract background and foreground
44427 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
44429 2008-06-17 Robert Millan <rmh@aybabtu.com>
44431 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
44432 /boot/grub for the check in last commit, not /boot (they could be
44433 different partitions).
44435 2008-06-16 Robert Millan <rmh@aybabtu.com>
44437 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
44438 asked to setup access for the same partition that provides /boot,
44439 don't bother using UUIDs since our root already has the value we
44442 2008-06-16 Robert Millan <rmh@aybabtu.com>
44444 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
44446 Patch from Sven Mueller <sven@debian.org>.
44448 2008-06-16 Robert Millan <rmh@aybabtu.com>
44450 * util/update-grub.in: Check for $EUID instead of $UID.
44451 Reported by Vincent Zweije.
44453 2008-06-16 Bean <bean123ch@gmail.com>
44455 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
44456 (grub_ext2_read_block): Likewise.
44457 (grub_ext2_read_inode): Likewise.
44458 (grub_ext2_mount): Likewise.
44459 (grub_ext2_close): Likewise.
44460 (grub_ext3_get_journal): Removed.
44462 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
44463 (grub_reiserfs_read_symlink): Likewise.
44464 (grub_reiserfs_mount): Likewise.
44465 (grub_reiserfs_open): Likewise.
44466 (grub_reiserfs_read): Likewise.
44467 (grub_reiserfs_close): Likewise.
44468 (grub_reiserfs_get_journal): Removed.
44470 * fs/fshelp.c (grub_fshelp_read): Removed.
44471 (grub_fshelp_map_block): Likewise.
44473 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
44474 (grub_fshelp_journal): Likewise.
44475 (grub_fshelp_read): Likewise.
44476 (grub_fshelp_map_block): Likewise.
44478 2008-06-16 Pavel Roskin <proski@gnu.org>
44480 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
44481 floating point anymore.
44482 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
44484 2008-06-15 Pavel Roskin <proski@gnu.org>
44486 * commands/ls.c (grub_ls_list_files): Use integer calculations
44487 for human readable format, avoid floating point use.
44488 * kern/misc.c (grub_ftoa): Remove.
44489 (grub_vsprintf): Remove floating point support.
44491 2008-06-15 Robert Millan <rmh@aybabtu.com>
44493 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
44495 Reported by Max Vozeler.
44497 2008-06-15 Robert Millan <rmh@aybabtu.com>
44499 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
44500 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
44502 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
44503 the beginning of the prefix.
44505 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
44506 It is assumed that if we have a memdisk, grub-mkimage has set
44507 grub_prefix to include the "(memdisk)" drive in it.
44509 2008-06-15 Robert Millan <rmh@aybabtu.com>
44511 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
44512 Initialize keyboard controller after registering the terminal, so that
44513 grub_printf() can be called from grub_keyboard_controller_init().
44515 2008-06-15 Robert Millan <rmh@aybabtu.com>
44517 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
44518 extent-btree which is written as big endian on disk.
44519 Reported by Alain Greppin <al@chilibi.org>.
44521 2008-06-14 Robert Millan <rmh@aybabtu.com>
44523 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
44524 * util/i386/pc/grub-install.in (modules): Likewise.
44526 2008-06-13 Pavel Roskin <proski@gnu.org>
44528 * commands/ls.c (grub_ls_list_files): Fix format warnings.
44530 2008-06-13 Bean <bean123ch@gmail.com>
44532 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
44534 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
44536 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
44537 to indicate sparse block.
44539 2008-06-12 Pavel Roskin <proski@gnu.org>
44541 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
44542 number, grub_fshelp_read() does it for us.
44544 * fs/fshelp.c (grub_fshelp_read): New function. Implement
44545 linear disk read with journal translation.
44546 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
44547 * include/grub/fshelp.h: Declare grub_fshelp_read().
44549 2008-06-09 Pavel Roskin <proski@gnu.org>
44551 * fs/minix.c (grub_minix_mount): Handle error reading
44554 2008-06-08 Robert Millan <rmh@aybabtu.com>
44556 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
44557 don't append the RAID prefix afterwards.
44558 Reported by Clint Adams.
44560 2008-06-08 Robert Millan <rmh@aybabtu.com>
44562 Based on description from Pavel:
44563 * kern/disk.c (grub_disk_check_range): Rename to ...
44564 (grub_disk_adjust_range): ... this. Add a comment explaining the
44565 tasks performed by this function.
44567 2008-06-08 Robert Millan <rmh@aybabtu.com>
44569 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
44570 `num_serial' (for consistency with other variables).
44571 (struct grub_ntfs_data): Add `uuid' member.
44572 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
44573 (grub_ntfs_uuid): New function.
44574 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
44576 2008-06-07 Pavel Roskin <proski@gnu.org>
44578 * util/biosdisk.c (open_device): Revert last change to the
44579 function, it broke installation. The sector needs to be
44580 different dependent on which device is opened.
44582 2008-06-06 Robert Millan <rmh@aybabtu.com>
44584 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
44585 rest of GRUB, and breakage doesn't happen if its value were modified.
44587 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44588 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
44589 a constant (same value).
44590 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
44591 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
44593 2008-06-06 Robert Millan <rmh@aybabtu.com>
44595 * util/biosdisk.c (open_device): Do not modify sector offset when
44596 accessing a partition. kern/disk.c already handles this for us.
44598 2008-06-06 Robert Millan <rmh@aybabtu.com>
44600 * util/grub-emu.c (grub_machine_init): Move code in this function from
44602 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
44603 segfault in case grub_printf() is called).
44605 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
44606 grub_probe. Update all users not to explicitly add it again.
44607 (grub_device): New variable; contains corresponding device for grubdir.
44608 (fs_module, partmap_module, devabstraction_module): Pass
44609 `--device ${grub_device}' to grub_probe to avoid traversing /dev
44612 2008-06-05 Robert Millan <rmh@aybabtu.com>
44614 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
44615 is found, print it (same layout as with labels).
44617 2008-06-04 Robert Millan <rmh@aybabtu.com>
44619 * util/biosdisk.c (get_drive): Rename to ...
44620 (find_grub_drive): ... this. Update all users.
44622 (get_os_disk): Rename to ...
44623 (convert_system_partition_to_system_disk): ... this. Update all users.
44625 (find_drive): Rename to ...
44626 (find_system_device): ... this. Update all users.
44628 2008-06-04 Robert Millan <rmh@aybabtu.com>
44630 * util/biosdisk.c (get_os_disk): Handle IDA devices.
44631 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44632 (make_device_map): Likewise.
44634 2008-06-01 Robert Millan <rmh@aybabtu.com>
44636 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
44637 before dereferencing it.
44639 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
44640 union with fat12/fat16-specific ones. Add some new fields, including
44641 `num_serial' for both versions.
44642 (struct grub_fat_data): Add `uuid' member.
44643 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
44644 names. Initialize `data->uuid' using `num_serial'.
44645 (grub_fat_uuid): New function.
44646 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
44648 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
44649 (grub_reiserfs_uuid): New function.
44650 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
44653 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
44654 (grub_xfs_uuid): New function.
44655 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
44657 2008-06-01 Robert Millan <rmh@aybabtu.com>
44659 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
44660 code that is backward compatible with pre-uuid search command.
44662 2008-05-31 Robert Millan <rmh@aybabtu.com>
44664 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
44665 floppies after everything else, to ensure floppy drive isn't accessed
44666 unnecessarily (patch from Bean).
44668 2008-05-31 Robert Millan <rmh@aybabtu.com>
44670 * commands/search.c (search_label, search_fs_uuid, search_file): Do
44671 not print device names when we were asked to set a variable.
44673 2008-05-31 Robert Millan <rmh@aybabtu.com>
44675 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
44676 using "cursor-on" and "cursor-off" commands (understood at least by
44677 the Open Firmware flavour on OLPC).
44679 2008-05-31 Michael Gorven <michael@gorven.za.net>
44681 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
44682 on and off sequences.
44684 2008-05-31 Robert Millan <rmh@aybabtu.com>
44686 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
44687 * util/update-grub.in: Likewise.
44689 2008-05-30 Pavel Roskin <proski@gnu.org>
44691 * util/biosdisk.c (linux_find_partition): Simplify logic and
44692 make the code more universal. Keep special processing for
44693 devfs, but use a simple rule for all other devices. If the
44694 device ends with a number, append 'p' and the partition number.
44695 Otherwise, append only the partition number.
44697 2008-05-30 Robert Millan <rmh@aybabtu.com>
44699 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
44700 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
44701 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
44702 the `root' parameter to Linux.
44704 2008-05-30 Robert Millan <rmh@aybabtu.com>
44706 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
44707 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
44708 --fs_uuid with --fs-uuid.
44709 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
44710 all filesystems support them).
44712 2008-05-30 Robert Millan <rmh@aybabtu.com>
44714 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
44715 grub_printf() flags, since we're printing in units of 2 bytes.
44717 2008-05-30 Robert Millan <rmh@aybabtu.com>
44719 * util/grub.d/00_header.in: Remove obsolete comment referencing
44720 convert_system_path_to_grub_path().
44721 * util/update-grub.in: Likewise.
44722 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
44723 (convert_system_path_to_grub_path): Add a warning message explaining
44724 that this function is deprecated. Rely on is_path_readable_by_grub()
44725 for the readability checks.
44726 (font_path): Use is_path_readable_by_grub() for the readability
44727 check rather than convert_system_path_to_grub_path().
44729 2008-05-30 Robert Millan <rmh@aybabtu.com>
44731 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
44732 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
44733 converting it first.
44734 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
44735 grub.cfg for access to font file, and afterwards call it again to set
44738 2008-05-30 Robert Millan <rmh@aybabtu.com>
44740 * commands/search.c (options): Add --fs_uuid option.
44741 (search_fs_uuid): New function.
44742 (grub_cmd_search): Fix --set argument passing.
44743 Use search_fs_uuid() when requested via --fs_uuid.
44744 (grub_search_init): Update help message.
44745 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
44746 and redeclare it as an array of 16-bit words.
44747 (grub_ext2_uuid): New function.
44748 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
44749 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
44750 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
44751 (GRUB_DEVICE_BOOT_UUID): New variables.
44752 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
44753 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
44755 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
44756 just assume `root' variable has the right value.
44757 * util/grub.d/10_linux.in: Likewise.
44758 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
44760 (main): Recognise `-t fs_uuid' argument.
44762 2008-05-30 Robert Millan <rmh@aybabtu.com>
44764 * util/biosdisk.c (map): Redefine structure to hold information
44765 about GRUB drive name.
44766 (get_drive): Reimplement without assuming (and verifying) BIOS-like
44768 (call_hook): Remove.
44769 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
44770 member. Assume drive has partitions.
44771 (grub_util_biosdisk_open): Access device names via `.device' struct
44773 (open_device): Likewise.
44774 (find_drive): Likewise.
44775 (read_device_map): Adjust map[] usage to match the new struct
44776 definition. Don't check for duplicates (still possible, but not cheap
44778 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
44779 (make_device_name): Remove assumption of BIOS-like drive names.
44781 2008-05-30 Pavel Roskin <proski@gnu.org>
44783 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
44784 compiling execute.c doesn't need grub_script.tab.h anymore.
44785 (normal/command.c_DEPENDENCIES): Likewise.
44786 (normal/function.c_DEPENDENCIES): Likewise.
44787 * conf/i386-ieee1275.rmk: Likewise.
44788 * conf/i386-linuxbios.rmk: Likewise.
44789 * conf/i386-pc.rmk: Likewise.
44790 * conf/powerpc-ieee1275.rmk: Likewise.
44791 * conf/sparc64-ieee1275.rmk: Likewise.
44793 2008-05-29 Pavel Roskin <proski@gnu.org>
44795 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44796 when scanning metadata for volume group name.
44798 * include/grub/script.h: Don't include grub_script.tab.h. It's
44799 a generated file, which may only be included from the files with
44800 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44801 use union YYSTYPE, as the later allows forward declaration.
44802 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44804 2008-05-29 Robert Millan <rmh@aybabtu.com>
44806 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44807 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44808 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44809 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44812 2008-05-29 Robert Millan <rmh@aybabtu.com>
44814 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44815 control key combinations.
44817 2008-05-29 Robert Millan <rmh@aybabtu.com>
44819 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44820 * util/ieee1275/grub-install.in: ... to here.
44821 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44822 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44823 (grub_install_SOURCES): Likewise.
44825 2008-05-29 Robert Millan <rmh@aybabtu.com>
44827 * fs/affs.c: Update copyright year.
44828 * fs/ext2.c: Likewise.
44829 * fs/fshelp.c: Likewise.
44830 * fs/hfsplus.c: Likewise.
44831 * fs/ntfs.c: Likewise.
44832 * fs/xfs.c: Likewise.
44833 * include/grub/fshelp.h: Likewise.
44834 * util/grub-mkdevicemap.c: Likewise.
44836 2008-05-28 Robert Millan <rmh@aybabtu.com>
44838 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44839 might need to be fatfs to support some firmware implementations
44842 2008-05-28 Robert Millan <rmh@aybabtu.com>
44844 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44846 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44847 (make_device_map): Likewise.
44849 2008-05-20 Bean <bean123ch@gmail.com>
44851 * fs/fshelp.c (grub_fshelp_map_block): New function.
44852 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44853 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44855 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44856 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44857 (grub_fshelp_journal): New structure.
44858 (grub_fshelp_map_block): New function prototype.
44859 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44860 (grub_fshelp_map_block): Likewise.
44862 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44863 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44864 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44865 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44866 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44867 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44868 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44869 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
44870 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
44871 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
44872 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
44873 (grub_ext2_sblock): New members for journal support.
44874 (grub_ext3_journal_header): New structure.
44875 (grub_ext3_journal_revoke_header): Likewise.
44876 (grub_ext3_journal_block_tag): Likewise.
44877 (grub_ext3_journal_sblock): Likewise.
44878 (grub_fshelp_node): New members logfile and journal.
44879 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
44880 grub_fshelp_map_block to get real block number.
44881 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
44883 (grub_ext2_read_inode): Likewise.
44884 (grub_ext3_get_journal): New function.
44885 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
44886 (grub_ext2_close): Release memory used by journal.
44888 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
44889 (REISERFS_MAGIC_DESC_BLOCK): New macro.
44890 (grub_reiserfs_transaction_header): Renamed to
44891 grub_reiserfs_description_block, replace field data with real_blocks.
44892 (grub_reiserfs_commit_block): New structure.
44893 (grub_reiserfs_data): New member journal.
44894 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
44896 (grub_reiserfs_read_symlink): Likewise.
44897 (grub_reiserfs_iterate_dir): Likewise.
44898 (grub_reiserfs_open): Likewise.
44899 (grub_reiserfs_read): Likewise.
44900 (grub_reiserfs_get_journal): New function.
44901 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
44902 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
44903 using grub_reiserfs_get_journal.
44904 (grub_reiserfs_close): Release memory used by journal.
44906 * fs/affs.c (grub_affs_read_block): Change block type to
44907 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
44909 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
44911 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
44913 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
44915 * fs/udf.c (grub_udf_read_block): Change block type to
44916 grub_disk_addr_t. Use type cast to avoid warning.
44918 * fs/xfs.c (grub_xfs_read_block): Likewise.
44920 2008-05-16 Christian Franke <franke@computer.org>
44922 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
44923 to ensure that break with ESC will always work.
44924 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
44925 Remove ESC from keyboard queue.
44927 2008-05-16 Christian Franke <franke@computer.org>
44929 * util/biosdisk.c: [__CYGWIN__] Add includes.
44930 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
44931 (get_os_disk): Move variable declarations to OS specific
44932 parts to avoid warning.
44933 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
44934 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
44935 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
44937 * util/getroot.c: [__CYGWIN__] Add includes.
44938 (strip_extra_slashes): Fix "/" case.
44939 [__CYGWIN__] (get_win32_path): New function.
44940 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
44941 [__CYGWIN__] (find_root_device): Disable.
44942 [__CYGWIN__] (get_bootsec_serial): New function.
44943 [__CYGWIN__] (find_cygwin_root_device): Likewise.
44944 [__linux__] (grub_guess_root_device): Add early returns to simplify
44946 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
44947 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
44948 check for Linux only.
44950 2008-05-15 Bean <bean123ch@gmail.com>
44952 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
44953 keyboard hang problem in apple's intel mac.
44955 2008-05-09 Robert Millan <rmh@aybabtu.com>
44957 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
44959 * util/grub-mkdevicemap.c (get_virtio_disk_name)
44960 (make_device_map): Likewise.
44961 Reported by Aurelien Jarno <aurel32@debian.org>
44963 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
44965 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
44966 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
44967 (make_device_map): Output entries for xvd type disks.
44969 2008-05-07 Robert Millan <rmh@aybabtu.com>
44971 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
44973 * util/grub-mkdevicemap.c (get_cciss_disk_name)
44974 (make_device_map): Likewise.
44975 Reported by Roland Dreier <rdreier@cisco.com>
44977 2008-05-07 Robert Millan <rmh@aybabtu.com>
44979 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
44980 grub_strstr() call. Correct a few mistakes in failure path handling.
44982 2008-05-06 Robert Millan <rmh@aybabtu.com>
44984 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
44985 Do not print a trailing slash (therefore, the root directory is an
44987 (convert_system_path_to_grub_path): Do not remove trailing slash
44988 from make_system_path_relative_to_its_root() output.
44990 * util/i386/pc/grub-install.in: Add trailing slash to output from
44991 make_system_path_relative_to_its_root().
44993 2008-05-06 Robert Millan <rmh@aybabtu.com>
44995 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
44996 ensures that output lines aren't intermangled with those sent to
44997 stderr (via grub_util_info()).
44998 * util/grub-probe.c (grub_refresh): Likewise.
44999 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
45001 2008-05-05 Christian Franke <franke@computer.org>
45003 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
45004 Add Cygwin device names.
45005 (get_ide_disk_name) [__CYGWIN__]: Likewise.
45006 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
45007 (check_device): Return error instead of success on empty name.
45008 (make_device_map): Move label inside linux specific code to
45009 prevent compiler warning.
45011 2008-04-30 Robert Millan <rmh@aybabtu.com>
45013 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
45014 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
45016 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
45018 2008-04-29 Robert Millan <rmh@aybabtu.com>
45020 * docs/grub.cfg: New file (example GRUB configuration).
45022 2008-04-26 Robert Millan <rmh@aybabtu.com>
45024 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
45025 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
45026 and `disk/ieee1275/nand.c'.
45028 2008-04-25 Bean <bean123ch@gmail.com>
45030 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
45033 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
45034 change the buffer size to 4096 for cdrom device.
45036 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
45038 (_linux_mod_SOURCES): New variable.
45039 (_linux_mod_CFLAGS): Likewise.
45040 (_linux_mod_LDFLAGS): Likewise.
45041 (linux_mod_SOURCES): Likewise.
45042 (linux_mod_CFLAGS): Likewise.
45043 (linux_mod_LDFLAGS): Likewise.
45044 (nand_mod_SOURCES): Likewise.
45045 (nand_mod_CFLAGS): Likewise.
45046 (nand_mod_LDFLAGS): Likewise.
45048 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
45049 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
45050 type property. (nand device in olpc don't have this property)
45052 * include/grub/disk.h (grub_disk_dev_id): New macro
45053 GRUB_DISK_DEVICE_NAND_ID.
45055 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
45056 function prototype.
45057 (grub_rescue_cmd_initrd): Likewise.
45059 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
45060 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
45061 ofw_cif_handler and ofw_idt, adjust padding number.
45063 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
45064 GRUB_MACHINE_IEEE1275 is defined.
45066 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
45067 Use NESTED_FUNC_ATTR attribute on the hook parameter.
45069 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
45070 on nested function heap_init.
45071 (grub_upper_mem): New variable for i386-ieee1275.
45072 (grub_get_extended_memory): New function for i386-ieee1275.
45073 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
45075 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
45076 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
45079 * loader/i386/ieee1275/linux.c: New file.
45081 * loader/i386/ieee1275/linux_normal.c: New file.
45083 * disk/ieee1275/nand.c: New file.
45085 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
45087 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
45089 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
45091 2008-04-18 Robert Millan <rmh@aybabtu.com>
45093 Restructures early code path on ieee1275 to unify grub_main() as
45094 the first C function that is executed in every platform.
45096 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
45097 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
45099 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
45100 * kern/ieee1275/cmain.c (cmain): Rename to ...
45101 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
45102 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
45105 2008-04-18 Robert Millan <rmh@aybabtu.com>
45107 * util/update-grub.in: Fix syntax error when setting
45108 `GRUB_PRELOAD_MODULES'.
45109 Reported by Stephane Chazelas <stephane@artesyncp.com>
45111 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
45113 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
45114 section into account, newer toolchains generate unique build ids
45115 * configure.ac: remove the test for --build-id=none acceptance,
45116 we want build ids to be preserved
45117 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
45118 far from other sections don't cause the raw binary images grow
45121 2008-04-15 Robert Millan <rmh@aybabtu.com>
45123 * disk/lvm.c: Update copyright year.
45124 * kern/misc.c: Likewise.
45126 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45128 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
45129 there is no memory left for physical volume name.
45131 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45133 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
45134 volume name mapping to support bigger than 9 character names properly.
45136 2008-04-13 Robert Millan <rmh@aybabtu.com>
45138 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
45139 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
45141 2008-04-13 Christian Franke <franke@computer.org>
45143 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
45144 to create a floppy emulation boot CD when non emulation mode
45146 Enable Joliet CD filesystem extension.
45148 2008-04-13 Robert Millan <rmh@aybabtu.com>
45150 * kern/misc.c (grub_strncat): Fix off-by-one error.
45151 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
45153 * kern/env.c (grub_env_context_close): Clear current context, not
45155 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
45157 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
45159 2008-04-13 Robert Millan <rmh@aybabtu.com>
45161 Improve robustness when handling LVM.
45163 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
45164 (and leave `*p' unmodified).
45165 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
45167 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
45168 iterating through it.
45169 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
45171 (grub_lvm_scan_device): Check the return value (and fail gracefully
45172 when due) on each grub_lvm_getvalue() or grub_strstr() call.
45173 Don't assume `vg->pvs != NULL' when iterating through it.
45175 2008-04-13 Robert Millan <rmh@aybabtu.com>
45177 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
45178 * genmk.rb (partmap): New variable.
45179 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
45180 (#{partmap}): New target rule.
45181 * genpartmaplist.sh: New file.
45182 * Makefile.in (pkglib_DATA): Add partmap.lst.
45183 (partmap.lst): New target rule.
45184 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
45185 modules (including all partition maps), instead of preloading them.
45187 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
45189 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
45190 `linux-boot-prober' (if installed) to detect other operating
45191 systems which are installed on the computer and add them to
45193 * conf/common.rmk: Build and install 30_os-prober.
45195 2008-04-12 Robert Millan <rmh@aybabtu.com>
45197 * kern/powerpc/ieee1275/init.c: Move from here ...
45198 * kern/ieee1275/init.c: ... to here. Update all users.
45200 * kern/powerpc/ieee1275/cmain.c: Move from here ...
45201 * kern/ieee1275/cmain.c: ... to here. Update all users.
45203 * kern/powerpc/ieee1275/openfw.c: Move from here ...
45204 * kern/ieee1275/openfw.c: ... to here. Update all users.
45206 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
45207 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
45209 2008-04-10 Pavel Roskin <proski@gnu.org>
45211 * configure.ac: Always use "_cv_" in cache variables for
45212 compatibility with Autoconf 2.62.
45214 2008-04-07 Robert Millan <rmh@aybabtu.com>
45216 Revert grub/machine/init.h addition by Pavel (since it breaks on
45217 i386-ieee1275 and others):
45218 * util/i386/pc/misc.c: Remove grub/machine/init.h.
45219 * util/powerpc/ieee1275/misc.c: Likewise.
45221 2008-04-07 Robert Millan <rmh@aybabtu.com>
45223 * util/grub-probe.c (probe): Improve error message.
45225 2008-04-07 Robert Millan <rmh@aybabtu.com>
45227 * util/biosdisk.c (read_device_map): Skip devices that don't exist
45228 (this prevents the presence of a bogus entry from ruining the whole
45231 2008-04-06 Pavel Roskin <proski@gnu.org>
45233 * util/biosdisk.c: Include grub/util/biosdisk.h.
45234 * util/grub-fstest.c (execute_command): Make static.
45235 * util/grub-mkdevicemap.c (check_device): Likewise.
45236 * util/i386/pc/misc.c: Include grub/machine/init.h.
45237 * util/powerpc/ieee1275/misc.c: Likewise.
45238 * util/lvm.c: Include grub/util/lvm.h.
45239 * util/misc.c: Include grub/kernel.h, grub/misc.h and
45241 * util/raid.c: Include grub/util/raid.h.
45242 (grub_util_getdiskname): Make static.
45244 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
45245 grub_hostfs_fini(), as they are called from grub_init_all() and
45246 grub_fini_all() respectively. This fixes an infinite loop in
45247 grub-fstest due to double registration of hostfs.
45248 Reported by Christian Franke <Christian.Franke@t-online.de>
45250 2008-04-05 Pavel Roskin <proski@gnu.org>
45252 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
45253 all 8 functions. Otherwise, probe function 0 only.
45255 2008-04-04 Pavel Roskin <proski@gnu.org>
45257 * commands/lspci.c (grub_lspci_iter): Print the bus number
45260 * commands/lspci.c (grub_pci_classes): Fix typos.
45261 (grub_lspci_iter): Don't print func twice. Print vendor ID
45262 before device ID, as it's normally done.
45264 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45265 Fix signedness warnings.
45266 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
45268 * util/ieee1275/get_disk_name.c: Include config.h so that
45269 _GNU_SOURCE is defined and getline() is declared. Mark an
45270 unused argument as such. Fix a signedness warning.
45272 2008-04-02 Pavel Roskin <proski@gnu.org>
45274 * genkernsyms.sh.in: Use more robust assignments for CC and
45275 srcdir. Quote srcdir.
45276 * gensymlist.sh.in: Likewise. Assert at the compile time that
45277 the symbol table is not empty.
45279 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
45280 * fs/cpio.c (grub_cpio_read): Likewise.
45282 2008-04-01 Pavel Roskin <proski@gnu.org>
45284 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
45285 * disk/host.c (grub_host_open): Likewise.
45286 * disk/loopback.c (grub_loopback_open): Likewise.
45287 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
45288 disk->id as in disk/host.c, not a multi-character constant.
45290 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
45291 later is obsolete, potentially dangerous and sets a bad example.
45292 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
45293 * util/misc.c (grub_util_get_image_size): Likewise.
45295 * disk/loopback.c (options): Improve help for "--partitions".
45297 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
45298 options to align them with the short options, e.g. "echo -e".
45300 2008-03-31 Bean <bean123ch@gmail.com>
45302 * video/reader/png.c (grub_png_data): New member is_16bit and
45304 (grub_png_decode_image_header): Detect 16 bit png image.
45305 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
45306 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
45307 (grub_video_reader_png): Release memory occupied by image_data.
45309 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
45311 (grub_nfs_mount): Skip the test for sector per cluster.
45313 * include/grub/ntfs.h (MAX_SPC): Removed.
45315 2008-03-31 Bean <bean123ch@gmail.com>
45317 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
45318 (grub_probe_SOURCES): Add fs/afs.c.
45319 (grub_fstest_SOURCES): Likewise.
45320 (afs_mod_SOURCES): New variable.
45321 (afs_mod_CFLAGS): Likewise.
45322 (afs_mod_LDFLAGS): Likewise.
45324 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
45325 (grub_emu_SOURCES): Likewise.
45327 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45329 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45331 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45333 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45335 * fs/afs.c: New file.
45337 2008-03-30 Pavel Roskin <proski@gnu.org>
45339 * disk/host.c: Include grub/misc.h to fix a warning.
45340 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
45341 warnings about implicit declarations.
45343 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
45345 * include/grub/i386/loader.h: Change declaration of
45346 grub_linux_boot() to match what grub_loader_set() expects.
45347 * util/getroot.c (grub_guess_root_device): Return const char* to
45349 * util/grub-probe.c (probe): Fix a warning about uninitialized
45350 abstraction_name variable.
45351 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
45352 second argument as unused to fix a warning.
45354 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
45355 missing grub_error() call.
45357 * util/update-grub_lib.in: Define datarootdir, since Autoconf
45358 2.60 and newer uses it to define datadir.
45360 * commands/sleep.c: Fix warning about implicit declaration.
45361 * disk/memdisk.c: Likewise.
45362 * loader/aout.c: Likewise.
45363 * loader/i386/bsd_normal.c: Likewise.
45364 * util/grub-probe.c: Likewise.
45366 * commands/i386/cpuid.c (has_longmode): Make static.
45367 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
45368 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
45370 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
45371 GDT. This is more robust, as %ds can change.
45372 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
45373 calling real_to_prot().
45374 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
45376 2008-03-28 Pavel Roskin <proski@gnu.org>
45378 * kern/i386/pc/startup.S: Assert that uncompressed functions
45379 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
45380 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
45381 code, as they push parts of the code (error handlers) beyond
45382 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
45383 code as correctness and size.
45385 2008-03-28 Pavel Roskin <proski@gnu.org>
45387 * kern/i386/pc/startup.S
45388 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
45389 data block address to the real mode, keep offset minimal. This
45390 works around a bug in AWARD BIOS on old Athlon systems, which
45391 makes CD detection hang.
45393 2008-03-26 Pavel Roskin <proski@gnu.org>
45395 * normal/color.c (grub_parse_color_name_pair): Make `name' a
45397 * include/grub/normal.h: Add grub_parse_color_name_pair()
45400 2008-03-24 Bean <bean123ch@gmail.com>
45402 * disk/i386/pc/biosdisk.c (cd_start): Removed.
45403 (cd_count): Removed.
45404 (cd_drive): New variable.
45405 (grub_biosdisk_get_drive): Don't check for (cdN) device.
45406 (grub_biosdisk_call_hook): Likewise.
45407 (grub_biosdisk_iterate): Change cdrom detection method.
45408 (grub_biosdisk_open): Replace cd_start with cd_drive.
45409 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
45410 detect cdrom device.
45412 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
45414 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
45415 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
45416 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
45417 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
45418 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
45419 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
45420 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
45421 (grub_biosdisk_cdrp): New structure.
45422 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
45424 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
45426 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
45429 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
45432 2008-03-20 Robert Millan <rmh@aybabtu.com>
45434 Remove 2 TiB limit in ata.mod.
45435 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
45436 (grub_ata_dumpinfo): Print sector count with 0x%llx.
45437 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
45438 grub_uint64_t instead of grub_uint32_t.
45440 2008-03-05 Bean <bean123ch@gmail.com>
45442 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
45443 (grub_multiboot): Set boot device.
45445 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
45447 2008-03-02 Bean <bean123ch@gmail.com>
45449 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
45452 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
45454 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
45457 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
45460 * docs/fdl.texi: New file.
45462 * docs/mdate-sh: New file. Copied from gnulib.
45463 * docs/texinfo.tex: Likewise.
45465 * config.guess: Updated from gnulib.
45466 * install-sh: Likewise.
45468 2008-02-28 Robert Millan <rmh@aybabtu.com>
45470 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
45471 (aout_mod_SOURCES): New variable.
45472 (aout_mod_CFLAGS): Likewise.
45473 (aout_mod_LDFLAGS): Likewise.
45475 * conf/i386-ieee1275.rmk: Likewise.
45477 2008-02-28 Robert Millan <rmh@aybabtu.com>
45479 * util/update-grub.in: Reorganise terminal validity check. Accept
45480 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
45481 Based on suggestion by Franklin PIAT.
45483 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
45485 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
45487 * util/getroot.c (grub_util_check_block_device): New function that
45488 returns the given argument if it is a block device and returns NULL else.
45489 * util/grub-probe.c (argument_is_device): New variable.
45490 (probe): Promote device_name from a variable to an argument. Receive
45491 device_name from grub_util_check_block_device() if path is NULL and from
45492 grub_guess_root_device() else. Do not free() device_name anymore.
45493 (options): Introduce new parameter '-d, --device'.
45494 (main): Add description of the new parameter to the help screen.
45495 Rename path variable to argument. Set argument_is_device if the '-d'
45496 option is given. Pass argument to probe() depending on
45497 argument_is_device.
45499 2008-02-24 Bean <bean123ch@gmail.com>
45501 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
45502 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
45503 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
45504 (GRUB_ISO9660_VOLDESC_PART): Likewise.
45505 (GRUB_ISO9660_VOLDESC_END): Likewise.
45506 (grub_iso9660_primary_voldesc): New member escape.
45507 (grub_iso9660_data): New member joliet.
45508 (grub_iso9660_convert_string): New function.
45509 (grub_iso9660_mount): Detect joliet extension.
45510 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
45511 (grub_iso9660_iso9660_label): Likewise.
45513 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
45514 (grub_setup_SOURCES): Add fs/udf.c.
45515 (grub_fstest_SOURCES): Likewise.
45516 (udf_mod_SOURCES): New variable.
45517 (udf_mod_CFLAGS): Likewise.
45518 (udf_mod_LDFLAGS): Likewise.
45520 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
45521 (grub_emu_SOURCES): Likewise.
45523 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45525 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45527 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45529 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45531 * fs/udf.c: New file.
45533 2008-02-24 Robert Millan <rmh@aybabtu.com>
45535 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
45536 (normal/lexer.c_DEPENDENCIES): New variables.
45537 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45538 (normal/lexer.c_DEPENDENCIES): Likewise.
45539 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
45540 (normal/lexer.c_DEPENDENCIES): Likewise.
45541 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
45542 (normal/lexer.c_DEPENDENCIES): Likewise.
45543 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45544 (normal/lexer.c_DEPENDENCIES): Likewise.
45545 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45546 (normal/lexer.c_DEPENDENCIES): Likewise.
45548 2008-02-23 Robert Millan <rmh@aybabtu.com>
45550 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
45551 since they were intended to be in hex. This didn't break previously
45552 because of a bug in gpt_partition_map_iterate() (see below).
45554 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
45555 when checking the validity of GPT header.
45556 Remove `partno', since it always provides the same information as `i'.
45558 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
45560 * include/grub/efi/time.h: Fix a wrong comment.
45562 2008-02-19 Pavel Roskin <proski@gnu.org>
45564 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
45567 2008-02-19 Bean <bean123ch@gmail.com>
45569 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
45570 (aout_mod_SOURCES): New variable.
45571 (aout_mod_CFLAGS): Likewise.
45572 (aout_mod_LDFLAGS): Likewise.
45573 (_bsd_mod_SOURCES): New variable.
45574 (_bsd_mod_CFLAGS): Likewise.
45575 (_bsd_mod_LDFLAGS): Likewise.
45576 (bsd_mod_SOURCES): New variable.
45577 (bsd_mod_CFLAGS): Likewise.
45578 (bsd_mod_LDFLAGS): Likewise.
45580 * include/grub/aout.h: New file.
45582 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
45584 * include/grub/i386/bsd.h: New file.
45586 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
45589 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
45590 function is called, so that it's possible to change it inside the hook.
45591 (grub_elf64_load): Likewise.
45592 (grub_elf_file): Don't close the file if elf header is not found.
45593 (grub_elf_close): Close the file if grub_elf_file fails (The new
45594 grub_elf_file won't close it).
45595 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
45596 (grub_elf64_size): Likewise.
45598 * kern/i386/loader.S (grub_unix_real_boot): New function.
45600 * loader/aout.c: New file.
45602 * loader/i386/bsd.c: New file.
45604 * loader/i386/bsd_normal.c: New file.
45606 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
45608 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
45609 can test other formats.
45611 2008-02-19 Robert Millan <rmh@aybabtu.com>
45613 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
45614 (grub_gpt_partition_type_empty): Redefine with macro from
45615 `<grub/gpt_partition.h>'.
45616 (gpt_partition_map_iterate): Adjust partition type comparison.
45618 Export `entry' as partmap-specific `part.data' struct.
45619 (grub_gpt_header, grub_gpt_partentry): Move from here ...
45621 * include/grub/gpt_partition.h (grub_gpt_header)
45622 (grub_gpt_partentry): ... to here (new file).
45624 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
45626 (grub_gpt_partition_type_bios_boot): New const variable, defined
45627 with macro from `<grub/gpt_partition.h>'.
45629 (setup): Replace `first_start' with `embed_region', which keeps
45630 track of the embed region (and is partmap-agnostic).
45632 Replace find_first_partition_start() with find_usable_region(),
45633 which finds a usable region for embedding using partmap-specific
45634 knowledge (supports PC/MSDOS and GPT).
45636 Fix all assumptions that the embed region start at sector 1, using
45637 `embed_region.start' from now on. Similarly, use `embed_region.end'
45638 rather than `first_start' to calculate available size.
45640 In grub_util_info() message, replace "into after the MBR" with an
45641 indication of the specific sector our embed region starts at.
45643 2008-02-19 Robert Millan <rmh@aybabtu.com>
45645 * DISTLIST: Replace `commands/ieee1275/halt.c' and
45646 `commands/ieee1275/reboot.c' with `commands/halt.c' and
45647 `commands/reboot.c'.
45648 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45649 (halt_mod_SOURCES): Likewise.
45650 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45651 (halt_mod_SOURCES): Likewise.
45653 2008-02-17 Christian Franke <franke@computer.org>
45655 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
45657 2008-02-17 Robert Millan <rmh@aybabtu.com>
45659 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45660 set `first_start' to 0 for non-PC/MSDOS partition maps.
45662 2008-02-16 Robert Millan <rmh@aybabtu.com>
45664 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45665 do not assume partition map is PC/MSDOS before performing checks that
45666 are specific to that layout.
45668 2008-02-13 Robert Millan <rmh@aybabtu.com>
45670 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
45671 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
45672 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
45674 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
45676 * configure.ac: Only a cosmetic change on the handling of
45677 -fno-stack-protector.
45679 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
45681 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
45682 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
45684 (grub_install_SOURCES): Add halt.mod and reboot.mod.
45685 (halt_mod_SOURCES): New variable.
45686 (halt_mod_CFLAGS): Likewise.
45687 (halt_mod_LDFLAGS): Likewise.
45688 (reboot_mod_SOURCES): Likewise.
45689 (reboot_mod_CFLAGS): Likewise.
45690 (reboot_mod_LDFLAGS): Likewise.
45692 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
45693 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
45695 (halt_mod_SOURCES): Likewise.
45696 (reboot_mod_SOURCES): Likewise.
45698 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
45699 commands/i386/pc/reboot.c by commands/reboot.c.
45700 (reboot_mod_SOURCES): Likewise.
45702 * commands/i386/pc/reboot.c: merge this file ...
45704 * commands/ieee1275/reboot.c: ... and this file ...
45706 * commands/reboot.c: ... to this file.
45707 Add some precompiler directive to include the correct header for
45710 * commands/ieee1275/halt.c: move this file ...
45712 * commands/halt.c: ... to here.
45713 Add some precompiler directive to include the correct header for
45716 * include/grub/efi/efi.h (grub_reboot): New function declaration.
45717 (grub_halt): Likewise.
45719 * kern/efi/efi.c (grub_reboot): New function.
45720 (grub_halt): Likewise.
45722 2008-02-12 Robert Millan <rmh@aybabtu.com>
45724 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
45725 /dev (like it is done for /dev/mapper). This doesn't provide support
45726 for EVMS, but at least it is now easy to identify the problem when it
45729 2008-02-11 Robert Millan <rmh@aybabtu.com>
45731 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
45732 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
45733 comparing it with -1, not 0.
45735 2008-02-10 Robert Millan <rmh@aybabtu.com>
45737 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
45739 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45740 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45742 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
45743 `disk/lvm.c' to the end of the list.
45744 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45745 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45747 2008-02-10 Robert Millan <rmh@aybabtu.com>
45749 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
45750 grub_print_error() instead. This will let user know why we're entering
45752 Based on suggestions from Sam Morris.
45754 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
45756 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
45757 on remaining N args, instead of "--" arg N times.
45759 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
45761 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
45762 (fill_with_default_glyph): Changed to use unknown_glyph for fill
45763 pattern for unknown glyphs.
45765 2008-02-09 Robert Millan <rmh@aybabtu.com>
45767 * configure.ac: Probe for `help2man'.
45768 * Makefile.in (builddir): New variable.
45769 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
45770 or otherwise add a few flags/options to it.
45771 (install-local): For every executable utility or script that is
45772 installed, invoke $(HELP2MAN) to install a manpage based on --help
45775 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
45776 that it doesn't prevent --help from working in build tree.
45778 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
45779 with `bug-grub@gnu.org'.
45780 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
45781 * util/update-grub.in (usage): New function.
45782 Implement proper argument check, with support for --help and --version
45783 (as well as existing -y).
45785 2008-02-09 Christian Franke <franke@computer.org>
45787 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
45788 avoid overwriting previous output.
45789 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
45791 2008-02-09 Robert Millan <rmh@aybabtu.com>
45793 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45796 2008-02-09 Robert Millan <rmh@aybabtu.com>
45798 * commands/sleep.c: New file.
45799 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45800 (sleep_mod_SOURCES): New variable.
45801 (sleep_mod_CFLAGS): Likewise.
45802 (sleep_mod_LDFLAGS): Likewise.
45804 2008-02-09 Robert Millan <rmh@aybabtu.com>
45806 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45807 situations in which we can deduce the RAID size and the superblock
45810 2008-02-09 Robert Millan <rmh@aybabtu.com>
45812 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45813 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45814 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45816 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45817 and return a grub_diskmemberlist_t composed of physical array members.
45818 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45820 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45822 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45823 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45824 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45826 * util/grub-probe.c (probe): Move partmap probing code from here ...
45827 (probe_partmap): ... to here.
45828 (probe): Use probe_partmap() once for the disk we're probing, and
45829 additionally, when such disk contains a memberlist() struct member,
45830 once for each disk that is contained in the structure returned by
45833 2008-02-09 Robert Millan <rmh@aybabtu.com>
45835 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45836 environment variable to 'all' in order to obtain debug output from
45838 * util/i386/pc/grub-setup.c (main): Likewise.
45840 2008-02-08 Robert Millan <rmh@aybabtu.com>
45842 * disk/raid.c (grub_raid_scan_device): Check for
45843 `array->device[sb.this_disk.number]' rather than for
45844 `array->device[sb.this_disk.number]->name', since the latter is not
45845 guaranteed to be accessible.
45847 2008-02-08 Robert Millan <rmh@aybabtu.com>
45849 * disk/raid.c: Update copyright.
45850 * fs/cpio.c: Likewise.
45851 * include/grub/raid.h: Likewise.
45852 * loader/i386/pc/multiboot.c: Likewise.
45853 * util/hostfs.c: Likewise.
45855 2008-02-08 Robert Millan <rmh@aybabtu.com>
45857 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45858 to a grub_disk_t array.
45859 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45861 (grub_raid_scan_device): Replace `device[x].name' accesses with
45862 `device[x]->name'. Simplify initialization of `array->device[x]'.
45864 2008-02-08 Robert Millan <rmh@aybabtu.com>
45866 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45867 grub_dprintf() calls.
45868 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
45871 2008-02-07 Christian Franke <franke@computer.org>
45873 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
45874 instead of fseek and ftell to support large files.
45875 (grub_hostfs_read): Likewise.
45877 2008-02-07 Robert Millan <rmh@aybabtu.com>
45879 Patch from Jeroen Dekkers.
45880 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
45881 failure, since successfully reading all array members might not be
45884 2008-02-06 Robert Millan <rmh@aybabtu.com>
45886 * util/grub-probe.c (probe): Simplify partmap probing (with the
45887 assumption that the first word up to the underscore equals to
45890 2008-02-06 Christian Franke <franke@computer.org>
45892 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
45893 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
45894 last block of a cpio or tar stream.
45895 Check for "TRAILER!!!" instead of any empty data
45896 block to detect last block of a cpio stream.
45897 (grub_cpio_dir): Fix constness of variable np.
45898 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
45899 cpio or tar trailer is detected. This fixes a crash
45900 on open of a non existing file.
45902 2008-02-05 Bean <bean123ch@gmail.com>
45904 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
45906 (grub_multiboot_load_elf64): Likewise.
45907 (grub_multiboot): Initialize mbi structure.
45909 * util/grub-fstest.c: Don't include unused header file script.h.
45911 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
45913 (grub_fstest_SOURCES): Likewise.
45915 2008-02-05 Robert Millan <rmh@aybabtu.com>
45917 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
45918 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
45919 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
45920 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
45922 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
45923 (translation_table): Replace hardcoded values with macros
45924 provided by `<grub/term.h>'.
45926 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
45927 (keyboard_map): Correct/add a few values, with macros provided
45928 by `<grub/term.h>'.
45929 (keyboard_map_shift): Zero values that don't differ from their
45930 `keyboard_map' equivalents.
45931 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
45932 Discard the second scan code that is always sent by Caps lock.
45933 Only use `keyboard_map_shift' when it provides a non-zero value,
45934 otherwise fallback to `keyboard_map'.
45936 2008-02-04 Bean <bean123ch@gmail.com>
45938 * Makefile.in (enable_grub_fstest): New variable.
45940 * conf/common.rmk (grub_fstest_init.lst): New rule.
45941 (grub_fstest_init.h): Likewise.
45942 (grub_fstest_init.c): Likewise.
45943 (util/grub-fstest.c_DEPENDENCIES): New variable.
45944 (grub_fstest_SOURCES): Likewise.
45946 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
45948 * util/grub-fstest.c: New file.
45950 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45952 Make grub-setup handle a separate root device.
45954 * util/i386/pc/grub-setup.c (setup): Always open the root device,
45955 so that the root device can be compared with the destination
45957 When embedding the core image, if the root and destination devices
45958 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
45960 When not embedding, set ROOT_DRIVE to 0xFF.
45962 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45964 Add support for having a grub directory in a different drive. This
45965 is still only the data handling part.
45967 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
45968 (codestart): Save %dh in GRUB_ROOT_DRIVE.
45969 (grub_root_drive): New variable.
45971 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
45972 instead of GRUB_BOOT_DRIVE to construct a device name. Set
45973 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
45976 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
45978 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
45980 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
45982 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
45983 is bogus, because PXE booting does not specify any drive
45986 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
45987 am not sure if this is really correct.
45989 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
45990 is always identical to the boot drive when booting from a CD.
45992 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
45994 (root_drive): New variable.
45995 (real_start): Unconditionally set %dh to ROOT_DRIVE.
45996 (setup_sectors): Push %dx right after popping it, because %dh will
45998 (copy_buffer): Restore %dx.
46000 2008-02-03 Robert Millan <rmh@aybabtu.com>
46002 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
46003 use `cdboot.img' for cdrom images.
46005 2008-02-03 Robert Millan <rmh@aybabtu.com>
46007 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
46008 only setup gfxterm when `font' command has succeeded.
46010 2008-02-03 Robert Millan <rmh@aybabtu.com>
46012 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
46013 (grub_rescue_cmd_multiboot_loader)
46014 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
46016 2008-02-03 Pavel Roskin <proski@gnu.org>
46018 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
46019 %edx and %esi from stack only after grub_gate_a20() is called.
46020 grub_gate_a20() clobbers %edx.
46022 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
46024 * configure.ac (AC_INIT): Bumped to 1.96.
46026 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
46027 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
46028 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
46029 video/readers/png.c.
46031 2008-02-03 Bean <bean123ch@gmail.com>
46033 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
46034 (cdboot_img_SOURCES): New variable.
46035 (cdboot_img_ASFLAGS): New variable.
46036 (cdboot_img_LDFLAGS): New variable.
46038 * boot/i386/pc/cdboot.S: New file.
46040 * disk/i386/pc/biosdisk.c (cd_start): New variable.
46041 (cd_count): Likewise.
46042 (grub_biosdisk_get_drive): Add support for cd device.
46043 (grub_biosdisk_call_hook): Likewise.
46044 (grub_biosdisk_iterate): Likewise.
46045 (grub_biosdisk_open): Likewise.
46046 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
46047 (grub_biosdisk_rw): Support reading from cd device.
46048 (GRUB_MOD_INIT): Iterate cd devices.
46050 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
46051 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
46052 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
46054 * kern/i386/pc/init.c (make_install_device): Check for cd device.
46056 2008-02-02 Robert Millan <rmh@aybabtu.com>
46058 * commands/read.c: New file.
46059 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
46060 (read_mod_SOURCES): New variable.
46061 (read_mod_CFLAGS): Likewise.
46062 (read_mod_LDFLAGS): Likewise.
46064 2008-02-02 Robert Millan <rmh@aybabtu.com>
46066 * normal/main.c (grub_normal_execute): Check for `menu->size' when
46067 determining whether menu has to be displayed.
46069 2008-02-02 Marco Gerards <marco@gnu.org>
46071 * bus/pci.c: New file.
46073 * include/grub/pci.h: Likewise.
46075 * include/grub/i386/pc/pci.h: Likewise.
46077 * commands/lspci.c: Likewise.
46079 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
46081 (pci_mod_SOURCES): New variable.
46082 (pci_mod_CFLAGS): Likewise.
46083 (pci_mod_LDFLAGS): Likewise.
46084 (lspci_mod_SOURCES): Likewise.
46085 (lspci_mod_CFLAGS): Likewise.
46086 (lspci_mod_LDFLAGS): Likewise.
46088 2008-02-02 Bean <bean123ch@gmail.com>
46090 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
46091 (grub_ufs_get_file_block): Fix indirect block calculation problem.
46093 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
46094 (grub_xfs_btree_node): New structure.
46095 (grub_xfs_btree_root): New structure.
46096 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
46097 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
46098 (GRUB_XFS_EXTENT_BLOCK): Likewise.
46099 (GRUB_XFS_EXTENT_SIZE): Likewise.
46100 (grub_xfs_read_block): Support btree format type.
46101 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
46102 Use directory block as basic unit.
46104 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
46106 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
46107 __attribute__ ((__regparm__ (1))).
46109 2008-02-01 Robert Millan <rmh@aybabtu.com>
46111 Correct a mistake in previous commit.
46113 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
46115 (normal/command.c_DEPENDENCIES): New variable.
46117 2008-02-01 Robert Millan <rmh@aybabtu.com>
46119 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
46121 (normal/command.c_DEPENDENCIES): New variable.
46122 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
46123 * conf/i386-ieee1275.rmk: Likewise.
46124 * conf/i386-linuxbios.rmk: Likewise.
46125 * conf/i386-pc.rmk: Likewise.
46126 * conf/sparc64-ieee1275.rmk: Likewise.
46127 * conf/powerpc-ieee1275.rmk: Likewise.
46128 (grub_emu_SOURCES): Add `fs/fshelp.c'.
46130 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
46132 2008-02-01 Robert Millan <rmh@aybabtu.com>
46134 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
46135 call at beginning of function.
46137 2008-01-31 Pavel Roskin <proski@gnu.org>
46139 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
46140 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
46141 (grub_mkrescue_SOURCES): Likewise.
46142 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
46144 2008-01-30 Robert Millan <rmh@aybabtu.com>
46146 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
46147 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
46148 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
46149 (grub_probe_SOURCES): ... to here.
46151 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
46152 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
46153 * conf/i386-ieee1275.rmk: Likewise.
46154 * conf/i386-linuxbios.rmk: Likewise.
46155 * conf/powerpc-ieee1275.rmk: Likewise.
46157 2008-01-30 Tristan Gingold <gingold@free.fr>
46159 * kern/rescue.c: Silently accept empty lines.
46161 2008-01-29 Bean <bean123ch@gmail.com>
46163 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
46164 (real_code_2): Code cleanup and change comment style.
46165 (move_memory): Avoid using 32-bit address mode.
46167 2008-01-29 Bean <bean123ch@gmail.com>
46169 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
46170 (png_mod_SOURCES): New variable.
46171 (png_mod_CFLAGS): Likewise.
46172 (png_mod_LDFLAGS): Likewise.
46174 * video/readers/png.c: New file.
46176 2008-01-28 Robert Millan <rmh@aybabtu.com>
46178 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
46179 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
46180 `ifndef GRUB_MOD_GAP' hack.
46181 * util/elf/grub-mkimage.c (add_segments): Likewise.
46183 2008-01-27 Robert Millan <rmh@aybabtu.com>
46185 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
46186 `GRUB_MOD_GAP' for platforms in which it's not defined.
46187 * util/elf/grub-mkimage.c (add_segments): Likewise.
46189 2008-01-27 Robert Millan <rmh@aybabtu.com>
46191 Get grub-emu to build again (including parallel builds).
46193 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
46195 (util/grub-emu.c_DEPENDENCIES): ... this, ...
46196 (normal/execute.c_DEPENDENCIES): ... this, ...
46197 (grub-emu_DEPENDENCIES): ... and this.
46199 * conf/i386-efi.rmk: Likewise.
46200 * conf/i386-linuxbios.rmk: Likewise.
46201 * conf/i386-ieee1275.rmk: Likewise.
46202 * conf/powerpc-ieee1275.rmk: Likewise.
46203 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
46205 2008-01-27 Robert Millan <rmh@aybabtu.com>
46207 * NEWS: Add a few items.
46209 2008-01-27 Robert Millan <rmh@aybabtu.com>
46211 Fix parallel builds with grub-emu. Based on earlier commit for
46212 grub-probe and grub-setup.
46214 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46215 (util/grub-emu.c_DEPENDENCIES): ... this.
46216 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46217 (util/grub-emu.c_DEPENDENCIES): ... this.
46218 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46219 (util/grub-emu.c_DEPENDENCIES): ... this.
46220 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46221 (util/grub-emu.c_DEPENDENCIES): ... this.
46222 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46223 (util/grub-emu.c_DEPENDENCIES): ... this.
46225 2008-01-27 Pavel Roskin <proski@gnu.org>
46227 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
46228 to create a gap between _end and the modules added to the image
46229 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
46230 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
46231 * util/elf/grub-mkimage.c (add_segments): Likewise.
46233 2008-01-26 Pavel Roskin <proski@gnu.org>
46235 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
46236 just return an error.
46238 2008-01-26 Bean <bean123ch@gmail.com>
46240 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
46241 (grub_reiserfs_get_item): Save offset of the next item.
46242 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
46244 2008-01-25 Robert Millan <rmh@aybabtu.com>
46246 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
46247 make all filesystem sources appear together (possibly fixing omissions
46249 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46250 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46251 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46252 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46254 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
46256 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
46257 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46258 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
46259 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46261 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
46262 (probe): Add a sanity check to make sure of our ability to read
46263 requested files when probing for filesystem type.
46265 * genmk.rb: Update copyright year (2007).
46267 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
46268 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
46269 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
46270 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
46271 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
46272 : Remove function prototypes.
46274 2008-01-25 Robert Millan <rmh@aybabtu.com>
46276 Revert my previous commits (based on wrong assumption of how grub_errno
46279 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
46280 * kern/file.c (grub_file_open): Likewise.
46282 2008-01-24 Pavel Roskin <proski@gnu.org>
46284 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
46285 that hang if GRUB tries to setup colors.
46286 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
46287 colors for firmwares that don't support it.
46288 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
46289 Recognize Open Hack'Ware, set flags to work around its
46292 2008-01-24 Robert Millan <rmh@aybabtu.com>
46294 * kern/file.c (grub_file_open): Do not account previous failures of
46295 unrelated functions when grub_errno is checked for.
46296 Reported by Oleg Strikov.
46298 2008-01-24 Bean <bean123ch@gmail.com>
46300 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
46301 (grub_ufs_sblock): New member volume name.
46302 (grub_ufs_find_file): Fix string copy bug.
46303 (grub_ufs_label): Implement this function properly.
46305 * fs/hfs.c (grub_hfs_cnid_type): New enum.
46306 (grub_hfs_iterate_records): Use the correct file number for extents
46307 and catalog file. Fix problem in next index calculation.
46308 (grub_hfs_find_node): Replace recursive function call with loop.
46309 (grub_hfs_iterate_dir): Replace recursive function call with loop.
46311 2008-01-23 Robert Millan <rmh@aybabtu.com>
46313 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
46314 `<grub/symbol.h>' and `<grub/multiboot.h>'.
46315 (grub_multiboot2_real_boot): New function prototype.
46317 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
46318 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
46320 * kern/i386/ieee1275/init.c (grub_os_area_addr)
46321 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
46323 2008-01-23 Robert Millan <rmh@aybabtu.com>
46325 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
46326 #ifdef'ed out grub_printf().
46328 2008-01-23 Robert Millan <rmh@aybabtu.com>
46330 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
46331 grub_dprintf calls, since they make "debug=all" mode unusable.
46332 (grub_console_checkkey): Likewise.
46334 2008-01-23 Robert Millan <rmh@aybabtu.com>
46336 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
46337 `term/i386/pc/at_keyboard.c'.
46338 (pkglib_MODULES): Add `serial.mod'.
46339 (serial_mod_SOURCES): New variable.
46340 (serial_mod_CFLAGS): Likewise.
46341 (serial_mod_LDFLAGS): Likewise.
46343 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
46344 `<grub/powerpc/ieee1275/console.h>'.
46345 (grub_keyboard_controller_init): New function prototype.
46346 (grub_console_checkkey): Likewise.
46347 (grub_console_getkey): Likewise.
46349 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
46352 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
46353 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
46355 2008-01-23 Robert Millan <rmh@aybabtu.com>
46357 * kern/i386/pc/init.c (make_install_device): When memdisk image is
46358 present, "(memdisk)/boot/grub" becomes the default prefix.
46360 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
46361 a memdisk tarball with all the modules. Add --overlay=DIR option that
46362 allows users to overlay additional files into the image.
46364 2008-01-23 Robert Millan <rmh@aybabtu.com>
46366 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
46367 and `machine/memory.h'.
46368 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
46369 (_multiboot_mod_SOURCES): New variable.
46370 (_multiboot_mod_CFLAGS): Likewise.
46371 (_multiboot_mod_LDFLAGS): Likewise.
46372 (multiboot_mod_SOURCES): Likewise.
46373 (multiboot_mod_CFLAGS): Likewise.
46374 (multiboot_mod_LDFLAGS): Likewise.
46376 * include/grub/i386/ieee1275/loader.h: New file.
46378 * include/grub/i386/ieee1275/machine.h: Likewise.
46380 * include/grub/i386/ieee1275/memory.h: Likewise.
46382 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
46383 variable declaration.
46384 (grub_os_area_size): Likewise.
46386 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
46387 (grub_lower_mem, grub_upper_mem): New variables.
46388 (grub_stop_floppy): New function (just to make
46389 grub_multiboot2_real_boot() happy).
46391 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
46392 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
46393 (grub_stop): New function.
46394 Include `"../realmode.S"' and `"../loader.S"'.
46396 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
46397 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
46399 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
46400 rely on grub_multiboot2_real_boot() for final boot.
46402 2008-01-22 Robert Millan <rmh@aybabtu.com>
46404 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
46405 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
46406 device that doesn't look like an SD card.
46407 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46408 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
46409 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
46410 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
46413 2008-01-22 Robert Millan <rmh@aybabtu.com>
46415 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
46416 avoid claiming over our own code.
46418 2008-01-22 Bean <bean123ch@gmail.com>
46420 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
46421 (jpeg_mod_SOURCES): New variable.
46422 (jpeg_mod_CFLAGS): Likewise.
46423 (jpeg_mod_LDFLAGS): Likewise.
46425 * video/readers/jpeg.c : New file.
46427 2008-01-22 Bean <bean123ch@gmail.com>
46429 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
46430 there are no more items.
46432 2008-01-21 Robert Millan <rmh@aybabtu.com>
46434 * kern/mm.c (grub_mm_init_region): Improve debug message.
46436 2008-01-21 Robert Millan <rmh@aybabtu.com>
46438 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
46439 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
46441 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
46443 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
46444 Indicates start of upper memory.
46445 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
46446 (generate_image): Abort when image size is big enough to corrupt
46449 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
46450 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
46451 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46452 instead of hardcoding 0xA0000.
46453 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
46454 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46455 instead of hardcoding 0xA0000.
46457 2008-01-21 Robert Millan <rmh@aybabtu.com>
46459 * disk/memdisk.c (memdisk_size): New variable.
46460 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
46462 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
46463 image to dynamic memory.
46464 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
46465 `memdisk_size'. Free memdisk block.
46467 2008-01-21 Robert Millan <rmh@aybabtu.com>
46469 Fix detection of very small filesystems (like tar).
46471 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
46472 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
46473 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
46474 a problem with this disk).
46476 2008-01-21 Robert Millan <rmh@aybabtu.com>
46478 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
46479 on grub_biosdisk_rw_standard() error.
46481 2008-01-21 Robert Millan <rmh@aybabtu.com>
46483 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
46485 * kern/elf.c: Likewise.
46486 * kern/ieee1275/ieee1275.c: Likewise.
46487 * kern/powerpc/ieee1275/openfw.c: Likewise.
46488 * term/ieee1275/ofconsole.c: Likewise.
46490 2008-01-21 Robert Millan <rmh@aybabtu.com>
46492 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
46494 * include/grub/kernel.h (grub_arch_memdisk_addr)
46495 (grub_arch_memdisk_size): Moved from here ...
46497 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
46498 (grub_arch_memdisk_size): ... to here.
46500 2008-01-21 Robert Millan <rmh@aybabtu.com>
46502 Mostly based on bugfix from Bean.
46504 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
46505 attribute with hook() parameter.
46506 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
46508 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
46509 attribute with hook() parameter.
46510 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
46513 2008-01-21 Robert Millan <rmh@aybabtu.com>
46515 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
46516 (pkglib_MODULES): Add `memdisk.mod'.
46517 (memdisk_mod_SOURCES): New variable.
46518 (memdisk_mod_CFLAGS): Likewise.
46519 (memdisk_mod_LDFLAGS): Likewise.
46521 * disk/memdisk.c: New file.
46523 * include/grub/disk.h (grub_disk_dev_id): Add
46524 `GRUB_DISK_DEVICE_MEMDISK_ID'.
46526 * include/grub/i386/pc/kernel.h
46527 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
46528 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
46529 (grub_kernel_image_size): New variable declaration.
46530 (grub_total_module_size): Likewise.
46531 (grub_memdisk_image_size): Likewise.
46533 * include/grub/i386/pc/memory.h
46534 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
46536 * include/grub/kernel.h: Include `<grub/symbol.h>'.
46537 (grub_arch_memdisk_addr): New variable declaration.
46538 (grub_arch_memdisk_size): Likewise.
46540 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
46541 (grub_arch_memdisk_size): Likewise.
46543 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
46544 (codestart): Replace hardcoded `0x100000' with
46545 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
46547 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
46548 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
46549 not NULL, append the contents of the file it refers to, at the end of
46550 the compressed kernel image. Initialize `grub_memdisk_image_size'
46551 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
46552 (options): Add "memdisk"|'m' option.
46553 (main): Parse --memdisk|-m option, and pass user-provided path as
46554 parameter to generate_image().
46556 2008-01-20 Robert Millan <rmh@aybabtu.com>
46558 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
46559 grub_dprintf() calls from here ...
46560 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
46562 2008-01-20 Robert Millan <rmh@aybabtu.com>
46564 Fix detection of "real mode" when /options/real-mode? doesn't exist.
46566 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
46568 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
46569 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
46570 `GRUB_IEEE1275_FLAG_REAL_MODE'.
46571 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
46573 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
46574 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
46576 2008-01-19 Robert Millan <rmh@aybabtu.com>
46578 Get rid of confusing function (superseded by
46579 `grub_ieee1275_get_integer_property')
46580 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
46582 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
46584 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
46585 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
46586 in native endianness from grub_ieee1275_get_integer_property().
46588 2008-01-19 Robert Millan <rmh@aybabtu.com>
46590 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
46591 command after "shut-down", since implementations differ on which
46592 the command for halt is.
46594 2008-01-19 Robert Millan <rmh@aybabtu.com>
46596 * include/grub/i386/linuxbios/console.h: Add header protection.
46597 (grub_keyboard_controller_init): New function prototype.
46598 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
46599 (KEYBOARD_COMMAND_READ): Likewise.
46600 (KEYBOARD_COMMAND_WRITE): Likewise.
46601 (KEYBOARD_SCANCODE_SET1): Likewise.
46602 (grub_keyboard_controller_write): New function.
46603 (grub_keyboard_controller_read): Likewise.
46604 (grub_keyboard_controller_init): Likewise.
46606 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
46607 (grub_console_init): On coreboot/LinuxBIOS, call
46608 grub_keyboard_controller_init().
46610 2008-01-19 Robert Millan <rmh@aybabtu.com>
46612 PowerPC changes provided by Pavel Roskin.
46614 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
46615 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
46616 don't rely on cmain() doing it.
46617 * kern/i386/ieee1275/startup.S (_start): Store %eax in
46618 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
46620 2008-01-16 Robert Millan <rmh@aybabtu.com>
46622 * include/grub/i386/linuxbios/memory.h
46623 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
46624 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
46625 receive `table_header' as argument. Instead, probe for it in the
46626 known memory ranges where it can be present.
46627 (grub_available_iterate): Do not pass a fixed `table_header' address
46628 to grub_linuxbios_table_iterate().
46630 2008-01-15 Robert Millan <rmh@aybabtu.com>
46632 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
46633 * conf/i386-ieee1275.rmk: New file.
46634 * include/grub/i386/ieee1275/console.h: Likewise.
46635 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
46636 * include/grub/i386/ieee1275/kernel.h: Likewise.
46637 * include/grub/i386/ieee1275/time.h: Likewise.
46638 * kern/i386/ieee1275/init.c: Likewise.
46639 * kern/i386/ieee1275/startup.S: Likewise.
46641 2008-01-15 Robert Millan <rmh@aybabtu.com>
46643 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
46644 when pointers are 32-bit (but still do set it to one when they are
46647 2008-01-15 Robert Millan <rmh@aybabtu.com>
46649 * include/grub/ieee1275/ieee1275.h
46650 (grub_ieee1275_get_integer_property): New function prototype.
46652 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
46653 (grub_ieee1275_get_integer_property): New function. Wraps around
46654 grub_ieee1275_get_property() to handle endianness.
46656 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
46657 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
46659 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
46660 (grub_map): Likewise.
46661 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
46663 2008-01-15 Bean <bean123ch@gmail.com>
46665 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
46666 (grub_script_execute_cmdline): Reset grub_errno.
46668 * normal/main.c (read_config_file): Reset grub_errno.
46670 * normal/parse.y (script_init): New.
46671 (script): Move function and menuentry here.
46673 (command): Add delimiter at the end of command.
46674 (commands): Adjust to match the new command.
46675 (commandblock): Remove grub_script_lexer_record_start.
46676 (menuentry): Add grub_script_lexer_record_start, use the new commands.
46677 (if): Use the new commands.
46679 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
46681 2008-01-15 Robert Millan <rmh@aybabtu.com>
46683 * normal/menu.c (run_menu): Move timeout message from here ...
46684 (print_timeout): ... to here.
46685 (run_menu): Use print_timeout() once during initial draw to print
46686 the whole message, and again in every clock tick to update only
46687 the number of seconds.
46689 2008-01-15 Robert Millan <rmh@aybabtu.com>
46691 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
46692 actual size of `available' from grub_ieee1275_get_property(), and
46693 restrict parsing to that bound.
46695 2008-01-15 Christian Franke <franke@computer.org>
46697 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
46698 (argp_program_version): Remove variable.
46699 (argp_program_bug_address): Likewise.
46700 (options): Convert from struct argp_option to struct option.
46701 (struct arguments): Remove.
46702 (parse_opt): Remove.
46703 (usage): New function.
46704 (main): Replace struct args members by simple variables.
46705 Replace argp_parse() by getopt_long().
46706 Add switch to evaluate options.
46707 Add missing "(...)" around root_dev in prefix string.
46709 2008-01-14 Robert Millan <rmh@aybabtu.com>
46711 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
46712 for grub_ieee1275_exit(), in order to improve portability.
46714 2008-01-14 Robert Millan <rmh@aybabtu.com>
46716 * util/grub.d/10_linux.in (prefix): Define.
46717 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
46719 2008-01-13 Pavel Roskin <proski@gnu.org>
46721 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
46722 grub_errno if no errors have been detected.
46724 2008-01-12 Robert Millan <rmh@aybabtu.com>
46726 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
46727 (grub_util_get_dev_abstraction): New function prototype.
46729 * util/getroot.c: Include `<grub/util/getroot.h>'
46730 (grub_util_get_grub_dev): Move detection of abstraction type to ...
46731 (grub_util_get_dev_abstraction): ... here (new function).
46733 * util/grub-probe.c: Convert PRINT_* to an enum. Add
46734 `PRINT_ABSTRACTION'.
46735 (probe): Probe for abstraction type when requested.
46736 (main): Understand `--target=abstraction'.
46738 * util/i386/efi/grub-install.in: Add abstraction module to core
46739 image when it is found to be necessary.
46740 * util/i386/pc/grub-install.in: Likewise.
46741 * util/powerpc/ieee1275/grub-install.in: Likewise.
46743 * util/update-grub_lib.in (font_path): Return system path without
46744 converting to GRUB path.
46745 * util/update-grub.in: Convert system path returned by font_path()
46746 to a GRUB path. Use `grub-probe -t abstraction' to determine what
46747 abstraction module is needed for loading fonts (if any). Export
46748 that as `GRUB_PRELOAD_MODULES'.
46749 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
46752 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
46754 Remove some unused code from reiserfs.
46756 * fs/reiserfs.c (struct grub_reiserfs_key)
46757 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
46758 (struct grub_reiserfs_node_body): Removed.
46759 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46761 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46763 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46765 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46767 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46769 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
46771 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46772 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46773 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46775 2008-01-10 Robert Millan <rmh@aybabtu.com>
46777 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
46778 Determines if a file is garbage left by packaging systems, etc.
46779 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
46780 for processing /etc/grub.d scripts.
46781 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
46782 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
46783 as a condition for processing Linux images.
46785 2008-01-10 Pavel Roskin <proski@gnu.org>
46787 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
46788 to compile reiserfs.c on PowerPC.
46790 2008-01-10 Robert Millan <rmh@aybabtu.com>
46792 * kern/device.c (grub_device_iterate): Do not abort device iteration
46793 when one of the devices cannot be opened.
46794 * kern/disk.c (grub_disk_open): Do not account previous failures of
46795 unrelated functions when grub_errno is checked for.
46797 2008-01-08 Robert Millan <rmh@aybabtu.com>
46799 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46800 `! grub_linux_is_bzimage', change order of address comparison to make
46801 it more intuitive, and improve "too big zImage" error message.
46803 2008-01-08 Robert Millan <rmh@aybabtu.com>
46805 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46806 `$(update-grub_DATA)'.
46807 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46810 2008-01-07 Robert Millan <rmh@aybabtu.com>
46812 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46813 which instruction is modified by grub-setup during installation
46814 (since it wasn't obvious by only looking at this file).
46816 2008-01-07 Robert Millan <rmh@aybabtu.com>
46818 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46819 listing actual TODO items.
46821 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46823 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46825 (grub_reiserfs_get_key_offset): Likewise.
46826 (grub_reiserfs_set_key_offset): Likewise.
46827 (grub_reiserfs_set_key_type): Likewise.
46828 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
46830 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46831 better to remove the bitfield version completely.
46833 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46835 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46836 allocated from the heap, due to the fshelp implementation.
46837 (grub_reiserfs_dir): Free NODE, due to the same reason.
46839 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46841 Mostly from Vincent Pelletier:
46843 * fs/reiserfs.c: New file.
46845 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46846 (reiserfs_mod_SOURCES): New variable.
46847 (reiserfs_mod_CFLAGS): Likewise.
46848 (reiserfs_mod_LDFLAGS): Likewise.
46850 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46851 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46852 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46855 2008-01-06 Robert Millan <rmh@aybabtu.com>
46857 * normal/color.c: Remove `<grub/env.h>'.
46859 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46861 * include/grub/normal.h: Include <grub/env.h>.
46863 2008-01-05 Robert Millan <rmh@aybabtu.com>
46865 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46866 usage example with `(hd0,1)'.
46867 Reported by Samuel Thibault.
46869 2008-01-05 Robert Millan <rmh@aybabtu.com>
46871 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
46872 (grub_linux_boot_zimage): Rename to ...
46873 (grub_linux_boot): ... this.
46874 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
46875 (grub_linux_boot_zimage): Conditionalize zImage copy.
46877 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
46878 (grub_linux_boot_bzimage): Remove prototype.
46879 (grub_linux_boot_zimage): Rename to ...
46880 (grub_linux_boot): ... this.
46882 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
46883 (grub_linux_boot): Remove function.
46885 2008-01-05 Robert Millan <rmh@aybabtu.com>
46887 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
46888 (grub_env_write_color_highlight): Likewise.
46889 (grub_wait_after_message): Likewise.
46891 * normal/color.c: New file.
46893 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46894 (normal_mod_DEPENDENCIES): Likewise.
46896 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46897 (normal_mod_DEPENDENCIES): Likewise.
46899 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46900 (normal_mod_DEPENDENCIES): Likewise.
46902 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46903 (normal_mod_DEPENDENCIES): Likewise.
46905 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
46906 for waiting after a message is printed.
46907 * normal/main.c (read_config_file): Likewise.
46908 (grub_normal_init): Register grub_env_write_color_normal() and
46909 grub_env_write_color_highlight() hooks. Mark `color_normal' and
46910 `color_highlight' variables as global.
46912 * normal/menu.c (grub_wait_after_message): New function.
46913 (grub_color_menu_normal): New variable. Replaces ...
46914 (GRUB_COLOR_MENU_NORMAL): ... this macro.
46915 (grub_color_menu_highlight): New variable. Replaces ...
46916 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
46917 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
46918 `GRUB_TERM_COLOR_STANDARD'.
46919 (print_message): Use `grub_setcolorstate' to reload colors. Rename
46920 `normal_code' and `highlight_code' to `old_color_normal' and
46921 `old_color_highlight', respectively.
46922 (grub_menu_init_page): Update colors when drawing the menu, based on
46923 `menu_color_normal' and `menu_color_highlight' variables.
46924 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
46925 a message is printed.
46927 2008-01-05 Robert Millan <rmh@aybabtu.com>
46929 * kern/env.c (grub_env_context_open): Propagate hooks for global
46930 variables to new context.
46932 * kern/main.c (grub_set_root_dev): Export `root' variable.
46934 2008-01-05 Robert Millan <rmh@aybabtu.com>
46936 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
46937 discs unconditionally, since udev and others have options to provide
46940 2008-01-05 Robert Millan <rmh@aybabtu.com>
46942 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
46944 2008-01-04 Christian Franke <franke@computer.org>
46946 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
46949 2008-01-03 Pavel Roskin <proski@gnu.org>
46951 * kern/i386/linuxbios/init.c: Put "void" to all function
46952 declarations with no arguments.
46953 * kern/powerpc/ieee1275/init.c: Likewise.
46954 * term/i386/pc/at_keyboard.c: Likewise.
46955 * term/i386/pc/vga_text.c: Likewise.
46956 * util/grub-mkdevicemap.c: Likewise.
46958 2008-01-02 Robert Millan <rmh@aybabtu.com>
46960 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
46961 message when loaded image is out of bounds.
46962 (grub_multiboot_load_elf64): Likewise.
46964 2008-01-02 Pavel Roskin <proski@gnu.org>
46966 * util/grub.d/10_linux.in: Try version without ".old" when
46967 looking for initrd. It's better to use initrd from the newer
46968 kernel of the same version than no initrd at all.
46970 2008-01-01 Robert Millan <rmh@aybabtu.com>
46972 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
46974 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
46976 * include/grub/video.h: Added grub_video_unmap_color and
46977 grub_video_get_active_render_target.
46978 (grub_video_adapter): Added unmap_color and get_active_render_target.
46980 * video/video.c: Added grub_video_unmap_color and
46981 grub_video_get_active_render_target.
46982 (grub_video_get_info): Changed method to accept NULL pointer as an
46983 argument to allow detection of active video adapter.
46985 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
46986 grub_video_vbe_unmap_color_int.
46987 Added grub_video_vbe_unmap_color and
46988 grub_video_vbe_get_active_render_target.
46989 (grub_video_vbe_adapter): Added unmap_color and
46990 get_active_render_target.
46992 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
46993 with grub_video_vbe_unmap_color_int.
46995 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
46996 (DEFAULT_NORMAL_COLOR): Likewise.
46997 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
46998 (DEFAULT_FG_COLOR): Removed.
46999 (DEFAULT_BG_COLOR): Likewise.
47000 (DEFAULT_CURSOR_COLOR): Changed value.
47001 (grub_virtual_screen): Added standard_color_setting,
47002 normal_color_setting, highlight_color_setting and term_color.
47003 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
47004 (bitmap_width): Added.
47005 (bitmap_height): Likewise.
47006 (bitmap): Likewise.
47007 (set_term_color): Likewise.
47008 (grub_virtual_screen_setup): Changed to use new terminal coloring
47010 (grub_gfxterm_init): Added init for bitmap.
47011 (grub_gfxterm_fini): Added destroy for bitmap.
47012 (redraw_screen_rect): Updated to use background bitmap and new
47014 (scroll_up): Added optimization for case when there is no bitmap.
47015 (grub_gfxterm_cls): Fixed to use correct background color.
47016 (grub_virtual_screen_setcolorstate): Changed to use new terminal
47018 (grub_virtual_screen_setcolor): Likewise.
47019 (grub_virtual_screen_getcolor): Added.
47020 (grub_gfxterm_background_image_cmd): Likewise.
47021 (grub_video_term): Added setcolor and getcolor.
47022 (MOD_INIT): Added registration of background_image command.
47023 (MOD_TERM): Added unregistration for background_image command.
47025 2007-12-30 Pavel Roskin <proski@gnu.org>
47027 * loader/multiboot_loader.c: Fix multiboot command
47028 unregistration. Fix all typos in the word "multiboot".
47030 2007-12-29 Pavel Roskin <proski@gnu.org>
47032 * util/grub.d/10_linux.in: Refactor search for initrd. Add
47033 support for initrd names used in Fedora.
47035 2007-12-26 Bean <bean123ch@gmail.com>
47037 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
47038 (cpio_mod_SOURCES): New variable.
47039 (cpio_mod_CFLAGS): Likewise.
47040 (cpio_mod_LDFLAGS): Likewise.
47042 * fs/cpio.c: New file.
47044 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
47046 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
47048 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
47050 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47052 2007-12-25 Robert Millan <rmh@aybabtu.com>
47054 * include/grub/term.h (struct grub_term): Add `getcolor' function.
47055 (grub_getcolor): New function.
47057 * kern/term.c (grub_getcolor): New function.
47058 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
47059 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
47060 (print_entry): Set normal and highlight colors to
47061 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
47062 respectively, before printing and restore them to old
47064 (grub_menu_init_page): Likewise. Fill an additional colored space
47065 that would otherwise be left blank.
47067 * term/efi/console.c (grub_console_getcolor): New function.
47068 (struct grub_console_term.getcolor): New variable.
47069 * term/i386/pc/console.c (grub_console_getcolor): New function.
47070 (struct grub_console_term.getcolor): New variable.
47071 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
47072 (struct grub_console_term.getcolor): New variable.
47074 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
47075 (struct grub_console_term.setcolor): Remove variable.
47076 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
47077 (struct grub_console_term.setcolor): Remove variable.
47078 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
47079 (struct grub_console_term.setcolor): Remove variable.
47080 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
47081 (struct grub_console_term.setcolor): Remove variable.
47083 2007-12-25 Robert Millan <rmh@aybabtu.com>
47085 * configure.ac: Search for possible unifont.hex locations, and
47086 define UNIFONT_HEX if found.
47088 * Makefile.in (UNIFONT_HEX): Define variable.
47089 (DATA): Rename to ...
47090 (PKGLIB): ... this. Update all users.
47091 (PKGDATA): New variable.
47092 (pkgdata_IMAGES): Rename to ...
47093 (pkglib_IMAGES): ... this. Update all users.
47094 (pkgdata_MODULES): Rename to ...
47095 (pkglib_MODULES): ... this. Update all users.
47096 (pkgdata_PROGRAMS): Rename to ...
47097 (pkglib_PROGRAMS): ... this. Update all users.
47098 (pkgdata_DATA): Rename to ...
47099 (pkglib_DATA): ... this. Update all users.
47100 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
47101 (unicode.pff, ascii.pff): New rules.
47102 (all-local): Add `$(PKGDATA)' dependency.
47103 (install-local): Process `$(PKGDATA)'.
47105 * util/update-grub_lib.in (font_path): Search for *.pff files in
47106 a few more locations, including `${pkgdata}'.
47108 2007-12-23 Robert Millan <rmh@aybabtu.com>
47110 Patch from Bean <bean123ch@gmail.com>:
47111 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
47114 2007-12-21 Bean <bean123ch@gmail.com>
47116 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
47117 (ntfscomp_mod_SOURCES): New variable.
47118 (ntfscomp_mod_CFLAGS): Likewise.
47119 (ntfscomp_mod_LDFLAGS): Likewise.
47121 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
47122 (grub_probe_SOURCES): Likewise.
47123 (grub_emu_SOURCES): Likewise.
47125 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47126 (grub_emu_SOURCES): Likewise.
47128 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47129 (grub_emu_SOURCES): Likewise.
47131 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47132 (grub_emu_SOURCES): Likewise.
47134 * fs/ntfs.c (grub_ntfscomp_func): New variable.
47135 (read_run_list): Renamed to grub_ntfs_read_run_list.
47136 (decomp_nextvcn): Moved to ntfscomp.c.
47137 (decomp_getch): Likewise.
47138 (decomp_get16): Likewise.
47139 (decomp_block): Likewise.
47140 (read_block): Likewise.
47141 (read_data): Partially moved to ntfscomp.c.
47142 (fixup): Change unsigned to grub_uint16_t.
47143 (read_mft): Change unsigned long to grub_uint32_t.
47144 (read_attr): Likewise.
47145 (read_data): Likewise.
47146 (read_run_data): Likewise.
47147 (read_run_list): Likewise.
47148 (read_mft): Likewise.
47150 * fs/ntfscomp.c: New file.
47152 * include/grub/ntfs.h: New file.
47154 2007-12-16 Robert Millan <rmh@aybabtu.com>
47156 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
47157 IDE disk check, since Linux is known to support 20 IDE disks.
47158 Reported by Colin Watson.
47160 2007-12-15 Bean <bean123ch@gmail.com>
47162 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
47163 (lnxboot_img_SOURCES): New variable.
47164 (lnxboot_img_ASFLAGS): Likewise.
47165 (lnxboot_img_LDFLAGS): Likewise.
47167 * boot/i386/pc/lnxboot.S: New file.
47169 2007-11-24 Pavel Roskin <proski@gnu.org>
47171 * configure.ac: Test if '--build-id=none' is supported by the
47172 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
47173 objcopy to generate incorrect binary files (binutils
47174 2.17.50.0.18-1 as shipped by Fedora 8).
47175 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
47176 linking, so that build ID doesn't break the test.
47178 2007-11-24 Pavel Roskin <proski@gnu.org>
47180 * include/grub/i386/time.h: use "void" in the argument list
47181 of grub_cpu_idle().
47182 * include/grub/powerpc/time.h: Likewise.
47183 * include/grub/sparc64/time.h: Likewise.
47185 2007-11-18 Christian Franke <franke@computer.org>
47187 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
47188 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
47189 This fixes the problem that function keys did not work in grub-emu.
47191 2007-11-18 Christian Franke <franke@computer.org>
47193 * disk/host.c (grub_host_open): Remove attribute unused from
47194 name parameter. Add check for "host". This fixes the problem
47195 that grub-emu does not find partitions.
47197 2007-11-18 Christian Franke <franke@computer.org>
47199 * util/hostfs.c (is_dir): New function.
47200 (grub_hostfs_dir): Handle missing dirent.d_type case.
47201 (grub_hostfs_read): Add missing fseek().
47202 (grub_hostfs_label): Clear label pointer. This fixes a crash
47203 of grub-emu on "ls (host)".
47205 2007-11-18 Christian Franke <franke@computer.org>
47207 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
47208 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
47209 to 64 bit boundary by default.
47211 2007-11-18 Bean <bean123ch@gmail.com>
47213 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
47214 (hexdump_mod_SOURCES): New variable.
47215 (hexdump_mod_CFLAGS): Likewise.
47216 (hexdump_mod_LDFLAGS): Likewise.
47218 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47220 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47222 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47224 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47226 * include/grub/hexdump.h: New file.
47228 * commands/hexdump.c: New file.
47230 2007-11-10 Robert Millan <rmh@aybabtu.com>
47232 * commands/i386/pc/play.c (beep_off): Switch order of arguments
47233 in grub_outb() calls.
47234 (beep_on): Likewise.
47236 2007-11-10 Christian Franke <franke@computer.org>
47238 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
47239 (grub_menu_run): Likewise.
47241 2007-11-10 Robert Millan <rmh@aybabtu.com>
47243 * include/grub/i386/efi/machine.h: New file.
47244 * include/grub/i386/linuxbios/machine.h: Likewise.
47245 * include/grub/i386/pc/machine.h: Likewise.
47246 * include/grub/powerpc/ieee1275/machine.h: Likewise.
47247 * include/grub/sparc64/ieee1275/machine.h: Likewise.
47249 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
47250 (serial_hw_io_addr): New variable.
47251 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
47252 instead of `(unsigned short *) 0x400'.
47254 2007-11-10 Bean <bean123ch@gmail.com>
47256 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
47258 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47260 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
47261 (vga_mod_SOURCES): Added.
47262 (vga_mod_CFLAGS): Likewise.
47263 (vga_mod_LDFLAGS): Likewise.
47265 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
47267 (set_map_mask): Likewise.
47268 (set_read_map): Likewise.
47269 (set_read_address): Likewise.
47270 (vga_font): Removed variable.
47271 (get_vga_glyph): Removed function.
47272 (invalidate_char): Likewise.
47273 (write_char): Changed to use grub_font_get_glyph() for font
47275 (grub_vga_putchar): Likewise.
47276 (grub_vga_getcharwidth): Likewise.
47278 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47280 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
47282 (pxeboot_img_LDFLAGS): Likewise.
47283 (diskboot_img_LDFLAGS): Likewise.
47284 (kernel_img_LDFLAGS): Likewise.
47286 2007-11-06 Robert Millan <rmh@aybabtu.com>
47288 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
47289 in grub_outb() calls.
47290 (serial_hw_init): Likewise.
47292 2007-11-05 Robert Millan <rmh@aybabtu.com>
47294 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
47295 spaces. Skip non-regular files.
47297 2007-11-05 Robert Millan <rmh@aybabtu.com>
47299 * kern/disk.c (grub_disk_firmware_fini)
47300 (grub_disk_firmware_is_tainted): New variables.
47302 * include/grub/disk.h (grub_disk_firmware_fini)
47303 (grub_disk_firmware_is_tainted): Likewise.
47305 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
47306 (grub_disk_biosdisk_fini): ... to here.
47307 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
47308 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
47309 is set. Register grub_disk_biosdisk_fini() in
47310 `grub_disk_firmware_fini'.
47312 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
47313 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
47314 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
47315 to finish existing firmware disk interface.
47317 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
47318 (ata_mod_SOURCES): New variable.
47319 (ata_mod_CFLAGS): Likewise.
47320 (ata_mod_LDFLAGS): Likewise.
47322 2007-11-05 Robert Millan <rmh@aybabtu.com>
47324 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
47325 (grub_ata_wait): Reimplement using grub_millisleep().
47327 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
47328 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
47330 2007-11-03 Marco Gerards <marco@gnu.org>
47332 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
47333 (CRTC_ADDR_PORT): New macro.
47334 (CRTC_DATA_PORT): Likewise.
47335 (CRTC_CURSOR): Likewise.
47336 (CRTC_CURSOR_ADDR_HIGH): Likewise.
47337 (CRTC_CURSOR_ADDR_LOW): Likewise.
47338 (update_cursor): New function.
47339 (grub_console_real_putchar): Call `update_cursor'.
47340 (grub_console_gotoxy): Likewise.
47341 (grub_console_cls): Set the default color when clearing the
47343 (grub_console_setcursor): Implemented.
47345 2007-11-03 Marco Gerards <marco@gnu.org>
47347 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
47349 (grub_ata_pio_write): Likewise.
47351 (grub_atapi_identify): Wait after issuing an ATA command.
47352 (grub_atapi_packet): Likewise.
47353 (grub_ata_identify): Likewise.
47354 (grub_ata_readwrite): Likewise.
47356 2007-11-03 Marco Gerards <marco@gnu.org>
47358 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
47359 (grub_ata_pio_write): Likewise.
47360 (grub_ata_readwrite): Use `grub_error', instead of
47361 returning `grub_errno'.
47363 2007-11-03 Marco Gerards <marco@gnu.org>
47365 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
47366 grub_ata_pio_write once for every single sector, instead of for
47369 2007-10-31 Robert Millan <rmh@aybabtu.com>
47371 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
47373 * conf/i386-linuxbios.rmk: New file.
47375 * kern/i386/pc/hardware.c: Likewise.
47376 * term/i386/pc/at_keyboard.c: Likewise.
47377 * term/i386/pc/vga_text.c: Likewise.
47379 * include/grub/i386/linuxbios/boot.h: Likewise.
47380 * include/grub/i386/linuxbios/console.h: Likewise.
47381 * include/grub/i386/linuxbios/init.h: Likewise.
47382 * include/grub/i386/linuxbios/kernel.h: Likewise.
47383 * include/grub/i386/linuxbios/loader.h: Likewise.
47384 * include/grub/i386/linuxbios/memory.h: Likewise.
47385 * include/grub/i386/linuxbios/serial.h: Likewise.
47386 * include/grub/i386/linuxbios/time.h: Likewise.
47388 * kern/i386/linuxbios/init.c: Likewise.
47389 * kern/i386/linuxbios/startup.S: Likewise.
47390 * kern/i386/linuxbios/table.c: Likewise.
47392 2007-10-31 Marco Gerards <marco@gnu.org>
47394 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
47395 (ata_mod_SOURCES): New variable.
47396 (ata_mod_CFLAGS): Likewise.
47397 (ata_mod_LDFLAGS): Likewise.
47399 * disk/ata.c: New file.
47401 * include/grub/disk.h (grub_disk_dev_id): Add
47402 `GRUB_DISK_DEV_ATA_ID'.
47404 2007-10-31 Robert Millan <rmh@aybabtu.com>
47406 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
47407 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
47409 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
47410 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
47412 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
47415 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
47417 2007-10-27 Robert Millan <rmh@aybabtu.com>
47419 * include/grub/types.h (ULONG_MAX): Define macro.
47421 2007-10-22 Robert Millan <rmh@aybabtu.com>
47423 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
47425 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
47427 2007-10-22 Robert Millan <rmh@aybabtu.com>
47429 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
47430 (pkgdata_MODULES): Add `biosdisk.mod'.
47431 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
47434 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
47435 (grub_biosdisk_init): Replace with ...
47436 (GRUB_MOD_INIT(biosdisk)): ... this.
47437 (grub_biosdisk_fini): Replace with ...
47438 (GRUB_MOD_FINI(biosdisk)): ... this.
47440 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
47441 (grub_machine_init): Remove call to grub_biosdisk_init().
47442 (grub_machine_fini): Remove call to grub_machine_fini().
47444 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
47446 2007-10-22 Robert Millan <rmh@aybabtu.com>
47448 * include/grub/time.h: New file.
47449 * include/grub/i386/time.h: Likewise.
47450 * include/grub/powerpc/time.h: Likewise.
47451 * include/grub/sparc64/time.h: Likewise.
47453 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
47455 (KERNEL_MACHINE_TIME_HEADER): ... this.
47456 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47458 (KERNEL_MACHINE_TIME_HEADER): ... this.
47459 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47461 (KERNEL_MACHINE_TIME_HEADER): ... this.
47463 * kern/i386/efi/init.c: Include `<grub/time.h>'.
47464 (grub_millisleep): New function.
47465 * kern/i386/pc/init.c: Include `<grub/time.h>'.
47466 (grub_millisleep): New function.
47467 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
47468 Remove `grub/machine/time.h' include.
47469 (grub_millisleep): New function.
47470 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
47471 Remove `grub/machine/time.h' include.
47472 (grub_millisleep): New function.
47474 * include/grub/misc.h (grub_div_roundup): New function.
47476 * kern/misc.c: Include `<grub/time.h>'.
47477 (grub_millisleep_generic): New function.
47479 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
47481 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
47483 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
47484 `machine/time.h'. Add `time.h'.
47485 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47487 2007-10-21 Robert Millan <rmh@aybabtu.com>
47489 * include/grub/misc.h (grub_max): New function.
47491 2007-10-21 Robert Millan <rmh@aybabtu.com>
47493 * util/misc.c (grub_util_info): Call fflush() before returning.
47495 2007-10-20 Robert Millan <rmh@aybabtu.com>
47497 * genmk.rb (Image): Copy `extra_flags' from here ...
47498 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
47500 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
47501 to `argc' and `args' arguments.
47503 2007-10-17 Robert Millan <rmh@aybabtu.com>
47505 * kern/i386/loader.S: New file.
47507 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
47508 * kern/i386/loader.S (grub_linux_prot_size)... to here.
47509 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
47510 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
47511 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
47512 * kern/i386/loader.S (grub_linux_real_addr)... to here.
47513 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
47514 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
47515 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
47516 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
47517 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
47518 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
47519 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
47520 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
47522 * kern/i386/realmode.S: New file.
47524 * kern/i386/pc/startup.S (protstack): Moved from here ...
47525 * kern/i386/realmode.S (protstack)... to here.
47526 * kern/i386/pc/startup.S (gdt): Moved from here ...
47527 * kern/i386/realmode.S (gdt)... to here.
47528 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
47529 * kern/i386/realmode.S (prot_to_real)... to here.
47531 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
47532 `kern/i386/realmode.S'.
47534 2007-10-17 Robert Millan <rmh@aybabtu.com>
47536 * include/grub/i386/loader.h: New file.
47538 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
47539 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47540 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47541 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47542 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
47543 * include/grub/i386/loader.h (grub_linux_prot_size)
47544 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47545 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47546 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47547 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
47549 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
47551 2007-10-15 Robert Millan <rmh@aybabtu.com>
47553 * normal/misc.c (grub_normal_print_device_info): Do not probe for
47554 filesystem when dev->disk is unset.
47555 Do probe for filesystem even when dev->disk->has_partitions is set.
47556 In case a filesystem is found, always report it.
47557 In case it isn't, if dev->disk->has_partitions is set, report that
47558 a partition table was found instead of reporting that no filesystem
47559 could be identified.
47561 2007-10-12 Robert Millan <rmh@aybabtu.com>
47563 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
47564 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
47566 * include/grub/types.h (grub_host_to_target16): New macro.
47567 (grub_host_to_target32): Likewise.
47568 (grub_host_to_target64): Likewise.
47569 (grub_target_to_host16): Likewise.
47570 (grub_target_to_host32): Likewise.
47571 (grub_target_to_host64): Likewise.
47573 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47574 Renamed from to ...
47575 (GRUB_MOD_ALIGN): ...this. Update all users.
47577 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
47578 grub_host_to_target32.
47579 Replace grub_be_to_cpu32 with grub_target_to_host32.
47580 (load_modules): Likewise.
47581 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
47582 Replace grub_be_to_cpu32 with grub_target_to_host32.
47583 Replace grub_cpu_to_be16 with grub_host_to_target16.
47584 Replace grub_cpu_to_be32 grub_host_to_target32.
47586 2007-10-12 Robert Millan <rmh@aybabtu.com>
47588 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
47589 * util/elf/grub-mkimage.c: ... here.
47591 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
47592 `util/powerpc/ieee1275/grub-mkimage.c'.
47594 2007-10-07 Robert Millan <rmh@aybabtu.com>
47596 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
47597 and make it easier to figure out.
47598 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
47599 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
47600 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
47601 leave us with less than HEAP_MIN_SIZE total heap.
47602 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
47604 2007-10-03 Robert Millan <rmh@aybabtu.com>
47606 * include/grub/i386/io.h: New file.
47607 * commands/i386/pc/play.c (inb): Removed.
47609 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47611 * term/i386/pc/serial.c (inb): Removed.
47613 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47615 * term/i386/pc/vga.c (inb): Removed.
47617 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47620 2007-10-02 Robert Millan <rmh@aybabtu.com>
47622 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
47623 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47624 Reported by Marcin Kurek.
47626 2007-09-07 Robert Millan <rmh@aybabtu.com>
47628 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
47629 SmartFirmware version updates (as released by Sven Luther), and avoid
47630 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
47631 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
47634 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47636 From Hitoshi Ozeki:
47637 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
47638 when merging two regions.
47640 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47642 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
47643 * normal/completion.c (grub_normal_do_completion): Likewise.
47644 Reported by Hitoshi Ozeki.
47646 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47648 Do not use devices at boot in chainloading.
47650 * loader/i386/pc/chainloader.c (boot_drive): New variable.
47651 (boot_part_addr): Likewise.
47652 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
47653 with BOOT_DRIVE and BOOT_PART_ADDR.
47654 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
47655 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
47657 2007-08-29 Robert Millan <rmh@aybabtu.com>
47659 Patch from Simon Peter <dn.tlp@gmx.net>:
47660 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
47661 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
47662 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
47663 util/i386/pc/grub-setup.c_DEPENDENCIES.
47664 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
47665 util/grub-probe.c_DEPENDENCIES.
47666 * conf/powerpc-ieee1275.rmk: Likewise.
47668 2007-08-28 Robert Millan <rmh@aybabtu.com>
47670 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
47671 to tell grub-mkdevicemap how to name devices.
47672 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
47675 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
47676 util/i386/get_disk_name.c.
47677 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
47678 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
47679 util/ieee1275/get_disk_name.c.
47681 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
47683 * DISTLIST: Add util/i386/get_disk_name.c and
47684 util/ieee1275/get_disk_name.c.
47686 * util/grub-mkdevicemap.c: Replace device naming logic with
47687 grub_util_get_disk_name() calls.
47689 2007-08-20 Robert Millan <rmh@aybabtu.com>
47691 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
47692 (so that it works for both plural and singular quantities).
47694 2007-08-05 Robert Millan <rmh@aybabtu.com>
47696 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
47697 so that [xz] isn't taken into account when determining order.
47699 2007-08-02 Marco Gerards <marco@gnu.org>
47701 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
47702 `include/multiboot2.h', `include/grub/elfload.h',
47703 `include/multiboot.h', `include/grub/multiboot.h',
47704 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
47705 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
47706 `kern/elf.c', `loader/multiboot_loader.c',
47707 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
47708 `loader/i386/pc/multiboot2.c',
47709 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
47710 `util/i386/pc/grub-mkrescue.in'. Remove
47711 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
47712 `include/grub/i386/pc/util/biosdisk.h' and
47713 `include/grub/powerpc/ieee1275/multiboot.h'.
47715 2007-08-02 Bean <bean123ch@gmail.com>
47717 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
47718 (ntfs_mod_SOURCES): New variable.
47719 (ntfs_mod_CFLAGS): Likewise.
47720 (ntfs_mod_LDFLAGS): Likewise.
47722 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
47723 (grub_probe_SOURCES): Likewise.
47724 (grub_emu_SOURCES): Likewise.
47726 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47727 (grub_emu_SOURCES): Likewise.
47729 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47730 (grub_emu_SOURCES): Likewise.
47732 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
47734 * fs/ntfs.c: New file.
47736 2007-08-02 Bean <bean123ch@gmail.com>
47738 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
47740 * file.h (grub_file): Likewise.
47742 * fshelp.h (grub_fshelp_read_file): Likewise.
47744 * util/i386/pc/grub-setup.c (setup): Likewise.
47745 (save_first_sector): Likewise.
47746 (save_blocklists): Likewise.
47748 * fs/affs.c (grub_affs_read_file): Likewise.
47750 * fs/ext2.c (grub_ext2_read_file): Likewise.
47752 * fs/fat.c (grub_fat_read_data): Likewise.
47754 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
47756 * fs/hfs.c (grub_hfs_read_file): Likewise.
47758 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47760 * fs/jfs.c (grub_jfs_read_file): Likewise.
47762 * fs/minix.c (grub_minix_read_file): Likewise.
47764 * fs/sfs.c (grub_sfs_read_file): Likewise.
47766 * fs/ufs.c (grub_ufs_read_file): Likewise.
47768 * fs/xfs.c (grub_xfs_read_file): Likewise.
47770 * command/blocklist.c (read_blocklist): Likewise.
47771 (print_blocklist): Likewise.
47773 2007-08-02 Marco Gerards <marco@gnu.org>
47775 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
47778 * disk/host.c: New file.
47780 * util/hostfs.c: Likewise.
47782 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
47783 return `GRUB_ERR_BAD_FS'.
47784 * fs/sfs.c (grub_sfs_mount): Likewise.
47785 * fs/xfs.c (grub_xfs_mount): Likewise.
47787 * include/grub/disk.h (enum grub_disk_dev_id): Add
47788 `GRUB_DISK_DEVICE_HOST_ID'.
47790 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
47792 2007-07-24 Jerone Young <jerone@gmail.com>
47794 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
47795 modules for compilation.
47796 * conf/powerpc-ieee1275.rmk: Likewise.
47798 * include/multiboot.h: Move multiboot definitions to one file. Rename
47799 many definitions to not get grub specific.
47800 * include/multiboot2.h: Create header with multiboot 2 definitions.
47801 * include/grub/multiboot.h: Header for grub specific function
47802 prototypes and definitions.
47803 * include/grub/multiboot2.h: Likewise.
47804 * include/grub/multiboot_loader.h: Likewise.
47805 * include/grub/i386/pc/multiboot.h: Removed.
47806 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47808 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47809 and 2 to allow for one multiboot and module commands.
47810 * loader/multiboot2.c: Add multiboot2 functionality.
47811 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47812 and definition names.
47813 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47815 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47816 ieee1275 specific multiboot2 code.
47818 * kern/i386/pc/startup.S: Change headers and definition names for
47819 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47821 2007-07-22 Robert Millan <rmh@aybabtu.com>
47823 * geninitheader.sh: Process file specified in first parameter rather
47824 than hardcoding grub_modules_init.lst.
47825 * geninit.sh: Likewise. Also, construct header name dynamically rather
47826 than hardcoding grub_modules_init.h.
47828 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47829 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47830 grub_probe_init.[ch] and grub_setup_init.[ch].
47832 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47833 grub_modules_init.h with grub_emu_init.h.
47834 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47835 grub_probe_init.[ch] files.
47836 * conf/i386-efi.rmk: Likewise.
47837 * conf/i386-pc.rmk: Likewise.
47838 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47839 grub_setup_init.[ch] files.
47841 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47842 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47843 to initialize modules rather than a list of hardcoded functions.
47844 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47845 grub_init_all() to initialize modules rather than a list of hardcoded
47848 2007-07-22 Robert Millan <rmh@aybabtu.com>
47850 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47851 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47853 2007-07-22 Robert Millan <rmh@aybabtu.com>
47855 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47856 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47857 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47858 flag when running on SmartFirmware.
47859 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47860 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47863 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47864 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47865 rather than decreasing it.
47867 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47868 there's not enough space to do it, fail in the same way as when it
47869 can't be done because there are no partitions.
47871 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
47872 when nvsetenv failed.
47874 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47876 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
47877 because this rule is automatically generated.
47878 (grub-mkrescue): Removed for the same reason as above.
47880 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47882 Migrate to GNU General Public License Version 3.
47884 * COPYING: Replaced with the plain text version of GPLv3.
47886 * config.guess: Updated from gnulib.
47887 * config.sub: Likewise.
47889 * geninit.sh: Output a GPLv3 copyright notice.
47890 * geninitheader.sh: Likewise.
47891 * genmodsrc.sh: Likewise.
47892 * gensymlist.sh.in: Likewise.
47894 * boot/i386/pc/boot.S: Upgraded to GPLv3.
47895 * boot/i386/pc/diskboot.S: Likewise.
47896 * boot/i386/pc/pxeboot.S: Likewise.
47897 * commands/blocklist.c: Likewise.
47898 * commands/boot.c: Likewise.
47899 * commands/cat.c: Likewise.
47900 * commands/cmp.c: Likewise.
47901 * commands/configfile.c: Likewise.
47902 * commands/echo.c: Likewise.
47903 * commands/help.c: Likewise.
47904 * commands/ls.c: Likewise.
47905 * commands/search.c: Likewise.
47906 * commands/terminal.c: Likewise.
47907 * commands/test.c: Likewise.
47908 * commands/videotest.c: Likewise.
47909 * commands/i386/cpuid.c: Likewise.
47910 * commands/i386/pc/halt.c: Likewise.
47911 * commands/i386/pc/play.c: Likewise.
47912 * commands/i386/pc/reboot.c: Likewise.
47913 * commands/i386/pc/vbeinfo.c: Likewise.
47914 * commands/i386/pc/vbetest.c: Likewise.
47915 * commands/ieee1275/halt.c: Likewise.
47916 * commands/ieee1275/reboot.c: Likewise.
47917 * commands/ieee1275/suspend.c: Likewise.
47918 * disk/loopback.c: Likewise.
47919 * disk/lvm.c: Likewise.
47920 * disk/raid.c: Likewise.
47921 * disk/efi/efidisk.c: Likewise.
47922 * disk/i386/pc/biosdisk.c: Likewise.
47923 * disk/ieee1275/ofdisk.c: Likewise.
47924 * font/manager.c: Likewise.
47925 * fs/affs.c: Likewise.
47926 * fs/ext2.c: Likewise.
47927 * fs/fat.c: Likewise.
47928 * fs/fshelp.c: Likewise.
47929 * fs/hfs.c: Likewise.
47930 * fs/hfsplus.c: Likewise.
47931 * fs/iso9660.c: Likewise.
47932 * fs/jfs.c: Likewise.
47933 * fs/minix.c: Likewise.
47934 * fs/sfs.c: Likewise.
47935 * fs/ufs.c: Likewise.
47936 * fs/xfs.c: Likewise.
47937 * hello/hello.c: Likewise.
47938 * include/grub/acorn_filecore.h: Likewise.
47939 * include/grub/arg.h: Likewise.
47940 * include/grub/bitmap.h: Likewise.
47941 * include/grub/boot.h: Likewise.
47942 * include/grub/cache.h: Likewise.
47943 * include/grub/device.h: Likewise.
47944 * include/grub/disk.h: Likewise.
47945 * include/grub/dl.h: Likewise.
47946 * include/grub/elfload.h: Likewise.
47947 * include/grub/env.h: Likewise.
47948 * include/grub/err.h: Likewise.
47949 * include/grub/file.h: Likewise.
47950 * include/grub/font.h: Likewise.
47951 * include/grub/fs.h: Likewise.
47952 * include/grub/fshelp.h: Likewise.
47953 * include/grub/gzio.h: Likewise.
47954 * include/grub/hfs.h: Likewise.
47955 * include/grub/kernel.h: Likewise.
47956 * include/grub/loader.h: Likewise.
47957 * include/grub/lvm.h: Likewise.
47958 * include/grub/misc.h: Likewise.
47959 * include/grub/mm.h: Likewise.
47960 * include/grub/net.h: Likewise.
47961 * include/grub/normal.h: Likewise.
47962 * include/grub/parser.h: Likewise.
47963 * include/grub/partition.h: Likewise.
47964 * include/grub/pc_partition.h: Likewise.
47965 * include/grub/raid.h: Likewise.
47966 * include/grub/rescue.h: Likewise.
47967 * include/grub/script.h: Likewise.
47968 * include/grub/setjmp.h: Likewise.
47969 * include/grub/symbol.h: Likewise.
47970 * include/grub/term.h: Likewise.
47971 * include/grub/terminfo.h: Likewise.
47972 * include/grub/tparm.h: Likewise.
47973 * include/grub/types.h: Likewise.
47974 * include/grub/video.h: Likewise.
47975 * include/grub/efi/api.h: Likewise.
47976 * include/grub/efi/chainloader.h: Likewise.
47977 * include/grub/efi/console.h: Likewise.
47978 * include/grub/efi/console_control.h: Likewise.
47979 * include/grub/efi/disk.h: Likewise.
47980 * include/grub/efi/efi.h: Likewise.
47981 * include/grub/efi/pe32.h: Likewise.
47982 * include/grub/efi/time.h: Likewise.
47983 * include/grub/i386/linux.h: Likewise.
47984 * include/grub/i386/setjmp.h: Likewise.
47985 * include/grub/i386/types.h: Likewise.
47986 * include/grub/i386/efi/kernel.h: Likewise.
47987 * include/grub/i386/efi/loader.h: Likewise.
47988 * include/grub/i386/efi/time.h: Likewise.
47989 * include/grub/i386/pc/biosdisk.h: Likewise.
47990 * include/grub/i386/pc/boot.h: Likewise.
47991 * include/grub/i386/pc/chainloader.h: Likewise.
47992 * include/grub/i386/pc/console.h: Likewise.
47993 * include/grub/i386/pc/init.h: Likewise.
47994 * include/grub/i386/pc/kernel.h: Likewise.
47995 * include/grub/i386/pc/loader.h: Likewise.
47996 * include/grub/i386/pc/memory.h: Likewise.
47997 * include/grub/i386/pc/multiboot.h: Likewise.
47998 * include/grub/i386/pc/serial.h: Likewise.
47999 * include/grub/i386/pc/time.h: Likewise.
48000 * include/grub/i386/pc/vbe.h: Likewise.
48001 * include/grub/i386/pc/vbeblit.h: Likewise.
48002 * include/grub/i386/pc/vbefill.h: Likewise.
48003 * include/grub/i386/pc/vbeutil.h: Likewise.
48004 * include/grub/i386/pc/vga.h: Likewise.
48005 * include/grub/ieee1275/ieee1275.h: Likewise.
48006 * include/grub/ieee1275/ofdisk.h: Likewise.
48007 * include/grub/powerpc/libgcc.h: Likewise.
48008 * include/grub/powerpc/setjmp.h: Likewise.
48009 * include/grub/powerpc/types.h: Likewise.
48010 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
48011 * include/grub/powerpc/ieee1275/console.h: Likewise.
48012 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
48013 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
48014 * include/grub/powerpc/ieee1275/loader.h: Likewise.
48015 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
48016 * include/grub/powerpc/ieee1275/time.h: Likewise.
48017 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
48018 * include/grub/sparc64/libgcc.h: Likewise.
48019 * include/grub/sparc64/setjmp.h: Likewise.
48020 * include/grub/sparc64/types.h: Likewise.
48021 * include/grub/sparc64/ieee1275/console.h: Likewise.
48022 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
48023 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
48024 * include/grub/sparc64/ieee1275/time.h: Likewise.
48025 * include/grub/util/biosdisk.h: Likewise.
48026 * include/grub/util/getroot.h: Likewise.
48027 * include/grub/util/lvm.h: Likewise.
48028 * include/grub/util/misc.h: Likewise.
48029 * include/grub/util/raid.h: Likewise.
48030 * include/grub/util/resolve.h: Likewise.
48031 * io/gzio.c: Likewise.
48032 * kern/device.c: Likewise.
48033 * kern/disk.c: Likewise.
48034 * kern/dl.c: Likewise.
48035 * kern/elf.c: Likewise.
48036 * kern/env.c: Likewise.
48037 * kern/err.c: Likewise.
48038 * kern/file.c: Likewise.
48039 * kern/fs.c: Likewise.
48040 * kern/loader.c: Likewise.
48041 * kern/main.c: Likewise.
48042 * kern/misc.c: Likewise.
48043 * kern/mm.c: Likewise.
48044 * kern/parser.c: Likewise.
48045 * kern/partition.c: Likewise.
48046 * kern/rescue.c: Likewise.
48047 * kern/term.c: Likewise.
48048 * kern/efi/efi.c: Likewise.
48049 * kern/efi/init.c: Likewise.
48050 * kern/efi/mm.c: Likewise.
48051 * kern/i386/dl.c: Likewise.
48052 * kern/i386/efi/init.c: Likewise.
48053 * kern/i386/efi/startup.S: Likewise.
48054 * kern/i386/pc/init.c: Likewise.
48055 * kern/i386/pc/lzo1x.S: Likewise.
48056 * kern/i386/pc/startup.S: Likewise.
48057 * kern/ieee1275/ieee1275.c: Likewise.
48058 * kern/powerpc/cache.S: Likewise.
48059 * kern/powerpc/dl.c: Likewise.
48060 * kern/powerpc/ieee1275/cmain.c: Likewise.
48061 * kern/powerpc/ieee1275/crt0.S: Likewise.
48062 * kern/powerpc/ieee1275/init.c: Likewise.
48063 * kern/powerpc/ieee1275/openfw.c: Likewise.
48064 * kern/sparc64/cache.S: Likewise.
48065 * kern/sparc64/dl.c: Likewise.
48066 * kern/sparc64/ieee1275/init.c: Likewise.
48067 * kern/sparc64/ieee1275/openfw.c: Likewise.
48068 * loader/efi/chainloader.c: Likewise.
48069 * loader/efi/chainloader_normal.c: Likewise.
48070 * loader/i386/efi/linux.c: Likewise.
48071 * loader/i386/efi/linux_normal.c: Likewise.
48072 * loader/i386/pc/chainloader.c: Likewise.
48073 * loader/i386/pc/chainloader_normal.c: Likewise.
48074 * loader/i386/pc/linux.c: Likewise.
48075 * loader/i386/pc/linux_normal.c: Likewise.
48076 * loader/i386/pc/multiboot.c: Likewise.
48077 * loader/i386/pc/multiboot_normal.c: Likewise.
48078 * loader/powerpc/ieee1275/linux.c: Likewise.
48079 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
48080 * normal/arg.c: Likewise.
48081 * normal/cmdline.c: Likewise.
48082 * normal/command.c: Likewise.
48083 * normal/completion.c: Likewise.
48084 * normal/execute.c: Likewise.
48085 * normal/function.c: Likewise.
48086 * normal/lexer.c: Likewise.
48087 * normal/main.c: Likewise.
48088 * normal/menu.c: Likewise.
48089 * normal/menu_entry.c: Likewise.
48090 * normal/misc.c: Likewise.
48091 * normal/parser.y: Likewise.
48092 * normal/script.c: Likewise.
48093 * normal/i386/setjmp.S: Likewise.
48094 * normal/powerpc/setjmp.S: Likewise.
48095 * normal/sparc64/setjmp.S: Likewise.
48096 * partmap/acorn.c: Likewise.
48097 * partmap/amiga.c: Likewise.
48098 * partmap/apple.c: Likewise.
48099 * partmap/gpt.c: Likewise.
48100 * partmap/pc.c: Likewise.
48101 * partmap/sun.c: Likewise.
48102 * term/gfxterm.c: Likewise.
48103 * term/terminfo.c: Likewise.
48104 * term/efi/console.c: Likewise.
48105 * term/i386/pc/console.c: Likewise.
48106 * term/i386/pc/serial.c: Likewise.
48107 * term/i386/pc/vesafb.c: Likewise.
48108 * term/i386/pc/vga.c: Likewise.
48109 * term/ieee1275/ofconsole.c: Likewise.
48110 * util/biosdisk.c: Likewise.
48111 * util/console.c: Likewise.
48112 * util/genmoddep.c: Likewise.
48113 * util/getroot.c: Likewise.
48114 * util/grub-emu.c: Likewise.
48115 * util/grub-mkdevicemap.c: Likewise.
48116 * util/grub-probe.c: Likewise.
48117 * util/lvm.c: Likewise.
48118 * util/misc.c: Likewise.
48119 * util/raid.c: Likewise.
48120 * util/resolve.c: Likewise.
48121 * util/update-grub.in: Likewise.
48122 * util/update-grub_lib.in: Likewise.
48123 * util/grub.d/00_header.in: Likewise.
48124 * util/grub.d/10_hurd.in: Likewise.
48125 * util/grub.d/10_linux.in: Likewise.
48126 * util/i386/efi/grub-install.in: Likewise.
48127 * util/i386/efi/grub-mkimage.c: Likewise.
48128 * util/i386/pc/grub-install.in: Likewise.
48129 * util/i386/pc/grub-mkimage.c: Likewise.
48130 * util/i386/pc/grub-mkrescue.in: Likewise.
48131 * util/i386/pc/grub-setup.c: Likewise.
48132 * util/i386/pc/misc.c: Likewise.
48133 * util/powerpc/ieee1275/grub-install.in: Likewise.
48134 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
48135 * util/powerpc/ieee1275/misc.c: Likewise.
48136 * video/bitmap.c: Likewise.
48137 * video/video.c: Likewise.
48138 * video/i386/pc/vbe.c: Likewise.
48139 * video/i386/pc/vbeblit.c: Likewise.
48140 * video/i386/pc/vbefill.c: Likewise.
48141 * video/i386/pc/vbeutil.c: Likewise.
48142 * video/readers/tga.c: Likewise.
48144 2007-07-02 Robert Millan <rmh@aybabtu.com>
48146 * conf/i386-efi.rmk: Replace obsolete reference to
48147 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
48148 with util/getroot.c.
48149 * conf/powerpc-ieee1275.rmk: Likewise.
48150 * conf/sparc64-ieee1275.rmk: Likewise.
48152 * util/grub-emu.c (main): Fix unchecked pointer handling.
48154 2007-07-02 Robert Millan <rmh@aybabtu.com>
48156 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
48157 invocation to fail, in order to support partition-less media.
48159 * util/i386/pc/grub-install.in: Likewise.
48161 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
48162 which fs or partmap modules are needed (akin to its sister scripts).
48164 Also use grub-probe to get rid of unportable /proc/mounts check.
48166 Print the same informational message that the other scripts do, before
48169 2007-06-23 Robert Millan <rmh@aybabtu.com>
48171 * util/update-grub_lib.in (font_path): New function. Determine whether
48172 a font file can be found and, if so, echo the GRUB path to it.
48174 * util/update-grub.in: Handle multiple terminals depending on user
48175 input, platform availability and font file presence. Propagate
48176 variables of our findings to /etc/grub.d/ children.
48178 * util/grub.d/00_header.in: Handle multiple terminals, based on
48179 environment setup by update-grub.
48181 2007-06-23 Robert Millan <rmh@aybabtu.com>
48183 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
48185 2007-06-21 Robert Millan <rmh@aybabtu.com>
48187 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
48188 indicate end of data section in kernel image.
48189 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
48190 GRUB_KERNEL_MACHINE_DATA_END.
48192 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
48194 * kern/i386/efi/startup.S: Likewise.
48196 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
48197 during image generation. Implement --prefix option to override this
48199 * util/i386/efi/grub-mkimage.c: Likewise.
48201 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
48202 code to make path relative to its root into a separate function.
48204 * util/i386/pc/grub-install.in: Use newly provided
48205 make_system_path_relative_to_its_root() to convert ${grubdir}, then
48206 pass the result to grub-install --prefix.
48208 2007-06-13 Robert Millan <rmh@aybabtu.com>
48210 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
48211 DEFAULT_DEVICE_MAP.
48212 * util/grub-emu.c: Use above definitions from misc.h instead of
48214 * util/grub-mkdevicemap.c: Likewise.
48215 * util/i386/pc/grub-setup.c: Likewise.
48216 * util/grub-probe.c: Likewise.
48217 (probe): Abort with grub_util_error() when either
48218 grub_guess_root_device or grub_util_get_grub_dev fails.
48220 2007-06-12 Robert Millan <rmh@aybabtu.com>
48222 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
48223 "pager" assignment.
48224 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
48226 * util/grub-probe.c (probe): Likewise for "drive_name".
48228 2007-06-11 Robert Millan <rmh@aybabtu.com>
48230 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
48231 not just the cdrom one.
48233 2007-06-11 Robert Millan <rmh@aybabtu.com>
48235 * util/i386/pc/grub-mkrescue.in: Add "set -e".
48236 Add --pkglibdir=DIR option to override pkglibdir.
48237 Mention --image-type=TYPE in help output.
48238 Fix --grub-mkimage (it was a no-op).
48239 Abort gracefully when no parameter is given.
48241 2007-06-11 Robert Millan <rmh@aybabtu.com>
48243 * util/i386/pc/grub-mkrescue.in: New file.
48244 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
48245 * Makefile.in: Handle bin_SCRIPTS.
48247 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
48249 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
48250 list of video modes.
48252 2007-06-06 Robert Millan <rmh@aybabtu.com>
48254 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
48255 file doesn't exist, or if it is in a filesystem grub can't read.
48257 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
48258 not abort if GRUB_DRIVE could not be defined. Rearrange generated
48259 header comment to fit in 80 columns when the variables are resolved.
48261 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
48262 could be identified by update-grub. Remove redundant check for
48263 unifont.pff existence (since convert_system_path_to_grub_path now
48266 2007-06-04 Robert Millan <rmh@aybabtu.com>
48268 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
48270 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
48272 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
48274 2007-06-04 Robert Millan <rmh@aybabtu.com>
48276 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
48278 * include/grub/partition.h: Declare grub_apple_partition_map_init and
48279 grub_apple_partition_map_fini.
48282 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
48283 to access >2 TiB disks).
48285 Print disk->total_sectors with %llu instead of %lu, since this
48286 variable is always 64-bit (prevents wrong disk size from being displayed
48287 on either >2 TiB disk or big-endian CPU).
48289 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
48290 into a generic case that supports all (sane) partition maps.
48292 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
48295 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
48296 and grub_apple_partition_map_fini() after that.
48298 2007-06-01 Robert Millan <rmh@aybabtu.com>
48300 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
48302 * util/grub.d/00_header.in: Only enable gfxterm when
48303 convert_system_path_to_grub_path() succeeds.
48305 2007-05-20 Robert Millan <rmh@aybabtu.com>
48307 * util/update-grub_lib.in: New file.
48308 * DISTLIST: Add update-grub_lib.in.
48309 * conf/common.rmk: Generate update-grub_lib and install it in
48311 * Makefile.in: Add install routine for $(lib_DATA).
48313 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
48314 function provided by update-grub_lib to support arbitrary paths of
48316 * util/update-grub.in: Use convert_system_path_to_grub_path() to
48317 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
48319 2007-05-19 Robert Millan <rmh@aybabtu.com>
48321 * commands/i386/cpuid.c: New module.
48322 * DISTLIST: Add it.
48323 * conf/i386-efi.rmk: Enable cpuid.mod.
48324 * conf/i386-pc.rmk: Likewise.
48326 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48328 * kern/disk.c (grub_disk_read): Check return value of
48331 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48333 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
48335 * disk/raid.c (grub_raid_open): Likewise.
48337 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48339 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
48340 stack instead of on the heap.
48342 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
48343 before doing a read on it.
48345 * configure.ac: Only use -fno-stack-protector for the target
48348 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48350 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
48351 __attribute_ ((unused)) to mode_type argument.
48353 * util/getroot.c (grub_guess_root_device): Fix #endif.
48355 * kern/misc.c (memcmp): Fix prototype.
48357 * include/grub/partition.h [GRUB_UTIL]
48358 (grub_gpt_partition_map_init): Add prototype.
48359 (grub_gpt_partition_map_fini): Likewise.
48361 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
48362 at the right place.
48364 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
48365 (grub_fat_read_data): Likewise.
48366 (grub_fat_find_dir): Likewise.
48368 * font/manager.c (find_glyph): Make table a const.
48369 (grub_font_get_glyph): Remove bitmap from if statement.
48371 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
48373 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
48374 code, first search for device in /dev/mapper, then in /dev.
48375 (grub_util_get_grub_dev): New function.
48376 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
48378 * util/grub-probe.c (probe): Remove check for RAID, call
48379 grub_util_get_grub_dev() instead of
48380 grub_util_biosdisk_get_grub_dev().
48381 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
48382 grub_util_biosdisk_get_grub_dev().
48383 * util/i386/pc/grub-setup.c (main): Likewise.
48385 2007-05-16 Robert Millan <rmh@aybabtu.com>
48387 * DISTLIST: Update for the latest changes.
48388 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
48389 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
48390 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
48391 grub/util/biosdisk.h.
48392 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
48393 grub/util/biosdisk.h.
48395 2007-05-16 Robert Millan <rmh@aybabtu.com>
48397 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
48399 2007-05-16 Robert Millan <rmh@aybabtu.com>
48401 * util/i386/efi/grub-install.in: New.
48402 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
48403 newly added grub-install.
48404 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
48406 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
48407 grub/util/biosdisk.h.
48408 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
48409 grub/util/biosdisk.h.
48411 2007-05-16 Robert Millan <rmh@aybabtu.com>
48413 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
48414 * include/grub/util/biosdisk.h: ... here.
48415 * util/i386/pc/biosdisk.c: Moved to ...
48416 * util/biosdisk.c: ... here.
48417 * util/i386/pc/getroot.c: Moved to ...
48418 * util/getroot.c: ... here.
48419 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
48420 * util/grub-mkdevicemap.c: ... here.
48421 * util/i386/pc/grub-probe.c: Moved to ...
48422 * util/grub-probe.c: ... here.
48424 2007-05-15 Robert Millan <rmh@aybabtu.com>
48426 * util/update-grub.in: Remove duplicated line in grub.cfg header
48429 2007-05-13 Robert Millan <rmh@aybabtu.com>
48431 * util/update-grub.in: Fix a few assumptions about the devices holding
48432 /, /boot and /boot/grub being the same.
48433 * util/grub.d/00_header.in: Likewise.
48434 * util/grub.d/10_hurd.in: Likewise.
48435 * util/grub.d/10_linux.in: Likewise.
48437 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
48438 patterns. Use that to define the `.old' suffix as older than `'.
48440 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
48442 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
48443 the grub.cfg header message.
48445 2007-05-11 Robert Millan <rmh@aybabtu.com>
48447 * util/update-grub.in: Create device.map if it doesn't already exist,
48448 before attempting to run grub-probe.
48449 Check for grub-probe and grub-mkdevicemap with the same code
48450 grub-install is using.
48453 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
48455 * Makefile.in: Add the datarootdir autoconf variable.
48457 2007-05-09 Robert Millan <rmh@aybabtu.com>
48459 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
48460 fail gracefully if dev->disk->partition == NULL.
48462 2007-05-07 Robert Millan <rmh@aybabtu.com>
48464 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
48465 determine partition map module.
48466 * util/i386/pc/grub-install.in: Use this feature to decide which
48467 partition module to load, instead of hardcoding pc and gpt.
48469 2007-05-07 Robert Millan <rmh@aybabtu.com>
48471 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
48472 source directory differs from build directory.
48474 2007-05-05 Robert Millan <rmh@aybabtu.com>
48476 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
48479 2007-05-05 Robert Millan <rmh@aybabtu.com>
48481 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
48483 2007-05-05 Robert Millan <rmh@aybabtu.com>
48485 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
48486 command-line arguments via ${GRUB_CMDLINE_LINUX}.
48488 2007-05-05 Robert Millan <rmh@aybabtu.com>
48490 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
48491 (grub_probe_SOURCES): Likewise.
48492 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
48493 GPT and initialize dos_part and bsd_part accordingly.
48494 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
48496 (main): Activate gpt module for use during partition identification,
48497 and deactivate it afterwards.
48498 * util/i386/pc/grub-install.in: Add gpt module to core.img.
48499 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
48500 partition identification, and deactivate it afterwards.
48502 2007-05-05 Robert Millan <rmh@aybabtu.com>
48504 * term/i386/pc/console.c (grub_console_fini): Call
48505 grub_term_set_current() before grub_term_unregister().
48507 2007-05-04 Robert Millan <rmh@aybabtu.com>
48509 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
48510 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
48511 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
48512 and update-grub_DATA.
48513 * conf/common.rmk: Build and install update-grub components.
48514 * conf/common.mk: Regenerate.
48515 * util/update-grub.in: New. Core of update-grub.
48516 * util/grub.d/00_header.in: New. Generates grub.cfg header.
48517 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
48518 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
48519 * util/grub.d/README: New. Document grub.d directory layout.
48521 2007-05-01 Robert Millan <rmh@aybabtu.com>
48523 * util/grub-emu.c: Move initialization functions
48524 grub_util_biosdisk_init() and grub_init_all() before
48525 grub_util_biosdisk_get_grub_dev(), which relies on them.
48527 2007-04-19 Robert Millan <rmh@aybabtu.com>
48529 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
48532 2007-04-18 Jerone Young <jerone@gmail.com>
48534 * kernel/elf.c: Add missing parenthesis for conditional statement
48537 2007-04-10 Jerone Young <jerone@gmail.com>
48539 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
48540 continue on and look for device node with real device name.
48542 2007-04-10 Jerone Young <jerone@gmail.com>
48544 * configure.ac: Add argument for autoconf to use transformation
48546 * Makefile.in: Add autoconf package transformation code.
48547 * util/i386/pc/grub-install.in: Likewise.
48548 * util/powerpc/ieee1275/grub-install.in: Likewise.
48550 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48552 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
48553 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
48554 (EXT2_REVISION): Likewise.
48555 (EXT2_INODE_SIZE): Likewise.
48556 (struct grub_ext2_block_group): Added a missing member
48558 (grub_ext2_read_inode): Divide by the inode size in a superblock
48559 instead of 128 to obtain INODES_PER_BLOCK.
48560 Use the macro EXT2_INODE_SIZE instead of directly using
48561 SBLOCK->INODE_SIZE.
48563 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48565 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
48566 superblock instead of the structure size to compute an
48567 offset. This fixes the problem that GRUB could not read a
48568 filesystem when inode size is different from 128-byte.
48570 2007-03-05 Marco Gerards <marco@gnu.org>
48572 * normal/main.c (read_config_file): When "menu" is not set, create
48573 an initial context.
48575 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48577 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
48578 (HEAP_LIMIT): New macro.
48579 (grub_claim_heap): Claim memory up to `heaplimit'.
48581 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48583 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
48584 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
48585 (_start): Likewise.
48586 (grub_arch_modules_addr): Return address after `_end'.
48587 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
48588 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
48589 (add_segments): Calculate `_end' from phdr size and location.
48590 (ALIGN_UP): Moved to ...
48591 * include/grub/misc.h: here.
48592 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
48594 (GRUB_IEEE1275_MODULE_BASE): Removed.
48596 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48598 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
48601 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48603 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
48605 (grub_elf64_load_hook_t): Likewise.
48606 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
48609 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48611 * kern/mm.c: Update copyright.
48612 (grub_mm_debug): Correct syntax error.
48613 (grub_mm_dump_free): New function.
48614 (grub_debug_free): Call `grub_free'.
48615 * include/grub/mm.h: Update copyright.
48616 (grub_mm_dump_free): Add declaration.
48618 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48620 * include/grub/ieee1275/ieee1275.h: Update copyright.
48621 * kern/powerpc/ieee1275/init.c: Likewise.
48622 * kern/powerpc/ieee1275/openfw.c: Likewise.
48624 * loader/powerpc/ieee1275/linux.c: Likewise.
48625 * include/grub/elfload.h: Likewise.
48626 * kern/elf.c: Likewise.
48627 (grub_elf32_load): Pass `base' and `size' parameters. Update all
48629 (grub_elf64_load): Likewise.
48630 (grub_elf32_load_segment): Move to a nested function.
48631 (grub_elf64_load_segment): Likewise.
48633 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48635 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
48637 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
48638 (grub_heap_len): Likewise.
48639 (HEAP_SIZE): New macro.
48640 (grub_claim_heap): New function.
48641 (grub_machine_init): Don't claim heap directly. Call
48643 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
48644 (grub_available_iterate): New function.
48646 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
48648 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
48649 * configure.ac: Use it for testing the HOST and TARGET compilers.
48651 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
48653 * Makefile.in (enable_grub_emu): New variable.
48654 * configure.ac (--enable-grub-emu): New option.
48655 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
48656 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
48657 * conf/i386-pc.rmk: Likewise.
48658 * conf/powerpc-ieee1275.rmk: Likewise.
48659 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
48661 2006-12-12 Marco Gerards <marco@gnu.org>
48663 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
48665 * kern/env.c (grub_env_unset): Don't free the member `value' when
48666 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
48669 * normal/main.c (current_menu): Removed.
48670 (free_menu): Unset the `menu' environment variable.
48671 (grub_normal_menu_addentry): Make use of the environment variable
48672 `menu', instead of using the global `current_menu'. Allocate
48673 memory for the sourcecode of this entry.
48674 (read_config_file): New argument `nested', changed all callers.
48675 Only in the case of a new context, initialize a new menu. Set the
48676 `menu' environment variable.
48677 (grub_normal_execute): Don't set and unset the environment
48678 variable `menu' here anymore. Only free the menu when leaving the
48681 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
48684 2006-12-11 Marco Gerards <marco@gnu.org>
48686 * normal/menu_entry.c (run): Fix off by one bug so the last line
48687 is executed. Move the loader check to outside the loop.
48689 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
48691 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
48693 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
48695 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
48696 the number of sectors. Reported by Andrey Shuvikov
48697 <mr_hyro@yahoo.com>.
48699 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
48701 * kern/disk.c (grub_disk_read): When there is a read error, always
48702 try to read only the necessary data.
48704 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
48706 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
48708 [GRUB_UTIL] (grub_raid_fini): Likewise.
48709 [GRUB_UTIL] (grub_lvm_init): Likewise.
48710 [GRUB_UTIL] (grub_lvm_fini): Likewise.
48711 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
48712 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
48713 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
48714 and grub_raid_fini().
48716 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48718 * include/grub/types.h (__unused): Rename to UNUSED.
48719 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
48720 (grub_elf64_size): Likewise.
48722 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48724 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
48725 grub_error_push and grub_error_pop in the error-handling path.
48726 (grub_elf32_load_segment): Only call grub_file_read with non-zero
48729 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48731 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
48732 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48733 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48734 (kernel_elf_SOURCES): Likewise.
48735 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
48736 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
48737 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48738 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48739 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
48740 (elf_mod_SOURCES): New variable.
48741 (elf_mod_CFLAGS): Likewise.
48742 (elf_mod_LDFLAGS): Likewise.
48743 * include/grub/types.h (__unused): New macro.
48744 * include/grub/elfload.h: New file.
48745 * kern/elf.c: Likewise.
48746 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
48747 (ELF32_LOADMASK): New macro.
48748 (ELF64_LOADMASK): Likewise.
48749 (vmlinux): Removed.
48750 (grub_linux_load32): New function.
48751 (grub_linux_load64): Likewise.
48752 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
48753 Use grub_elf_t instead of grub_file_t.
48755 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
48757 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
48758 `catch_result' to struct set_color_args.
48760 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48762 * normal/menu.c: Include grub/script.h.
48763 * normal/menu_entry.c: Likewise.
48764 * include/grub/normal.h: Do not include grub/script.h.
48766 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48768 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
48770 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48772 * kern/disk.c (grub_disk_open): Print debug messages when opening a
48774 (grub_disk_close): Print debug messages when closing a disk.
48775 (grub_disk_read): Print debug messages when disk read fails.
48776 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
48778 * kern/partition.c: Include misc.h.
48779 (grub_partition_iterate): Print debug messages when detecting
48782 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48784 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
48786 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
48788 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
48790 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48791 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
48793 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
48795 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48796 instead of sizeof(lv). Patch by Michael Guntsche.
48798 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48800 * disk/lvm.c: Rename VGS to VG_LIST.
48801 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48802 (grub_lvm_open): Likewise.
48803 Thanks to Michael Guntsche for finding this bug.
48805 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48807 * configure.ac (AC_INIT): Bumped to 1.95.
48809 2006-10-14 Robert Millan <rmh@aybabtu.com>
48811 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48812 with "/dev/.static/dev/md".
48814 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48816 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48817 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48818 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48819 DRIVE_NAME are always freed.
48821 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48822 DOS_PART, as a DOS partition is counted from one instead of zero
48823 now. Reported by Robert Millan.
48825 2006-10-14 Robert Millan <rmh@aybabtu.com>
48827 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48828 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48829 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48830 string returned by grub_guess_root_device.
48831 * util/i386/pc/grub-setup.c: Likewise.
48832 * util/i386/pc/grub-probefs.c: Likewise.
48834 * util/i386/pc/grub-probefs.c: Rename to ...
48835 * util/i386/pc/grub-probe.c: ... this.
48836 * DISTLIST: Remove grub-probefs, add grub-probe.
48837 * conf/i386-efi.rmk: Likewise.
48838 * conf/i386-pc.rmk: Likewise.
48839 * util/i386/pc/grub-install.in: Likewise.
48841 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48842 choose which information we want to print.
48844 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48846 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48847 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48848 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48849 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48850 video/readers/tga.c and video/i386/pc/vbeutil.c.
48852 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48854 Added support for RAID and LVM.
48856 * disk/lvm.c: New file.
48857 * disk/raid.c: Likewise.
48858 * include/grub/lvm.h: Likewise.
48859 * include/grub/raid.h: Likewise.
48860 * include/grub/util/lvm.h: Likewise.
48861 * include/grub/util/raid.h: Likewise.
48862 * util/lvm.c: Likewise.
48863 * util/raid.c: Likewise.
48865 * include/grub/disk.h (grub_disk_dev_id): Add
48866 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48867 (grub_disk_get_size): New prototype.
48868 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48869 returns a partition.
48870 (grub_disk_get_size): New function.
48872 * kern/i386/pc/init.c (make_install_device): Copy the prefix
48873 verbatim if grub_install_dos_part is -2.
48875 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
48878 * util/i386/pc/grub-setup.c (setup): New argument
48879 MUST_EMBED. Force embedding of GRUB when the argument is
48880 true. Close FILE before returning.
48881 (main): Add support for RAID and LVM.
48883 * conf/common.rmk: Add RAID and LVM modules.
48884 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
48886 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
48888 * kern/misc.c (grub_strstr): New function.
48889 * include/grub/misc.h (grub_strstr): New prototype.
48891 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
48893 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
48895 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
48897 * kern/misc.c (grub_strtoull): Guess the base only if not
48900 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48902 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
48905 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48907 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
48909 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
48910 Remove `flags' argument. All callers changed.
48911 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
48912 (IEEE1275_IHANDLE_INVALID): New variable.
48913 (IEEE1275_CELL_INVALID): New variable.
48914 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
48915 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
48916 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
48917 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
48918 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
48919 codes from Open Firmware. All callers updated.
48920 (grub_ieee1275_next_property): Directly return Open Firmware return
48922 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
48923 Standardize error checking from `grub_ieee1275_get_property'.
48924 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
48925 `devalias' to `aliases'. Correct comments. Consolidate error paths.
48927 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48929 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
48930 `instance_to_package_args' to `instance_to_path_args'.
48932 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
48933 `grub_ieee1275_chosen'.
48935 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
48936 `grub_ieee1275_interpret'.
48938 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48940 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
48942 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48944 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
48945 (__cmpdi): Likewise.
48947 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
48948 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
48951 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
48953 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
48954 to type `grub_ssize_t'.
48955 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
48957 2006-09-22 Marco Gerards <marco@gnu.org>
48959 * normal/script.c (grub_script_create_cmdmenu): Skip leading
48962 2006-09-22 Marco Gerards <marco@gnu.org>
48964 * commands/echo.c: New file.
48966 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
48968 * conf/common.rmk (echo_mod_SOURCES): New variable.
48969 (echo_mod_CFLAGS): Likewise.
48970 (echo_mod_LDFLAGS): Likewise.
48972 2006-09-22 Marco Gerards <marco@gnu.org>
48974 * normal/main.c (get_line): Malloc memory instead of using
48975 preallocated memory. Removed the arguments `cmdline' and
48976 `max_len'. Updated all callers.
48978 2006-09-22 Marco Gerards <marco@gnu.org>
48980 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
48981 (normal_mod_DEPENDENCIES): Likewise.
48983 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
48984 (normal_mod_DEPENDENCIES): Likewise.
48986 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
48988 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
48990 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
48992 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
48993 (normal_mod_DEPENDENCIES): Likewise.
48994 * conf/i386-pc.mk: Regenerate.
48995 * conf/i386-efi.mk: Likewise
48996 * conf/common.mk: Likewise.
48997 * conf/powerpc-ieee1275.mk: Likewise.
48998 * conf/sparc64-ieee1275.mk: Likewise.
49000 2006-09-22 Robert Millan <rmh@aybabtu.com>
49002 Sync with i386 version.
49003 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
49004 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
49006 2006-09-21 Robert Millan <rmh@aybabtu.com>
49008 Import from GRUB Legacy (lib/device.c):
49009 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
49010 (init_device_map) [__linux__]: Add support for I2O devices.
49012 2006-09-14 Marco Gerards <marco@gnu.org>
49014 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
49017 2006-09-14 Robert Millan <rmh@aybabtu.com>
49019 * util/i386/pc/grub-install.in: Skip menu.lst when removing
49022 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
49024 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
49025 before adding it to device.map.
49027 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
49029 * genmk.rb: Let GCC generate dependencies the first time it
49030 compiles a file; using the -MD option.
49031 * conf/common.mk: Regenerate.
49032 * conf/i386-pc.mk: Likewise.
49033 * conf/i386-efi.mk: Likewise.
49034 * conf/powerpc-ieee1275.mk: Likewise.
49035 * conf/sparc64-ieee1275.mk: Likewise.
49037 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
49039 Move the prototypes of grub_setjmp and grub_longjmp to
49040 cpu/setjmp.h, so that each architecture may specify different
49043 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
49044 (grub_longjmp): Likewise.
49045 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
49046 (grub_longjmp): Likewise.
49047 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
49048 (grub_longjmp): Likewise.
49050 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
49051 [!GRUB_UTIL] (grub_longjmp): Removed.
49053 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
49055 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
49056 "color!" method does not return any value.
49058 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49060 * include/grub/bitmap.h: New file.
49062 * include/grub/i386/pc/vbeutil.h: Likewise.
49064 * video/bitmap.c: Likewise.
49066 * video/readers/tga.c: Likewise.
49068 * video/i386/pc/vbeutil.c: Likewise.
49070 * commands/videotest.c: Code cleanup and updated to reflect to new
49073 * term/gfxterm.c: Likewise.
49075 * video/video.c: Likewise.
49077 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
49078 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
49079 (bitmap_mod_SOURCES): New entry.
49080 (bitmap_mod_CFLAGS): Likewise.
49081 (bitmap_mod_LDFLAGS): Likewise.
49082 (tga_mod_SOURCES): Likewise.
49083 (tga_mod_CFLAGS): Likewise.
49084 (tga_mod_LDFLAGS): Likewise.
49086 * include/grub/video.h (grub_video_blit_operators): New enum type.
49087 (grub_video_render_target): Changed as forward declaration and moved
49088 actual definition to be video driver specific.
49089 (grub_video_adapter.blit_bitmap): Added blitting operator.
49090 (grub_video_adapter.blit_render_target): Likewise.
49091 (grub_video_blit_bitmap): Likewise.
49092 (grub_video_blit_render_target): Likewise.
49094 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
49095 driver specific render target definition.
49096 (grub_video_vbe_map_rgba): Added driver internal helper.
49097 (grub_video_vbe_unmap_color): Updated to use
49098 grub_video_i386_vbeblit_info.
49099 (grub_video_vbe_get_video_ptr): Likewise.
49101 * include/grub/i386/pc/vbeblit.h
49102 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
49103 grub_video_i386_vbeblit_info.
49104 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
49105 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
49106 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
49107 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
49108 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
49109 (grub_video_i386_vbeblit_index_index): Likewise.
49110 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
49111 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
49112 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
49113 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
49115 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
49118 * video/i386/pc/vbeblit.c: Updated to reflect changes on
49119 include/grub/i386/pc/vbeblit.h.
49121 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
49122 Updated to use grub_video_i386_vbeblit_info.
49123 (grub_video_i386_vbefill_R8G8B8): Likewise.
49124 (grub_video_i386_vbefill_index): Likewise.
49125 (grub_video_i386_vbefill): Added generic filler.
49127 * video/i386/pc/vbefill.c: Updated to reflect changes on
49128 include/grub/i386/pc/vbefill.h.
49130 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
49131 grub_video_i386_vbeblit_info.
49132 (grub_video_vbe_unmap_color): Likewise.
49133 (grub_video_vbe_blit_glyph): Likewise.
49134 (grub_video_vbe_scroll): Likewise.
49135 (grub_video_vbe_draw_pixel): Removed function.
49136 (grub_video_vbe_get_pixel): Likewise.
49137 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
49138 updated code to use it.
49139 (common_blitter): Added common blitter for render target and bitmap.
49140 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
49141 (grub_video_vbe_blit_render_target): Likewise.
49143 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
49145 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
49146 is in text mode if there is no console control protocol instance
49149 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49151 * include/grub/video.h: Code cleanup.
49153 * include/grub/i386/pc/vbe.h: Likewise.
49155 * video/i386/pc/vbe.c: Likewise.
49157 * video/i386/pc/vbeblit.c: Likewise.
49159 * video/i386/pc/vbefill.c: Likewise.
49161 * video/video.c: Likewise. Also added more comments.
49163 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49165 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
49166 (struct grub_biosdisk_dap): Likewise.
49168 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
49169 linkage settings for all functions.
49171 2006-07-12 Marco Gerards <marco@gnu.org>
49173 * configure.ac (--enable-mm-debug): Fix typo.
49175 * genkernsyms.sh.in: Use proper quoting for `CC'.
49177 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
49179 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
49180 (normal_mod_ASFLAGS): Remove "-m32".
49182 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
49184 * util/misc.c: Include config.h.
49185 [!HAVE_MEMALIGN]: Do not include malloc.h.
49186 (grub_memalign): Use posix_memalign, if present. Then, use
49187 memalign, if present. Otherwise, emit an error.
49189 * util/grub-emu.c: Do not include malloc.h.
49191 * include/grub/util/misc.h: Include unistd.h. This is required for
49192 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
49193 D. Eades III <hde@foobar-qux.org>.
49195 * configure.ac (AC_GNU_SOURCE): Added.
49196 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
49199 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
49201 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
49202 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
49204 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
49206 * include/grub/types.h (grub_host_addr_t): Rename to
49207 grub_target_addr_t.
49208 (grub_host_off_t): Rename to grub_target_off_t.
49209 (grub_host_size_t): Rename to grub_target_size_t.
49210 (grub_host_ssize_t): Rename to grub_target_ssize_t.
49211 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
49213 * include/grub/kernel.h (struct grub_module_header): Change type
49214 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
49215 (grub_module_info): Likewise.
49217 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49219 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
49220 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
49221 Velazquez <jesus.velazquez@gmail.com>.
49223 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49225 Count partitions from 1 instead of 0 in the string representation
49226 of partitions. Still use 0-based internally.
49228 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
49229 (sun_partition_map_iterate): Use grub_partition_t instead of
49230 struct grub_partition *. Cast DESC->START_CYLINDER to
49231 grub_uint64_t after converting the endian.
49232 (sun_partition_map_probe): Subtract 1 for PARTNUM.
49233 (sun_partition_map_get_name): Add 1 to P->INDEX.
49235 * partmap/pc.c (grub_partition_parse): Subtract 1 for
49237 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
49239 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
49240 zero instead of one.
49241 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
49242 (gpt_partition_map_get_name): Add 1 into P->INDEX.
49244 * partmap/apple.c (apple_partition_map_iterate): Change the type
49245 of POS to unsigned.
49246 (apple_partition_map_probe): Subtract 1 for PARTNUM.
49247 (apple_partition_map_get_name): Add 1 into P->INDEX.
49249 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
49250 of POS to unsigned.
49251 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
49252 calculate the offset of a partition.
49253 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
49254 (amiga_partition_map_get_name): Add 1 into P->INDEX.
49256 * partmap/acorn.c (acorn_partition_map_find): Change the type of
49257 SECTOR to grub_disk_addr_t.
49258 (acorn_partition_map_iterate): Likewise.
49259 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
49260 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
49262 (acorn_partition_map_get_name): Add 1 into P->INDEX.
49264 * kern/i386/pc/init.c (make_install_device): Add 1 into
49265 GRUB_INSTALL_DOS_PART.
49267 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
49270 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49272 Clean up the code to support 64-bit addressing in disks and
49273 files. This change is not enough for filesystems yet.
49275 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
49276 type of "start" to grub_uint64_t.
49277 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
49278 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
49279 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
49282 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
49283 to grub_disk_addr_t.
49285 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
49288 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49290 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
49293 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
49295 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
49297 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
49299 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
49300 to grub_off_t, to detect an error from grub_file_seek.
49301 (grub_multiboot_load_elf32): Likewise.
49303 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
49304 maximum unsigned long value when an overflow is detected.
49305 (grub_strtoull): New function.
49306 (grub_divmod64): Likewise.
49307 (grub_lltoa): use grub_divmod64.
49309 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
49311 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
49312 the pointer to next character. Use grub_strtoull instead of
49314 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
49315 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
49318 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
49319 return value is signed.
49320 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
49321 test if OFFSET is less than zero, as OFFSET is unsigned now.
49323 * kern/disk.c (struct grub_disk_cache): Change the type of
49324 "sector" to grub_disk_addr_t.
49325 (grub_disk_cache_get_index): Change the type of SECTOR to
49326 grub_disk_addr_t. Calculate the hash with SECTOR casted to
49327 unsigned after shifting.
49328 (grub_disk_cache_invalidate): Change the type of SECTOR to
49330 (grub_disk_cache_unlock): Likewise.
49331 (grub_disk_cache_store): Likewise.
49332 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
49333 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
49334 grub_disk_addr_t and grub_uint64_t, respectively.
49335 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
49336 body, as the value of OFFSET is tweaked by
49337 grub_disk_check_range. Change the types of START_SECTOR, LEN and
49338 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
49340 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
49341 body, as the value of OFFSET is tweaked by
49342 grub_disk_check_range. Change the types of LEN and N to
49345 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
49346 and "saved_offset" to grub_off_t.
49347 (test_header): Cast BUF to char *.
49348 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
49350 (grub_gzio_read): Change the types of OFFSET and SIZE to
49351 grub_off_t and grub_size_t, respectively.
49353 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
49355 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
49356 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
49357 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
49358 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
49359 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
49361 * include/grub/types.h (grub_off_t): Unconditionally set to
49363 (grub_disk_addr_t): Changed to grub_uint64_t.
49365 * include/grub/partition.h (struct grub_partition): Change the
49366 types of "start", "len" and "offset" to grub_disk_addr_t,
49367 grub_uint64_t and grub_disk_addr_t, respectively.
49368 (grub_partition_get_start): Return grub_disk_addr_t.
49369 (grub_partition_get_len): Return grub_uint64_t.
49371 * include/grub/misc.h (grub_strtoull): New prototype.
49372 (grub_divmod64): Likewise.
49374 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
49375 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
49376 grub_off_t, respectively.
49377 All callers and references changed.
49379 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
49380 grub_size_t in "read".
49381 All callers and references changed.
49383 * include/grub/file.h (struct grub_file): Change the types of
49384 "offset" and "size" to grub_off_t and grub_off_t,
49385 respectively. Change the type of SECTOR to grub_disk_addr_t in
49387 (grub_file_read): Change the type of LEN to grub_size_t.
49388 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
49390 (grub_file_size): Return grub_off_t.
49391 (grub_file_tell): Likewise.
49392 All callers and references changed.
49394 * include/grub/disk.h (struct grub_disk_dev): Change the types of
49395 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
49397 (struct grub_disk): Change the type of "total_sectors" to
49398 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
49400 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
49401 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
49402 (grub_disk_write): Likewise.
49403 All callers and references changed.
49405 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
49406 char * for grub_strncmp to silence gcc.
49407 (grub_iso9660_mount): Likewise.
49408 (grub_iso9660_mount): Likewise.
49409 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
49411 (grub_iso9660_iterate_dir): Likewise.
49412 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
49414 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
49415 LEN to grub_disk_addr_t and grub_size_t, respectively.
49417 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
49419 * fs/jfs.c (grub_jfs_read_file): Likewise.
49421 * fs/minix.c (grub_jfs_read_file): Likewise.
49423 * fs/sfs.c (grub_jfs_read_file): Likewise.
49425 * fs/ufs.c (grub_jfs_read_file): Likewise.
49427 * fs/xfs.c (grub_jfs_read_file): Likewise.
49429 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
49430 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
49433 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
49434 BLKNR to -1 instead of returning GRUB_ERRNO.
49435 (grub_ext2_read_file): Change the types of SECTOR and
49436 LEN to grub_disk_addr_t and grub_size_t, respectively.
49438 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
49439 LEN to grub_disk_addr_t and grub_size_t, respectively.
49441 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
49444 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
49445 string. Do not cast SECTOR explicitly.
49447 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
49448 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
49449 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
49450 grub_disk_addr_t and grub_size_t, respectively. If the sector is
49451 over 2TB and LBA mode is not supported, raise an error.
49452 (get_safe_sectors): New function.
49453 (grub_biosdisk_read): Use get_safe_sectors.
49454 (grub_biosdisk_write): Likewise.
49456 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
49457 (grub_efidisk_write): Likewise.
49459 * disk/loopback.c (delete_loopback): Cosmetic changes.
49460 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
49462 (grub_loopback_open): Likewise.
49463 (grub_loopback_read): Likewise. Also, change the type of POS to
49464 grub_off_t, and fix the usage of grub_memset.
49466 * commands/i386/pc/play.c: Include grub/machine/time.h.
49468 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
49471 * commands/configfile.c: Include grub/env.h.
49473 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
49474 GRUB_ERRNO directly instead. Change the type of POS to
49475 grub_off_t. Follow the coding standard.
49477 * commands/blocklist.c: Include grub/partition.h.
49478 (grub_cmd_blocklist): Return an error if the underlying device is
49479 not a disk. Take the starting sector of a partition into account,
49480 if a partition is used.
49482 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
49484 (lba_mode): Support 64-bit addresses.
49485 (chs_mode): Likewise.
49486 (copy_buffer): Adapted to the new offsets of a length field and a
49488 (blocklist_default_start): Allocate 64-bit space.
49490 * boot/i386/pc/boot.S (force_lba): Removed.
49491 (boot_drive): Moved to under KERNEL_SECTOR.
49492 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
49494 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
49496 (lba_mode): Refactored to support a 64-bit address. More size
49498 (setup_sectors): Likewise.
49500 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49502 * DISTLIST: Added include/grub/i386/linux.h. Removed
49503 include/grub/i386/pc/linux.h
49505 * configure.ac (AC_INIT): Bumped to 1.94.
49507 * config.guess: Updated from gnulib.
49508 * config.sub: Likewise.
49509 * install-sh: Likewise.
49510 * mkinstalldirs: Likewise.
49512 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49514 * conf/common.rmk (grub_modules_init.lst): Depended on
49515 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
49518 * genmk.rb (PModule::rule): Reverted the previous change.
49520 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49522 * conf/common.rmk (grub_modules_init.lst): Depends on
49523 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
49524 that the target does not exist before producing.
49525 (grub_modules_init.h): Remove the target before generating.
49526 (grub_emu_init.c): Likewise.
49528 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
49530 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
49532 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
49533 for the target-specific tests. Make sure that we also have the
49534 up-to-date target variables for those tests.
49536 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49538 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
49539 (PModule::rule): Likewise.
49541 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49543 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
49544 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
49545 target-specific flags should be prefixed.
49546 (PModule::rule): Likewise.
49548 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
49550 * configure.ac (CMP): Check if cmp is available explicitly.
49552 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
49554 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
49555 (target_cpu): New variable.
49556 (pkglibdir): Use target_cpu instead of host_cpu.
49558 * util/i386/pc/grub-install.in (host_cpu): Removed.
49559 (target_cpu): New variable.
49560 (pkglibdir): Use target_cpu instead of host_cpu.
49562 * util/genmoddep.c: Removed.
49564 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
49565 instead of GRUB_HOST_SIZEOF_VOID_P.
49566 * kern/dl.c: Likewise.
49568 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
49570 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49571 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49572 (GRUB_TARGET_SIZEOF_LONG): ... this.
49573 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49574 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49575 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49577 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49578 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49579 (GRUB_TARGET_SIZEOF_LONG): ... this.
49580 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49581 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49582 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49584 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49585 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49586 (GRUB_TARGET_SIZEOF_LONG): ... this.
49587 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49588 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49590 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
49591 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
49592 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
49593 instead of GRUB_HOST_SIZEOF_LONG.
49594 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
49595 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
49596 GRUB_CPU_WORDS_BIGENDIAN.
49597 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
49598 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
49601 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
49602 (genmoddep_SOURCES): Likewise.
49603 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
49604 (genmoddep_SOURCES): Likewise.
49605 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
49606 (genmoddep_SOURCES): Likewise.
49607 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
49609 (genmoddep_SOURCES): Likewise.
49611 * genmoddep.awk: New file.
49613 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
49614 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
49615 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
49616 (PModule::rule): Likewise.
49617 (Program::rule): Likewise.
49618 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
49619 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
49622 * configure.ac: Rewritten intensively to use host and target
49623 instead of build and host, respectively.
49625 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
49626 (host_cpu): Removed.
49627 (target_cpu): New variable.
49628 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
49629 (BUILD_CC): Removed.
49630 (BUILD_CFLAGS): Likewise.
49631 (BUILD_CPPFLAGS): Likewise.
49632 (TARGET_CC): New variable.
49633 (TARGET_CFLAGS): Likewise.
49634 (TARGET_CPPFLAGS): Likewise.
49635 (TARGET_LDFLAGS): Likewise.
49637 (include): Use target_cpu instead of host_cpu.
49638 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
49640 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
49642 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
49644 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
49645 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
49646 field 'false' to 'exec_on_false'.
49647 (grub_script_create_cmdif): Renamed argument names to reflect above
49650 * normal/execute.c (grub_script_execute_cmdif): Likewise.
49652 * normal/script.c (grub_script_create_cmdif): Likewise.
49654 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
49656 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
49658 (grub_hfsplus_btree_recptr): Likewise.
49659 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
49660 FILEBLOCK both to pass a block number and store next block
49662 (grub_hfsplus_read_block): Rewritten heavily to support an extent
49663 overflow file correctly. Specify errors appropriately, because
49664 fshelp expects that GRUB_ERRNO is set when fails. Reuse
49665 grub_hfsplus_btree_recptr to get the pointer to a found key.
49666 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
49669 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
49671 (_linux_mod_SOURCES): New variable.
49672 (_linux_mod_CFLAGS): Likewise.
49673 (_linux_mod_LDFLAGS): Likewise.
49674 (linux_mod_SOURCES): Likewise.
49675 (linux_mod_CFLAGS): Likewise.
49676 (linux_mod_LDFLAGS): Likewise.
49678 * DISTLIST: Added loader/i386/efi/linux.c,
49679 loader/i386/efi/linux_normal.c and
49680 include/grub/i386/efi/loader.h.
49682 * loader/i386/efi/linux.c: New file.
49683 * loader/i386/efi/linux_normal.c: Likewise.
49684 * include/grub/i386/efi/loader.h: Likewise.
49686 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
49688 * commands/blocklist.c: New file.
49690 * DISTLIST: Added commands/blocklist.c.
49692 * term/efi/console.c (grub_console_highlight_color): Use a lighter
49693 color for the background, and a darker color for the foreground.
49694 (grub_console_checkkey): Return READ_KEY.
49695 (grub_console_cls): Set the background to
49696 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
49698 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
49700 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
49701 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
49703 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
49706 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
49707 BG. The spec is wrong again.
49709 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
49711 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
49713 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49714 commands/blocklist.c.
49715 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49717 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
49718 (blocklist_mod_SOURCES): New variable.
49719 (blocklist_mod_CFLAGS): Likewise.
49720 (blocklist_mod_LDFLAGS): Likewise.
49722 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
49724 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
49726 (lba_mode): Use %eax more intensively to reduce the code size.
49728 2006-05-20 Marco Gerards <marco@gnu.org>
49730 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
49732 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
49734 (script): Accept leading newlines.
49735 (newlines): New rule to describe 0 or more newlines.
49736 (commands): Accept `command' with trailing newline. Fixed the
49737 order in which arguments were passed to `grub_script_add_cmd'.
49738 Accept commands separated by newlines.
49739 (function): Changed to accept newlines.
49740 (menuentry) Rewritten.
49742 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
49743 front of the list, instead of to the end.
49745 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
49747 * util/i386/pc/grub-install.in (bindir): New variable.
49748 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
49749 Shaver <lbgwjl@gmail.com>.
49751 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
49753 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
49754 grub/machine/linux.h
49755 * loader/i386/pc/linux.c: Likewise.
49757 * include/grub/i386/pc/linux.h: Moved to ...
49758 * include/grub/i386/linux.h: ... here.
49760 * include/grub/i386/linux.h (struct linux_kernel_params): New
49763 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
49765 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
49767 (grub_video_vbe_blit_glyph): Likewise.
49768 (grub_video_vbe_blit_bitmap): Likewise.
49769 (grub_video_vbe_blit_render_target): Likewise.
49771 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
49773 * configure.ac (--with-platform): Properly quote the square
49776 2006-05-08 Marco Gerards <marco@gnu.org>
49778 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
49780 (kernel_elf_HEADERS): ...to this. Updated all users.
49781 (grubof_symlist.c): Renamed from this...
49782 (kernel_elf_symlist.c): ...to this. Updated all users.
49783 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49784 (grubof_SOURCES): Renamed from this...
49785 (kernel_elf_SOURCES): ...to this.
49786 (grubof_HEADERS): Renamed from this...
49787 (kernel_elf_HEADERS): ...to this.
49788 (grubof_CFLAGS): Renamed from this...
49789 (kernel_elf_CFLAGS): ...to this.
49790 (grubof_ASFLAGS): Renamed from this...
49791 (kernel_elf_ASFLAGS): ...to this.
49792 (grubof_LDFLAGS): Renamed from this...
49793 (kernel_elf_LDFLAGS): ...to this.
49795 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49797 (kernel_elf_HEADERS): ...to this. Updated all users.
49798 (grubof_symlist.c): Renamed from this...
49799 (kernel_elf_symlist.c): ...to this. Updated all users.
49800 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49801 (grubof_SOURCES): Renamed from this...
49802 (kernel_elf_SOURCES): ...to this.
49803 (grubof_HEADERS): Renamed from this...
49804 (kernel_elf_HEADERS): ...to this.
49805 (grubof_CFLAGS): Renamed from this...
49806 (kernel_elf_CFLAGS): ...to this.
49807 (grubof_ASFLAGS): Renamed from this...
49808 (kernel_elf_ASFLAGS): ...to this.
49809 (grubof_LDFLAGS): Renamed from this...
49810 (kernel_elf_LDFLAGS): ...to this.
49812 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49813 `kernel.elf' instead of `grubof'.
49815 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49817 Add --with-platform to configure. Use pkglibdir instead of
49818 pkgdatadir. This is reported by Roger Leigh.
49820 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49821 (host_vendor): Likewise.
49822 (host_os): Likewise.
49823 (pkgdatadir): Likewise.
49824 (platform): New variable.
49825 (pkglibdir): Likewise.
49826 Use PKGLIBDIR instead of PKGDATADIR.
49828 * util/i386/pc/grub-install.in (datadir): Removed.
49829 (host_vendor): Likewise.
49830 (host_os): Likewise.
49831 (pkgdatadir): Likewise.
49832 (platform): New variable.
49833 (pkglibdir): Likewise.
49834 Use PKGLIBDIR instead of PKGDATADIR.
49836 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49837 instead of GRUB_DATADIR.
49839 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49841 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49844 * configure.ac (--with-platform): New option.
49845 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49847 * Makefile.in: Include a makefile based on PLATFORM instead of
49849 (pkgdatadir): Not appended by the machine type.
49850 (pkglibdir): Appended by the machine type.
49851 (host_vendor): Removed.
49852 (platform): New variable.
49853 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49854 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49855 (uninstall): Likewise.
49857 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49859 Use the environment context in the menu. Remove the commands
49860 "default" and "timeout", and use variables instead.
49862 * normal/menu.c: Include grub/env.h.
49863 (print_entry): Cast TITLE to silence gcc.
49864 (get_timeout): New function.
49865 (set_timeout): Likewise.
49866 (get_entry_number): Likewise.
49867 (run_menu): Use a default entry, a fallback entry and a timeout
49868 in the environment variables "default", "fallback" and
49869 "timeout". Also, tweak the default entry if it is not within the
49870 current menu entries.
49871 (grub_menu_run): Use a fallback entry in the environment variable
49874 * normal/main.c (read_config_file): Do not initialize
49875 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
49877 (grub_normal_execute): Use a data slot to store the menu.
49879 * include/grub/normal.h (struct grub_menu): Removed default_entry,
49880 fallback_entry and timeout.
49881 (struct grub_menu_list): Removed.
49882 (grub_menu_list_t): Likewise.
49883 (struct grub_context): Likewise.
49884 (grub_context_t): Likewise.
49885 (grub_context_get): Likewise.
49886 (grub_context_get_current_menu): Likewise.
49887 (grub_context_push_menu): Likewise.
49888 (grub_context_pop_menu): Likewise.
49889 (grub_default_init): Likewise.
49890 (grub_default_fini): Likewise.
49891 (grub_timeout_init): Likewise.
49892 (grub_timeout_fini): Likewise.
49894 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
49896 (normal_mod_SOURCES): Removed normal/context.c.
49898 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
49899 commands/default.c, commands/timeout.c and normal/context.c.
49900 (normal_mod_SOURCES): Removed normal/context.c.
49902 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
49903 commands/timeout.c and normal/context.c.
49904 (normal_mod_SOURCES): Removed normal/context.c.
49906 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
49907 commands/default.c, commands/timeout.c and normal/context.c.
49908 (normal_mod_SOURCES): Removed normal/context.c.
49910 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
49912 (default_mod_SOURCES): Removed.
49913 (default_mod_CFLAGS): Likewise.
49914 (default_mod_LDFLAGS): Likewise.
49915 (timeout_mod_SOURCES): Removed.
49916 (timeout_mod_CFLAGS): Likewise.
49917 (timeout_mod_LDFLAGS): Likewise.
49919 * DISTLIST: Removed commands/default.c, commands/timeout.c and
49922 * commands/default.c: Removed.
49923 * commands/timeout.c: Likewise.
49924 * normal/context.c: Likewise.
49926 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
49928 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
49930 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
49932 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
49933 "next" to "prev" for readability.
49934 (struct grub_env_sorted_var): New struct.
49935 (grub_env_context): Renamed to ...
49936 (initial_context): ... this.
49937 (grub_env_var_context): Renamed to ...
49938 (current_context): ... this.
49939 (grub_env_find): Look only at CURRENT_CONTEXT.
49940 (grub_env_context_open): Rewritten to copy exported variables from
49942 (grub_env_context_close): Rewritten according to the new
49943 scheme. Also, add an assertion to prevent the initial context from
49945 (grub_env_insert): Removed the code for the sorted list.
49946 (grub_env_remove): Likewise.
49947 (grub_env_export): Simply mark the variable with
49948 GRUB_ENV_VAR_GLOBAL.
49949 (grub_env_set): A cosmetic change for naming consistency.
49950 (grub_env_get): Likewise.
49951 (grub_env_unset): Likewise.
49952 (grub_env_iterate): Rewritten to sort variables within this
49954 (grub_register_variable_hook): Fixed for naming consistency. Call
49955 grub_env_find again, only if NAME is not found at the first time.
49956 (mangle_data_slot_name): New function.
49957 (grub_env_set_data_slot): Likewise.
49958 (grub_env_get_data_slot): Likewise.
49959 (grub_env_unset_data_slot): Likewise.
49961 * include/grub/env.h (grub_env_var_type): New enum.
49962 (GRUB_ENV_VAR_LOCAL): New constant.
49963 (GRUB_ENV_VAR_GLOBAL): Likewise.
49964 (GRUB_ENV_VAR_DATA): Likewise.
49965 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
49967 (grub_env_set): Replace VAR with NAME for consistency.
49968 (grub_register_variable_hook): Likewise.
49969 (grub_env_export): Specify the name of the argument.
49970 (grub_env_set_data_slot): New prototype.
49971 (grub_env_get_data_slot): Likewise.
49972 (grub_env_unset_data_slot): Likewise.
49974 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49976 Extend the loader so that GRUB can accept a loader which comes
49977 back to GRUB when a loaded image exits. Also, this change adds
49978 support for a chainloader on EFI.
49980 * term/efi/console.c: Include grub/misc.h.
49981 (grub_console_checkkey): Display a scan code on the top for
49982 debugging. This will be removed once the EFI port gets stable.
49983 Correct the scan code mapping.
49985 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
49986 allocate memory from larger regions, in order to reduce the number
49987 of allocated regions. Otherwise, the MacOSX loader panics.
49988 (filter_memory_map): Avoid less than 1MB for compatibility with
49990 (add_memory_regions): Allocate from the tail of a region, if
49991 possible, to avoid allocating a region near to 1MB, for the MacOSX
49994 * kern/efi/init.c (grub_efi_set_prefix): Specify
49995 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
49997 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
49998 argument IMAGE_HANDLE and specify it to get a loaded image.
49999 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
50000 grub_efi_get_loaded_image.
50001 (grub_efi_get_filename): Divide the length by the size of
50003 (grub_efi_get_device_path): New function.
50004 (grub_efi_print_device_path): Print End Device Path nodes. Divide
50005 the length by the size of grub_efi_char16_t for a file path device
50008 * kern/loader.c (grub_loader_noreturn): New variable.
50009 (grub_loader_set): Accept a new argument NORETURN. Set
50010 GRUB_LOADER_NORETURN to NORETURN.
50011 All callers changed.
50012 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
50015 * include/grub/efi/efi.h (grub_efi_get_device_path): New
50017 (grub_efi_get_loaded_image): Take an argument to specify an image
50020 * include/grub/loader.h (grub_loader_set): Added one more argument
50023 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
50024 instead of grub_efi_open_protocol.
50025 (grub_efidisk_get_device_name): Likewise.
50026 (grub_efidisk_close): Print a newline.
50027 (grub_efidisk_get_device_handle): Fixed to use
50028 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
50029 GRUB_EFI_DEVICE_PATH_TYPE.
50031 * disk/efi/efidisk.c (device_path_guid): Moved to ...
50032 * kern/efi/efi.c (device_path_guid): ... here.
50034 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
50036 (kernel_mod_HEADERS): Added efi/disk.h.
50037 (_chain_mod_SOURCES): New variable.
50038 (_chain_mod_CFLAGS): Likewise.
50039 (_chain_mod_LDFLAGS): Likewise.
50040 (chain_mod_SOURCES): Likewise.
50041 (chain_mod_CFLAGS): Likewise.
50042 (chain_mod_LDFLAGS): Likewise.
50044 * DISTLIST: Added include/grub/efi/chainloader.h,
50045 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
50047 * include/grub/efi/chainloader.h: New file.
50048 * loader/efi/chainloader.c: Likewise.
50049 * loader/efi/chainloader_normal.c: Likewise.
50051 2006-04-30 Marco Gerards <marco@gnu.org>
50053 * commands/configfile.c (grub_cmd_source): New function.
50054 (GRUB_MOD_INIT): Register the commands `source' and `.'.
50055 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
50057 2006-04-30 Marco Gerards <marco@gnu.org>
50059 * normal/execute.c (grub_script_execute_cmd): Change the return
50060 type to `grub_err_t'. Correctly return the error.
50061 (grub_script_execute_cmdline): In case a command line is not a
50062 command or a function, try to interpret it as an assignment.
50064 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
50066 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
50067 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
50068 skip a node whose name is obviously invalid as UTF-16,
50069 i.e. contains a NUL character. Stop the iteration when the last
50070 directory entry is found. Instead of using the return value of
50071 grub_hfsplus_btree_iterate_node, store the value in RET and use
50072 it, because the iterator can be stopped by the last directory
50075 2006-04-30 Marco Gerards <marco@gnu.org>
50077 * include/grub/env.h (grub_env_export): New prototype. Reported
50078 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
50080 2006-04-30 Marco Gerards <marco@gnu.org>
50082 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
50083 size of the extents in a catalog file record.
50085 2006-04-29 Marco Gerards <marco@gnu.org>
50087 * commands/configfile.c (grub_cmd_configfile): Execute the
50088 configfile within its own context.
50090 * include/grub/env.h (grub_env_context_open): New prototype.
50091 (grub_env_context_close): Likewise.
50093 * kern/env.c (grub_env): Removed.
50094 (grub_env_sorted): Likewise.
50095 (grub_env_context): New variable.
50096 (grub_env_var_context): Likewise.
50097 (grub_env_find): Search both the active context and the global
50099 (grub_env_context_open): New function.
50100 (grub_env_context_close): Likewise.
50101 (grub_env_insert): Likewise.
50102 (grub_env_remove): Likewise.
50103 (grub_env_export): Likewise.
50104 (grub_env_set): Changed to use helper functions to avoid code
50106 (grub_env_iterate): Rewritten so both the current context and the
50107 global context are being used.
50109 * normal/command.c (export_command): New function.
50110 (grub_command_init): Register the `export' function.
50112 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
50114 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
50115 explicitly to suppress gcc's warnings.
50116 * fs/fat.c (grub_fat_find_dir): Likewise.
50117 (grub_fat_label): Likewise.
50118 * fs/xfs.c (grub_xfs_read_inode): Likewise.
50119 (grub_xfs_mount): Likewise.
50120 (grub_xfs_label): Likewise.
50121 * fs/affs.c (grub_affs_mount): Likewise.
50122 (grub_affs_label): Likewise.
50123 (grub_affs_iterate_dir): Likewise.
50124 * fs/sfs.c (grub_sfs_mount): Likewise.
50125 (grub_sfs_iterate_dir): Likewise.
50126 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
50127 * fs/hfs.c (grub_hfs_mount): Likewise.
50128 (grub_hfs_cmp_catkeys): Likewise.
50129 (grub_hfs_find_dir): Likewise.
50130 (grub_hfs_dir): Likewise.
50131 (grub_hfs_label): Likewise.
50132 * fs/jfs.c (grub_jfs_mount): Likewise.
50133 (grub_jfs_opendir): Likewise.
50134 (grub_jfs_getent): Likewise.
50135 (grub_jfs_lookup_symlink): Likewise.
50136 (grub_jfs_label): Likewise.
50137 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
50138 (grub_hfsplus_iterate_dir): Likewise.
50139 (grub_hfsplus_btree_iterate_node): Made static.
50141 * util/grub-emu.c (prefix): New variable.
50142 (grub_machine_set_prefix): New function.
50143 (main): Do not set the environment variable "prefix" here. Only
50144 set PREFIX, which is used later by grub_machine_set_prefix.
50146 * include/grub/video.h: Do not include grub/symbol.h.
50147 (grub_video_register): Not exported. This symbol is not defined in
50149 (grub_video_unregister): Likewise.
50150 (grub_video_iterate): Likewise.
50151 (grub_video_setup): Likewise.
50152 (grub_video_restore): Likewise.
50153 (grub_video_get_info): Likewise.
50154 (grub_video_get_blit_format): Likewise.
50155 (grub_video_set_palette): Likewise.
50156 (grub_video_get_palette): Likewise.
50157 (grub_video_set_viewport): Likewise.
50158 (grub_video_get_viewport): Likewise.
50159 (grub_video_map_color): Likewise.
50160 (grub_video_map_rgb): Likewise.
50161 (grub_video_map_rgba): Likewise.
50162 (grub_video_fill_rect): Likewise.
50163 (grub_video_blit_glyph): Likewise.
50164 (grub_video_blit_bitmap): Likewise.
50165 (grub_video_blit_render_target): Likewise.
50166 (grub_video_scroll): Likewise.
50167 (grub_video_swap_buffers): Likewise.
50168 (grub_video_create_render_target): Likewise.
50169 (grub_video_delete_render_target): Likewise.
50170 (grub_video_set_active_render_target): Likewise.
50172 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
50174 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
50176 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
50177 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50178 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50179 instead of $(srcdir)/genkernsyms.sh.
50181 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
50182 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50183 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50184 instead of $(srcdir)/genkernsyms.sh.
50186 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
50187 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50188 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50189 instead of $(srcdir)/genkernsyms.sh.
50191 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
50192 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50193 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50194 instead of $(srcdir)/genkernsyms.sh.
50196 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
50199 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
50201 (gensymlist.sh): New target.
50202 (genkernsyms.sh): Likewise.
50204 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
50205 genkernsyms.sh.in and gensymlist.sh.in.
50207 * genkernsyms.sh: Removed.
50208 * gensymlist.sh: Likewise.
50210 * genkernsyms.sh.in: New file.
50211 * gensymlist.sh.in: Likewise.
50213 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50215 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
50216 clobber "prefix", since we may have already set it manually.
50218 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50220 * kern/misc.c (abort): New alias for grub_abort.
50222 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
50224 A new machine-specific function "grub_machine_set_prefix" is
50225 defined. This is called after loading modules, so that a prefix
50226 initialization can use modules. Also, this change adds an
50227 intensive debugging feature for the memory manager via the
50228 configure option "--enable-mm-debug".
50230 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
50233 * kern/sparc64/ieee1275/init.c (abort): Removed.
50234 (grub_stop): Likewise.
50235 (grub_exit): New function.
50236 (grub_set_prefix): Renamed to ...
50237 (grub_machine_set_prefix): ... this.
50238 (grub_machine_init): Do not call grub_set_prefix.
50240 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
50241 (grub_machine_set_prefix): ... this.
50242 (grub_machine_init): Do not call grub_set_prefix.
50244 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
50245 (grub_machine_init): Do not set the prefix here.
50247 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
50249 * kern/efi/init.c: Include grub/mm.h.
50250 (grub_efi_set_prefix): New function.
50252 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
50253 (grub_efi_get_filename): New function.
50254 (grub_print_device_path): Renamed to ...
50255 (grub_efi_print_device_path): ... this.
50257 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
50258 [MM_DEBUG] (grub_realloc): Likewise.
50259 [MM_DEBUG] (grub_free): Likewise.
50260 [MM_DEBUG] (grub_memalign): Likewise.
50261 [MM_DEBUG] (grub_mm_debug): New variable.
50262 [MM_DEBUG] (grub_debug_malloc): New function.
50263 [MM_DEBUG] (grub_debug_free): New function.
50264 [MM_DEBUG] (grub_debug_realloc): New function.
50265 [MM_DEBUG] (grub_debug_memalign): New function.
50267 * kern/misc.c (grub_abort): Print a newline to distinguish
50270 * kern/main.c (grub_main): Call grub_machine_set_prefix and
50271 grub_set_root_dev after loading modules. This is necessary when
50272 setting a prefix depends on modules.
50274 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
50275 (grub_efi_print_device_path): ... this.
50276 (grub_efi_get_filename): New prototype.
50277 (grub_efi_set_prefix): Likewise.
50279 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
50281 (grub_efidisk_get_device_handle): New prototype.
50282 (grub_efidisk_get_device_name): Likewise.
50284 * include/grub/mm.h: Include config.h.
50285 (MM_DEBUG): Removed.
50286 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
50287 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
50288 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
50289 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
50290 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
50291 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
50292 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
50293 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
50294 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
50296 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
50298 * disk/efi/efidisk.c: Include grub/partition.h.
50299 (iterate_child_devices): New function.
50300 (add_device): First, compare only last device path nodes, so that
50301 devices are sorted by the types.
50302 (grub_efidisk_get_device_handle): New function.
50303 (grub_efidisk_get_device_name): Likewise.
50305 * configure.ac (--enable-mm-debug): New option to enable the
50306 memory manager debugging feature. This makes the binary much
50307 bigger, so is disabled by default.
50309 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
50311 Use grub_abort instead of grub_stop, and grub_exit must be
50312 define in each architecture now. Also, this change adds support
50315 * util/i386/pc/grub-probefs.c: Include grub/term.h.
50316 (grub_getkey): New function.
50317 (grub_term_get_current): Likewise.
50319 * util/i386/pc/grub-setup.c: Include grub/term.h.
50320 (grub_getkey): New function.
50321 (grub_term_get_current): Likewise.
50323 * util/misc.c (grub_stop): Renamed to ...
50324 (grub_exit): ... this.
50326 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
50327 (grub_exit): ... this.
50328 (grub_machine_init): Use grub_abort instead of abort.
50329 (grub_stop): Removed.
50331 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
50334 * kern/i386/pc/startup.S (grub_exit): New function.
50335 (cold_reboot): New label.
50337 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
50338 (grub_efi_init): Call grub_efidisk_init.
50339 (grub_efi_fini): Call grub_efidisk_fini.
50341 * kern/efi/efi.c: Include grub/mm.h.
50342 (grub_efi_console_control_guid): Renamed to ...
50343 (console_control_guid): ... this.
50344 (grub_efi_loaded_image_guid): Renamed to ...
50345 (loaded_image_guid): ... this.
50346 (grub_efi_locate_handle): New function.
50347 (grub_efi_open_protocol): Likewise.
50348 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
50349 GRUB_EFI_CONSOLE_CONTROL_GUID.
50350 (grub_efi_exit): Removed.
50351 (grub_stop): Likewise.
50352 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
50353 (grub_exit): New function.
50354 (grub_print_device_path): Likewise.
50356 * kern/rescue.c (grub_rescue_cmd_exit): New function.
50357 (grub_enter_rescue_mode): Register "exit".
50359 * kern/misc.c (grub_real_dprintf): A cosmetic change.
50360 (grub_abort): New function.
50362 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
50364 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
50366 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
50368 * include/grub/efi/efi.h (grub_efi_exit): Removed.
50369 (grub_print_device_path): New prototype.
50370 (grub_efi_locate_handle): Likewise.
50371 (grub_efi_open_protocol): Likewise.
50373 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
50374 * disk/efi/efidisk.c: Likewise.
50376 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
50378 * include/grub/efi/console_control.h
50379 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
50381 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
50382 last 8 bytes as an array.
50383 (GRUB_EFI_DISK_IO_GUID): New macro.
50384 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
50385 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
50386 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
50388 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
50389 (struct grub_efi_device_path): Rename the member "sub_type" to
50391 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
50392 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
50393 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
50394 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
50395 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
50396 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
50397 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
50398 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
50399 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
50400 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
50401 (struct grub_efi_pci_device_path): New structure.
50402 (grub_efi_pci_device_path_t): New type.
50403 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
50404 (struct grub_efi_pccard_device_path): New structure.
50405 (grub_efi_pccard_device_path_t): New type.
50406 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
50407 (struct grub_efi_memory_mapped_device_path): New structure.
50408 (grub_efi_memory_mapped_device_path_t): New type.
50409 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
50410 (struct grub_efi_vendor_device_path): New structure.
50411 (grub_efi_vendor_device_path_t): New type.
50412 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
50413 (struct grub_efi_controller_device_path): New structure.
50414 (grub_efi_controller_device_path_t): New type.
50415 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
50416 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
50417 (struct grub_efi_acpi_device_path): New structure.
50418 (grub_efi_acpi_device_path_t): New type.
50419 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
50420 (struct grub_efi_expanded_acpi_device_path): New structure.
50421 (grub_efi_expanded_acpi_device_path_t): New type.
50422 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
50423 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
50424 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
50425 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
50426 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
50427 (struct grub_efi_atapi_device_path): New structure.
50428 (grub_efi_atapi_device_path_t): New type.
50429 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
50430 (struct grub_efi_fibre_channel_device_path): New structure.
50431 (grub_efi_fibre_channel_device_path_t): New type.
50432 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
50433 (struct grub_efi_1394_device_path): New structure.
50434 (grub_efi_1394_device_path_t): New type.
50435 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
50436 (struct grub_efi_usb_device_path): New structure.
50437 (grub_efi_usb_device_path_t): New type.
50438 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
50439 (struct grub_efi_usb_class_device_path): New structure.
50440 (grub_efi_usb_class_device_path_t): New type.
50441 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
50442 (struct grub_efi_i2o_device_path): New structure.
50443 (grub_efi_i2o_device_path_t): New type.
50444 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
50445 (struct grub_efi_mac_address_device_path): New structure.
50446 (grub_efi_mac_address_device_path_t): New type.
50447 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
50448 (struct grub_efi_ipv4_device_path): New structure.
50449 (grub_efi_ipv4_device_path_t): New type.
50450 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
50451 (struct grub_efi_ipv6_device_path): New structure.
50452 (grub_efi_ipv6_device_path_t): New type.
50453 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
50454 (struct grub_efi_infiniband_device_path): New structure.
50455 (grub_efi_infiniband_device_path_t): New type.
50456 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
50457 (struct grub_efi_uart_device_path): New structure.
50458 (grub_efi_uart_device_path_t): New type.
50459 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
50460 (struct grub_efi_vendor_messaging_device_path): New structure.
50461 (grub_efi_vendor_messaging_device_path_t): New type.
50462 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
50463 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
50464 (struct grub_efi_hard_drive_device_path): New structure.
50465 (grub_efi_hard_drive_device_path_t): New type.
50466 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
50467 (struct grub_efi_cdrom_device_path): New structure.
50468 (grub_efi_cdrom_device_path_t): New type.
50469 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
50470 (struct grub_efi_vendor_media_device_path): New structure.
50471 (grub_efi_vendor_media_device_path_t): New type.
50472 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
50473 (struct grub_efi_file_path_device_path): New structure.
50474 (grub_efi_file_path_device_path_t): New type.
50475 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
50476 (struct grub_efi_protocol_device_path): New structure.
50477 (grub_efi_protocol_device_path_t): New type.
50478 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
50479 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
50480 (struct grub_efi_bios_device_path): New structure.
50481 (grub_efi_bios_device_path_t): New type.
50482 (struct grub_efi_disk_io): New structure.
50483 (grub_efi_disk_io_t): New type.
50484 (struct grub_efi_block_io_media): New structure.
50485 (grub_efi_block_io_media_t): New type.
50486 (struct grub_efi_block_io): New structure.
50487 (grub_efi_block_io_t): New type.
50489 * include/grub/misc.h (grub_stop): Removed.
50490 (grub_exit): New prototype.
50491 (grub_abort): Likewise.
50493 * include/grub/disk.h (enum grub_disk_dev_id): Added
50494 GRUB_DISK_DEVICE_EFIDISK_ID.
50496 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
50497 disk/efi/efidisk.c.
50498 (kernel_syms.lst): Remove the target if an error occurs.
50500 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
50502 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
50503 as it was simply too buggy.
50505 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
50507 * kern/misc.c (grub_lltoa): New function.
50508 (grub_vsprintf): Added support for the long long suffix,
50511 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
50513 * Makefile.in (LDFLAGS): Add variable.
50514 (LD): Remove variable.
50515 * configure.ac: Add -m32 to LDFLAGS.
50516 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
50517 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
50518 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
50519 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
50520 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
50522 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
50523 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
50524 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
50526 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
50528 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
50529 length for unknown glyph.
50531 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50533 Add support for pre-loaded modules into the EFI port.
50535 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
50536 completely. Accept one more argument DIR. The caller has changed.
50538 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
50540 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
50541 (grub_efi_loaded_image_guid): New variable.
50542 (grub_efi_get_loaded_image): New function.
50543 (grub_arch_modules_addr): Likewise.
50545 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
50548 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
50549 (struct grub_efi_loaded_image): New structure.
50550 (grub_efi_loaded_image_t): New type.
50552 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50554 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
50555 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
50556 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
50558 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
50560 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
50562 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
50564 * DISTLIST: Added include/grub/efi/console.h,
50565 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
50566 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50568 * include/grub/efi/console.h: New file.
50569 * include/grub/efi/time.h: Likewise.
50570 * include/grub/i386/efi/kernel.h: Likewise.
50571 * kern/efi/init.c: Likewise.
50572 * kern/efi/mm.c: Likewise.
50573 * term/efi/console.c: Likewise.
50575 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
50576 (grub_stop): Removed.
50577 (grub_get_rtc): Likewise.
50578 (grub_machine_init): Simply call grub_efi_init.
50579 (grub_machine_fini): Call grub_efi_fini.
50581 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
50582 (grub_efi_output_string): Removed.
50583 (grub_efi_stall): New function.
50584 (grub_stop): Likewise.
50585 (grub_get_rtc): Likewise.
50587 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
50588 (grub_efi_stall): New prototype.
50589 (grub_efi_allocate_pages): Likewise.
50590 (grub_efi_free_pages): Likewise.
50591 (grub_efi_get_memory_map): Likewise.
50592 (grub_efi_mm_init): Likewise.
50593 (grub_efi_mm_fini): Likewise.
50594 (grub_efi_init): Likewise.
50595 (grub_efi_fini): Likewise.
50597 * include/grub/i386/efi/time.h: Do not include
50598 grub/symbol.h. Include grub/efi/time.h.
50599 (GRUB_TICKS_PER_SECOND): Removed.
50600 (grub_get_rtc): Likewise.
50602 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
50603 Added padding. The EFI spec is buggy.
50604 (GRUB_EFI_BLACK): New macro.
50605 (GRUB_EFI_BLUE): Likewise.
50606 (GRUB_EFI_GREEN): Likewise.
50607 (GRUB_EFI_CYAN): Likewise.
50608 (GRUB_EFI_RED): Likewise.
50609 (GRUB_EFI_MAGENTA): Likewise.
50610 (GRUB_EFI_BROWN): Likewise.
50611 (GRUB_EFI_LIGHTGRAY): Likewise.
50612 (GRUB_EFI_BRIGHT): Likewise.
50613 (GRUB_EFI_DARKGRAY): Likewise.
50614 (GRUB_EFI_LIGHTBLUE): Likewise.
50615 (GRUB_EFI_LIGHTGREEN): Likewise.
50616 (GRUB_EFI_LIGHTCYAN): Likewise.
50617 (GRUB_EFI_LIGHTRED): Likewise.
50618 (GRUB_EFI_LIGHTMAGENTA): Likewise.
50619 (GRUB_EFI_YELLOW): Likewise.
50620 (GRUB_EFI_WHITE): Likewise.
50621 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
50622 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
50623 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
50624 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
50625 (GRUB_EFI_BACKGROUND_RED): Likewise.
50626 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
50627 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
50628 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
50629 (GRUB_EFI_TEXT_ATTR): Likewise.
50631 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
50632 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50633 (kernel_mod_HEADERS): Added efi/time.h.
50635 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
50637 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
50638 include/grub/efi/api.h, include/grub/efi/console_control.h,
50639 include/grub/efi/efi.h, include/grub/efi/pe32.h,
50640 include/grub/i386/efi/time.h, kern/efi/efi.c,
50641 kern/i386/efi/init.c, kern/i386/efi/startup.S,
50642 and util/i386/efi/grub-mkimage.c.
50644 * Makefile.in (RMKFILES): Added i386-efi.rmk.
50646 * genmk.rb (PModule#rule): Do not export symbols if
50647 #{prefix}_EXPORTS is set to "no".
50649 * conf/i386-efi.mk: New file.
50650 * conf/i386-efi.rmk: Likewise.
50651 * include/grub/efi/api.h: Likewise.
50652 * include/grub/efi/console_control.h: Likewise.
50653 * include/grub/efi/efi.h: Likewise.
50654 * include/grub/efi/pe32.h: Likewise.
50655 * include/grub/i386/efi/time.h: Likewise.
50656 * kern/efi/efi.c: Likewise.
50657 * kern/i386/efi/init.c: Likewise.
50658 * kern/i386/efi/startup.S: Likewise.
50659 * util/i386/efi/grub-mkimage.c: Likewise.
50661 2006-04-17 Marco Gerards <marco@gnu.org>
50663 * include/grub/script.h: Include <grub/parser.h> and
50664 "grub_script.tab.h".
50665 (struct grub_lexer_param): New struct.
50666 (struct grub_parser_param): Likewise.
50667 (grub_script_create_arglist): Pass the state in an argument.
50668 (grub_script_add_arglist): Likewise.
50669 (grub_script_create_cmdline): Likewise.
50670 (grub_script_create_cmdblock): Likewise.
50671 (grub_script_create_cmdif): Likewise.
50672 (grub_script_create_cmdmenu): Likewise.
50673 (grub_script_add_cmd): Likewise.
50674 (grub_script_arg_add): Likewise.
50675 (grub_script_lexer_ref): Likewise.
50676 (grub_script_lexer_deref): Likewise.
50677 (grub_script_lexer_record_start): Likewise.
50678 (grub_script_lexer_record_stop): Likewise.
50679 (grub_script_mem_record): Likewise.
50680 (grub_script_mem_record_stop): Likewise.
50681 (grub_script_malloc): Likewise.
50682 (grub_script_yylex): Likewise.
50683 (grub_script_yyparse): Likewise.
50684 (grub_script_yyerror): Likewise.
50685 (grub_script_yylex): Likewise.
50686 (grub_script_lexer_init): Return the state.
50688 * normal/lexer.c (grub_script_lexer_state): Removed variable.
50689 (grub_script_lexer_done): Likewise.
50690 (grub_script_lexer_getline): Likewise.
50691 (grub_script_lexer_refs): Likewise.
50692 (script): Likewise.
50693 (newscript): Likewise.
50694 (record): Likewise.
50695 (recording): Likewise.
50696 (recordpos): Likewise.
50697 (recordlen): Likewise.
50698 (grub_script_lexer_init): Return the state instead of setting
50700 (grub_script_lexer_ref): Use the newly added argument for state
50701 instead of globals.
50702 (grub_script_lexer_deref): Likewise.
50703 (grub_script_lexer_record_start): Likewise.
50704 (grub_script_lexer_record_stop): Likewise.
50705 (recordchar): Likewise.
50706 (nextchar): Likewise.
50707 (grub_script_yylex2): Likewise.
50708 (grub_script_yylex): Likewise.
50709 (grub_script_yyerror): Likewise.
50711 * normal/parser.y (func_mem): Removed variable.
50712 (menu_entry): Likewise.
50714 (%lex-param): New parser option.
50715 (%parse-param): Likewise.
50716 (script): Always return the AST.
50717 (argument): Pass the state around.
50718 (arguments): Likewise.
50719 (grubcmd): Likewise.
50720 (commands): Likewise.
50721 (function): Likewise.
50722 (menuentry): Likewise.
50723 (if_statement): Likewise.
50726 * normal/script.c (grub_script_memused): Removed variable.
50727 (grub_script_parsed): Likewise.
50728 (grub_script_malloc): Added a state argument. Use that instead of
50730 (grub_script_mem_record): Likewise.
50731 (grub_script_mem_record_stop): Likewise.
50732 (grub_script_arg_add): Likewise.
50733 (grub_script_add_arglist): Likewise.
50734 (grub_script_create_cmdline): Likewise.
50735 (grub_script_create_cmdif): Likewise.
50736 (grub_script_create_cmdmenu): Likewise.
50737 (grub_script_add_cmd): Likewise.
50738 (grub_script_parse): Setup the state before calling the parser.
50740 2006-04-16 Marco Gerards <marco@gnu.org>
50742 * normal/command.c (grub_command_init): Remove the title command.
50744 * normal/lexer.c (grub_script_yylex): Renamed from this...
50745 (grub_script_yylex2): ... to this.
50746 (grub_script_yylex): New function. Temporary
50747 introduced to filter some tokens.
50748 (grub_script_yyerror): Print a newline.
50750 * normal/main.c (read_config_file): Output information about the
50751 lines that contain errors. Wait for a key after all lines have
50752 been processed. Don't return an empty menu.
50754 * normal/parser.y (func_mem): Don't initialize.
50755 (menu_entry): Likewise.
50756 (err): New variable.
50757 (script): Don't return anything when an error was encountered.
50758 (ws, returns): Removed rules.
50759 (argument): Disabled concatenated variable support.
50760 (arguments): Remove explicit separators.
50761 (grubcmd): Likewise.
50762 (function): Likewise.
50763 (menuentry): Likewise.
50765 (commands): Likewise. Add error handling.
50767 * normal/script.c (grub_script_create_cmdline): If
50768 `grub_script_parsed' is 0, assume the parser encountered an error.
50770 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
50772 * configure.ac: Add support for EFI. Fix the typo
50773 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
50775 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50777 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
50778 foreign multibyte characters should be shown correctly.
50780 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50782 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
50784 (read_config_file): Made it to close file before returning.
50786 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
50788 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
50789 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
50790 video/i386/pc/vbefill.c.
50792 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
50793 video/i386/pc/vbefill.c.
50795 * include/grub/video.h (grub_video_blit_format): New enum.
50796 (grub_video_mode_info): Added new member blit_format.
50797 (grub_video_get_blit_format): New function prototype.
50799 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50800 function prototype.
50801 (grub_video_vbe_map_rgb): Likewise.
50802 (grub_video_vbe_unmap_color): Likewise.
50804 * include/grub/i386/pc/vbeblit.h: New file.
50806 * include/grub/i386/pc/vbefill.h: New file.
50808 * video/video.c (grub_video_get_blit_format): New function.
50809 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50810 (grub_video_vbe_map_rgb): Likewise.
50811 (grub_video_vbe_unmap_color): Likewise.
50813 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50815 (grub_video_vbe_blit_render_target): Changed to use more optimized
50817 (grub_video_vbe_setup): Added detection for optimized settings.
50818 (grub_video_vbe_create_render_target): Likewise.
50820 * video/i386/pc/vbeblit.c: New file.
50822 * video/i386/pc/vbefill.c: New file.
50824 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50826 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50829 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50830 parsing to support both hex and dec ranges. If filename was missing
50831 show usage information.
50833 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50835 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50836 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50838 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50839 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50840 (video_mod_SOURCES): Added.
50841 (video_mod_CFLAGS): Likewise.
50842 (video_mod_LDFLAGS): Likewise.
50843 (gfxterm_mod_SOURCES): Likewise.
50844 (gfxterm_mod_CFLAGS): Likewise.
50845 (gfxterm_mod_LDFLAGS): Likewise.
50846 (videotest_mod_SOURCES): Likewise.
50847 (videotest_mod_CFLAGS): Likewise.
50848 (videotest_mod_LDFLAGS): Likewise.
50849 (vesafb_mod_SOURCES): Removed.
50850 (vesafb_mod_CFLAGS): Likewise.
50851 (vesafb_mod_LDFLAGS): Likewise.
50852 (vga_mod_SOURCES): Likewise.
50853 (vga_mod_CFLAGS): Likewise.
50854 (vga_mod_LDFLAGS): Likewise.
50856 * commands/videotest.c: New file.
50858 * font/manager.c (fill_with_default_glyph): Modified to use
50860 (grub_font_get_glyph): Likewise.
50861 (fontmanager): Renamed from this...
50862 (font_manager): ... to this.
50864 * include/grub/font.h (grub_font_glyph): Added new structure.
50865 (grub_font_get_glyph): Modified to use grub_font_glyph.
50867 * include/grub/misc.h (grub_abs): Added as inline function.
50869 * include/grub/video.h: New file.
50871 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
50872 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
50873 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
50874 (grub_vbe_get_controller_info): Renamed from this...
50875 (grub_vbe_bios_get_controller_info): ... to this.
50876 (grub_vbe_get_mode_info): Renamed from this...
50877 (grub_vbe_bios_get_mode_info): ... to this.
50878 (grub_vbe_set_mode): Renamed from this...
50879 (grub_vbe_bios_set_mode): ... to this.
50880 (grub_vbe_get_mode): Renamed from this...
50881 (grub_vbe_bios_get_mode): ... to this.
50882 (grub_vbe_set_memory_window): Renamed from this...
50883 (grub_vbe_bios_set_memory_window): ... to this.
50884 (grub_vbe_get_memory_window): Renamed from this...
50885 (grub_vbe_bios_get_memory_window): ... to this.
50886 (grub_vbe_set_scanline_length): Renamed from this...
50887 (grub_vbe_set_scanline_length): ... to this.
50888 (grub_vbe_get_scanline_length): Renamed from this...
50889 (grub_vbe_bios_get_scanline_length): ... to this.
50890 (grub_vbe_set_display_start): Renamed from this...
50891 (grub_vbe_bios_set_display_start): ... to this.
50892 (grub_vbe_get_display_start): Renamed from this...
50893 (grub_vbe_bios_get_display_start): ... to this.
50894 (grub_vbe_set_palette_data): Renamed from this...
50895 (grub_vbe_bios_set_palette_data): ... to this.
50896 (grub_vbe_set_pixel_rgb): Removed.
50897 (grub_vbe_set_pixel_index): Likewise.
50899 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
50901 (grub_vbe_bios_get_controller_info): ... to this.
50902 (grub_vbe_get_mode_info): Renamed from this...
50903 (grub_vbe_bios_get_mode_info): ... to this.
50904 (grub_vbe_set_mode): Renamed from this...
50905 (grub_vbe_bios_set_mode): ... to this.
50906 (grub_vbe_get_mode): Renamed from this...
50907 (grub_vbe_bios_get_mode): ... to this.
50908 (grub_vbe_set_memory_window): Renamed from this...
50909 (grub_vbe_bios_set_memory_window): ... to this.
50910 (grub_vbe_get_memory_window): Renamed from this...
50911 (grub_vbe_bios_get_memory_window): ... to this.
50912 (grub_vbe_set_scanline_length): Renamed from this...
50913 (grub_vbe_set_scanline_length): ... to this.
50914 (grub_vbe_get_scanline_length): Renamed from this...
50915 (grub_vbe_bios_get_scanline_length): ... to this.
50916 (grub_vbe_set_display_start): Renamed from this...
50917 (grub_vbe_bios_set_display_start): ... to this.
50918 (grub_vbe_get_display_start): Renamed from this...
50919 (grub_vbe_bios_get_display_start): ... to this.
50920 (grub_vbe_set_palette_data): Renamed from this...
50921 (grub_vbe_bios_set_palette_data): ... to this.
50922 (grub_vbe_bios_get_controller_info): Fixed problem with registers
50923 getting corrupted after calling it. Added more pushes and pops.
50924 (grub_vbe_bios_set_mode): Likewise.
50925 (grub_vbe_bios_get_mode): Likewise.
50926 (grub_vbe_bios_get_memory_window): Likewise.
50927 (grub_vbe_bios_set_scanline_length): Likewise.
50928 (grub_vbe_bios_get_scanline_length): Likewise.
50929 (grub_vbe_bios_get_display_start): Likewise.
50930 (grub_vbe_bios_set_palette_data): Likewise.
50932 * normal/cmdline.c (cl_set_pos): Refresh the screen.
50933 (cl_insert): Likewise.
50934 (cl_delete): Likewise.
50936 * term/gfxterm.c: New file.
50938 * term/i386/pc/vesafb.c: Removed file.
50940 * video/video.c: New file.
50942 * video/i386/pc/vbe.c (real2pm): Added new function.
50943 (grub_video_vbe_draw_pixel): Likewise.
50944 (grub_video_vbe_get_video_ptr): Likewise.
50945 (grub_video_vbe_get_pixel): Likewise
50946 (grub_video_vbe_init): Likewise.
50947 (grub_video_vbe_fini): Likewise.
50948 (grub_video_vbe_setup): Likewise.
50949 (grub_video_vbe_get_info): Likewise.
50950 (grub_video_vbe_set_palette): Likewise.
50951 (grub_video_vbe_get_palette): Likewise.
50952 (grub_video_vbe_set_viewport): Likewise.
50953 (grub_video_vbe_get_viewport): Likewise.
50954 (grub_video_vbe_map_color): Likewise.
50955 (grub_video_vbe_map_rgb): Likewise.
50956 (grub_video_vbe_map_rgba): Likewise.
50957 (grub_video_vbe_unmap_color): Likewise.
50958 (grub_video_vbe_fill_rect): Likewise.
50959 (grub_video_vbe_blit_glyph): Likewise.
50960 (grub_video_vbe_blit_bitmap): Likewise.
50961 (grub_video_vbe_blit_render_target): Likewise.
50962 (grub_video_vbe_scroll): Likewise.
50963 (grub_video_vbe_swap_buffers): Likewise.
50964 (grub_video_vbe_create_render_target): Likewise.
50965 (grub_video_vbe_delete_render_target): Likewise.
50966 (grub_video_vbe_set_active_render_target): Likewise.
50967 (grub_vbe_set_pixel_rgb): Remove function.
50968 (grub_vbe_set_pixel_index): Likewise.
50969 (index_color_mode): Remove static variable.
50970 (active_mode): Likewise.
50971 (framebuffer): Likewise.
50972 (bytes_per_scan_line): Likewise.
50973 (grub_video_vbe_adapter): Added new static variable.
50974 (framebuffer): Likewise.
50975 (render_target): Likewise.
50976 (initial_mode): Likewise.
50977 (mode_in_use): Likewise.
50978 (mode_list): Likewise.
50980 2006-03-10 Marco Gerards <marco@gnu.org>
50982 * configure.ac (AC_INIT): Bumped to 1.93.
50984 * DISTLIST: Added `include/grub/hfs.h'.
50986 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
50988 * boot/i386/pc/boot.S (general_error): Before looping, try INT
50989 18H, which might help the BIOS falling back to next boot media.
50991 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
50993 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
50994 Poe Chen <poe.poechen@gmail.com>.
50996 2006-01-17 Marco Gerards <marco@gnu.org>
50998 * include/grub/normal.h: Include <grub/script.h>.
50999 (grub_command_list): Removed struct.
51000 (grub_command_list_t): Removed type.
51001 (grub_menu_entry): Remove members `num' and `command_list'. Add
51002 members `commands' and `sourcecode'.
51003 * include/grub/script.h: Add inclusion guards.
51004 (grub_script_cmd_menuentry): New struct.
51005 (grub_script_execute_menuentry): New prototype.
51006 (grub_script_lexer_record_start): Likewise.
51007 (grub_script_lexer_record_stop): Likewise.
51008 * normal/execute.c (grub_script_execute_menuentry): New function.
51009 * normal/lexer.c (record, recording, recordpos, recordlen): New
51011 (grub_script_lexer_record_start): New function.
51012 (grub_script_lexer_record_stop): Likewise.
51013 (recordchar): Likewise.
51014 (nextchar): Likewise.
51015 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
51016 2048 as the buffer size. Add the tokens `menuentry' and `@'.
51017 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
51018 (current_menu): New variable.
51019 (free_menu): Mainly rewritten.
51020 (grub_normal_menu_addentry): New function.
51021 (read_config_file): Rewritten.
51022 * normal/menu.c (run_menu_entry): Mainly rewritten.
51023 * normal/menu_entry.c (make_screen): Rewritten the code to insert
51025 (run): Mainly rewritten.
51026 * normal/parser.y (menu_entry): New variable.
51027 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
51028 (menuentry): New rule.
51029 (command): Add `menuentry'.
51030 (if_statement): Allow additional returns before `fi'.
51031 * normal/script.c (grub_script_create_cmdmenu): New function.
51033 2006-01-03 Marco Gerards <marco@gnu.org>
51035 * INSTALL: GNU Bison is required.
51036 * configure.ac: Rewritten the test to detect Bison.
51037 * Makefile.in (YACC): New variable. Reported by Xun Sun
51038 <xun.sun.cn@gmail.com>.
51040 2006-01-03 Marco Gerards <marco@gnu.org>
51042 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
51043 the HFS+ filesystem to filesystem blocks.
51044 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
51045 GCC warning is silenced.
51047 2006-01-03 Marco Gerards <marco@gnu.org>
51049 * partmap/apple.c (apple_partition_map_iterate): Convert the data
51050 read from disk from big endian to host byte order.
51052 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
51054 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
51056 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
51057 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
51058 embedded HFS+ filesystem.
51059 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
51060 (grub_hfs_sblock): Move from here...
51061 * include/grub/hfs.h: To here... New file.
51062 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
51064 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
51066 (grub_hfsplus_volheader): Change type of member `magic' to
51068 (grub_hfsplus_data): Add new member `embedded_offset'.
51069 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
51071 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
51072 Calculate the offset.
51074 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51076 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
51078 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
51080 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51082 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
51083 ENV->NAME is NULL after allocating ENV->VALUE.
51085 2005-12-25 Marco Gerards <marco@gnu.org>
51087 * kern/env.c (grub_env_set): Rewritten the error handling code.
51089 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51091 * geninit.sh: Made more robust, and more portable.
51093 2005-12-25 Marco Gerards <marco@gnu.org>
51095 Add support for Apple HFS+ filesystems.
51097 * fs/hfsplus.c: New file.
51099 * DISTLIST: Added `fs/hfsplus.c'.
51101 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
51102 (hfsplus_mod_SOURCES): New variable.
51103 (hfsplus_mod_CFLAGS): Likewise.
51104 (hfsplus_mod_LDFLAGS): Likewise.
51105 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
51106 (grub_setup_SOURCES): Likewise.
51107 (grub_mkdevicemap_SOURCES): Likewise.
51108 (grub_emu_SOURCES): Likewise.
51109 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
51111 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
51113 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
51115 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51117 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
51118 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
51119 include/grub/parser.h, include/grub/script.h, kern/parser.c,
51120 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
51121 normal/lexer.c, normal/parser.y, normal/script.c, and
51123 Removed kern/sparc64/cache.c.
51125 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
51126 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
51129 * configure.ac (AC_INIT): Bumped to 1.92.
51131 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
51133 * kern/err.c (grub_error_push): Added new function to support error
51135 (grub_error_pop): Likewise.
51136 (grub_error_stack_items): New local variable to support error stacks.
51137 (grub_error_stack_pos): Likewise.
51138 (grub_error_stack_assert): Likewise.
51139 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
51141 (grub_print_error): Added support to print errors from error stack.
51143 * include/grub/err.h (grub_error_push): Added function prototype.
51144 (grub_error_pop): Likewise.
51146 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
51148 * configure.ac: Accept `powerpc64' as host_cpu.
51149 (amd64): Rename to `biarch32'.
51151 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
51152 non-cacheline-aligned addresses.
51154 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
51155 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
51156 if `size' is non-zero.
51158 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
51160 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
51161 and `cd' to make sure the filename is not prefixed with a
51163 (pkgdata_MODULES): Add `gpt.mod'.
51164 (gpt_mod_SOURCES): New variable.
51165 (gpt_mod_CFLAGS): Likewise.
51166 (gpt_mod_LDFLAGS): Likewise.
51168 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
51170 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
51173 * partmap/gpt.c: New file.
51175 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
51176 GPT partition map is detected.
51178 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
51180 * commands/i386/pc/play.c: New file.
51181 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
51182 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
51185 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
51187 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
51188 ((unused))' to silence gcc warning.
51190 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
51192 * configure.ac: Correct `AC_PROG_YACC' test.
51194 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51196 * util/powerpc/ieee1275/grub-install.in: Run the mount point
51197 check before installing files.
51199 2005-11-22 Mike Small <smallm@panix.com>
51201 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
51202 number regex so multidigit numbers are recognized correctly.
51204 2005-11-22 Mike Small <smallm@panix.com>
51206 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
51207 debugging message before attempting to claim memory.
51208 (grub_rescue_cmd_initrd): Add a claim debugging message and try
51209 multiple addresses in case of failure.
51211 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51213 * term/tparm.c (get_space): Remove empty `if' statement.
51215 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
51217 * kern/parser.c (check_varstate): Rename `state' to 's'.
51219 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51221 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
51222 variable definitions to the beginning of each function. Sort stack
51224 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
51225 `buf' argument to `char *'.
51227 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51229 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
51230 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51231 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51232 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51233 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51234 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51235 configfile.mod, search.mod, gzio.mod and test.mod.
51236 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51237 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51238 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51239 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51240 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51241 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51242 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51243 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51244 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51245 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51246 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51247 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51248 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51249 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51250 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51251 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51252 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51253 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51254 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51255 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51256 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51257 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51258 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
51260 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
51262 (pkgdata_MODULES): Add test.mod.
51264 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51266 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
51267 appending to variables with "+=".
51268 (PModule): Use full pathname to generate *.lst filenames.
51270 * Makefile.in: Fixed list rules moved from genmk.rb.
51271 (.DELETE_ON_ERROR): New special target.
51272 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
51274 * conf/i386-pc.rmk: Include conf/common.mk.
51275 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51276 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51277 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51278 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51279 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51280 configfile.mod, search.mod, gzio.mod and test.mod.
51281 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51282 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51283 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51284 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51285 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51286 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51287 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51288 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51289 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51290 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51291 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51292 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51293 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51294 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51295 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51296 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51297 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51298 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51299 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51300 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51301 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51302 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51303 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
51305 * conf/common.rmk: ... to here. New file.
51307 * conf/common.mk: New file.
51309 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
51311 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
51312 (grub_script.tab.c): ... here.
51314 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
51315 (grub_script.tab.c): ... here.
51317 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
51318 (grub_script.tab.c): ... here.
51320 * normal/command.c (grub_command_find): Fixed a memory leak of
51321 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
51323 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51325 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
51326 "@" which marks the start of a comment on ARM.
51327 (VARIABLE): Likewise.
51329 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51331 Add support for Linux/ADFS partition tables.
51333 * partmap/acorn.c: New file.
51335 * include/grub/acorn_filecore.h: Likewise.
51337 * DISTLIST: Added `partmap/acorn.c' and
51338 `include/grub/acorn_filecore.h'.
51340 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51342 (pkgdata_MODULES): Add `acorn.mod'.
51343 (acorn_mod_SOURCES): New variable.
51344 (acorn_mod_CFLAGS): Likewise.
51346 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51348 (pkgdata_MODULES): Add `acorn.mod'.
51349 (acorn_mod_SOURCES): New variable.
51350 (acorn_mod_CFLAGS): Likewise.
51352 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
51353 (pkgdata_MODULES): Add `acorn.mod'.
51354 (acorn_mod_SOURCES): New variable.
51355 (acorn_mod_CFLAGS): Likewise.
51356 (acorn_mod_LDFLAGS): Likewise.
51358 * include/types.h (grub_disk_addr_t): New typedef.
51360 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
51362 * geninit.sh: New file.
51364 * geninitheader.sh: Likewise.
51366 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
51367 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
51368 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
51369 * commands/configfile.c (grub_configfile_init)
51370 (grub_configfile_fini): Likewise.
51371 * commands/default.c (grub_default_init, grub_default_fini):
51373 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
51374 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
51375 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
51376 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
51378 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
51379 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
51381 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
51382 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
51384 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
51386 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
51388 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
51389 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
51390 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
51391 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
51392 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
51393 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
51394 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
51395 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
51396 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
51397 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
51398 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
51399 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
51400 * partmap/amiga.c (grub_amiga_partition_map_init)
51401 (grub_amiga_partition_map_fini): Likewise.
51402 * partmap/apple.c (grub_apple_partition_map_init)
51403 (grub_apple_partition_map_fini): Likewise.
51404 * partmap/pc.c (grub_pc_partition_map_init)
51405 (grub_pc_partition_map_fini): Likewise.
51406 * partmap/sun.c (grub_sun_partition_map_init,
51407 grub_sun_partition_map_fini): Likewise.
51408 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
51411 * util/grub-emu.c: Include <grub_modules_init.h>.
51412 (main): Don't initialize and de-initialize any modules directly,
51413 use `grub_init_all' and `grub_fini_all' instead.
51415 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
51416 `grub_vesafb_mod_init'.
51417 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
51419 * term/i386/pc/vga.c (grub_vga_init): Renamed to
51420 `grub_vga_mod_init'. Updated all users.
51421 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
51423 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
51424 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
51427 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
51428 Generate a function to initialize the module in utilities.
51429 Updated all callers.
51430 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
51431 initialize the module in utilities. Updated all callers.
51433 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51435 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
51436 escape sequence and a literal ^L to clear the screen.
51438 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
51439 when returning from Open Firmware.
51441 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51443 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
51444 (grub_ofconsole_height): Likewise.
51445 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
51446 manually insert a '\n'.
51447 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
51448 `grub_ofconsole_height'. Return early if these are already set.
51450 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
51452 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51453 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
51454 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
51455 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
51456 and `normal/script.c'.
51457 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51458 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51459 (test_mod_SOURCES): New variable.
51460 (test_mod_CFLAGS): Likewise.
51461 (test_mod_LDFLAGS): Likewise.
51462 (pkgdata_MODULES): Add `test.mod'.
51463 (grub_script.tab.c): New rule.
51464 (grub_script.tab.h): Likewise.
51466 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
51468 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51469 `commands/test.c', `normal/execute.c', `normal/lexer.c',
51470 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51471 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51472 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51473 (test_mod_SOURCES): New variable.
51474 (test_mod_CFLAGS): Likewise.
51475 (pkgdata_MODULES): Add `test.mod'.
51476 (grub_script.tab.c): New rule.
51477 (grub_script.tab.h): Likewise.
51479 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
51481 Add initial scripting support.
51483 * commands/test.c: New file.
51484 * include/grub/script.h: Likewise.
51485 * normal/execute.c: Likewise.
51486 * normal/function.c: Likewise.
51487 * normal/lexer.c: Likewise.
51488 * normal/parser.y: Likewise.
51489 * normal/script.c: Likewise.
51491 * configure.ac: Add `AC_PROG_YACC' test.
51493 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
51494 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
51495 `normal/function.c' and `normal/script.c'.
51496 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51497 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51498 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
51500 (pkgdata_MODULES): Add `test.mod'.
51501 (grub_script.tab.c): New rule.
51502 (grub_script.tab.h): Likewise.
51504 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
51506 * include/grub/normal.h (grub_test_init): New prototype.
51507 (grub_test_fini): Likewise.
51509 * normal/command.c: Include <grub/script.h>.
51510 (grub_command_execute): Rewritten.
51512 * util/grub-emu.c (main): Call `grub_test_init' and
51515 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51517 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
51519 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
51520 there are no pending characters.
51522 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51524 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
51525 `grub_strndup' to drop device arguments. Replace unnecessary
51526 `grub_strndup' with `grub_strdup'.
51528 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51530 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
51531 `debug' environment variable has been set.
51533 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
51535 * Makefile.in (install-local): Use $(DATA).
51536 (uninstall): Likewise.
51537 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
51538 (sbin_UTILITIES): ... to here.
51539 (sbin_SCRIPTS): New variable.
51540 (grub_install_SOURCES): New variable.
51541 * util/powerpc/ieee1275/grub-install.in: New file.
51542 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
51544 (add_segments): Call `grub_util_get_path'.
51546 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
51548 From Timothy Baldwin:
51549 * commands/ls.c (grub_ls_list_files): Close FILE with
51551 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
51553 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
51555 * include/grub/parser.h: New file.
51557 * kern/parser.c: Likewise.
51559 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
51560 (grub_setup_SOURCES): Likewise.
51561 (grub_probefs_SOURCES): Likewise.
51562 (grub_emu_SOURCES): Likewise.
51563 (kernel_img_HEADERS): Add `parser.h'.
51565 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51566 (grub_emu_SOURCES): Add `kern/parser.c'.
51567 (grubof_SOURCES): Likewise.
51569 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51570 (grubof_SOURCES): Add `kern/parser.c'.
51572 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
51574 * kern/misc.c (grub_split_cmdline): Removed function.
51576 * kern/rescue.c: Include <grub/parser.h>.
51577 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
51578 of `grub_split_cmdline'.
51580 * normal/command.c: Include <grub/parser.h>.
51581 (grub_command_execute): Use `grub_parser_split_cmdline' instead
51582 of `grub_split_cmdline'.
51584 * normal/completion.c: Include <grub/parser.h>.
51585 (cmdline_state): New variable.
51586 (iterate_dir): End the filename with a quote depending on the
51587 command line state.
51588 (get_state): new function.
51589 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
51590 split the arguments and determine the current argument. When the
51591 argument string is not quoted, escape all spaces.
51593 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51595 * normal/sparc64/setjmp.S: New file.
51597 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51599 * include/grub/sparc64/libgcc.h: New file.
51600 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
51601 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
51602 normal/sparc64/setjmp.c.
51604 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51606 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
51607 * kern/sparc64/cache.S: New file.
51608 * kern/sparc64/cache.c: Removed.
51609 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
51610 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
51612 (COMMON_LDFLAGS): Add -melf64_sparc.
51613 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
51614 (grubof_SOURCES): Use cache.S instead of cache.c.
51615 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
51616 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
51617 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
51619 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
51620 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
51621 (linux_mod_CFLAGS): Commented out.
51622 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
51623 out because module isn't built.
51624 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
51625 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
51626 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
51627 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
51628 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
51629 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51630 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51631 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
51632 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
51633 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
51634 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51635 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51636 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
51637 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
51639 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
51641 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
51642 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
51643 longer, because HFS should not be used on PC.
51645 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51647 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
51648 consistently within the loop.
51650 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
51652 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
51653 directory can not be read.
51655 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51657 * configure.ac (AC_INIT): Increase the version number to 1.91.
51659 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
51660 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
51661 term/i386/pc/serial.c.
51663 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51665 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
51666 file size must be permitted.
51668 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
51669 between %ah and %al.
51671 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51673 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
51675 Call the hook with a NUL-terminated filename.
51676 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
51679 * kern/term.c (cursor_state): New variable.
51680 (grub_term_set_current): Reset the cursor state on a new
51682 (grub_setcursor): Rewritten to use CURSOR_STATE.
51683 (grub_getcursor): New function.
51685 * include/grub/term.h (grub_getcursor): New prototype.
51687 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
51688 integers on ARM. Reported by Timothy Baldwin
51689 <T.E.Baldwin99@members.leeds.ac.uk>.
51691 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
51693 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
51695 (grub_sfs_dir): Likewise.
51697 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
51699 Add support for the SFS filesystem.
51701 * fs/sfs.c: New file.
51703 * DISTLIST: Added `fs/sfs.c'.
51705 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
51706 (grub_probefs_SOURCES): Likewise.
51707 (grub_emu_SOURCES): Likewise.
51708 (pkgdata_MODULES): Add `sfs.mod'.
51709 (sfs_mod_SOURCES): New variable.
51710 (sfs_mod_CFLAGS): Likewise.
51711 (sfs_mod_LDFLAGS): Likewise.
51713 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
51714 (pkgdata_MODULES): Add `sfs.mod'.
51715 (sfs_mod_SOURCES): New variable.
51716 (sfs_mod_CFLAGS): Likewise.
51718 * util/grub-emu.c (main): Call `grub_sfs_init' and
51721 * include/grub/fs.h (grub_sfs_init): New prototype.
51722 (grub_sfs_fini): Likewise.
51724 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
51726 Add support for the AFFS filesystem.
51728 * fs/affs.c: New file.
51730 * DISTLIST: Added `fs/affs.c'.
51732 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
51733 (grub_probefs_SOURCES): Likewise.
51734 (grub_emu_SOURCES): Likewise.
51735 (pkgdata_MODULES): Add `affs.mod'.
51736 (affs_mod_SOURCES): New variable.
51737 (affs_mod_CFLAGS): Likewise.
51738 (affs_mod_LDFLAGS): Likewise.
51740 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
51741 (pkgdata_MODULES): Add `affs.mod'.
51742 (affs_mod_SOURCES): New variable.
51743 (affs_mod_CFLAGS): Likewise.
51745 * util/grub-emu.c (main): Call `grub_affs_init' and
51748 * include/grub/fs.h (grub_affs_init): New prototype.
51749 (grub_affs_fini): Likewise.
51751 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51753 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
51755 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51757 * configure.ac: Accept `x86_64' as host_cpu. In that case add
51760 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
51763 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
51764 (COMMON_LDFLAGS): New variable.
51765 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
51766 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
51767 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
51768 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
51769 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
51770 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
51771 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
51772 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
51773 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
51774 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
51775 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51776 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51777 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
51778 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
51779 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
51781 (normal_mod_ASFLAGS): Add `-m32'.
51783 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
51784 (grub_host_size_t, grub_host_ssize_t): New types.
51785 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
51786 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
51787 `GRUB_HOST_SIZEOF_VOID_P'.
51789 * include/grub/kernel.h (struct grub_module_header): Type of
51790 member offset changed to `grub_host_off_t'. Type of member size
51791 changed to `grub_host_size_t'.
51792 (struct grub_module_info): Type of member offset changed to
51793 `grub_host_off_t'. Type of member size changed to
51794 `grub_host_size_t'.
51796 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51798 Make GRUB's kernel compliant to Multiboot Specification.
51800 * kern/i386/pc/startup.S (multiboot_header): New label.
51801 (multiboot_entry): Likewise.
51802 (multiboot_trampoline): Likewise.
51804 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51805 Increased to 0x4A0.
51807 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51808 put parentheses after a question mark.
51809 [!GRUB_UTIL] (my_mod): New variable.
51811 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51813 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
51815 Adds support for the XFS filesystem. Btrees are not supported
51818 * fs/xfs.c: New file.
51820 * DISTLIST: Added `fs/xfs.c'.
51822 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51823 (grub_probefs_SOURCES): Likewise.
51824 (grub_emu_SOURCES): Likewise.
51825 (pkgdata_MODULES): Add `xfs.mod'.
51826 (xfs_mod_SOURCES): New variable.
51827 (xfs_mod_CFLAGS): Likewise.
51829 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51830 (pkgdata_MODULES): Add `xfs.mod'.
51831 (xfs_mod_SOURCES): New variable.
51832 (xfs_mod_CFLAGS): Likewise.
51834 * util/grub-emu.c (main): Call `grub_xfs_init' and
51837 * include/grub/fs.h (grub_xfs_init): New prototype.
51838 (grub_xfs_fini): Likewise.
51841 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51843 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51844 color modes, allow greater than 16 colors to be configured as
51847 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51849 * normal/completion.c (complete_arguments): Add the qualifier
51850 const into OPTIONS.
51852 From Omniflux <omniflux+lists@omniflux.com>:
51853 * include/grub/terminfo.h: New file.
51854 * include/grub/tparm.h: Likewise.
51855 * include/grub/i386/pc/serial.h: Likewise.
51856 * term/terminfo.c: Likewise.
51857 * term/tparm.c: Likewise.
51858 * term/i386/pc/serial.c: Likewise.
51859 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51861 (terminfo_mod_SOURCES): New variable.
51862 (terminfo_mod_CFLAGS): Likewise.
51863 (serial_mod_SOURCES): Likewise.
51864 (serial_mod_CFLAGS): Likewise.
51866 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51868 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51869 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
51870 and kern/powerpc/ieee1275/cmain.c, respectively.
51872 * boot/powerpc/ieee1275/crt0.S: Moved to ...
51873 * kern/powerpc/ieee1275/crt0.S: ... here.
51875 * boot/powerpc/ieee1275/cmain.c: Moved to ...
51876 * kern/powerpc/ieee1275/cmain.c: ... here.
51878 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
51879 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
51880 instead of boot/powerpc/ieee1275/crt0.S and
51881 boot/powerpc/ieee1275/cmain.c, respectively.
51883 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
51884 sectors. It was not used anyway.
51886 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51888 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
51889 `unused parameter' warning.
51891 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51893 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
51895 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
51898 2005-08-28 Marco Gerards <metgerards@student.han.nl>
51900 * include/grub/normal.h (enum grub_completion_type): Added
51901 `GRUB_COMPLETION_TYPE_ARGUMENT'.
51903 * normal/cmdline.c (print_completion): Handle
51904 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
51905 * normal/menu_entry.c (store_completion): Likewise.
51907 * normal/completion.c (complete_arguments): New function.
51908 (grub_normal_do_completion): Call `complete_arguments' when the
51909 current words start with a dash.
51911 2005-08-27 Marco Gerards <metgerards@student.han.nl>
51913 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
51914 `gzio.mod' instead of `io.mod').
51916 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
51918 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
51919 (DISTDIRS): Added io and video.
51920 Rewrite the search routine to make an output consistently.
51922 * DISTLIST: Added conf/sparc64-ieee1275.mk,
51923 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
51924 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
51925 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
51926 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
51927 util/powerpc/ieee1275/misc.c.
51929 * include/grub/gzio.h: New file.
51930 * io/gzio.c: Likewise.
51932 * kern/file.c (grub_file_close): Call grub_device_close only if
51933 FILE->DEVICE is not NULL.
51935 * include/grub/mm.h [!NULL] (NULL): New macro.
51937 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
51939 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
51940 (pkgdata_MODULES): Added gzio.mod.
51941 (gzio_mod_SOURCES): New variable.
51942 (gzio_mod_CFLAGS): Likewise.
51944 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
51945 (pkgdata_MODULES): Added gzio.mod.
51946 (gzio_mod_SOURCES): New variable.
51947 (gzio_mod_CFLAGS): Likewise.
51949 * commands/cat.c: Include grub/gzio.h.
51950 (grub_cmd_cat): Use grub_gzfile_open instead of
51953 * commands/cmp.c: Include grub/gzio.h.
51954 (grub_cmd_cmp): Use grub_gzfile_open instead of
51957 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
51958 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
51960 (grub_rescue_cmd_module): Likewise.
51962 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51964 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
51965 kern/sparc64/ieee1275/init.c because it contains _start.
51966 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
51968 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51970 * configure.ac: Add support for sparc64 host with ieee1275
51972 * configure: Generated from configure.ac.
51973 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
51975 (grub_ofdisk_read): Likewise.
51976 (grub_ofdisk_open): Use %p to print pointer values, and cast the
51977 pointers as (void *) to remove a warning.
51978 (grub_ofdisk_close): Likewise.
51979 (grub_ofdisk_read): Likewise.
51980 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
51981 returns, so make it return void to remove a warning.
51982 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
51983 Corresponding prototype change.
51984 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
51985 values, and cast the pointers as (void *) to remove a warning.
51986 (grub_mm_dump): Likewise.
51987 * conf/sparc64-ieee1275.mk: New file.
51988 * conf/sparc64-ieee1275.rmk: Likewise.
51989 * include/grub/sparc64/setjmp.h: Likewise.
51990 * include/grub/sparc64/types.h: Likewise.
51991 * include/grub/sparc64/ieee1275/console.h: Likewise.
51992 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
51993 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
51994 * include/grub/sparc64/ieee1275/time.h: Likewise.
51995 * kern/sparc64/cache.c: Likewise.
51996 * kern/sparc64/dl.c: Likewise.
51997 * kern/sparc64/ieee1275/init.c: Likewise.
51998 * kern/sparc64/ieee1275/openfw.c: Likewise.
52000 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
52002 * util/console.c (grub_ncurses_putchar): If C is greater than
52003 0x7f, set C to a question mark.
52004 (grub_ncurses_getcharwidth): New function.
52005 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
52008 * normal/menu.c (print_entry): Made aware of Unicode. First,
52009 convert TITLE to UCS-4, and predict the cursor position by
52012 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
52014 * kern/misc.c (grub_utf16_to_utf8): Likewise.
52016 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52018 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
52019 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
52022 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
52023 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
52024 grub_strcpy and grub_strlen. Take it into account that a space
52025 character is inserted as a delimiter.
52027 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52029 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
52030 invalid magic in the error.
52032 * commands/search.c: New file.
52034 * util/grub-emu.c (main): Call grub_search_init and
52037 * kern/rescue.c (grub_rescue_print_disks): Removed.
52038 (grub_rescue_print_devices): New function.
52039 (grub_rescue_cmd_ls): Use grub_device_iterate with
52040 grub_rescue_print_devices instead of grub_disk_dev_iterate with
52041 grub_rescue_print_disks.
52043 * kern/partition.c (grub_partition_iterate): Return the result of
52044 PARTMAP->ITERATE instead of GRUB_ERRNO.
52046 * kern/device.c: Include grub/partition.h.
52047 (grub_device_iterate): New function.
52049 * include/grub/partition.h (grub_partition_iterate): Return int
52050 instead of grub_err_t.
52052 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
52054 [GRUB_UTIL] (grub_search_fini): Likewise.
52056 * include/grub/device.h (grub_device_iterate): New prototype.
52058 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52060 (pkgdata_MODULES): Added search.mod.
52061 (search_mod_SOURCES): New variable.
52062 (search_mod_CFLAGS): Likewise.
52064 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
52065 (pkgdata_MODULES): Added search.mod.
52066 (search_mod_SOURCES): New variable.
52067 (search_mod_CFLAGS): Likewise.
52069 * commands/ls.c (grub_ls_list_disks): Renamed to ...
52070 (grub_ls_list_devices): ... this, and use grub_device_iterate.
52071 All callers changed.
52073 * DISTLIST: Added commands/search.c.
52075 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52077 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
52079 (grub_getcharwidth): New function.
52081 * kern/misc.c (grub_utf8_to_ucs4): New function.
52083 * include/grub/term.h (struct grub_term): Added a new member
52085 (grub_getcharwidth): New prototype.
52087 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
52089 * term/i386/pc/console.c (map_char): New function. Segregated from
52090 grub_console_putchar.
52091 (grub_console_putchar): Use map_char.
52092 (grub_console_getcharwidth): New function.
52093 (grub_console_term): Specified grub_console_getcharwidth as
52096 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
52097 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
52099 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
52101 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
52102 on grub_strtoul completely.
52103 (write_char): Declare local variables in the beginning of the
52105 (grub_vesafb_getcharwidth): New function.
52106 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
52109 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
52111 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
52112 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
52113 commands/i386/pc/vbetest.c.
52115 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
52116 call grub_vbe_get_controller_info again, because the returned
52117 information is volatile.
52118 (grub_vbe_set_video_mode): Mostly rewritten.
52119 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
52120 grub_vbe_status_t correctly.
52121 (grub_vbe_get_video_mode_info): Likewise.
52122 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
52123 several if statements.
52125 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
52126 * commands/i386/pc/vbeinfo.c: ... this.
52128 * commands/i386/pc/vbe_test.c: Renamed to ...
52129 * commands/i386/pc/vbetest.c: ... this.
52131 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
52133 (grub_cmd_vbeinfo): ... this. Save video modes before
52134 iterating. Skip a video mode, if it is not available, not enough
52135 information is given or it is monochrome. Show the memory
52136 model. Leave the interpretation of MODEVAR to grub_strtoul
52138 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
52139 (GRUB_MOD_FINI): Likewise.
52141 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
52142 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
52143 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
52144 duplicated grub_env_get. Leave the interpretation of MODEVAR to
52145 grub_strtoul completely.
52146 (real2pm): Removed.
52147 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
52148 (GRUB_MOD_FINI): Likewise.
52150 * normal/misc.c: Include grub/mm.h.
52152 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
52153 vbe_list_modes with vbetest.mod and vbeinfo.mod.
52154 (vbe_list_modes_mod_SOURCES): Removed.
52155 (vbe_list_modes_mod_CFLAGS): Likewise.
52156 (vbe_test_mod_SOURCES): Likewise.
52157 (vbe_test_mod_CFLAGS): Likewise.
52158 (vbeinfo_mod_SOURCES): New variable.
52159 (vbeinfo_mod_CFLAGS): Likewise.
52160 (vbetest_mod_SOURCES): Likewise.
52161 (vbetest_mod_CFLAGS): Likewise.
52163 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
52165 * normal/misc.c: New file.
52167 * DISTLIST: Added normal/misc.c.
52169 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
52170 DISK to HOOK. Call HOOK with DISK.
52171 * partmap/apple.c (apple_partition_map_iterate): Likewise.
52172 * partmap/pc.c (pc_partition_map_iterate): Likewise.
52173 * partmap/sun.c (sun_partition_map_iterate): Likewise.
52175 * normal/menu_entry.c (struct screen): Added a new member
52176 "completion_shown".
52177 (completion_buffer): New global variable.
52178 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
52179 (store_completion): New function.
52180 (complete): Likewise.
52181 (clear_completions): Likewise.
52182 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
52183 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
52184 a tab, call complete.
52186 * normal/completion.c (disk_dev): Removed.
52187 (print_simple_completion): Likewise.
52188 (print_partition_completion): Likewise.
52189 (print_func): New global variable.
52190 (add_completion): Do not take the arguments WHAT or PRINT any
52191 longer. Added a new argument TYPE. Instead of printing directly,
52192 call PRINT_FUNC if not NULL.
52193 All callers changed.
52194 (complete_device): Use a local variable DEV instead of
52195 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
52196 (grub_normal_do_completion): Take a new argument HOOK. Do not
52197 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
52198 empty string, return NULL instead.
52199 All callers changed.
52201 * normal/cmdline.c (print_completion): New function.
52203 * kern/partition.c (grub_partition_iterate): Add an argument DISK
52205 All callers changed.
52207 * kern/disk.c (grub_print_partinfo): Removed.
52209 * include/grub/partition.h (struct grub_partition_map): Add a new
52210 argument DISK into HOOK of ITERATE.
52211 (grub_partition_iterate): Add a new argument DISK to HOOK.
52213 * include/grub/normal.h (enum grub_completion_type): New enum.
52214 (grub_completion_type_t): New type.
52215 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
52216 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
52217 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
52218 (GRUB_COMPLETION_TYPE_FILE): Likewise.
52219 (grub_normal_do_completion): Added a new argument HOOK.
52220 (grub_normal_print_device_info): New prototype.
52222 * include/grub/disk.h (grub_print_partinfo): Removed.
52224 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
52225 (normal_mod_SOURCES): Likewise.
52226 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
52227 (normal_mod_SOURCES): Likewise.
52229 * commands/ls.c (grub_ls_list_disks): Use
52230 grub_normal_print_device_info instead of grub_print_partinfo. Free
52232 (grub_ls_list_files): Use grub_normal_print_device_info instead of
52233 duplicating the code.
52235 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52237 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
52238 follow GCS more precisely.
52239 * commands/i386/pc/vbe_test.c: Likewise.
52240 * include/grub/i386/pc/vbe.h: Likewise.
52241 * term/i386/pc/vesafb.c: Likewise.
52242 * video/i386/pc/vbe.c: Likewise.
52244 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52246 * DISTLIST: Added term/i386/pc/vesafb.c
52247 DISTLIST: Added video/i386/pc/vbe.c
52248 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
52249 DISTLIST: Added commands/i386/pc/vbe_test.c.
52250 * commands/i386/pc/vbe_list_modes.c: New file.
52251 * commands/i386/pc/vbe_test.c: Likewise.
52252 * term/i386/pc/vesafb.c: Likewise.
52253 * video/i386/pc/vbe.c: Likewise.
52254 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
52255 (grub_vbe_probe) Added prototype.
52256 (grub_vbe_set_video_mode) Likewise.
52257 (grub_vbe_get_video_mode) Likewise.
52258 (grub_vbe_get_video_mode_info) Likewise.
52259 (grub_vbe_set_pixel_rgb) Likewise.
52260 (grub_vbe_set_pixel_index) Likewise.
52261 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
52262 (pkgdata_MODULES): Added vesafb.mod.
52263 (pkgdata_MODULES): Added vbe_list_modes.mod.
52264 (pkgdata_MODULES): Added vbe_test.mod.
52265 (vbe_mod_SOURCES): Added.
52266 (vbe_mod_CFLAGS): Likewise.
52267 (vesafb_mod_SOURCES): Likewise.
52268 (vesafb_mod_CFLAGS): Likewise.
52269 (vbe_list_modes_mod_SOURCES): Likewise.
52270 (vbe_list_modes_mod_CFLAGS): Likewise.
52271 (vbe_test_mod_SOURCES): Likewise.
52272 (vbe_test_mod_CFLAGS): Likewise.
52274 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
52276 * normal/command.c (grub_command_execute): If INTERACTIVE is
52277 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
52278 CMDLINE. Disable the pager if INTERACTIVE is true.
52279 All callers are changed.
52281 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
52282 before reading a config file.
52283 * normal/main.c (read_config_file): Even if a command is not
52284 found, register it if it is within an entry.
52286 * util/grub-emu.c: Include sys/types.h and unistd.h.
52287 (options): Added --hold.
52288 (struct arguments): Added a new member "hold".
52289 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
52291 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
52292 cleared by a debugger, if it is not zero.
52294 * include/grub/normal.h (grub_command_execute): Add an argument
52297 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
52299 * DISTLIST: Added include/grub/i386/pc/vbe.h.
52301 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
52303 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
52304 program with another one, because the old one didn't detect a bug
52305 in gcc-3.4. Always use regparm 2, because the new test is still
52306 not enough for gcc-4.0. Someone must investigate a simple test
52307 case which detects a bug in gcc-4.0.
52309 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
52311 * DISTLIST: Added normal/completion.c.
52313 * normal/completion.c: New file.
52315 * term/i386/pc/console.c (grub_console_getwh): New function.
52316 (grub_console_term): Assign grub_console_getwh to getwh.
52318 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
52319 function is defined in normal/completion.c as
52320 grub_normal_do_completion.
52321 (grub_cmdline_get): Use grub_normal_do_completion instead of
52324 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
52325 returns non-zero, otherwise return 0.
52326 (grub_partition_iterate): First, probe the partition map. Then,
52327 call ITERATE only for this partition map.
52329 * kern/misc.c (grub_strncmp): Rewritten.
52331 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
52332 returns non-zero. Otherwise return 0.
52334 * include/grub/partition.h (grub_partition_map_iterate): Return
52335 int instead of void.
52337 * include/grub/normal.h (grub_normal_do_completion): New prototype.
52339 * include/grub/misc.h (grub_strncmp): Change the type of N to
52342 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
52345 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
52346 unsigned explicitly before comparing it with I.
52348 * kern/main.c (grub_env_write_root): Add the attribute unused into
52351 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52352 normal/completion.c.
52353 (normal_mod_SOURCES): Likewise.
52354 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
52355 (normal_mod_SOURCES): Likewise.
52357 * normal/command.c (grub_iterate_commands): If ITERATE returns
52358 non-zero, return one immediately.
52360 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
52362 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
52363 * kern/i386/pc/startup.S: Updated Global Descriptor table's
52365 (grub_vbe_get_controller_info): New function.
52366 (grub_vbe_get_mode_info): Likewise.
52367 (grub_vbe_set_mode): Likewise.
52368 (grub_vbe_get_mode): Likewise.
52369 (grub_vbe_set_memory_window): Likewise.
52370 (grub_vbe_get_memory_window): Likewise.
52371 (grub_vbe_set_scanline_length): Likewise.
52372 (grub_vbe_get_scanline_length): Likewise.
52373 (grub_vbe_set_display_start): Likewise.
52374 (grub_vbe_get_display_start): Likewise.
52375 (grub_vbe_set_palette_data): Likewise.
52376 * include/grub/i386/pc/vbe.h: New file.
52378 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52380 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52381 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
52382 * DISTLIST: Likewise.
52383 * kern/ieee1275/of.c: Moved to ...
52384 * kern/ieee1275/ieee1275.c: ... here.
52386 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52388 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
52389 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
52390 Pass 0 as `end' parameter to grub_strtoul().
52392 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52394 * include/grub/powerpc/ieee1275/console.h: Do not include
52395 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
52397 (grub_console_cur_color): Remove i386-specific prototype.
52398 (grub_console_real_putchar): Likewise.
52399 (grub_console_checkkey): Likewise.
52400 (grub_console_getkey): Likewise.
52401 (grub_console_getxy): Likewise.
52402 (grub_console_gotoxy): Likewise.
52403 (grub_console_cls): Likewise.
52404 (grub_console_setcursor): Likewise.
52405 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
52406 Include <grub/machine/console.h>.
52407 * term/ieee1275/ofconsole.c: Likewise.
52409 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
52411 * Makefile.in (LIBLZO): New variable.
52413 * configure.ac: Check for LZO version 2.
52415 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
52416 lzo/lzo1x.h instead of lzo1x.h.
52418 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
52421 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
52422 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
52424 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
52425 copying the data from PARTITION to P.
52427 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52429 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
52430 negative, unload the module.
52432 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
52433 map is "pc_partition_map" but not "pc".
52434 (usage): Fix the description. The options are --boot-image and
52435 --core-image but not --boot-file or --core-file.
52436 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
52437 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
52440 * util/i386/pc/grub-install.in: Do not specify --boot-file or
52441 --core-file. Specify INSTALL_DEVICE as an argument.
52443 * util/console.c: Include config.h.
52444 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
52445 [HAVE_NCURSES_H]: Include ncurses.h.
52446 [HAVE_CURSES_H]: Include curses.h.
52447 [!A_NORMAL] (A_NORMAL): Defined as zero.
52448 [!A_STANDOUT] (A_STANDOUT): Likewise.
52450 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
52452 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
52454 * configure.ac: Check for curses libraries and headers.
52456 * Makefile.in (LIBCURSES): New variable.
52458 * genmk.rb (Script::rule): Set the executable bits.
52460 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
52461 name of the PC partition map is "pc_partition_map" but not "pc".
52463 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52465 * util/i386/pc/grub-install.in (grub_probefs): New variable.
52466 (modules): Likewise.
52467 (usage): Added descriptions for --modules and --grub-probefs.
52468 Handle --modules and --grub-probefs. Save the arguments in MODULES
52469 and GRUB_PROBEFS, respectively.
52470 Auto-detect a filesystem module against GRUBDIR. If the result is
52471 empty and modules are not specified explicitly, abort the
52472 installation. Add the result to MODULES.
52474 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
52475 disk/powerpc/ieee1275/ofdisk.c,
52476 include/grub/powerpc/ieee1275/init.h and
52477 term/powerpc/ieee1275/ofconsole.c.
52478 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
52479 term/ieee1275/ofconsole.c.
52481 * include/grub/powerpc/ieee1275/console.h: Resurrected.
52483 * COPYING: Upgraded to the latest version. Only the address of the
52484 FSF office has changed.
52486 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52488 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52489 kern/ieee1275.c with kern/ieee1275/of.c.
52491 * kern/ieee1275.c: Moved to ...
52492 * kern/ieee1275/of.c: ... here.
52494 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
52496 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
52499 * config.guess: Updated to the latest version from gnulib.
52500 * config.sub: Likewise.
52501 * install.sh: Likewise.
52502 * mkinstalldirs: Likewise.
52504 * include/grub/console.h: Removed. This file is arch-specific. Do
52505 not put this in include/grub.
52507 * include/grub/i386/pc/console.h: Resurrected.
52509 * util/console.c: Include grub/machine/console.h instead of
52511 * util/grub-emu.c: Likewise.
52513 2005-08-04 Marco Gerards <metgerards@student.han.nl>
52515 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
52518 From Vincent Pelletier <subdino2004@yahoo.fr>
52519 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
52520 Redefined to use grub_getwh.
52521 (grub_term): New member named getwh.
52522 (grub_getwh): New prototype.
52523 * kern/term.c (grub_getwh): New function.
52524 * term/i386/pc/console.c (grub_console_getwh): New function.
52525 (grub_console_term): New member `getwh'.
52526 * term/i386/pc/vga.c (grub_vga_getwh): New function.
52527 (grub_vga_term): New member `getwh'.
52528 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
52530 (grub_ofconsole_getw): New function.
52531 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
52532 (grub_ofconsole_term): New field named getwh and new initial
52535 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
52537 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
52538 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
52539 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
52540 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
52541 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
52542 of <grub/machine/ieee1275.h>.
52543 * commands/ieee1275/reboot.c: Likewise.
52544 * boot/powerpc/ieee1275/ieee1275.c: Move ...
52545 * kern/ieee1275.c: ... to here. All users updated. Change all
52546 parameter structs to use new type `grub_ieee1275_cell_t'.
52547 * term/powerpc/ieee1275/ofconsole.c: Move ...
52548 * term/ieee1275/ofconsole.c: ... to here. All users updated.
52549 * disk/powerpc/ieee1275/ofdisk.c: Move ...
52550 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
52551 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
52553 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
52554 Remove unused prototypes. All users updated.
52555 * include/grub/powerpc/ieee1275/console.h: Removed.
52556 * include/grub/powerpc/ieee1275/ieee1275.h: Define
52557 `grub_ieee1275_cell_t'.
52558 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
52559 Cast comparisons with -1 to the correct type.
52560 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
52561 type to match `grub_ieee1275_entry_fn'.
52563 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
52565 * DISTLIST: Added util/i386/pc/grub-probefs.c.
52567 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
52568 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
52570 (grub_probefs_SOURCES): New variable.
52572 * util/i386/pc/grub-probefs.c: New file.
52574 * util/i386/pc/grub-setup.c (main): Call
52575 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
52576 grub_hfs_init and grub_jfs_init to initialize the system. Call
52577 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
52578 grub_pc_partition_map_fini to finish the system.
52580 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
52582 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
52584 (grub_multiboot_load_elf32): Likewise.
52585 (grub_multiboot_is_elf64): Likewise.
52586 (grub_multiboot_load_elf64): Likewise.
52587 (grub_multiboot_load_elf): Likewise.
52588 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
52589 an ELF32 or ELF64 file.
52590 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
52592 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
52593 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
52594 NULL before calling FS->LABEL.
52595 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
52596 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
52597 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
52598 before calling FS->LABEL.
52600 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
52602 * util/i386/pc/grub-install.in (datadir): New variable.
52604 (pkgdatadir): New variable.
52605 (pkglibdir): Removed.
52607 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
52609 * DISTLIST: Added util/i386/pc/grub-install.in.
52611 * util/i386/pc/grub-install.in: New file.
52613 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
52614 (grub_install_SOURCES): Likewise.
52616 * genmk.rb: Added support for scripts.
52617 (Script): New class.
52618 (scripts): New variable.
52620 * Makefile.in (install-local): Install sbin_SCRIPTS by
52622 (uninstall): Remove sbin_SCRIPTS.
52624 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
52625 device, try to get a GRUB device by
52626 grub_util_biosdisk_get_grub_dev.
52629 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
52630 description for --device-map.
52632 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52634 Change the semantics of variable hooks. They now return strings
52635 instead of error values.
52637 * util/i386/pc/grub-setup.c: Include grub/env.h.
52638 (setup): Use grub_device_set_root instead of grub_env_set.
52640 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
52641 grub_env_get instead of grub_device_set_root and
52642 grub_device_get_root, respectively.
52644 * kern/main.c (grub_env_write_root): New function.
52645 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
52646 grub_env_set instead of grub_device_set_root.
52648 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
52650 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
52651 rather than calling ENV->WRITE_HOOK afterwards.
52652 (grub_env_get): Return the result of ENV->READ_HOOK rather than
52653 passing a pointer of a pointer.
52654 (grub_register_variable_hook): Change the types of "read_hook" and
52655 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
52657 Allocate the default empty string on the heap, because this string
52658 may be freed later.
52660 * kern/device.c: Include grub/env.h.
52661 (grub_device_set_root): Removed.
52662 (grub_device_get_root): Likewise.
52663 (grub_device_open): Use grub_env_get instead of
52664 grub_device_get_root.
52666 * include/grub/env.h (grub_env_read_hook_t): New type.
52667 (grub_env_write_hook_t): Likewise.
52668 (grub_env_var): Change the types of "read_hook" and "write_hook"
52669 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
52670 (grub_register_variable_hook): Likewise.
52672 * include/grub/device.h (grub_device_set_root): Removed.
52673 (grub_device_set_root): Likewise.
52675 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
52676 make sure that DIRNAME terminates with '/', so that
52677 grub_fat_find_dir will fail if PATH is not a directory.
52679 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
52681 Use the qualifier auto for print_files and print_files_long.
52682 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
52684 Put a newline only if there is no error.
52685 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
52688 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52690 * kern/partition.c (grub_partition_probe): Initialize PART to
52691 NULL. Otherwise, when no partition map is registered, this returns
52694 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
52696 * partmap/apple.c (apple_partition_map_iterate): Check if POS
52697 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
52700 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
52702 * commands/ls.c (grub_ls_list_disks): Print the filesystem
52703 information on each device, if it does not have partitions. Print
52704 "Device" instead of "Disk", because this function is not specific
52707 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
52708 static to ensure that it is put on the memory rather than a
52711 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52713 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
52714 (grub_cat_init): Likewise.
52715 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
52716 (options): Likewise.
52717 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
52718 (grub_configfile_init): Likewise.
52719 * font/manager.c (GRUB_MOD_INIT): Likewise.
52720 * commands/help.c (GRUB_MOD_INIT): Likewise.
52721 (grub_help_init): Likewise.
52722 * normal/command.c (grub_command_init): Likewise.
52723 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
52724 * disk/loopback.c (grub_loop_init): Likewise.
52725 (GRUB_MOD_INIT): Likewise.
52726 * commands/ls.c (grub_ls_init): Likewise.
52727 (GRUB_MOD_INIT): Likewise.
52728 (options): Likewise.
52729 * commands/boot.c (grub_boot_init): Likewise.
52730 (GRUB_MOD_INIT): Likewise.
52731 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
52732 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
52733 (GRUB_MOD_INIT): Likewise.
52734 * commands/cmp.c (grub_cmp_init): Likewise.
52735 (GRUB_MOD_INIT): Likewise.
52737 * normal/arg.c: Use <> instead of "" to include header files.
52738 (SHORT_ARG_HELP): New macro.
52739 (SHORT_ARG_USAGE): Likewise.
52740 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
52741 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
52743 (find_short): Check if C is 'h' or 'u' explicitly.
52744 (grub_arg_show_help): Use space characters instead of tabs. Treat
52745 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
52746 are shown with --help and --usage only if they are not used for
52747 the command itself.
52748 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
52751 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
52752 const into "longarg". Change the type of "shortarg" to int.
52754 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52756 * boot/i386/pc/boot.S (boot_drive_check): New label.
52758 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
52761 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
52762 which do not pass a boot drive correctly. Copied from GRUB Legacy.
52764 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52766 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
52767 When turning off Gate A20, skip the check and return immediately,
52768 because this is not fatal usually.
52770 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52772 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
52773 be 0x7C00 instead of 0x8000.
52775 * boot/i386/pc/pxeboot.S: Rewritten.
52777 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
52779 (gate_a20_check_state): Read a byte from 0x108000. Invert the
52782 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
52784 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
52785 robustness. This routine now supports a BIOS call and System
52786 Control Port A to modify the gate A20.
52788 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
52789 Increased to 0x440.
52791 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
52793 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
52794 device path and resulting ihandle.
52795 (grub_ofdisk_close): dprintf the ihandle being closed.
52796 (grub_ofdisk_read): dprintf function parameters.
52797 * kern/mm.c (grub_mm_init_region): Likewise.
52798 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52799 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52800 size, and boot arguments.
52801 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52802 before loading into memory.
52803 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52804 before loading into memory.
52806 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52808 * kern/mm.c: Added much documentation.
52809 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52810 8, set to 5 instead of 8.
52812 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52814 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52816 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52817 (grub_mkdevicemap_SOURCES): New variable.
52819 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52820 lib/device.c of GRUB Legacy.
52822 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52824 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52825 instead of PATH is NULL.
52827 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52829 * commands/cmp.c (BUFFER_SIZE): New macro.
52830 (grub_cmd_cmp): Close the right file at the right time. Compare
52831 only data just read. Don't report files of different size as
52832 identical. Dynamically allocate buffers. Move variable
52833 declarations at the beginning of function.
52835 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
52837 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52840 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52842 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52843 when backspace is pressed at beginning of line.
52845 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
52847 * DISTLIST: Added genfslist.sh.
52849 * normal/main.c (fs_module_list): New variable.
52850 (autoload_fs_module): New function.
52851 (read_fs_list): Likewise.
52852 (grub_normal_execute): Call read_fs_list.
52854 * kern/fs.c (grub_fs_autoload_hook): New variable.
52855 (grub_fs_probe): Added support for auto-loading.
52857 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52858 (grub_fs_module_list_t): New type.
52860 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52861 (grub_fs_autoload_hook): New prototype.
52863 * genfslist.sh: New file.
52865 * genmk.rb: Added a rule to generate a filesystem list.
52867 2005-06-30 Marco Gerards <metgerards@student.han.nl>
52869 * configure.ac: Fix the test for cross-compiling.
52871 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
52872 define GRUB_UTIL anymore.
52874 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
52875 so this function works on other systems than just big endian.
52876 (load_modules): Likewise.
52877 (add_segments): Likewise.
52879 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
52881 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
52882 contains `l' modifier, get a long from va_arg().
52884 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
52886 * kern/mm.c (grub_free): If the next free block which is being
52887 merged is the first free block, set the first block to the block
52889 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
52891 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52893 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
52894 `grub_ieee1275_chosen'.
52896 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52898 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
52899 (grub_ieee1275_chosen): New variable.
52900 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
52902 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
52903 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52904 Rename first argument to `phandle' for consistency.
52905 (grub_ieee1275_get_property_length): Likewise.
52906 (grub_ieee1275_next_property): Likewise. Change type of first argument
52907 to grub_ieee1275_phandle_t.
52908 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
52909 Move export next to declaration.
52910 (grub_ieee1275_chosen): New variable.
52911 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
52912 Correct cosmetic typo.
52913 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
52914 `grub_ieee1275_chosen'.
52915 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
52916 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
52917 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
52918 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
52919 `grub_ieee1275_chosen'.
52921 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
52923 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
52925 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
52926 /chosen/bootargs as "variable=value" pairs.
52928 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
52930 * include/grub/misc.h (grub_dprintf): New macro.
52931 (grub_real_dprintf): New prototype.
52932 (grub_strword): Likewise.
52933 (grub_iswordseparator): Likewise.
52934 * kern/misc.c (grub_real_dprintf): New function.
52935 (grub_strword): Likewise.
52936 (grub_iswordseparator): Likewise.
52938 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
52940 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
52941 (roundup): Remove macro.
52942 (grub_ieee1275_flags): Make static.
52943 (grub_ieee1275_realmode): Remove.
52944 (grub_ieee1275_test_flag): New function.
52945 (grub_ieee1275_set_flag): Likewise.
52946 (find_options): Rename to `grub_ieee1275_find_options'; update
52947 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
52948 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
52949 (cmain): New prototype.
52950 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
52951 `grub_ieee1275_flags' directly.
52952 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
52953 machine/biosdisk.h.
52954 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
52955 Don't include grub/machine/init.h.
52956 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
52957 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
52959 (grub_ieee1275_realmode): Likewise.
52960 (grub_ieee1275_flag): New enum.
52961 (grub_ieee1275_test_flag): New prototype.
52962 (grub_ieee1275_set_flag): New prototype.
52963 * include/grub/powerpc/ieee1275/init.h: Remove file.
52964 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
52965 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
52966 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
52967 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
52969 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
52970 `grub_ieee1275_test_flag'.
52971 (grub_ieee1275_encode_devname): Likewise.
52973 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
52975 * include/grub/powerpc/ieee1275/ieee1275.h
52976 (grub_ieee1275_encode_devname): New prototype.
52977 (grub_ieee1275_get_filename): Likewise.
52978 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
52980 (grub_set_prefix): Likewise.
52981 (grub_machine_init): Call grub_set_prefix.
52982 * kern/powerpc/ieee1275/openfw.c: Fix typos.
52983 (grub_parse_type): New enum.
52984 (grub_ieee1275_get_devargs): New function.
52985 (grub_ieee1275_get_devname): Likewise.
52986 (grub_ieee1275_parse_args): Likewise.
52987 (grub_ieee1275_get_filename): Likewise.
52988 (grub_ieee1275_encode_devname): Likewise.
52990 2005-03-30 Marco Gerards <metgerards@student.han.nl>
52992 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
52993 `grub_loader_unset'.
52995 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
52997 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
52998 instead of grub_ieee1275_interpret.
52999 (grub_halt_init): New function.
53000 (grub_halt_fini): Likewise.
53001 (GRUB_MOD_INIT): Correct message grammar.
53002 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
53003 instead of grub_ieee1275_interpret.
53004 (grub_reboot_init): New function.
53005 (grub_reboot_fini): Likewise.
53006 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
53007 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
53008 util/i386/pc/misc.c with commands/ieee1275/halt.c,
53009 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
53010 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
53012 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
53014 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
53016 (grub_halt): Likewise.
53017 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
53018 (cmain): Remove __attribute__((unused)).
53019 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
53020 (grub_heap_len): Likewise.
53021 (grub_machine_fini): New function.
53022 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
53023 (grub_halt): Likewise.
53024 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
53026 * util/powerpc/ieee1275/misc.c: New file.
53028 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
53030 * DISTLIST: New file.
53031 * gendistlist.sh: Likewise.
53033 * Makefile.in (COMMON_DISTFILES): Removed.
53034 (BOOT_DISTFILES): Likewise.
53035 (CONF_DISTFILES): Likewise.
53036 (DISK_DISTFILES): Likewise.
53037 (FS_DISTFILES): Likewise.
53038 (INCLUDE_DISTFILES): Likewise.
53039 (KERN_DISTFILES): Likewise.
53040 (LOADER_DISTFILES): Likewise.
53041 (TERM_DISTFILES): Likewise.
53042 (UTIL_DISTFILES): Likewise.
53043 (DISTFILES): Likewise.
53044 (uninstall): Uninstall files in $(pkgdata_DATA).
53045 (DISTLIST): New target.
53046 (distdir): Use the contents of the file DISTLIST to get a list of
53049 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
53051 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
53052 descriptor. This is ported from GRUB Legacy.
53054 * gencmdlist.sh: Added an extra semicolon to make it work with
53055 old sed versions. Reported by Robert Bihlmeyer
53056 <robbe@orcus.priv.at>.
53058 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
53060 Automatic loading of commands is supported.
53062 * normal/main.c (read_command_list): New function.
53063 (grub_normal_execute): Call read_command_list.
53065 * normal/command.c (grub_register_command): Return zero or CMD.
53066 Allocate CMD->NAME from the heap.
53067 Initialize CMD->MODULE_NAME to zero.
53068 Find the same name as well. If the same command is found and it is
53069 a dummy command, overwrite members. If it is not a dummy command,
53071 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
53072 (grub_command_find): If a dummy command is found, load a module
53073 and retry to find a command only once.
53075 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
53076 make sure that each command is loaded.
53078 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
53080 (struct grub_command): Remove const from the member `name'.
53081 Add a new member `module_name'.
53082 (grub_register_command): Return grub_command_t.
53084 * commands/help.c (grub_cmd_help): Call grub_command_find to make
53085 sure that each command is loaded.
53087 * genmk.rb (PModule::rule): Specify a module name without the
53088 suffix ".mod" to gencmdlist.sh.
53090 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53092 * gencmdlist.sh: New file.
53094 * genmk.rb (PModule::rule): Generate a rule for a command list.
53096 Generate command.lst from $(COMMANDFILES).
53098 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
53099 (DATA): Added $(pkgdata_DATA).
53100 (install-local): Install files in $(pkgdata_DATA).
53102 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53104 * term/i386/pc/vga.c (debug_command): Removed.
53105 (GRUB_MOD_INIT): Do not register the command "debug".
53107 From Hollis Blanchard:
53108 * commands/configfile.c: New file.
53109 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53110 commands/configfile.c.
53111 (pkgdata_MODULES): Added configfile.mod.
53112 (configfile_mod_SOURCES): New variable.
53113 (configfile_mod_CFLAGS): Likewise.
53114 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
53115 commands/configfile.c.
53116 (pkgdata_MODULES): Added configfile.mod.
53117 (configfile_mod_SOURCES): New variable.
53118 (configfile_mod_CFLAGS): Likewise.
53119 * util/grub-emu.c (main): Call grub_configfile_init and
53120 grub_configfile_fini.
53121 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
53123 [GRUB_UTIL] (grub_configfile_fini): Likewise.
53125 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53127 * normal/arg.c (grub_arg_show_help): Do not show the bug report
53130 * commands/help.c (grub_cmd_help): Do not print newlines after
53131 the last command in print_command_help.
53133 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53135 * commands/default.h: New file.
53136 * commands/timeout.h: Likewise.
53137 * normal/context.c: Likewise.
53139 * util/misc.c: Do not include sys/times.h.
53140 Include sys/time.h and grub/machine/time.h.
53141 (grub_get_rtc): Rewritten with gettimeofday.
53143 * util/grub-emu.c (main): Call grub_default_init and
53144 grub_timeout_init before grub_normal_init, and call
53145 grub_timeout_fini and grub_default_fini after grub_main.
53147 * util/console.c (grub_ncurses_checkkey): Return the read
53150 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
53153 * normal/main.c (read_config_file): Push MENU. If this fails,
53154 print an error and wait for a user input.
53155 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
53156 If a menu is empty or an error occurs, pop MENU.
53157 (grub_normal_execute): Pop and free MENU after grub_menu_run
53160 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
53162 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
53164 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53166 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
53168 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53171 * include/grub/normal.h (struct grub_menu_list): New struct.
53172 (grub_menu_list_t): New type.
53173 (struct grub_context): New struct.
53174 (grub_context_t): New type.
53175 (grub_register_command): Got rid of EXPORT_FUNC.
53176 (grub_unregister_command): Likewise.
53177 (grub_context_get): New prototype.
53178 (grub_context_get_current_menu): Likewise.
53179 (grub_context_push_menu): Likewise.
53180 (grub_context_pop_menu): Likewise.
53181 [GRUB_UTIL] (grub_default_init): Likewise.
53182 [GRUB_UTIL] (grub_default_fini): Likewise.
53183 [GRUB_UTIL] (grub_timeout_init): Likewise.
53184 [GRUB_UTIL] (grub_timeout_fini): Likewise.
53186 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
53187 commands/timeout.c and normal/context.c.
53188 (pkgdata_MODULES): Added default.mod and timeout.mod.
53189 (normal_mod_SOURCES): Added normal/context.c.
53190 (default_mod_SOURCES): New variable.
53191 (default_mod_CFLAGS): Likewise.
53192 (timeout_mod_SOURCES): Likewise.
53193 (timeout_mod_CFLAGS): Likewise.
53194 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
53196 (pkgdata_MODULES): Added default.mod and timeout.mod.
53197 (normal_mod_SOURCES): Added normal/context.c.
53198 (default_mod_SOURCES): New variable.
53199 (default_mod_CFLAGS): Likewise.
53200 (timeout_mod_SOURCES): Likewise.
53201 (timeout_mod_CFLAGS): Likewise.
53203 * Makefile.in (all-local): Added $(MKFILES).
53205 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
53207 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
53208 (grub_emu_SOURCES): Likewise.
53209 (pkgdata_MODULES): Add `sun.mod'.
53210 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53211 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53213 (pkgdata_MODULES): Add `sun.mod'.
53214 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53215 * include/grub/partition.h (grub_sun_partition_map_init): New
53217 (grub_sun_partition_map_fini): Likewise.
53218 * partmap/sun.c: New file.
53219 * util/grub-emu.c (main): Initialize and de-initialize the sun
53220 partitionmap support.
53222 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
53224 This implements an Emacs-like menu entry editor.
53226 * normal/menu_entry.c: New file.
53228 * util/console.c (grub_ncurses_putchar): Translate some Unicode
53229 characters to ASCII.
53230 (saved_char): New variable.
53231 (grub_ncurses_checkkey): Rewritten completely.
53232 (grub_ncurses_getkey): Likewise.
53233 (grub_ncurses_init): Call raw instead of cbreak.
53235 * normal/menu.c (print_entry): Do not put a space.
53236 (init_page): Renamed to ...
53237 (grub_menu_init_page): ... this. All callers changed.
53238 (edit_menu_entry): Removed.
53239 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
53241 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
53243 * kern/misc.c (grub_vprintf): Call grub_refresh.
53245 * normal/menu.c (DISP_LEFT): Renamed to ...
53246 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
53247 * normal/menu.c (DISP_UP): Renamed to ...
53248 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
53249 * normal/menu.c (DISP_RIGHT): Renamed to ...
53250 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
53251 * normal/menu.c (DISP_DOWN): Renamed to ...
53252 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
53253 * normal/menu.c (DISP_HLINE): Renamed to ...
53254 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
53255 * normal/menu.c (DISP_VLINE): Renamed to ...
53256 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
53257 * normal/menu.c (DISP_UL): Renamed to ...
53258 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
53259 * normal/menu.c (DISP_UR): Renamed to ...
53260 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
53261 * normal/menu.c (DISP_LL): Renamed to ...
53262 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
53263 * normal/menu.c (DISP_LR): Renamed to ...
53264 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
53265 * normal/menu.c (TERM_WIDTH): Renamed to ...
53266 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
53267 * normal/menu.c (TERM_HEIGHT): Renamed to ...
53268 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
53269 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
53270 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
53271 * normal/menu.c (TERM_MARGIN): Renamed to ...
53272 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
53273 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
53274 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
53275 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
53276 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
53277 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
53278 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
53279 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
53280 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
53281 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
53282 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
53283 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
53284 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
53285 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
53286 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
53287 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
53288 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
53289 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
53290 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
53291 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
53292 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
53293 All callers changed.
53295 * include/grub/normal.h: New prototype.
53297 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53298 normal/menu_entry.c.
53299 (normal_mod_SOURCES): Likewise.
53300 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
53301 (normal_mod_SOURCES): Likewise.
53303 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
53305 * include/grub/normal.h (grub_halt_init): New prototype.
53306 (grub_halt_fini): Likewise.
53307 (grub_reboot_init): Likewise.
53308 (grub_reboot_fini): Likewise.
53310 * util/grub-emu.c: Include signal.h.
53311 (main_env): New global variable.
53312 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
53314 (grub_machine_fini): New function.
53315 (main): Call grub_halt_init and grub_reboot_init before
53316 grub_main, and grub_reboot_fini and grub_halt_fini after it.
53317 Call setjmp with MAIN_ENV to go back afterwards.
53318 Call grub_machine_fini right before return.
53320 * include/grub/util/misc.h: Include setjmp.h.
53321 (main_env): New prototype.
53323 * include/grub/kernel.h (grub_machine_fini): New prototype.
53324 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
53325 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
53327 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
53328 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
53329 * term/i386/pc/console.c (grub_console_fini): Likewise.
53331 * util/i386/pc/misc.c: New file.
53333 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53334 util/i386/pc/misc.c, commands/i386/pc/halt.c and
53335 commands/i386/pc/reboot.c.
53337 2005-02-14 Guillem Jover <guillem@hadrons.org>
53339 * include/grub/dl.h (grub_dl_check_header): New prototype.
53340 (grub_arch_dl_check_header): Change return type to grub_err_t,
53341 remove size parameter and export function. Update all callers.
53342 * kern/dl.c (grub_dl_check_header): New function.
53343 (grub_dl_load_core): Use `grub_dl_check_header' instead of
53344 `grub_arch_dl_check_header'. Check ELF type. Check if sections
53345 are inside the core.
53346 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
53347 independent ELF header checks.
53348 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53349 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
53350 `grub_dl_check_header' instead of explicit checks. Check for the
53352 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
53353 `grub_dl_check_header' instead of explicit checks. Remove arch
53354 specific ELF header checks.
53356 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
53359 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
53361 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
53362 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
53364 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
53366 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
53367 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
53368 (part_map_iterate): Clear `grub_errno' and return 0 if
53369 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
53370 * partmap/amiga.c (amiga_partition_map_iterate): Return
53371 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
53372 * partmap/apple.c (apple_partition_map_iterate): Likewise.
53374 2005-02-01 Guillem Jover <guillem@hadrons.org>
53376 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
53379 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53381 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
53383 (grub_rescue_cmd_linux): New prototype.
53384 (grub_rescue_cmd_initrd): Likewise.
53385 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
53387 (grub_linux_release_mem): Release the memory for the initrd.
53388 (grub_load_linux): Renamed from this...
53389 (grub_rescue_cmd_linux): ...To this. Changed all callers.
53390 Changed `entry' not to be static. Loop over memory regions to
53391 find another one when the default fails.
53392 (grub_rescue_cmd_initrd): New function.
53393 (grub_linux_init): Remove function.
53394 (grub_linux_fini): Likewise.
53395 (GRUB_MOD_INIT): Register `initrd'.
53396 (GRUB_MOD_FINI): Unregister `initrd'.
53397 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
53399 (grub_linux_normal_fini): Likewise.
53400 (GRUB_MOD_INIT): Register `initrd'.
53401 (GRUB_MOD_FINI): Unregister `initrd'.
53403 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53405 * commands/help.c: New file.
53406 * normal/arg.c (show_help): Renamed to...
53407 (grub_arg_show_help): ... this.
53408 * commands/i386/pc/halt.c: New file.
53409 * commands/i386/pc/reboot.c: Likewise.
53410 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
53411 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
53412 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
53413 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
53415 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53417 (pkgdata_MODULES): Add `help.mod'.
53418 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
53419 * grub/i386/pc/init.h (grub_reboot): New prototype.
53420 (grub_halt): Likewise.
53421 * include/grub/normal.h (grub_arg_show_help): New prototype.
53422 (grub_help_init): Likewise.
53423 (grub_help_fini): Likewise.
53424 * util/grub-emu.c (main): Initialize and deinitialize the help
53427 * normal/cmdline.c (grub_cmdline_get): Doc fix.
53429 * normal/command.c (grub_command_init): Fixed the description of
53430 the `set' and `unset' commands.
53432 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53434 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
53436 * commands/ieee1275/halt.c: New file.
53437 * commands/ieee1275/reboot.c: Likewise.
53438 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
53439 `__attribute__ ((unused))'. Some GCS related fixed.
53440 (grub_suspend_init) [GRUB_UTIL]: Function removed.
53441 (grub_suspend_fini): Likewise.
53442 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
53444 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
53445 (halt_mod_CFLAGS): New variables.
53446 * include/grub/powerpc/ieee1275/ieee1275.h
53447 (grub_ieee1275_interpret): New prototype.
53449 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
53451 * include/grub/misc.h (memmove): New prototype.
53452 (memcpy): Likewise.
53454 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
53456 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
53457 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
53459 2005-01-22 Marco Gerards <metgerards@student.han.nl>
53461 * kern/misc.c (grub_strndup): Function rewritten.
53463 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
53465 * normal/menu.c (TERM_WIDTH): Macro redefined.
53466 (TERM_TOP_BORDER_Y): Likewise.
53467 (draw_border): Replaced while-loop by a for-loop. Make the number
53468 of lines consistent with the number of lines displayed in
53469 print_entries. Added a margin below the rectangle.
53470 (print_entry): Make the entry fit in the rectangle.
53471 (print_entries): Display the scroll arrows next to the right
53474 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53476 * fs/minix.c (grub_minix_find_file): Reserve more space for
53477 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
53478 `grub_strncpy' to copy `path' into it.
53480 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53482 Add the loopback device, a device via which files can be accessed
53485 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
53486 (pkgdata_MODULES): Add loopback.mod.
53487 (loopback_mod_SOURCES): New variable.
53488 (loopback_mod_CFLAGS): Likewise.
53489 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53491 (pkgdata_MODULES): Add loopback.mod.
53492 (loopback_mod_SOURCES): New variable.
53493 (loopback_mod_CFLAGS): Likewise.
53494 * disk/loopback.c: new file.
53495 * include/grub/normal.h (grub_loop_init): New prototype.
53496 (grub_loop_fini): New prototype.
53497 * util/grub-emu.c (main): Initialize and de-initialize loopback
53499 * include/grub/disk.h (grub_disk_dev_id): Add
53500 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
53502 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
53504 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
53506 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
53507 (suspend_mod_SOURCES): New variable.
53508 (suspend_mod_CFLAGS): Likewise.
53509 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
53511 * commands/ieee1275/suspend.c: New file.
53513 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
53515 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
53516 ((unused))' to `__attribute__ ((used))'.
53517 (GRUB_MOD_FINI): Likewise.
53518 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
53519 * genmk.rb (PModule): Assign space to common symbols when linking
53522 2005-01-20 Marco Gerards <metgerards@student.han.nl>
53524 * include/grub/mm.h (grub_mm_init_region): Change the type of the
53525 `unsigned' arguments to `grub_size_t'.
53526 (grub_malloc): Likewise.
53527 (grub_realloc): Likewise.
53528 (grub_memalign): Likewise.
53529 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
53530 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53531 * util/misc.c (grub_malloc): Likewise.
53532 (grub_realloc): Likewise.
53533 * kern/mm.c (get_header_from_pointer): Change the casts to
53534 `unsigned' into a cast to `grub_size_t'.
53536 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
53537 point to `currnode' when `currnode' is changed.
53539 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
53540 Schottelius <nico-linux@schottelius.org>.
53542 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
53544 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
53545 (note_path): Remove variable.
53546 (GRUB_IEEE1275_NOTE_NAME): New macro.
53547 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
53548 (grub_ieee1275_note_hdr): New structure.
53549 (grub_ieee1275_note_desc): Likewise.
53550 (grub_ieee1275_note): Likewise.
53551 (load_note): Remove `dir' argument. All callers updated. Remove
53552 `note_img' and `path'. Do not load a file from `note_path'.
53553 Initialize a struct grub_ieee1275_note and write that to `out'.
53554 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
53556 2005-01-05 Marco Gerards <metgerards@student.han.nl>
53558 * util/misc.c (grub_util_read_image): Revert last change. It
53559 called `grub_util_read_at', which seeks from the beginning of the
53562 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
53564 * TODO: Add note about endianness in grub-mkimage.
53565 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
53567 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
53568 (grub_mkimage_SOURCES): New target.
53569 * include/grub/kernel.h (grub_start_addr): Remove variable.
53570 (grub_end_addr): Likewise.
53571 (grub_total_module_size): Likewise.
53572 (grub_kernel_image_size): Likewise.
53573 (GRUB_MODULE_MAGIC): New constant.
53574 (grub_module_info): New structure.
53575 (grub_arch_modules_addr): New prototype.
53576 (grub_get_end_addr): Remove prototype.
53577 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
53578 * include/grub/powerpc/ieee1275/kernel.h: New file.
53579 * include/grub/util/misc.h (grub_util_get_fp_size): New
53581 (grub_util_read_at): Likewise.
53582 (grub_util_write_image_at): Likewise.
53583 * kern/main.c (grub_get_end_addr): Remove function.
53584 (grub_load_modules): Call grub_arch_modules_addr instead of using
53585 grub_end_addr. Look for a grub_module_info struct in memory. Use
53586 the grub_module_info fields instead of calling grub_get_end_addr
53587 as loop conditions. Move grub_add_unused_region code here.
53588 (grub_add_unused_region): Remove function.
53589 * kern/i386/pc/init.c: Include grub/cache.h.
53590 (grub_machine_init): Remove call to grub_get_end_addr. Remove
53591 one call to add_mem_region.
53592 (grub_arch_modules_addr): New function.
53593 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
53594 (grub_total_module_size): Likewise.
53595 Include grub/machine/kernel.h.
53596 (grub_arch_modules_addr): New function.
53597 * util/grub-emu.c (grub_end_addr): Remove variable.
53598 (grub_total_module_size): Likewise.
53599 (grub_arch_modules_addr): New function.
53600 * util/misc.c: Include unistd.h.
53601 (grub_util_get_fp_size): New function.
53602 (grub_util_read_at): Likewise.
53603 (grub_util_write_image_at): Likewise.
53604 (grub_util_read_image): Call grub_util_read_at.
53605 (grub_util_write_image): Call grub_util_write_image_at.
53606 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
53607 additional memory in kernel_img for a struct grub_module_info.
53608 Fill in that grub_module_info.
53609 * util/powerpc/ieee1275/grub-mkimage.c: New file.
53611 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53613 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
53615 * include/grub/powerpc/ieee1275/ieee1275.h
53616 (grub_ieee1275_milliseconds): New prototype.
53617 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
53619 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
53620 grub_ieee1275_milliseconds.
53622 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53624 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
53626 (find_options): New function.
53627 (cmain): Call find_options.
53628 * include/grub/powerpc/ieee1275/ieee1275.h
53629 (grub_ieee1275_realmode): New extern variable.
53630 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
53631 grub_map if grub_ieee1275_realmode is false.
53633 2004-12-29 Marco Gerards <metgerards@student.han.nl>
53635 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
53636 lines are inserted and make it work like readline. Reported by
53637 Vincent Pelletier <subdino2004@yahoo.fr>.
53639 2004-12-28 Marco Gerards <metgerards@student.han.nl>
53641 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
53643 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
53644 `kern/powerpc/cache.S'.
53646 2004-12-27 Marco Gerards <metgerards@student.han.nl>
53648 * genmk.rb: Handle the `Program' class in the main loop. Written
53649 by Johan Rydberg <jrydberg@gnu.org>.
53650 (Program): New class.
53651 (programs): New variable.
53652 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
53653 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
53654 instead of "grub/kernel.h". Include <grub/machine/init.h>.
53655 (help_arch): Function removed.
53656 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
53657 `powerpc/libgcc.h' and `loader.h'.
53658 (pkgdata_PROGRAMS): New variable.
53659 (sbin_UTILITIES): Variable removed.
53660 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
53661 (grubof_SOURCES): Variable re-defined so it only includes the
53662 core functionality.
53663 (grubof_CFLAGS): Remove `-DGRUBOF'.
53664 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
53665 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
53666 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
53667 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
53668 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
53669 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
53670 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
53671 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
53672 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
53673 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
53674 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
53675 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
53676 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
53677 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
53678 (pc_mod_CFLAGS): New variables.
53679 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
53680 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
53681 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
53682 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
53684 * include/grub/i386/pc/init.h (grub_os_area_addr)
53685 (rub_os_area_size): ... to here.
53686 * include/grub/powerpc/ieee1275/ieee1275.h
53687 (grub_ieee1275_entry_fn): Export symbol.
53688 * include/grub/powerpc/ieee1275/init.h: New file.
53689 * include/grub/powerpc/libgcc.h: Likewise.
53690 * include/grub/cache.h: Likewise.
53691 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
53692 <hollis@penguinppc.org>.
53693 * kern/dl.c: Include <grub/cache.h>.
53694 (grub_dl_flush_cache): New function.
53695 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
53697 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
53698 (grub_console_init): Removed prototypes.
53699 (grub_machine_init): Don't initialize the modules anymore.
53700 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
53702 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
53703 Macro undef removed.
53704 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
53705 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
53706 relocation `R_PPC_REL32'. Return an error when the relocation is
53708 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
53709 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
53710 * util/misc.c (grub_arch_sync_caches): Likewise.
53712 2004-12-19 Marco Gerards <metgerards@student.han.nl>
53714 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
53715 `symlist.c', add `grubof_symlist.c'.
53716 (symlist.c): Variable removed.
53717 (grubof_HEADERS): Variable added.
53718 (grubof_symlist.c): New target.
53719 (kernel_syms.lst): Use `grubof_HEADERS' instead of
53720 `kernel_img_HEADERS'.
53721 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
53722 * kern/powerpc/dl.c: New file.
53723 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
53725 (grub_arch_dl_relocate_symbols): Likewise.
53726 (grub_register_exported_symbols): Likewise.
53728 2004-12-13 Marco Gerards <metgerards@student.han.nl>
53730 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
53731 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
53732 to fail instead. Reported by Vincent Pelletier
53733 <subdino2004@yahoo.fr>.
53735 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
53736 it is not allocated. Reported by Vincent Pelletier
53737 <subdino2004@yahoo.fr>.
53739 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
53740 output so the output looks better.
53742 2004-12-04 Marco Gerards <metgerards@student.han.nl>
53744 Modulize the partition map support and add support for the amiga
53747 * commands/ls.c: Include <grub/partition.h> instead of
53748 <grub/machine/partition.h>.
53749 * kern/disk.c: Likewise.
53750 * kern/rescue.c: Likewise.
53751 * loader/i386/pc/chainloader.c: Likewise.
53752 * normal/cmdline.c: Likewise.
53753 * kern/powerpc/ieee1275/init.c: Likewise.
53754 (grub_machine_init): Call `grub_pc_partition_map_init',
53755 `grub_amiga_partition_map_init' and
53756 `grub_apple_partition_map_init'.
53757 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
53758 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
53759 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
53760 `partition.h' and `pc_partition.h'.
53761 (grub_setup_SOURCES): Remove
53762 `disk/i386/pc/partition.c'. Add `kern/partition.c',
53763 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53764 (grub_emu_SOURCES): Likewise.
53765 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
53766 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
53767 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
53768 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53769 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
53770 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53771 (grubof_SOURCES): Likewise.
53772 * disk/i386/pc/partition.c: File removed.
53773 * disk/powerpc/ieee1275/partition.c: Likewise.
53774 * include/grub/powerpc/ieee1275/partition.h: Likewise.
53775 * include/grub/i386/pc/partition.h: Likewise.
53776 * kern/partition.c: New file.
53777 * partmap/amiga.c: Likewise.
53778 * partmap/apple.c: Likewise.
53779 * partmap/pc.c: Likewise.
53780 * include/grub/partition.h: Likewise..
53781 * include/grub/pc_partition.h: Likewise.
53782 * util/grub-emu.c: Include <grub/partition.h> instead of
53783 <grub/machine/partition.h>.
53784 (main): Call `grub_pc_partition_map_init',
53785 `grub_amiga_partition_map_init' and
53786 `grub_apple_partition_map_init' and deinitialize afterwards.
53787 * util/i386/pc/biosdisk.c: Include `#include
53788 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53789 `<grub/machine/partition.h>'.
53790 * util/i386/pc/grub-setup.c: Likewise.
53791 * util/i386/pc/biosdisk.c: Likewise.
53792 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
53793 partition information in case of a PC partition.
53794 * util/i386/pc/grub-setup.c: Include `#include
53795 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53796 `<grub/machine/partition.h>'.
53797 (setup): Only access the PC specific partition information in case
53800 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
53802 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53803 (grub_longjmp): Likewise.
53804 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53806 * normal/powerpc/setjmp.S: New file.
53807 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53808 `normal/powerpc/setjmp.S'.
53809 (grubof_CFLAGS): Add `-DGRUBOF'.
53810 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53811 [GRUB_UTIL && !GRUBOF].
53813 2004-11-16 Marco Gerards <metgerards@student.han.nl>
53815 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53816 property named `name'. Correctly handle the error returned by
53817 `grub_ieee1275_finddevice' if a device can not be opened.
53819 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53821 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53822 `actual' for negativity.
53823 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53826 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53828 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53829 (PAGE_OFFSET): New macro.
53830 (CRTC_ADDR_PORT): Likewise.
53831 (CRTC_DATA_PORT): Likewise.
53832 (START_ADDR_HIGH_REGISTER): Likewise.
53833 (START_ADDR_LOW_REGISTER): Likewise.
53834 (GRAPHICS_ADDR_PORT): Likewise.
53835 (GRAPHICS_DATA_PORT): Likewise.
53836 (READ_MAP_REGISTER): Likewise.
53837 (INPUT_STATUS1_REGISTER): Likewise.
53838 (INPUT_STATUS1_VERTR_BIT): Likewise.
53839 (page): New variable.
53840 (wait_vretrace): New function.
53841 (set_read_map): Likewise.
53842 (set_start_address): Likewise.
53843 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53845 (check_vga_mem): Take the page into account.
53846 (write_char): Likewise.
53847 (write_cursor): Likewise.
53848 (scroll_up): Likewise. Copy the page to the page that is not
53849 shown and switch between both pages.
53850 (grub_vga_putchar): Fix off by one error.
53851 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53854 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53856 Add support for iso9660 (including rockridge).
53858 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53859 (iso9660_mod_SOURCES): New variable.
53860 (iso9660_mod_CFLAGS): Likewise.
53861 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53862 * include/grub/fs.h (grub_iso9660_init): New prototype.
53863 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53864 * fs/iso9660.c: New file.
53866 * include/grub/misc.h (grub_strncat): New prototype.
53867 * kern/misc.c (grub_strncat): New function.
53869 * fs/hfs.c (grub_hfs_mount): Translate the error
53870 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
53871 * fs/jfs.c (grub_jfs_mount): Likewise.
53872 * fs/ufs.c (grub_ufs_mount): Likewise.
53874 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
53876 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
53877 which initialized BAT registers.
53878 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
53879 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53881 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
53882 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53884 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
53885 (grub_mapclaim): Likewise.
53886 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
53887 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
53890 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
53892 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
53893 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
53894 -ffreestanding and -msoft-float.
53896 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
53898 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
53899 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
53900 set in grub_ieee1275_flags.
53902 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
53904 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
53906 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
53907 grub_console_init first.
53908 Change the memory range used for grub_ieee1275_claim and
53909 grub_mm_init_region.
53910 Print an error message if the claim fails.
53911 Include <grub/misc.h>.
53913 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
53915 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
53916 Call grub_children_iterate for device nodes of type `scsi',
53918 (grub_ofdisk_open): Remove manual device alias resolution.
53919 Fix memory leak when device cannot be opened.
53920 * include/grub/powerpc/ieee1275/ieee1275.h
53921 (grub_children_iterate): New prototype.
53922 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
53924 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53925 Return -1 if args.size was -1.
53927 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53929 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
53930 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
53931 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
53932 Open Firmware's memory for it; claim memory from _start to _end.
53933 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
53934 (_end): New extern.
53935 (_start): Zero BSS from __bss_start to _end.
53936 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53938 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
53940 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53942 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
53943 -1 if args.base was -1.
53945 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
53947 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
53948 escape sequence instead of a literal ^L. Also call
53949 grub_ofconsole_gotoxy.
53951 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
53953 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
53954 void * arguments to grub_addr_t. All callers updated. Also make
53955 the `result' argument optional.
53956 (grub_ieee1275_release): change void * arguments to grub_addr_t.
53957 All callers updated.
53959 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
53961 * commands/ls.c (grub_ls_list_files): Use the string following the
53962 initial ')', if present, as the filesystem path.
53963 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
53965 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
53967 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
53969 Make the source code of the menu interface more readable.
53971 * normal/menu.c: Include grub/mm.h.
53972 (TERM_WIDTH): New macro.
53973 (TERM_HEIGHT): Likewise.
53974 (TERM_INFO_HEIGHT): Likewise.
53975 (TERM_MARGIN): Likewise.
53976 (TERM_SCROLL_WIDTH): Likewise.
53977 (TERM_TOP_BORDER_Y): Likewise.
53978 (TERM_LEFT_BORDER_X): Likewise.
53979 (TERM_BORDER_WIDTH): Likewise.
53980 (TERM_MESSAGE_HEIGHT): Likewise.
53981 (TERM_BORDER_HEIGHT): Likewise.
53982 (TERM_NUM_ENTRIES): Likewise.
53983 (TERM_FIRST_ENTRY_Y): Likewise.
53984 (TERM_ENTRY_WIDTH): Likewise.
53985 (TERM_CURSOR_X): Likewise.
53986 (draw_border): Use macros instead of magic numbers.
53987 (print_entry): Likewise.
53988 (print_entries): Likewise.
53989 (run_menu): Likewise. Also, handle the key 'e'.
53990 (run_menu_entry): Ignore empty command lines.
53991 (print_message): Added a new argument EDIT. If EDIT is true,
53992 print a different message.
53993 (init_page): Likewise.
53994 (edit_menu_entry): New function. Not implemented yet.
53996 2004-09-17 Marco Gerards <metgerards@student.han.nl>
53998 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
53999 can be loaded from normal mode.
54001 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
54003 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
54004 (multiboot_mod_CFLAGS): New variables.
54005 * loader/i386/pc/linux_normal.c: New file.
54006 * loader/i386/pc/multiboot_normal.c: Likewise.
54008 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
54009 attribute `unused'.
54011 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
54012 `fdiro' to read the mode information from instead of `diro'.
54014 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
54015 looking up a symlink.
54017 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
54019 * normal/command.c (grub_command_execute): Don't parse the
54020 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
54021 flags of the command.
54023 * normal/menu.c (grub_menu_run): Fix typo.
54025 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
54027 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
54029 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
54030 `y + 1' instead of `y - 1'.
54032 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
54034 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
54036 From Hollis Blanchard <hollis@penguinppc.org>:
54037 * kern/misc.c (memmove): New alias for grub_memmove.
54038 (memcmp): New alias for grub_memcmp.
54039 (memset): New alias for grub_memset.
54040 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
54041 Change "int handle" to "grub_ieee1275_phandle_t handle".
54042 * include/grub/powerpc/ieee1275/ieee1275.h
54043 (grub_ieee1275_get_property): Likewise.
54045 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
54047 Added normal mode command `chainloader' as module chain.mod, which
54048 depends on normal.mod and _chain.mod.
54050 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
54051 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
54052 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
54054 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
54055 but arguments parsing moved to ...
54056 (grub_chainloader_cmd): ... here. New function.
54057 * include/grub/i386/pc/chainloader.h: New file.
54058 * loader/i386/pc/chainloader_normal.c: Likewise.
54060 2004-09-11 Marco Gerards <metgerards@student.han.nl>
54062 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
54063 (grub_mkimage_LDFLAGS): Likewise.
54064 (grub_emu_SOURCES): Likewise.
54065 (kernel_img_HEADERS): Added fshelp.h.
54066 * fs/ext2.c: Include <grub/fshelp.h>.
54067 (FILETYPE_REG): New macro.
54068 (FILETYPE_INO_REG): Likewise.
54069 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
54071 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
54073 (grub_fshelp_node): New struct.
54074 (grub_ext2_data): Added member `diropen'. Changed member `inode'
54076 (grub_ext2_get_file_block): Removed function.
54077 (grub_ext2_read_block): New function.
54078 (grub_ext2_read_file): Replaced parameter `data' by `node'.
54079 This function was written.
54080 (grub_ext2_mount): Read the root inode. Create a diropen struct.
54081 (grub_ext2_find_file): Removed function.
54082 (grub_ext2_read_symlink): New function.
54083 (grub_ext2_iterate_dir): Likewise.
54084 (grub_ext2_open): Rewritten.
54085 (grub_ext2_dir): Rewritten.
54086 * include/grub/fshelp.h: New file.
54087 * fs/fshelp.c: Likewise.
54089 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
54091 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
54092 (print_message): Add a missing newline.
54093 (run_menu): Added timeout support.
54094 (run_menu_entry): New local function.
54095 (grub_menu_run): Added support for booting.
54097 * kern/loader.c (grub_loader_is_loaded): New function.
54099 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
54100 (grub_get_rtc): Exported.
54102 * include/grub/i386/pc/time.h: Include grub/symbol.h.
54103 (grub_get_rtc): Exported.
54105 * include/grub/normal.h (struct grub_command_list): Remove
54106 constant from the member `command'.
54108 * include/grub/loader.h (grub_loader_is_loaded): Declared.
54110 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
54112 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
54114 2004-08-28 Marco Gerards <metgerards@student.han.nl>
54116 Add support for the JFS filesystem.
54118 * fs/jfs.c: New file.
54119 * include/grub/fs.h (grub_jfs_init): New prototype.
54120 (grub_jfs_fini): New prototype.
54121 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
54122 (grub_emu_SOURCES): Likewise.
54123 (pkgdata_MODULES): Add jfs.mod.
54124 (jfs_mod_SOURCES): New variable.
54125 (jfs_mod_CFLAGS): Likewise.
54126 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
54127 (grubof_SOURCES): Likewise.
54128 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
54130 * fs/fat.c (grub_fat_find_dir): Convert the filename little
54131 endian to the host endian.
54132 (grub_fat_utf16_to_utf8): Move function from there...
54133 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
54134 the endianness of the source string anymore.
54135 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
54137 2004-08-24 Marco Gerards <metgerards@student.han.nl>
54139 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
54140 (grub_boot_fini) [GRUB_UTIL]: Likewise.
54141 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
54142 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
54144 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
54145 (grub_hfs_iterate_dir): Make the function static. Add prototypes
54146 for `node_found' and `it_dir'.
54147 (grub_hfs_dir): Add prototype for `dir_hook'.
54149 * fs/minix.c (grub_minix_get_file_block): Add prototype for
54150 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
54151 and `indir32' to silence a gcc warning.
54153 * include/grub/fs.h (grub_hfs_init): New prototype.
54154 (grub_hfs_fini): Likewise.
54157 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
54159 Each disk device has its own id now. This is useful to make use
54160 of multiple disk devices.
54162 * include/grub/disk.h (grub_disk_dev_id): New enum.
54163 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
54164 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
54166 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
54167 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54169 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
54170 GRUB_DISK_DEVICE_OFDISK_ID as an id.
54172 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
54173 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54175 * include/grub/disk.h (struct grub_disk_dev): Added a new member
54176 "id" which is used by the cache manager.
54178 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
54181 2004-08-18 Marco Gerards <metgerards@student.han.nl>
54183 * fs/hfs.c: New file.
54184 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
54185 (grub_emu_SOURCES): Likewise.
54186 (pkgdata_MODULES): Add hfs.mod.
54187 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
54188 (grubof_SOURCES): Likewise.
54189 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
54191 * include/grub/misc.h (grub_strncasecmp): Add prototype.
54192 * kern/misc.c (grub_strncasecmp): Add function.
54194 2004-08-14 Marco Gerards <metgerards@student.han.nl>
54196 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
54199 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
54200 (grub_ext2_dir): In case the directory entry type is unknown, read
54203 2004-08-02 Peter Bruin <pjbruin@dds.nl>
54205 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
54206 grub_load_linux instead of grub_rescue_cmd_linux as second
54207 argument of grub_rescue_register_command.
54209 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
54211 2004-07-27 Marco Gerards <metgerards@student.han.nl>
54213 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
54215 * commands/boot.c: Remove the check for `GRUB_UTIL'.
54216 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
54217 `loader/powerpc/ieee1275/linux.c',
54218 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
54219 * include/grub/powerpc/ieee1275/ieee1275.h
54220 (grub_ieee1275_release): New prototype.
54221 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
54222 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
54223 normal, boot, linux and linux_normal.
54224 * loader/powerpc/ieee1275/linux.c: New file.
54225 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
54227 2004-07-12 Marco Gerards <metgerards@student.han.nl>
54229 * normal/arg.c (grub_arg_parse): Correct error handling after
54230 reallocating the argumentlist (check if `argl' is not null instead
54231 of checking if `args' is not null).
54232 * kern/mm.c (grub_realloc): Return the same pointer when using the
54233 same region, instead of returning the header address.
54235 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54237 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
54238 one block instead of two when looking for the initial partition.
54239 (grub_partition_probe): Initialize the local variable `p' with 0.
54240 Use base 10 for the grub_strtoul call.
54241 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
54242 need for one local variable.
54243 (grub_strtoul): Don't add the new value to `num', instead of that
54246 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54248 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
54249 (pxeboot_img_SOURCES): New variable.
54250 (pxeboot_img_ASFLAGS): Likewise.
54251 (pxeboot_img_LDFLAGS): Likewise.
54252 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
54253 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
54254 <lode_leroy@hotmail.com>.
54256 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54258 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
54259 there was no input.
54261 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54263 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
54264 the history buffer logic.
54266 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54268 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
54269 (FILETYPE_INO_SYMLINK): New macros.
54270 (grub_ext2_find_file): Check if the node is a directory using the
54271 inode stat information instead of using the filetype in the
54272 dirent. Exclude the first character of an absolute symlink.
54273 (grub_ext2_dir): Mask out the filetype part of the mode member of
54276 2004-05-24 Marco Gerards <metgerards@student.han.nl>
54278 Add support for UFS version 1 and 2. Add support for the minix
54279 filesystem version 1 and 2, both the variants with 14 and 30 long
54282 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
54284 (grub_emu_SOURCES): Likewise.
54285 (pkgdata_MODULES): Add ufs.mod and minix.mod.
54286 (ufs_mod_SOURCES): New variable.
54287 (ufs_mod_CFLAGS): Likewise.
54288 (minix_mod_SOURCES): Likewise.
54289 (minix_mod_CFLAGS): Likewise.
54290 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
54292 (grubof_SOURCES): Likewise.
54293 * fs/ufs.c: New file.
54294 * fs/minix.c: New file.
54295 * include/grub/fs.h (grub_ufs_init): New prototype.
54296 (grub_ufs_fini): Likewise.
54297 (grub_minix_init): Likewise.
54298 (grub_minix_fini): Likewise.
54299 * util/grub-emu.c (main): Initialize and deinitialize UFS and
54302 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
54304 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
54305 commands/ls.c, commands/terminal.c, commands/boot.c,
54306 commands/cmp.c and commands/cat.c.
54307 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
54309 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
54312 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54314 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
54315 and grub_, respectively. Because the conversion is trivial and
54316 mechanical, I omit the details here. Please refer to the CVS
54317 if you need more information.
54319 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54321 * include/pupa: Renamed to ...
54322 * include/grub: ... this.
54323 * util/i386/pc/pupa-mkimage.c: Renamed to ...
54324 * util/i386/pc/grub-mkimage.c: ... this.
54325 * util/i386/pc/pupa-setup.c: Renamed to ...
54326 * util/i386/pc/grub-setup.c: ... this.
54327 * util/pupa-emu.c: Renamed to ...
54328 * util/grub-emu.c: ... this.
54330 2004-03-29 Marco Gerards <metgerards@student.han.nl>
54332 Add support for the newworld apple macintosh (PPC). This has been
54333 tested on the powerbook 2000 only. It only adds support for
54334 generic ieee1275 functions, console and disk support. This should
54335 be easy to port to other architectures with support for Open
54338 * configure.ac: Accept the powerpc as host_cpu. In the case of
54339 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
54340 specific tests are only executed while building for the i386.
54341 Inverse test for crosscompile.
54342 * genmk.rb (Utility): Allow assembler files.
54343 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
54344 * conf/powerpc-ieee1275.rmk: New file.
54345 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
54346 * disk/powerpc/ieee1275/partition.c: Likewise.
54347 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
54348 * include/pupa/powerpc/ieee1275/console.h: Likewise.
54349 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
54350 * include/pupa/powerpc/ieee1275/time.h: Likewise.
54351 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
54352 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
54353 * include/pupa/powerpc/ieee1275/loader.h
54354 * include/pupa/powerpc/setjmp.h: Likewise.
54355 * include/pupa/powerpc/types.h: Likewise.
54356 * kern/powerpc/ieee1275/init.c: Likewise.
54357 * kern/powerpc/ieee1275/openfw.c: Likewise.
54358 * term/powerpc/ieee1275/ofconsole.c: Likewise.
54360 These files were written by Johan Rydberg
54361 (jrydberg@night.trouble.net) and I only modified them slightly.
54363 * boot/powerpc/ieee1275/cmain.c: New file.
54364 * boot/powerpc/ieee1275/crt0.S: Likewise.
54365 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
54366 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
54368 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
54370 * Makefile.in: Update copyright.
54371 * genmodsrc.sh: Likewise.
54372 * gensymlist.sh: Likewise.
54373 * term/i386/pc/vga.c: Indent correctly.
54375 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
54376 bugreporting address.
54377 * util/i386/pc/pupa-setup.c (usage): Likewise,
54378 (main): Call pupa_ext2_init and pupa_ext2_fini.
54380 * fs/fat.c (log2): Renamed to ...
54381 (fat_log2): ... this.
54382 All callers changed.
54383 * kern/misc.c (memcpy): Alias to pupa_memmove.
54384 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
54386 * util/console.c (pupa_ncurses_fini): Return 0.
54388 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
54389 Move fail label here.
54390 [__GNU__]: Don't warn when using stat.
54391 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
54392 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
54393 long int. Use strtol instead of strtoul.
54395 2004-03-14 Marco Gerards <metgerards@student.han.nl>
54397 * commands/boot.c: New file.
54398 * commands/cat.c: Likewise.
54399 * commands/cmp.c: Likewise.
54400 * commands/ls.c: Likewise.
54401 * commands/terminal.c: Likewise.
54402 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
54403 (pupa_register_command): Changed interface to match the new
54405 (pupa_command_execute): Changed (almost rewritten) so it uses
54406 pupa_split_command. Added support for setting variables using the
54408 (rescue_command): Changed to work with the new argument parser.
54409 (terminal_command): Moved from here to commands/terminal.c.
54410 (set_command): New function.
54411 (unset_command): New function.
54412 (insmod_command): New function.
54413 (rmmod_command): New function.
54414 (lsmod_command): New function.
54415 (pupa_command_init): Don't initialize the command terminal
54416 anymore. Initialize the commands set, unset, insmod, rmmod and
54418 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
54419 (kernel_img_HEADERS): Add arg.h and env.h.
54420 (pupa_mkimage_LDFLAGS): Add kern/env.c.
54421 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
54422 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
54424 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
54426 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
54427 (boot_mod_SOURCES): New variable.
54428 (terminal_mod_SOURCES): Likewise.
54429 (ls_mod_SOURCES): Likewise.
54430 (cmp_mod_SOURCES): Likewise.
54431 (cat_mod_SOURCES): Likewise.
54433 * normal/arg.c: New file.
54434 * kern/env.c: Likewise.
54435 * include/pupa/arg.h: Likewise.
54436 * include/pupa/env.h: Likewise.
54437 * font/manager.c (font_command): Changed to match argument parsing
54439 (PUPA_MOD_INIT): Likewise.
54440 * hello/hello.c (pupa_cmd_hello): Likewise.
54441 (PUPA_MOD_INIT): Likewise.
54442 * include/pupa/disk.h: Include <pupa/device.h>.
54443 (pupa_print_partinfo): New prototype.
54444 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
54445 (pupa_dl_get_prefix): Likewise.
54446 * include/pupa/misc.h: Include <pupa/err.h>.
54447 (pupa_isgraph): New prototype.
54448 (pupa_isdigit): Likewise.
54449 (pupa_split_cmdline): Likewise.
54450 * include/pupa/normal.h: Include <pupa/arg.h>.
54451 (pupa_command): Changed the prototype of the member `func' to
54452 match the argument parsing interface. Added member `options'.
54453 (pupa_register_command): Updated to match function.
54454 (pupa_arg_parse): New prototype.
54455 (pupa_hello_init) [PUPA_UTIL]: New prototype.
54456 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
54457 (pupa_ls_init) [PUPA_UTIL]: Likewise.
54458 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
54459 (pupa_cat_init) [PUPA_UTIL]: Likewise.
54460 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
54461 (pupa_boot_init) [PUPA_UTIL]: Likewise.
54462 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
54463 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
54464 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
54465 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
54466 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
54467 * kern/disk.c: Include <pupa/file.h>.
54468 (pupa_print_partinfo): New function.
54469 * kern/dl.c: Include <pupa/env.h>.
54470 (pupa_dl_dir): Variable removed.
54471 (pupa_dl_load): Use the environment variable `prefix' instead of
54472 the variable pupa_dl_dir.
54473 (pupa_dl_set_prefix): Function removed.
54474 (pupa_dl_get_prefix): Likewise.
54475 * kern/i386/pc/init.c: Include <pupa/env.h>.
54476 (pupa_machine_init): Use the environment variable `prefix' instead of
54477 using pupa_dl_set_prefix to set the prefix.
54478 * kern/main.c: Include <pupa/env.h>.
54479 (pupa_set_root_dev): Use the environment variable `prefix' instead of
54480 using pupa_dl_get_prefix to get the prefix.
54481 * kern/misc.c: Include <pupa/env.h>.
54482 (pupa_isdigit): New function.
54483 (pupa_isgraph): Likewise.
54484 (pupa_ftoa): Likewise.
54485 (pupa_vsprintf): Added support for printing values of the type
54486 `double'. Make it possible to format variable output when using
54487 formatting like `%1.2%f'.
54488 (pupa_split_cmdline): New function.
54489 * kern/rescue.c: Include <pupa/env.h>.
54490 (next_word): Removed function.
54491 (pupa_rescue_cmd_prefix): Likewise.
54492 (pupa_rescue_cmd_set): New function.
54493 (pupa_rescue_cmd_unset): New function.
54494 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
54495 split the command line instead of splitting it here. Added
54496 support for setting variables using the syntax `foo=bar'. Don't
54497 initialize the prefix command anymore. Initialized the set and
54499 * normal/cmdline.c: Include <pupa/env.h>.
54500 (pupa_tab_complete): Added prototypes for print_simple_completion,
54501 print_partition_completion, add_completion, iterate_commands,
54502 iterate_dev, iterate_part and iterate_dir. Moved code to print
54503 partition information from here to kern/disk.c.
54504 (pupa_cmdline_run): Don't check if the function exists anymore.
54505 * normal/main.c: Include <pupa/env.h>.
54506 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
54507 instead of using pupa_dl_get_prefix to get the prefix.
54508 * term/i386/pc/vga.c: Include <pupa/arg.h>.
54509 (check_vga_mem): Cast pointers to `void *' to silence a gcc
54511 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
54512 (pupa_vga_setcolor): Declare unused variables with `__attribute__
54513 ((unused))' to silence a gcc warning.
54514 (pupa_vga_setcolor): Likewise.
54515 (debug_command): Changed to match argument parsing
54517 * util/pupa-emu.c: Include <pupa/env.h>.
54518 (options): Added 0's for unused fields to silence a gcc warning.
54520 (main): Use the environment variable `prefix' instead of using
54521 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
54522 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
54525 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
54526 * util/misc.c: Include <malloc.h>.
54527 (pupa_malloc): Rewritten so errors are correctly reported.
54528 (pupa_realloc): Likewise.
54529 (pupa_memalign): Likewise.
54530 (pupa_mm_init_region): Declare unused variables with
54531 `__attribute__ ((unused))' to silence a gcc warning.
54532 * normal/i386/setjmp.S: Remove tab at the end of the file to
54533 silence a gcc warning.
54534 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
54535 variables with `__attribute__ ((unused))' to silence a gcc
54537 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
54538 local variable i unsigned to silence a gcc warning.
54540 * kern/term.c: Include <pupa/misc.h>.
54541 (pupa_more_lines): New variable.
54542 (pupa_more): Likewise.
54543 (pupa_putcode): When the pager is active pause at the end of every
54545 (pupa_set_more): New function.
54546 * include/pupa/term.h (pupa_set_more): New prototype.
54549 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
54551 Now this project is GRUB 2 rather than PUPA. The location of
54552 the CVS repository was moved to GRUB's.
54554 * configure.ac: Use bug-grub as the reporting address.
54555 Use GRUB instead of PUPA.
54556 Change the version number to 1.90.
54558 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
54560 * genkernsyms.sh: Updated copyright information.
54561 * genmk.rb: Likewise.
54562 * genmodsrc.sh: Likewise.
54563 * gensymlist.sh: Likewise.
54564 * boot/i386/pc/boot.S: Likewise.
54565 * boot/i386/pc/diskboot.S: Likewise.
54566 * disk/i386/pc/biosdisk.c: Likewise.
54567 * disk/i386/pc/partition.c: Likewise.
54568 * font/manager.c: Likewise.
54569 * fs/ext2.c: Likewise.
54570 * fs/fat.c: Likewise.
54571 * include/pupa/boot.h: Likewise.
54572 * include/pupa/device.h: Likewise.
54573 * include/pupa/disk.h: Likewise.
54574 * include/pupa/dl.h: Likewise.
54575 * include/pupa/elf.h: Likewise.
54576 * include/pupa/err.h: Likewise.
54577 * include/pupa/file.h: Likewise.
54578 * include/pupa/font.h: Likewise.
54579 * include/pupa/fs.h: Likewise.
54580 * include/pupa/kernel.h: Likewise.
54581 * include/pupa/loader.h: Likewise.
54582 * include/pupa/misc.h: Likewise.
54583 * include/pupa/mm.h: Likewise.
54584 * include/pupa/net.h: Likewise.
54585 * include/pupa/normal.h: Likewise.
54586 * include/pupa/rescue.h: Likewise.
54587 * include/pupa/setjmp.h: Likewise.
54588 * include/pupa/symbol.h: Likewise.
54589 * include/pupa/term.h: Likewise.
54590 * include/pupa/types.h: Likewise.
54591 * include/pupa/i386/setjmp.h: Likewise.
54592 * include/pupa/i386/types.h: Likewise.
54593 * include/pupa/i386/pc/biosdisk.h: Likewise.
54594 * include/pupa/i386/pc/boot.h: Likewise.
54595 * include/pupa/i386/pc/console.h: Likewise.
54596 * include/pupa/i386/pc/init.h: Likewise.
54597 * include/pupa/i386/pc/kernel.h: Likewise.
54598 * include/pupa/i386/pc/linux.h: Likewise.
54599 * include/pupa/i386/pc/loader.h: Likewise.
54600 * include/pupa/i386/pc/memory.h: Likewise.
54601 * include/pupa/i386/pc/multiboot.h: Likewise.
54602 * include/pupa/i386/pc/partition.h: Likewise.
54603 * include/pupa/i386/pc/time.h: Likewise.
54604 * include/pupa/i386/pc/vga.h: Likewise.
54605 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
54606 * include/pupa/util/getroot.h: Likewise.
54607 * include/pupa/util/misc.h: Likewise.
54608 * include/pupa/util/resolve.h: Likewise.
54609 * kern/device.c: Likewise.
54610 * kern/disk.c: Likewise.
54611 * kern/dl.c: Likewise.
54612 * kern/err.c: Likewise.
54613 * kern/file.c: Likewise.
54614 * kern/fs.c: Likewise.
54615 * kern/loader.c: Likewise.
54616 * kern/main.c: Likewise.
54617 * kern/misc.c: Likewise.
54618 * kern/mm.c: Likewise.
54619 * kern/rescue.c: Likewise.
54620 * kern/term.c: Likewise.
54621 * kern/i386/dl.c: Likewise.
54622 * kern/i386/pc/init.c: Likewise.
54623 * kern/i386/pc/lzo1x.S: Likewise.
54624 * kern/i386/pc/startup.S: Likewise.
54625 * loader/i386/pc/chainloader.c: Likewise.
54626 * loader/i386/pc/linux.c: Likewise.
54627 * loader/i386/pc/multiboot.c: Likewise.
54628 * normal/cmdline.c: Likewise.
54629 * normal/command.c: Likewise.
54630 * normal/main.c: Likewise.
54631 * normal/menu.c: Likewise.
54632 * normal/i386/setjmp.S: Likewise.
54633 * term/i386/pc/console.c: Likewise.
54634 * term/i386/pc/vga.c: Likewise.
54635 * util/console.c: Likewise.
54636 * util/genmoddep.c: Likewise.
54637 * util/misc.c: Likewise.
54638 * util/pupa-emu.c: Likewise.
54639 * util/resolve.c: Likewise.
54640 * util/unifont2pff.rb: Likewise.
54641 * util/i386/pc/biosdisk.c: Likewise.
54642 * util/i386/pc/getroot.c: Likewise.
54643 * util/i386/pc/pupa-mkimage.c: Likewise.
54644 * util/i386/pc/pupa-setup.c: Likewise.
54646 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
54648 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
54649 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
54650 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
54651 reading and reset it after reading.
54652 (pupa_ext2_close): Return PUPA_ERR_NONE.
54654 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
54656 (struct linux_kernel_header): Add kernel_version and
54658 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
54659 pupa_file_read succeeds.
54660 (pupa_rescue_cmd_initrd): Implement.
54662 2003-12-03 Marco Gerards <metgerards@student.han.nl>
54664 * fs/ext2.c (pupa_ext2_label): New function.
54665 (pupa_ext2_fs): Added label.
54666 * fs/fat.c (pupa_fat_label): New function.
54667 (pupa_fat_fs): Added label.
54668 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
54670 * kern/misc.c (pupa_strndup): New function.
54671 * include/pupa/misc.h (pupa_strndup): New prototype.
54673 * include/pupa/normal.h: Include <pupa/err.h>.
54674 (pupa_set_history): New prototype.
54675 (pupa_iterate_commands): New prototype.
54676 * normal/cmdline.c: Include <pupa/machine/partition.h>,
54677 <pupa/disk.h>, <pupa/file.h>.
54678 (hist_size): New variable.
54679 (hist_lines): Likewise.
54680 (hist_end): Likewise.
54681 (hist_used): Likewise.
54682 (pupa_set_history): New function.
54683 (pupa_history_get): Likewise.
54684 (pupa_history_add): Likewise.
54685 (pupa_history_replace): Likewise.
54686 (pupa_tab_complete): Likewise.
54687 (pupa_cmdline_run): Added tab completion and history buffer. Tab
54688 completion shows partitionnames while completing partitions, this
54689 feature was suggested by Jeff Bailey.
54690 * normal/command.c (pupa_iterate_commands): New function.
54691 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
54692 (pupa_normal_init): Initialize history buffer.
54693 (PUPA_MOD_INIT): Likewise.
54694 (pupa_normal_fini): Free the history buffer.
54695 (PUPA_MOD_FINI): Likewise.
54697 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
54700 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
54701 * configure.ac [i386]: Check for regparam bug.
54702 (NESTED_FUNC_ATTR) [! i386]: Defined.
54704 2003-11-17 Marco Gerards <metgerards@student.han.nl>
54706 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
54707 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
54708 (pupa_emu_SOURCES): New variable.
54709 (pupa_emu_LDFLAGS): Likewise.
54710 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
54711 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
54712 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
54713 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54714 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
54715 (pupa_jmp_buf): New typedef.
54716 (pupa_setjmp) [PUPA_UTIL]: New macro.
54717 (pupa_longjmp) [PUPA_UTIL]: Likewise.
54718 * include/pupa/term.h (struct pupa_term): New member `refresh'.
54719 (pupa_refresh): New prototype.
54720 * include/pupa/util/getroot.h: New file.
54721 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
54723 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
54724 (pupa_rescue_cmd_cat): Likewise.
54725 (pupa_rescue_cmd_ls): Likewise.
54726 (pupa_rescue_cmd_testload): Likewise.
54727 (pupa_rescue_cmd_lsmod): Likewise.
54728 * normal/cmdline.c (pupa_cmdline_get): Likewise.
54729 * normal/menu.c (run_menu): Likewise.
54730 * kern/term.c (pupa_cls): Likewise.
54731 (pupa_refresh): New function.
54732 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
54733 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54734 * util/console.c: New file.
54736 * util/i386/pc/getroot.c: New file.
54737 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
54738 (pupa_putchar): New function.
54739 (pupa_refresh): Likewise.
54740 (xgetcwd): Function moved to ...
54741 (strip_extra_slashes): Likewise.
54742 (get_prefix): Likewise.
54743 * util/i386/pc/getroot.c: ... here.
54744 (find_root_device): Function moved and renamed to...
54745 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
54746 Changed all callers.
54747 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
54749 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
54750 Changed all callers.
54751 * util/misc.c (pupa_memalign): New function.
54752 (pupa_mm_init_region): Likewise.
54753 (pupa_register_exported_symbols): Likewise.
54754 (pupa_putchar): Function removed.
54755 * util/pupa-emu.c: New file.
54757 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
54759 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
54760 (_multiboot_mod_SOURCES): New variable.
54761 (_multiboot_mod_CFLAGS): Likewise.
54762 * loader/i386/pc/multiboot.c: New file.
54763 * include/pupa/i386/pc/multiboot.h: Likewise.
54764 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
54765 (pupa_multiboot_real_boot): New function.
54766 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
54767 (pupa_multiboot_real_boot): New prototype.
54768 (pupa_rescue_cmd_multiboot): Likewise
54769 (pupa_rescue_cmd_module): Likewise.
54771 * kern/loader.c (pupa_loader_set): Continue when
54772 pupa_loader_unload_func() fails.
54773 (pupa_loader_unset): New function.
54774 * include/pupa/loader.h (pupa_loader_unset): New prototype.
54776 * kern/misc.c (pupa_stpcpy): New function.
54777 * include/pupa/misc.h (pupa_stpcpy): New prototype.
54779 2003-11-12 Marco Gerards <metgerards@student.han.nl>
54781 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
54782 for available extensions.
54784 * include/pupa/i386/pc/time.h: New file.
54785 * kern/disk.c: Include <pupa/machine/time.h>.
54786 (PUPA_CACHE_TIMEOUT): New macro.
54787 (pupa_last_time): New variable.
54788 (pupa_disk_open): Flush the cache when there was a timeout.
54789 (pupa_disk_close): Reset the timer.
54790 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
54792 * util/misc.c: Include <sys/times.h>
54793 (pupa_get_rtc): New function.
54795 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54797 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54799 (pupa_ext2_get_file_block): Use blocks member.
54801 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54802 first block. Return -1 instead of pupa_errno on error.
54804 2003-10-27 Marco Gerards <metgerards@student.han.nl>
54806 * README: In the pupa-mkimage example use _chain instead of chain
54807 and ext2 instead of fat.
54808 * TODO: Replace ext2fs with jfs as an example. Add an item for
54809 adding journal playback for ext2fs.
54810 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54811 (pkgdata_MODULES): Added ext2.mod.
54812 (ext2_mod_SOURCES): New variable.
54813 (ext2_mod_CFLAGS): Likewise.
54814 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54815 * include/pupa/misc.h (pupa_strncpy): New prototype.
54816 (pupa_strcat): Likewise.
54817 (pupa_strncmp): Likewise.
54818 * kern/misc.c (pupa_strcat): Enable function.
54819 (pupa_strncpy): New function.
54820 (pupa_strncmp): Likewise.
54821 * fs/ext2.c: New file.
54823 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54824 when the read failed before retrying.
54825 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54826 (_FILE_OFFSET_BITS): Likewise.
54827 * configure.ac: Added AC_SYS_LARGEFILE.
54829 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54831 * genmk.rb (PModule#rule): Make sure to get only symbol names
54832 from the output of nm.
54833 Reported by Robert Millan <rmh.grub@aybabtu.com>.
54835 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54837 I forgot to check in these changes for a long time. This adds
54838 incomplete support for VGA console, and this is still very
54839 buggy. Also, a lot of consideration is required for I18N,
54840 UNICODE, and VGA font issues. Therefore, assume that this is
54841 such that "better than nothing".
54843 * font/manager.c: New file.
54844 * include/pupa/font.h: Likewise.
54845 * include/pupa/i386/pc/vga.h: Likewise.
54846 * term/i386/pc/vga.c: Likewise.
54847 * util/unifont2pff.rb: Likewise.
54849 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54850 (pkgdata_MODULES): Added vga.mod and font.mod.
54851 (vga_mod_SOURCES): New variables.
54852 (vga_mod_CFLAGS): Likewise.
54853 (font_mod_SOURCES): Likewise.
54854 (font_mod_CFLAGS): Likewise.
54856 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54858 * include/pupa/term.h: Include pupa/err.h.
54859 (struct pupa_term): Added init and fini.
54860 Changed the argument of putchar to pupa_uint32_t.
54862 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54863 (pupa_console_real_putchar): New prototype.
54864 (pupa_console_putchar): Removed.
54865 (pupa_console_checkkey): Exported.
54866 (pupa_console_getkey): Likewise.
54868 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
54871 * kern/term.c (pupa_term_set_current): Rewritten.
54872 (pupa_putchar): Likewise.
54873 (pupa_putcode): New function.
54875 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
54876 (pupa_console_real_putchar): ... this.
54877 (pupa_vga_set_mode): New function.
54878 (pupa_vga_get_font): Likewise.
54880 * normal/command.c: Include pupa/term.h.
54881 (terminal_command): New function.
54882 (pupa_command_init): Register the command "terminal".
54884 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
54885 (DISP_UP): Likewise.
54886 (DISP_RIGHT): Likewise.
54887 (DISP_DOWN): Likewise.
54888 (DISP_HLINE): Likewise.
54889 (DISP_VLINE): Likewise.
54890 (DISP_UL): Likewise.
54891 (DISP_UR): Likewise.
54892 (DISP_LL): Likewise.
54893 (DISP_LR): Likewise.
54895 * term/i386/pc/console.c (pupa_console_putchar): New function.
54897 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
54899 * util/resolve.c (pupa_util_resolve_dependencies): BUG
54900 FIX. Reverse the path_list.
54902 * include/pupa/normal.h: Export pupa_register_command and
54903 pupa_unregister_command.
54905 * hello/hello.c (pupa_cmd_hello): New module.
54906 * conf/i386-pc.rmk: Added hello.mod.
54908 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
54910 * kern/i386/pc/lzo1x.S: New file.
54912 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
54913 (compress_kernel): New variable.
54914 (generate_image): Heavily modified to support compressing a
54915 large part of the core image.
54917 * util/misc.c (pupa_util_read_image): Fix a file descriptor
54919 (pupa_util_load_image): New function.
54921 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
54922 (pupa_compressed_size): New variable.
54923 (codestart): Enable Gate A20 here.
54924 Decompress the compressed part of the core image.
54925 Rearrange the code to put functions and variables which are
54926 required for initialization in the non-compressed part.
54929 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
54932 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
54934 * include/pupa/i386/pc/kernel.h
54935 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
54936 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
54937 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54938 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54939 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
54941 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
54943 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
54944 (Utility#rule): Likewise.
54946 * configure.ac: Check if LZO is available.
54948 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
54950 * include/pupa/normal.h: New file.
54951 * include/pupa/setjmp.h: Likewise.
54952 * include/pupa/i386/setjmp.h: Likewise.
54953 * normal/cmdline.c: Likewise.
54954 * normal/command.c: Likewise.
54955 * normal/main.c: Likewise.
54956 * normal/menu.c: Likewise.
54957 * normal/i386/setjmp.S: Likewise.
54959 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
54960 (pupa_rescue_cmd_initrd): Likewise.
54962 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
54965 * kern/i386/pc/startup.S (translation_table): New variable.
54966 (translate_keycode): New function.
54967 (pupa_console_getkey): Call translate_keycode.
54969 * kern/rescue.c (attempt_normal_mode): New function.
54970 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
54971 it failed, print a message.
54973 * kern/mm.c (pupa_real_malloc): Print more information when a
54974 free magic is broken.
54975 (pupa_free): If the first free header is not free actually, set
54978 * kern/main.c (pupa_load_normal_mode): Just load the module
54980 (pupa_main): Don't print the message
54981 "Entering into rescue mode..." here.
54983 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
54985 (pupa_rescue_cmd_initrd): Likewise.
54986 (pupa_rescue_cmd_initrd): Likewise.
54988 * include/pupa/symbol.h (FUNCTION): Specify the type.
54989 (VARIABLE): Likewise.
54991 * include/pupa/err.h (pupa_err_t): Added
54992 PUPA_ERR_UNKNOWN_COMMAND.
54994 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
54995 (pupa_dl_get_prefix): Likewise.
54997 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
54998 Added _chain.mod and _linux.mod instead of chain.mod and
55000 (chain_mod_SOURCES): Renamed to ...
55001 (_chain_mod_SOURCES): ... this.
55002 (chain_mod_CFLAGS): Renamed to ...
55003 (_chain_mod_CFLAGS): ... this.
55004 (linux_mod_SOURCES): Renamed to ...
55005 (_linux_mod_SOURCES): ... this.
55006 (linux_mod_CFLAGS): Renamed to ...
55007 (_linux_mod_CFLAGS): ... this.
55008 (normal_mod_SOURCES): New variable.
55009 (normal_mod_CFLAGS): Likewise.
55010 (normal_mod_ASFLAGS): Likewise.
55012 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
55014 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
55017 * kern/dl.c (pupa_dl_ref): Refer depending modules
55019 (pupa_dl_unref): Unrefer depending modules recursively.
55020 Don't call pupa_dl_unload implicitly, because PUPA can crash if
55021 a module is unloaded before one depending on that module is
55023 (pupa_dl_unload): Unload depending modules explicitly,
55026 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
55028 * include/pupa/i386/pc/linux.h: New file.
55029 * loader/i386/pc/linux.c: Likewise.
55031 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
55033 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
55034 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
55035 of PUPA_CHAINLOADER_BOOT_SECTOR.
55037 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
55038 (pupa_linux_prot_size): New variable.
55039 (pupa_linux_tmp_addr): Likewise.
55040 (pupa_linux_real_addr): Likewise.
55041 (pupa_linux_boot_zimage): New function.
55042 (pupa_linux_boot_bzimage): Likewise.
55044 * kern/i386/pc/init.c (struct mem_region): New structure.
55045 (MAX_REGIONS): New macro.
55046 (mem_regions): New variable.
55047 (num_regions): Likewise.
55048 (pupa_os_area_addr): Likewise.
55049 (pupa_os_area_size): Likewise.
55050 (pupa_lower_mem): Likewise.
55051 (pupa_upper_mem): Likewise.
55052 (add_mem_region): New function.
55053 (compact_mem_regions): Likewise.
55054 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
55055 the size of the conventional memory and that of so-called upper
55056 memory (before the first memory hole).
55057 Instead of adding each found region to free memory, use
55058 add_mem_region and add them after removing overlaps.
55059 Also, add only 1/4 of the upper memory to free memory. The rest
55060 is used for loading OS images. Maybe this is ad hoc, but this
55061 makes it much easier to relocate OS images when booting.
55063 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
55064 (pupa_enter_rescue_mode): Don't register initrd and module.
55066 * kern/mm.c: Include pupa/dl.h.
55068 * kern/main.c: Include pupa/file.h and pupa/device.h.
55070 * kern/loader.c (pupa_loader_load_module_func): Removed.
55071 (pupa_loader_load_module): Likewise.
55073 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
55076 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
55077 (pupa_linux_tmp_addr): Likewise.
55078 (pupa_linux_real_addr): Likewise.
55079 (pupa_linux_boot_zimage): Likewise.
55080 (pupa_linux_boot_bzimage): Likewise.
55082 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
55083 (pupa_upper_mem): Likewise.
55084 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
55085 module is too dangerous.
55087 * include/pupa/loader.h (pupa_os_area_addr): Declared.
55088 (pupa_os_area_size): Likewise.
55089 (pupa_loader_set): Remove the first argument. Loader doesn't
55090 manage modules or initrd any longer.
55091 (pupa_loader_load_module): Removed.
55093 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
55094 (linux_mod_SOURCES): New variable.
55095 (linux_mod_CFLAGS): Likewise.
55097 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
55099 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
55100 the length of a blocklist correctly.
55102 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
55103 Use ioctl only if the OS file is a block device.
55104 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
55105 not very useful for normal files.
55107 * kern/main.c (pupa_set_root_dev): New function.
55108 (pupa_load_normal_mode): Likewise.
55109 (pupa_main): Call those above.
55111 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
55114 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
55116 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
55118 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
55119 (setup): Configure the installed partition information and the
55122 * loader/i386/pc/chainloader.c (my_mod): New variable.
55123 (pupa_chainloader_unload): New function.
55124 (pupa_rescue_cmd_chainloader): Refer itself.
55125 (PUPA_MOD_INIT): Save its own module in MY_MOD.
55127 * kern/i386/pc/startup.S (install_partition): Removed.
55128 (version_string): Likewise.
55129 (config_file): Likewise.
55130 (pupa_install_dos_part): New variable.
55131 (pupa_install_bsd_part): Likewise.
55132 (pupa_prefix): Likewise.
55133 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
55135 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
55137 (make_install_device): New function.
55138 (pupa_machine_init): Set the dl prefix.
55140 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
55141 (buf): Renamed to ...
55142 (linebuf): ... this.
55143 (pupa_rescue_cmd_prefix): New function.
55144 (pupa_rescue_cmd_insmod): Likewise.
55145 (pupa_rescue_cmd_rmmod): Likewise.
55146 (pupa_rescue_cmd_lsmod): Likewise.
55147 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
55150 * kern/mm.c (pupa_memalign): If failed even after invalidating
55151 disk caches, unload unneeded modules and retry.
55153 * kern/misc.c (pupa_memmove): New function.
55154 (pupa_memcpy): Removed.
55155 (pupa_strcpy): New function.
55156 (pupa_itoa): Made static.
55158 * kern/dl.c (pupa_dl_iterate): New function.
55159 (pupa_dl_ref): Likewise.
55160 (pupa_dl_unref): Likewise.
55161 (pupa_dl_unload): Return if succeeded or not.
55162 (pupa_dl_unload_unneeded): New function.
55163 (pupa_dl_unload_all): Likewise.
55164 (pupa_dl_init): Renamed to ...
55165 (pupa_dl_set_prefix): ... this.
55166 (pupa_dl_get_prefix): New function.
55168 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
55169 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
55170 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
55171 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
55172 (pupa_install_dos_part): Declared.
55173 (pupa_install_bsd_part): Likewise.
55174 (pupa_prefix): Likewise.
55175 (pupa_boot_drive): Likewise.
55177 * include/pupa/types.h: Fix a typo.
55179 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
55181 (pupa_memmove): Declared.
55182 (pupa_strcpy): Likewise.
55184 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
55185 pupa_mod_init takes one argument, its own module.
55186 (pupa_dl_unload_unneeded): Declared.
55187 (pupa_dl_unload_all): Likewise.
55188 (pupa_dl_ref): Likewise.
55189 (pupa_dl_unref): Likewise.
55190 (pupa_dl_iterate): Likewise.
55191 (pupa_dl_init): Renamed to ...
55192 (pupa_dl_set_prefix): ... this.
55193 (pupa_dl_get_prefix): Declared.
55195 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
55196 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
55198 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
55199 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
55201 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
55202 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
55204 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55206 * util/i386/pc/pupa-setup.c (setup): Define the internal
55207 function find_first_partition_start at the top level, because GCC
55208 3.0.x cannot compile internal functions in deeper scopes
55210 (find_root_device): Use lstat instead of stat.
55211 Don't follow symbolic links.
55212 Fix the path-constructing code.
55214 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
55215 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
55216 by a BLKGETSIZE ioctl first, because block devices don't fill
55217 the member st_mode of the structure stat on Linux.
55218 [__linux__] (linux_find_partition): Use a temporary buffer
55219 REAL_DEV for the working space. Copy it to DEV before returning.
55220 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
55221 buffer cache consistent.
55222 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
55223 strncmp. The previous value was merely wrong.
55224 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
55226 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
55227 FAT size is 12. The previous value was merely wrong.
55229 * kern/main.c (pupa_main): Don't split the starting message from
55232 * kern/term.c (pupa_putchar): Put CR after LF instead of before
55233 LF, because BIOS goes crazy about character attributes in this
55236 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55238 * include/i386/pc/util/biosdisk.h: New file.
55239 * util/i386/pc/biosdisk.c: Likewise.
55240 * util/i386/pc/pupa-setup.c: Likewise.
55242 * Makefile.in (INCLUDE_DISTFILES): Added
55243 include/pupa/i386/pc/util/biosdisk.h.
55244 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
55245 directory util/i386/pc.
55246 (install-local): Added a rule for sbin_UTILITIES.
55247 (uninstall): Likewise.
55249 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
55251 * util/misc.c (xrealloc): New function.
55252 (pupa_malloc): Likewise.
55253 (pupa_free): Likewise.
55254 (pupa_realloc): Likewise.
55255 (pupa_stop): Likewise.
55256 (pupa_putchar): Likewise.
55258 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
55260 * include/pupa/util/misc.h (xrealloc): Declared.
55262 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
55264 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
55265 (PUPA_BOOT_MACHINE_BPB_END): ... this.
55267 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
55268 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55270 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
55271 way should be implemented.
55272 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55274 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
55275 the size of NAME for safety.
55276 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
55279 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
55280 (pupa_setup_SOURCES): Likewise.
55282 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
55284 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55286 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
55287 bunch of pushl's from pusha, because this destroys the return
55290 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55292 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
55293 This means that any missing prototypes could be fatal. Also, you
55294 must take care when writing assembly code. See the comments at
55295 the beginning of startup.S, for more details.
55297 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
55298 compilation mechanism.
55299 (pupa_chainloader_real_boot): Likewise.
55300 (pupa_biosdisk_rw_int13_extensions): Likewise.
55301 (pupa_biosdisk_rw_standard): Likewise.
55302 (pupa_biosdisk_check_int13_extensions): Likewise.
55303 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
55304 (pupa_biosdisk_get_diskinfo_standard): Likewise.
55305 (pupa_get_memsize): Likewise.
55306 (pupa_get_mmap_entry): Likewise.
55307 (pupa_console_putchar): Likewise.
55308 (pupa_console_setcursor): Likewise.
55309 (pupa_getrtsecs): Use pushl instead of push.
55311 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
55312 memory instead of the stack for a mmap entry, because some
55313 BIOSes may ignore the maximum size and overflow.
55315 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
55317 * genmk.rb (PModule#rule): Compile automatically generated
55318 sources with module-specific CFLAGS as well as other sources.
55320 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55322 * configure.ac: Check ld.
55323 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
55324 respectively, before checking endianness and sizes.
55326 * Makefile.in (LD): New variable.
55328 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55330 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
55332 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55334 * Changelog: New file.